30 Commits

Author SHA1 Message Date
5e26bd947a Merge branch 'gingerbread' of github.com:CyanogenMod/android_device_samsung_c1-common into gingerbread 2012-04-28 18:03:53 +01:00
Daniel Hillenbrand
faf8c0c6a7 Merge "C1Parts: added french translation" into gingerbread 2012-04-17 21:29:54 +04:00
codeworkx
2cd0b405fa releasetools: force unmount system before format
Change-Id: Id7c7c9dc6cde50050256f9495288866a49baf810
2012-02-25 13:17:37 +01:00
coudu
92780dfae5 C1Parts: added french translation
Change-Id: Id592a09702622e88dcfa86765cfd52b42106ebcc
2012-01-18 00:21:17 +01:00
codeworkx
69e9daff39 audio: soundbooster config file
Change-Id: Ice36cfa2facfd02faf16ecc20a259b5482d81d1c
2011-12-17 00:03:32 +01:00
d7a46781ab galaxys2: add cm soft buttons 2011-12-05 00:08:03 +00:00
pvolkov
70c21bc5bc Add Russian translation - Galaxy SII Settings
Update Russian translation - remove tabs

Update Russian translation
2011-11-23 19:38:11 +04:00
athurh
e07a97a632 Add spanish translation
Change-Id: I864b7fbcd8ed398d1d1af046936d4b5e5060d078
2011-11-19 04:10:22 +01:00
David van Tonder
225428b3dc Overlay: Modify reboot options
The framework part of this was merged 14/11

Change-Id: I1c226cec45a004556b3bf8fe642f7086d94e1b21
2011-11-14 12:45:04 -05:00
atinm
ac7d016b41 Revert modification of reboot options.
Change-Id: I5e8fed0f325476c490a20b5dfd064a148b1f5ad4
2011-11-11 11:29:19 -05:00
David van Tonder
a76d1a2b8e Add 2 second backlight timeout option and fix power menu - 'Bootloader' should be 'Download' for SGS2
Change-Id: I189ecfcc31bc8df83b5759960bac48c890ce3742
2011-11-11 08:48:51 +08:00
Ladios Jonquil
f267e14e26 C1Parts: Traditional Chinese: Initial Translations
Change-Id: I36468583fc237314bd3ba87f25bb62d1f2c1fb5c
2011-11-06 11:52:17 +08:00
David van Tonder
fbfb2b8389 Added
- C1Parts Settings app
 - CM7 LED Notifications support (liblights and overlay)

Settings app supports
 - mDNIe settings
 - HSPA Config
 - Backlight timeout config
 - LED Notifications config (default off)

Change-Id: Ib43ea0ca8846a358dc48b91f911a3a1899d2c7a6
2011-11-05 18:58:49 -04:00
atinm
815eaec4de Merge "Added missing PHONE_STORAGE environment variable and symlink /emmc." into gingerbread 2011-11-04 18:29:26 +03:00
David Thompson
95c6dcd743 Fix selection of 64m for VM heap size in CMParts
Change-Id: I09bc03d01655b75d4997a6df703feb6ac5226d4e
2011-10-19 18:46:55 +01:00
Fábio Silva
2861776e7a Added missing PHONE_STORAGE environment variable and symlink /emmc.
Change-Id: Ib406ea369bd933d9b27381553c53edb6f73f20d1
2011-10-18 17:20:24 -03:00
atinm
334b776e09 Enable LPM
Change-Id: I0d35cfae157e8dd82c5f7b500e83da1d23408a97
2011-10-16 21:48:44 -04:00
atinm
25a238979b Merge "Remove unsupported effects from ffc menu" into gingerbread 2011-10-15 18:51:10 +04:00
atinm
aa671285b4 Remove unsupported effects from ffc menu
Change-Id: Id0b3f60031fd27cf0e2e0db60d7e9eba39d53903
2011-10-15 10:50:34 -04:00
codeworkx
7ca7db9efc mDNIe: modified ui standard
Change-Id: Iffc0b1100f31155ec28d9e6e338452cab6c972de
2011-10-15 14:44:17 +02:00
atinm
ef4f22ab2e Merge "Fix ffc options" into gingerbread 2011-10-15 15:55:05 +04:00
atinm
33fd1df988 Merge "Conform SGS2 SD cards to AOSP standard (1/3)" into gingerbread 2011-10-15 05:11:34 +04:00
Shawn Alty
ca3157a203 Conform SGS2 SD cards to AOSP standard (1/3)
Same patch as on SGS1, swap their mountpoints but force switchexternal.
Useful for new users coming to CM from stock as this is expected behavior,
but will also fix the logic in CMParts.

Patchset 2: Totally messed up the partition scheme. Anyone who +1'd this before this patch is a liar xD

Change-Id: I7be24dfe0fb65c948781f90375faeec33cf593f8
2011-10-14 19:12:27 -05:00
codeworkx
816e55f1a4 mDNIe: ui standard mode
Change-Id: I5af8738c3f625a31ba739603ec1b84b1216adbdd
2011-10-15 00:43:29 +02:00
atinm
36472fb89a Use default bluedroid implementation
Change-Id: Icda8dfb166035098e67b8433b81863c2c85f0f9e
2011-10-14 17:38:26 -04:00
atinm
4d222384cc garbage college memory
Change-Id: I9b1291b563ac1d366120370d03e527d59c6cb4df
2011-10-14 01:12:38 -04:00
codeworkx
a19677045f mDNIe: ui mode, dynamic
Change-Id: Ib4b2c301fa112813a5102434904f8df126e49843
2011-10-13 22:39:46 +02:00
atinm
896c792e87 Added custom bluedroid
Change-Id: Iaf072ca3912f3b141b93d8b0e2d75b3ec5e5c1cf
2011-10-13 14:39:57 -04:00
codeworkx
a5bfeb9314 added mDNIe config files, load one by default
Change-Id: I426c321b917bb73d67e0bcc23345e7a8017658c3
2011-10-13 18:12:59 +02:00
Adam Green
fe7d1278d9 Fix ffc options
Change-Id: I52656f1aeaf68631c612334922813a6fa109fdd6
2011-10-09 21:46:17 +01:00
53 changed files with 1383 additions and 28 deletions

13
C1Parts/Android.mk Normal file
View File

@@ -0,0 +1,13 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := C1Parts
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cyanogenmod.C1Parts" android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application android:label="@string/app_name">
<activity android:name=".C1Parts"
android:label="@string/app_name">
<intent-filter>
<action android:name="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" />
</intent-filter>
</activity>
<receiver android:name=".Startup">
<intent-filter android:priority="100">
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>

View File

@@ -0,0 +1,61 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="mdnie_ui_entries">
<item>UI (predeterminado)</item>
<item>Vídeo</item>
<item>Vídeo Cálido</item>
<item>Vídeo Frío</item>
<item>Cámara</item>
<item>Navegación</item>
<item>Galería</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=mdnie_ui_entries_values -->
<string-array name="mdnie_user_entries">
<item>Estándar (predeterminado)</item>
<item>Dinámico</item>
<item>Película</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=mdnie_user_entries_values -->
<string-array name="backlight_timeout_entries">
<item>Siempre encendida</item>
<item>2 segundos</item>
<item>5 segundos</item>
<item>10 segundos</item>
<item>15 segundos</item>
<item>Siempre apagada</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=backlight_timeout_entries_values -->
<string-array name="notification_timeout_entries">
<item>Nunca</item>
<item>5 minutos</item>
<item>10 minutos</item>
<item>15 minutos</item>
<item>30 minutos</item>
<item>60 minutos</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=notification_timeout_entries_values -->
<string-array name="notification_enabled_entries">
<item>Activado</item>
<item>Desactivado</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=notification_enabled_entries_values -->
<string-array name="hspa_entries">
<item>Sólo UMTS</item>
<item>Sólo HSDPA</item>
<item>HSDPA + HSUPA</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=hspa_entries_values -->
</resources>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Ajustes de Galaxy SII</string>
<string name="category_mdnie_title">Ajustes de pantalla</string>
<string name="mdnie_ui_title_head">Color</string>
<string name="mdnie_ui_summary_head">Establecer el modo de color mDNIe</string>
<string name="mdnie_user_title_head">Nitidez</string>
<string name="mdnie_user_summary_head">Establecer el modo de nitidez</string>
<string name="category_touchkey_title">Botones táctiles</string>
<string name="backlight_timeout_title_head">Tiempo luz de fondo</string>
<string name="backlight_timeout_summary_head">Tiempo que permanecerá encendida la luz de los botones táctiles.</string>
<string name="category_notify_title">Notificaciones LED</string>
<string name="notification_enabled_title_head">Notificaciones</string>
<string name="notification_enabled_summary_head">Habilita el soporte para notificaciones LED en el kernel. Nota: Una notificación activa impedirá que el telefono entre en suspensión</string>
<string name="notification_timeout_title_head">Tiempo de espera de notificación</string>
<string name="notification_timeout_summary_head">Tiempo que permanecerá activada la notificación.</string>
<string name="category_radio_title">Radio</string>
<string name="hspa_title_head">HSPA</string>
<string name="hspa_summary_head">Habilitar HSDPA/HSUPA</string>
</resources>

View File

@@ -0,0 +1,60 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="mdnie_ui_entries">
<item>IU (Défaut)</item>
<item>Vidéo</item>
<item>Vidéo Chaud</item>
<item>Vidéo Froid</item>
<item>Caméra</item>
<item>Navigation</item>
<item>Galerie</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=mdnie_ui_entries_values -->
<string-array name="mdnie_user_entries">
<item>Standard (Défaut)</item>
<item>Dynamique</item>
<item>Film</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=mdnie_user_entries_values -->
<string-array name="backlight_timeout_entries">
<item>Toujours allumé</item>
<item>2 secondes</item>
<item>5 secondes</item>
<item>10 secondes</item>
<item>15 secondes</item>
<item>Toujours éteint</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=backlight_timeout_entries_values -->
<string-array name="notification_timeout_entries">
<item>Jamais</item>
<item>5 minutes</item>
<item>10 minutes</item>
<item>15 minutes</item>
<item>30 minutes</item>
<item>60 minutes</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=notification_timeout_entries_values -->
<string-array name="notification_enabled_entries">
<item>Activé</item>
<item>Désactivé</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=notification_enabled_entries_values -->
<string-array name="hspa_entries">
<item>UMTS Seulement</item>
<item>HSDPA Seulement</item>
<item>HSDPA + HSUPA</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=hspa_entries_values -->
</resources>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Paramètres Galaxy SII</string>
<string name="category_mdnie_title">Paramètres de l\'écran</string>
<string name="mdnie_ui_title_head">Couleur</string>
<string name="mdnie_ui_summary_head">Choix du mode de couleur mDNIe</string>
<string name="mdnie_user_title_head">Netteté</string>
<string name="mdnie_user_summary_head">Choix du mode de netteté mDNIe</string>
<string name="category_touchkey_title">Touches Tactiles</string>
<string name="backlight_timeout_title_head">Délai Rétroéclairage</string>
<string name="backlight_timeout_summary_head">Délai de rétroéclairage des touches tactiles avant extinction</string>
<string name="category_notify_title">Notifications par LED</string>
<string name="notification_enabled_title_head">Notifications</string>
<string name="notification_enabled_summary_head">Activer le support des notifications par LED dans le noyau. Note: Une notification active empêche le téléphone de rentrer en veille profonde</string>
<string name="notification_timeout_title_head">Délai Notification</string>
<string name="notification_timeout_summary_head">Délai de l\'indicateur de notification avant extinction</string>
<string name="category_radio_title">Radio</string>
<string name="hspa_title_head">HSPA</string>
<string name="hspa_summary_head">Activer HSDPA/HSUPA</string>
</resources>

View File

@@ -0,0 +1,48 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="mdnie_ui_entries">
<item>UI (по умолчанию)</item>
<item>Видео</item>
<item>Видео (тёплый)</item>
<item>Видео (холодный)</item>
<item>Камера</item>
<item>Навигация</item>
<item>Галерея</item>
</string-array>
<string-array name="mdnie_user_entries">
<item>Стандартный (по умолчанию)</item>
<item>Динамический</item>
<item>Кино</item>
</string-array>
<string-array name="backlight_timeout_entries">
<item>Вкл. всегда</item>
<item>2 секунды</item>
<item>5 секунд</item>
<item>10 секунд</item>
<item>15 секунд</item>
<item>Выкл. всегда</item>
</string-array>
<string-array name="notification_timeout_entries">
<item>Никогда</item>
<item>5 минут</item>
<item>10 минут</item>
<item>15 минут</item>
<item>30 минут</item>
<item>60 минут</item>
</string-array>
<string-array name="notification_enabled_entries">
<item>Включено</item>
<item>Выключено</item>
</string-array>
<string-array name="hspa_entries">
<item>Только UMTS</item>
<item>Только HSDPA</item>
<item>HSDPA + HSUPA</item>
</string-array>
</resources>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Настройки Galaxy SII</string>
<string name="category_mdnie_title">Настройки экрана</string>
<string name="mdnie_ui_title_head">Цвет</string>
<string name="mdnie_ui_summary_head">Установка режима цвета mDNIe</string>
<string name="mdnie_user_title_head">Чёткость</string>
<string name="mdnie_user_summary_head">Установка режима чёткости mDNIe</string>
<string name="category_touchkey_title">Сенсорные кнопки</string>
<string name="backlight_timeout_title_head">Таймаут подсветки</string>
<string name="backlight_timeout_summary_head">Как долго работает подсветка сенсорных кнопок</string>
<string name="category_notify_title">Уведомления светодиодом</string>
<string name="notification_enabled_title_head">Уведомления</string>
<string name="notification_enabled_summary_head">Включает поддержку ядром уведомления светодиодом. Примечание: активное уведомление препятствует переходу телефона в глубокий сон</string>
<string name="notification_timeout_title_head">Таймаут уведомления</string>
<string name="notification_timeout_summary_head">Как долго показывается индикатор уведомления</string>
<string name="category_radio_title">Радиомодуль</string>
<string name="hspa_title_head">HSPA</string>
<string name="hspa_summary_head">Включить HSDPA/HSUPA</string>
</resources>

View File

@@ -0,0 +1,60 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="mdnie_ui_entries">
<item>介面(預設)</item>
<item>視訊</item>
<item>視訊-暖</item>
<item>視訊-冷</item>
<item>相機</item>
<item>導航</item>
<item>畫廊</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=mdnie_ui_entries_values -->
<string-array name="mdnie_user_entries">
<item>標準(預設)</item>
<item>動態</item>
<item>電影</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=mdnie_user_entries_values -->
<string-array name="backlight_timeout_entries">
<item>總是開啟</item>
<item>2秒</item>
<item>5秒</item>
<item>10秒</item>
<item>15秒</item>
<item>總是關閉</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=backlight_timeout_entries_values -->
<string-array name="notification_timeout_entries">
<item>永不</item>
<item>5分鐘</item>
<item>10分鐘</item>
<item>15分鐘</item>
<item>30分鐘</item>
<item>60分鐘</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=notification_timeout_entries_values -->
<string-array name="notification_enabled_entries">
<item>啟用</item>
<item>停用</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=notification_enabled_entries_values -->
<string-array name="hspa_entries">
<item>僅 UMTS</item>
<item>僅 HSDPA</item>
<item>HSDPAHSUPA</item>
</string-array>
<!-- skipping untranslatable /resources:0/string-array:name=hspa_entries_values -->
</resources>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Galaxy SII 設定</string>
<string name="category_mdnie_title">螢幕設定</string>
<string name="mdnie_ui_title_head">色彩</string>
<string name="mdnie_ui_summary_head">設定 mDNIe 色彩模式</string>
<string name="mdnie_user_title_head">銳度</string>
<string name="mdnie_user_summary_head">設定 mDNIe 銳利模式</string>
<string name="category_touchkey_title">觸控鍵</string>
<string name="backlight_timeout_title_head">背光逾時</string>
<string name="backlight_timeout_summary_head">設定觸控鍵背光開啟多久後關閉</string>
<string name="category_notify_title">LED 通知</string>
<string name="notification_enabled_title_head">通知</string>
<string name="notification_enabled_summary_head">啟用內核的 LED 通知功能。注意:進行中的通知會防止手機進入深度睡眠狀態</string>
<string name="notification_timeout_title_head">通知逾時</string>
<string name="notification_timeout_summary_head">設定通知指示器開啟多久後關閉</string>
<string name="category_radio_title">行動網路</string>
<string name="hspa_title_head">HSPA</string>
<string name="hspa_summary_head">啟用 HSDPAHSUPA</string>
</resources>

View File

@@ -0,0 +1,93 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string-array name="mdnie_ui_entries">
<item>UI (Default)</item>
<item>Video</item>
<item>Video Warm</item>
<item>Video Cold</item>
<item>Camera</item>
<item>Navigation</item>
<item>Gallery</item>
</string-array>
<string-array name="mdnie_ui_entries_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
</string-array>
<string-array name="mdnie_user_entries">
<item>Standard (Default)</item>
<item>Dynamic</item>
<item>Movie</item>
</string-array>
<string-array name="mdnie_user_entries_values" translatable="false">
<item>1</item>
<item>0</item>
<item>2</item>
</string-array>
<string-array name="backlight_timeout_entries">
<item>Always On</item>
<item>2 seconds</item>
<item>5 seconds</item>
<item>10 seconds</item>
<item>15 seconds</item>
<item>Always Off</item>
</string-array>
<string-array name="backlight_timeout_entries_values" translatable="false">
<item>-1</item>
<item>2000</item>
<item>5000</item>
<item>10000</item>
<item>15000</item>
<item>-2</item>
</string-array>
<string-array name="notification_timeout_entries">
<item>Never</item>
<item>5 minutes</item>
<item>10 minutes</item>
<item>15 minutes</item>
<item>30 minutes</item>
<item>60 minutes</item>
</string-array>
<string-array name="notification_timeout_entries_values" translatable="false">
<item>-1</item>
<item>300000</item>
<item>600000</item>
<item>900000</item>
<item>1800000</item>
<item>3600000</item>
</string-array>
<string-array name="notification_enabled_entries">
<item>Enabled</item>
<item>Disabled</item>
</string-array>
<string-array name="notification_enabled_entries_values" translatable="false">
<item>1</item>
<item>-1</item>
</string-array>
<string-array name="hspa_entries">
<item>UMTS Only</item>
<item>HSDPA Only</item>
<item>HSDPA + HSUPA</item>
</string-array>
<string-array name="hspa_entries_values" translatable="false">
<item>21</item>
<item>22</item>
<item>23</item>
</string-array>
</resources>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Galaxy SII Settings</string>
<string name="category_mdnie_title">Screen Settings</string>
<string name="mdnie_ui_title_head">Color</string>
<string name="mdnie_ui_summary_head">Set the mDNIe color mode</string>
<string name="mdnie_user_title_head">Sharpness</string>
<string name="mdnie_user_summary_head">Set the mDNIe sharpness mode</string>
<string name="category_touchkey_title">Touchkey</string>
<string name="backlight_timeout_title_head">Backlight Timeout</string>
<string name="backlight_timeout_summary_head">How long the touchkey backlight should stay on before turning off</string>
<string name="category_notify_title">LED Notifications</string>
<string name="notification_enabled_title_head">Notifications</string>
<string name="notification_enabled_summary_head">Enable kernel support for LED Notifications. Note: An active notification will prevent the phone from entering deep sleep</string>
<string name="notification_timeout_title_head">Notification Timeout</string>
<string name="notification_timeout_summary_head">How long the notification indicator should stay on before turning off</string>
<string name="category_radio_title">Radio</string>
<string name="hspa_title_head">HSPA</string>
<string name="hspa_summary_head">Enable HSDPA/HSUPA</string>
</resources>

68
C1Parts/res/xml/main.xml Normal file
View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="@string/category_mdnie_title">
<!-- mDNIe Color Modes -->
<ListPreference
android:key="mdnie_ui"
android:title="@string/mdnie_ui_title_head"
android:summary="@string/mdnie_ui_summary_head"
android:entries="@array/mdnie_ui_entries"
android:entryValues="@array/mdnie_ui_entries_values"
android:defaultValue="0" />
<!-- mDNIe Sharpness Modes -->
<ListPreference
android:key="mdnie_user"
android:title="@string/mdnie_user_title_head"
android:summary="@string/mdnie_user_summary_head"
android:entries="@array/mdnie_user_entries"
android:entryValues="@array/mdnie_user_entries_values"
android:defaultValue="1" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/category_touchkey_title">
<!-- Touchkey backlight timeout -->
<ListPreference
android:key="backlight_timeout"
android:title="@string/backlight_timeout_title_head"
android:summary="@string/backlight_timeout_summary_head"
android:entries="@array/backlight_timeout_entries"
android:entryValues="@array/backlight_timeout_entries_values"
android:defaultValue="-1" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/category_notify_title">
<!-- LED Notification enable -->
<ListPreference
android:key="notification_enabled"
android:title="@string/notification_enabled_title_head"
android:summary="@string/notification_enabled_summary_head"
android:entries="@array/notification_enabled_entries"
android:entryValues="@array/notification_enabled_entries_values"
android:defaultValue="-1" />
<!-- LED Notification timeout -->
<ListPreference
android:key="notification_timeout"
android:title="@string/notification_timeout_title_head"
android:summary="@string/notification_timeout_summary_head"
android:entries="@array/notification_timeout_entries"
android:entryValues="@array/notification_timeout_entries_values"
android:defaultValue="-1" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/category_radio_title">
<!-- UMTS/HSDPA/HSUPA settings -->
<ListPreference
android:key="hspa"
android:title="@string/hspa_title_head"
android:summary="@string/hspa_summary_head"
android:entries="@array/hspa_entries"
android:entryValues="@array/hspa_entries_values"
android:defaultValue="23" />
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -0,0 +1,53 @@
package com.cyanogenmod.C1Parts;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.PreferenceActivity;
public class C1Parts extends PreferenceActivity {
public static final String MDNIE_UI = "mdnie_ui";
public static final String MDNIE_USER = "mdnie_user";
public static final String KEY_BACKLIGHT_TIMEOUT = "backlight_timeout";
public static final String NOTIFICATION_TIMEOUT = "notification_timeout";
public static final String NOTIFICATION_ENABLED = "notification_enabled";
public static final String KEY_HSPA = "hspa";
private ListPreference mmDNIeUIMode;
private ListPreference mmDNIeUserMode;
private ListPreference mBacklightTimeout;
private ListPreference mNotificationTimeout;
private ListPreference mNotificationEnabled;
private ListPreference mHspa;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.main);
mmDNIeUIMode = (ListPreference) findPreference(MDNIE_UI);
mmDNIeUIMode.setEnabled(NotificationEnabled.isSupported());
mmDNIeUIMode.setOnPreferenceChangeListener(new mDNIeUIMode());
mmDNIeUserMode = (ListPreference) findPreference(MDNIE_USER);
mmDNIeUserMode.setEnabled(NotificationEnabled.isSupported());
mmDNIeUserMode.setOnPreferenceChangeListener(new mDNIeUserMode());
mNotificationEnabled = (ListPreference) findPreference(NOTIFICATION_ENABLED);
mNotificationEnabled.setEnabled(NotificationEnabled.isSupported());
mNotificationEnabled.setOnPreferenceChangeListener(new NotificationEnabled());
mNotificationTimeout = (ListPreference) findPreference(NOTIFICATION_TIMEOUT);
mNotificationTimeout.setEnabled(NotificationTimeout.isSupported());
mNotificationTimeout.setOnPreferenceChangeListener(new NotificationTimeout());
mBacklightTimeout = (ListPreference) findPreference(KEY_BACKLIGHT_TIMEOUT);
mBacklightTimeout.setEnabled(TouchKeyBacklightTimeout.isSupported());
mBacklightTimeout.setOnPreferenceChangeListener(new TouchKeyBacklightTimeout());
mHspa = (ListPreference) findPreference(KEY_HSPA);
mHspa.setEnabled(Hspa.isSupported());
mHspa.setOnPreferenceChangeListener(new Hspa(this));
}
}

View File

@@ -0,0 +1,48 @@
package com.cyanogenmod.C1Parts;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceManager;
public class Hspa implements OnPreferenceChangeListener {
private static final String APK_FILE = "/system/app/SamsungServiceMode.apk";
private Context mCtx;
public Hspa(Context context) {
mCtx = context;
}
public static boolean isSupported() {
return Utils.fileExists(APK_FILE);
}
/**
* Restore HSPA setting from SharedPreferences. (Write to kernel.)
* @param context The context to read the SharedPreferences from
*/
public static void restore(Context context) {
if (!isSupported()) {
return;
}
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
sendIntent(context, sharedPrefs.getString(C1Parts.KEY_HSPA, "23"));
}
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
sendIntent(mCtx, (String) newValue);
return true;
}
private static void sendIntent(Context context, String value) {
Intent i = new Intent("com.cyanogenmod.SamsungServiceMode.EXECUTE");
i.putExtra("sub_type", 20); // HSPA Setting
i.putExtra("data", value);
context.sendBroadcast(i);
}
}

View File

@@ -0,0 +1,37 @@
package com.cyanogenmod.C1Parts;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceManager;
public class NotificationEnabled implements OnPreferenceChangeListener {
private static final String FILE = "/sys/class/misc/notification/notification_enabled";
public static boolean isSupported() {
return Utils.fileExists(FILE);
}
/**
* Restore notification enabled setting from SharedPreferences. (Write to kernel.)
* @param context The context to read the SharedPreferences from
*/
public static void restore(Context context) {
if (!isSupported()) {
return;
}
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
Utils.writeValue(FILE, sharedPrefs.getString(C1Parts.NOTIFICATION_ENABLED, "-1"));
}
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
Utils.writeValue(FILE, (String) newValue);
return true;
}
}

View File

@@ -0,0 +1,37 @@
package com.cyanogenmod.C1Parts;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceManager;
public class NotificationTimeout implements OnPreferenceChangeListener {
private static final String FILE = "/sys/class/misc/notification/notification_timeout";
public static boolean isSupported() {
return Utils.fileExists(FILE);
}
/**
* Restore notification timeout setting from SharedPreferences. (Write to kernel.)
* @param context The context to read the SharedPreferences from
*/
public static void restore(Context context) {
if (!isSupported()) {
return;
}
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
Utils.writeValue(FILE, sharedPrefs.getString(C1Parts.NOTIFICATION_TIMEOUT, "-1"));
}
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
Utils.writeValue(FILE, (String) newValue);
return true;
}
}

View File

@@ -0,0 +1,19 @@
package com.cyanogenmod.C1Parts;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class Startup extends BroadcastReceiver {
@Override
public void onReceive(final Context context, final Intent bootintent) {
TouchKeyBacklightTimeout.restore(context);
NotificationTimeout.restore(context);
NotificationEnabled.restore(context);
Hspa.restore(context);
mDNIeUIMode.restore(context);
mDNIeUserMode.restore(context);
}
}

View File

@@ -0,0 +1,37 @@
package com.cyanogenmod.C1Parts;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceManager;
public class TouchKeyBacklightTimeout implements OnPreferenceChangeListener {
private static final String FILE = "/sys/class/misc/notification/led_timeout";
public static boolean isSupported() {
return Utils.fileExists(FILE);
}
/**
* Restore backlight timeout setting from SharedPreferences. (Write to kernel.)
* @param context The context to read the SharedPreferences from
*/
public static void restore(Context context) {
if (!isSupported()) {
return;
}
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
Utils.writeValue(FILE, sharedPrefs.getString(C1Parts.KEY_BACKLIGHT_TIMEOUT, "-1"));
}
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
Utils.writeValue(FILE, (String) newValue);
return true;
}
}

View File

@@ -0,0 +1,48 @@
package com.cyanogenmod.C1Parts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class Utils {
/**
* Write a string value to the specified file.
* @param filename The filename
* @param value The value
*/
public static void writeValue(String filename, String value) {
try {
FileOutputStream fos = new FileOutputStream(new File(filename));
fos.write(value.getBytes());
fos.flush();
fos.getFD().sync();
fos.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* Write the "color value" to the specified file. The value is scaled from
* an integer to an unsigned integer by multiplying by 2.
* @param filename The filename
* @param value The value of max value Integer.MAX
*/
public static void writeColor(String filename, int value) {
writeValue(filename, String.valueOf((long) value * 2));
}
/**
* Check if the specified file exists.
* @param filename The filename
* @return Whether the file exists or not
*/
public static boolean fileExists(String filename) {
return new File(filename).exists();
}
}

View File

@@ -0,0 +1,37 @@
package com.cyanogenmod.C1Parts;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceManager;
public class mDNIeUIMode implements OnPreferenceChangeListener {
private static final String FILE = "/sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_ui_file_cmd";
public static boolean isSupported() {
return Utils.fileExists(FILE);
}
/**
* Restore Mdnie ui setting setting from SharedPreferences. (Write to kernel.)
* @param context The context to read the SharedPreferences from
*/
public static void restore(Context context) {
if (!isSupported()) {
return;
}
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
Utils.writeValue(FILE, sharedPrefs.getString(C1Parts.MDNIE_UI, "0"));
}
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
Utils.writeValue(FILE, (String) newValue);
return true;
}
}

View File

@@ -0,0 +1,37 @@
package com.cyanogenmod.C1Parts;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceManager;
public class mDNIeUserMode implements OnPreferenceChangeListener {
private static final String FILE = "/sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_user_select_file_cmd";
public static boolean isSupported() {
return Utils.fileExists(FILE);
}
/**
* Restore mdnie user mode setting from SharedPreferences. (Write to kernel.)
* @param context The context to read the SharedPreferences from
*/
public static void restore(Context context) {
if (!isSupported()) {
return;
}
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
Utils.writeValue(FILE, sharedPrefs.getString(C1Parts.MDNIE_USER, "1"));
}
@Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
Utils.writeValue(FILE, (String) newValue);
return true;
}
}

View File

@@ -50,7 +50,7 @@ PRODUCT_PACKAGES := \
libexifa \
libjpega \
com.android.future.usb.accessory \
bdaddr_read
bdaddr_read
# These are the hardware-specific configuration files
PRODUCT_COPY_FILES := \
@@ -67,10 +67,31 @@ PRODUCT_COPY_FILES += \
device/samsung/c1-common/lpm.rc:root/lpm.rc \
device/samsung/c1-common/init.smdkc210.rc:root/init.smdkc210.rc \
device/samsung/c1-common/init.smdkv310.rc:root/init.smdkv310.rc \
device/samsung/c1-common/ueventd.smdkv310.rc:root/ueventd.smdkv310.rc
device/samsung/c1-common/ueventd.smdkv310.rc:root/ueventd.smdkv310.rc \
device/samsung/c1-common/etc/init.d/10soundbooster:system/etc/init.d/10soundbooster
# mDNIe
PRODUCT_COPY_FILES += \
device/samsung/c1-common/etc/mdnie_tune_bypass_mode:system/etc/mdnie_tune_bypass_mode \
device/samsung/c1-common/etc/mdnie_tune_camera_mode:system/etc/mdnie_tune_camera_mode \
device/samsung/c1-common/etc/mdnie_tune_camera_outdoor_mode:system/etc/mdnie_tune_camera_outdoor_mode \
device/samsung/c1-common/etc/mdnie_tune_dynamic_mode:system/etc/mdnie_tune_dynamic_mode \
device/samsung/c1-common/etc/mdnie_tune_gallery_mode:system/etc/mdnie_tune_gallery_mode \
device/samsung/c1-common/etc/mdnie_tune_movie_mode:system/etc/mdnie_tune_movie_mode \
device/samsung/c1-common/etc/mdnie_tune_outdoor_mode:system/etc/mdnie_tune_outdoor_mode \
device/samsung/c1-common/etc/mdnie_tune_standard_mode:system/etc/mdnie_tune_standard_mode \
device/samsung/c1-common/etc/mdnie_tune_ui_dynamic_mode:system/etc/mdnie_tune_ui_dynamic_mode \
device/samsung/c1-common/etc/mdnie_tune_ui_movie_mode:system/etc/mdnie_tune_ui_movie_mode \
device/samsung/c1-common/etc/mdnie_tune_ui_standard_mode:system/etc/mdnie_tune_ui_standard_mode \
device/samsung/c1-common/etc/mdnie_tune_video_cold_mode:system/etc/mdnie_tune_video_cold_mode \
device/samsung/c1-common/etc/mdnie_tune_video_cold_outdoor_mode:system/etc/mdnie_tune_video_cold_outdoor_mode \
device/samsung/c1-common/etc/mdnie_tune_video_mode:system/etc/mdnie_tune_video_mode \
device/samsung/c1-common/etc/mdnie_tune_video_warm_mode:system/etc/mdnie_tune_video_warm_mode \
device/samsung/c1-common/etc/mdnie_tune_video_warm_outdoor_mode:system/etc/mdnie_tune_video_warm_outdoor_mode
# Configuration files for audio
PRODUCT_COPY_FILES += \
device/samsung/c1-common/etc/audio/soundbooster.txt:system/etc/audio/soundbooster.txt \
device/samsung/c1-common/etc/audio/LVVEFS_Rx_Configuration.txt:system/etc/audio/LVVEFS_Rx_Configuration.txt \
device/samsung/c1-common/etc/audio/LVVEFS_Tx_Configuration.txt:system/etc/audio/LVVEFS_Tx_Configuration.txt \
device/samsung/c1-common/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt \

View File

@@ -0,0 +1,4 @@
H,0
G,6
C,2
S,2

View File

@@ -0,0 +1,7 @@
#!/system/bin/sh
# copy soundbooster config if not exists
if [ ! -e /data/soundbooster.txt ];
then
cp /system/etc/audio/soundbooster.txt /data/soundbooster.txt
fi;

View File

@@ -0,0 +1,13 @@
//start
0x0001,0x0000, //
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0000, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x0000, //HDTR (DE D) CS
0x003B,0x0000, //DE SHARPNESS
0x003C,0x0000, //NOISE LEVEL
0x003F,0x0000, //CS GAIN
0x0042,0x003f, //DE TH (MAX DIFF)
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,13 @@
//start
0x0001,0x0000, //
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0000, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x0009, //HDTR (DE off)(CS only 9)
0x003B,0x0000, //DE SHARPNESS
0x003C,0x0000, //NOISE LEVEL
0x003F,0x0000, //CS GAIN
0x0042,0x003f, //DE TH (MAX DIFF)
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,17 @@
//start
0x0001,0x0002, //OVE
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0000, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x000D, //HDTR DE CS
0x003B,0x03ff, //DE SHARPNESS
0x003C,0x0000, //NOISE LEVEL
0x003F,0x0100, //CS GAIN
0x0042,0x003f, //DE TH (MAX DIFF)
0x0049,0x0400, //pcc skin
0x004a,0x7300,
0x004b,0x008f,
0x0054,0x5a50, //ove
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,43 @@
//start
0x003F,0x012c, //CS GAIN
0x003B,0x03ff, //DE SHARPNESS
0x0042,0x0020, //DE TH (MAX DIFF)
0x004d,0x0100, //pcc strength
0x00c8,0x0000, //kb R SCR
0x00c9,0x0000, //gc R
0x00ca,0xffff, //rm R
0x00cb,0xffff, //yw R
0x00cc,0x0000, //kb G
0x00cd,0xffff, //gc G
0x00ce,0x0000, //rm G
0x00cf,0xffff, //yw G
0x00d0,0x00ff, //kb B
0x00d1,0x00ff, //gc B
0x00d2,0x00ff, //rm B
0x00d3,0x00ff, //yw B
0x00D6,0x1d00, //GAMMA start
0x00D7,0x1d00,
0x00D8,0x1d00,
0x00D9,0x1d00,
0x00DA,0x1d00,
0x00DB,0x1d00,
0x00DC,0x1d00,
0x00DD,0x1d00,
0x00DE,0x1d00,
0x00DF,0x1d00,
0x00E0,0x1d00,
0x00E1,0x1d00,
0x00E2,0x1d00,
0x00E3,0x1d00,
0x00E4,0x1d00,
0x00E5,0xa40e,
0x00E6,0xa40e,
0x00E7,0xa40e,
0x00E8,0xa819,
0x00E9,0xa40a,
0x00EA,0x2200,
0x00EB,0x1c25,
0x00EC,0x1842,
0x00ED,0xFF00,
0x00D5,0x0001, //GAMMA end
//end

View File

@@ -0,0 +1,13 @@
//start
0x0001,0x0041, //SCR + PCC
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0000, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x000D, //HDTR DE CS
0x003C,0x0000, //NOISE LEVEL
0x0049,0x0400, //pcc skin
0x004a,0x7a00,
0x004b,0x008f,
0x0028,0x0000, //Register Mask
//end

43
etc/mdnie_tune_movie_mode Normal file
View File

@@ -0,0 +1,43 @@
//start
0x003F,0x0032, //CS GAIN 300
0x003B,0x0001, //DE SHARPNESS
0x0042,0x003f, //DE TH (MAX DIFF)
0x004d,0x0000, //pcc strength
0x00c8,0x0000, //kb R SCR
0x00c9,0x6000, //gc R
0x00ca,0xf0f0, //rm R
0x00cb,0xf0ff, //yw R
0x00cc,0x0050, //kb G
0x00cd,0xd8f0, //gc G
0x00ce,0x2500, //rm G
0x00cf,0xf0fb, //yw G
0x00d0,0x00f0, //kb B
0x00d1,0x20f0, //gc B
0x00d2,0x28f0, //rm B
0x00d3,0x00f0, //yw B
0x00D6,0x2000, //GAMMA start
0x00D7,0x2000,
0x00D8,0x2000,
0x00D9,0x2000,
0x00DA,0x2000,
0x00DB,0x2000,
0x00DC,0x2000,
0x00DD,0x2000,
0x00DE,0x2000,
0x00DF,0x2000,
0x00E0,0x2000,
0x00E1,0x2000,
0x00E2,0x2000,
0x00E3,0x2000,
0x00E4,0x2000,
0x00E5,0x2000,
0x00E6,0x2000,
0x00E7,0x2000,
0x00E8,0x2000,
0x00E9,0x2000,
0x00EA,0xa105,
0x00EB,0xa105,
0x00EC,0xa105,
0x00ED,0xFF00,
0x00D5,0x0001, //GAMMA end
//end

View File

@@ -0,0 +1,17 @@
//start
0x0001,0x0002, //OVE
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0000, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x0009, //HDTR DE CS
0x003B,0x03ff, //DE SHARPNESS
0x003C,0x0000, //NOISE LEVEL
0x003F,0x00c8, //CS GAIN
0x0042,0x0020, //DE TH (MAX DIFF)
0x0049,0x0400, //pcc skin
0x004a,0x7300,
0x004b,0x008f,
0x0054,0x5a50, //ove
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,43 @@
//start
0x003F,0x0032, //CS GAIN
0x003B,0x03ff, //DE SHARPNESS
0x0042,0x0020, //DE TH (MAX DIFF)
0x004d,0x0100, //pcc strength
0x00c8,0x0000, //kb R SCR
0x00c9,0x0000, //gc R
0x00ca,0xffff, //rm R
0x00cb,0xffff, //yw R
0x00cc,0x0000, //kb G
0x00cd,0xffff, //gc G
0x00ce,0x0000, //rm G
0x00cf,0xffff, //yw G
0x00d0,0x00ff, //kb B
0x00d1,0x00ff, //gc B
0x00d2,0x00ff, //rm B
0x00d3,0x00ff, //yw B
0x00D6,0x2000, //GAMMA start
0x00D7,0x2000,
0x00D8,0x2000,
0x00D9,0x2000,
0x00DA,0x2000,
0x00DB,0x2000,
0x00DC,0x2000,
0x00DD,0x2000,
0x00DE,0x2000,
0x00DF,0x2000,
0x00E0,0x2000,
0x00E1,0x2000,
0x00E2,0x2000,
0x00E3,0x2000,
0x00E4,0x2000,
0x00E5,0x2000,
0x00E6,0x2000,
0x00E7,0x2000,
0x00E8,0x2000,
0x00E9,0x2000,
0x00EA,0xa105,
0x00EB,0xa105,
0x00EC,0xa105,
0x00ED,0xFF00,
0x00D5,0x0001, //GAMMA end
//end

View File

@@ -0,0 +1,13 @@
//start
0x0001,0x0000, //
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0000, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x000d, //HDTR DE_off CS : de on = d , de off = 9
0x003B,0x0001, //DE SHARPNESS(0~1023) off
0x003C,0x0000, //NOISE LEVEL
0x003F,0x012c, //CS GAIN 300
0x0042,0x0030, //DE TH (MAX DIFF)
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,13 @@
//start
0x0001,0x0040, //scr
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0000, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x000d, //HDTR DE_off CS : de on = d , de off = 9
0x003B,0x0001, //DE SHARPNESS(0~1023) off
0x003C,0x0000, //NOISE LEVEL
0x003F,0x0032, //CS GAIN 50
0x0042,0x0030, //DE TH (MAX DIFF)
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,15 @@
//start
0x0001,0x0000, //MCM PCC
0x002c,0x0fff, //DNR bypass 0x003C
0x002d,0x1900, //DNR bypass 0x0a08
0x002e,0x0fff, //DNR bypass 0x1010
0x002f,0x0fff, //DNR bypass 0x0400
0x003A,0x0009, //HDTR DE_off CS : de on = d , de off = 9
0x003B,0x0000, //DE SHARPNESS(0~1023) off
0x003C,0x0000, //NOISE LEVEL
0x003F,0x0032, //CS GAIN
0x0042,0x0020, //DE TH (MAX DIFF)
0x004d,0x0100, //pcc strength
0x005b,0x0050, //COLOR saturation
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,16 @@
//start
0x0001,0x0045, //MCM PCC
0x002c,0x003c, //DNR bypass 0x003C
0x002d,0x1908, //DNR bypass 0x0a08
0x002e,0x1005, //DNR bypass 0x1010
0x002f,0x0400, //DNR bypass 0x0400
0x003A,0x000D, //HDTR DE CS
0x003C,0x0000, //NOISE LEVEL
0x0049,0x0400, //pcc skin
0x004a,0x7300,
0x004b,0x008f,
0x005b,0x0064, //MCM
0x0063,0x9000, //cb
0x0065,0x0070, //cr
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,20 @@
//start
0x0001,0x0006, //MCM OVE
0x002c,0x003c, //DNR bypass 0x003C
0x002d,0x1908, //DNR bypass 0x0a08
0x002e,0x1005, //DNR bypass 0x1010
0x002f,0x0400, //DNR bypass 0x0400
0x003A,0x000D, //HDTR DE CS
0x003B,0x03ff, //DE SHARPNESS
0x003C,0x0000, //NOISE LEVEL
0x003F,0x0100, //CS GAIN : 300
0x0042,0x003f, //DE TH (MAX DIFF)
0x0049,0x0400, //pcc skin
0x004a,0x7300, //cb
0x004b,0x008f, //cr
0x0054,0x5a50, //OVE
0x005b,0x0064, //MCM
0x0063,0x9000, //cb
0x0065,0x0070, //cr
0x0028,0x0000, //Register Mask
//end

13
etc/mdnie_tune_video_mode Normal file
View File

@@ -0,0 +1,13 @@
//start
0x0001,0x0041, //PCC 40
0x002c,0x003C, //DNR bypass 0x003C
0x002d,0x1908, //DNR bypass 0x0a08
0x002e,0x1005, //DNR bypass 0x1010
0x002f,0x0400, //DNR bypass 0x0400
0x003A,0x000D, //HDTR DE CS de on = d , de off = 9
0x003C,0x0000, //NOISE LEVEL
0x0049,0x0400, //pcc skin
0x004a,0x7a00, //7300
0x004b,0x008F, //008f
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,16 @@
//start
0x0001,0x0045, //SCR MCM PCC
0x002c,0x003c, //DNR bypass 0x003C
0x002d,0x1908, //DNR bypass 0x0a08
0x002e,0x1005, //DNR bypass 0x1010
0x002f,0x0400, //DNR bypass 0x0400
0x003A,0x000d, //HDTR DE CS
0x003C,0x0000, //NOISE LEVEL
0x0049,0x0400, //pcc skin
0x004a,0x7300,
0x004b,0x008f,
0x005b,0x0064, //MCM
0x0063,0x7000, //cb
0x0065,0x0090, //cr
0x0028,0x0000, //Register Mask
//end

View File

@@ -0,0 +1,20 @@
//start
0x0001,0x0006, //MCM PCC
0x002c,0x003c, //DNR bypass 0x003C
0x002d,0x1908, //DNR bypass 0x0a08
0x002e,0x1005, //DNR bypass 0x1010
0x002f,0x0400, //DNR bypass 0x0400
0x003A,0x000d, //HDTR DE CS
0x003B,0x03ff, //DE SHARPNESS
0x003C,0x0000, //NOISE LEVEL
0x003F,0x0100, //CS GAIN : 256
0x0042,0x003f, //DE TH (MAX DIFF)
0x0049,0x0400, //pcc skin
0x004a,0x7300,
0x004b,0x008f,
0x0054,0x5a50, //OVE
0x005b,0x0064, //MCM
0x0063,0x7000, //cb
0x0065,0x0090, //cr
0x0028,0x0000, //Register Mask
//end

View File

@@ -13,10 +13,10 @@
######################
# internal sdcard
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
dev_mount emmc /mnt/emmc 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
# external sdcard
dev_mount emmc /mnt/emmc auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# USB storage device
dev_mount usbdisk /mnt/usbdisk auto /devices/platform/s3c_otghcd/usb

15
init.rc
View File

@@ -17,6 +17,7 @@ loglevel 3
export ANDROID_DATA /data
export DOWNLOAD_CACHE /cache/download
export EXTERNAL_STORAGE /mnt/sdcard
export PHONE_STORAGE /mnt/emmc
export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export SD_EXT_DIRECTORY /sd-ext
@@ -42,6 +43,7 @@ loglevel 3
# Backwards Compat - XXX: Going away in G*
symlink /mnt/sdcard /sdcard
symlink /mnt/emmc /emmc
mkdir /system
mkdir /data 0771 system system
@@ -113,7 +115,7 @@ loglevel 3
on fs
# mount mtd partitions
# Mount /system rw first to give the filesystem a chance to save a checkpoint
mount ext4 /dev/block/mmcblk0p9 /system wait rw
mount ext4 /dev/block/mmcblk0p9 /system wait ro
mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait
exec check_filesystem /dev/block/mmcblk0p10 ext4
mount ext4 /dev/block/mmcblk0p10 /data nosuid nodev noatime wait crypt discard,noauto_da_alloc
@@ -385,6 +387,15 @@ on boot
write /proc/sys/vm/dirty_expire_centisecs 200
write /proc/sys/vm/dirty_background_ratio 5
# mDNIe
chown radio system /sys/devices/virtual/mdnieset_outdoor/switch_mdnieset_outdoor/mdnieset_outdoor_file_cmd
chown radio system /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_init_file_cmd
chown radio system /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_user_select_file_cmd
chown radio system /sys/devices/virtual/mdnieset_ui/switch_mdnieset_ui/mdnieset_ui_file_cmd
write /sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_init_file_cmd 0
write /sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_ui_file_cmd 0
write /sys/class/mdnieset_ui/switch_mdnieset_ui/mdnieset_user_select_file_cmd 1
# permissions for NFC
setprop ro.nfc.port "I2C"
chmod 0600 /dev/pn544
@@ -659,7 +670,7 @@ service dbus /system/bin/dbus-daemon --system --nofork
group bluetooth net_bt_admin
#service hciattach /system/bin/hciattach /dev/s3c2410_serial0 any
service hciattach /system/bin/brcm_patchram_plus --enable_hci --baudrate 3000000 --patchram /system/bin/BCM4330B1_002.001.003.0221.0265.hcd /dev/s3c2410_serial0
service hciattach /system/bin/logwrapper /system/bin/brcm_patchram_plus -d --enable_lpm --enable_hci --baudrate 3000000 --patchram /system/bin/BCM4330B1_002.001.003.0221.0265.hcd /dev/s3c2410_serial0
user bluetooth
group bluetooth net_bt_admin
disabled

View File

@@ -1,5 +1,8 @@
/*
* Copyright (C) 2011 Kolja Dummann <k.dummann@gmail.com>
* Copyright (C) 2011 Marco Hillenbrand <marco.hillenbrand@googlemail.com>
* Copyright (C) 2011 Daniel Hillenbrand <daniel.hillenbrand@codeworkx.de>
* Copyright (C) 2011 David van Tonder <david.vantonder@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,7 +18,6 @@
*/
#define LOG_TAG "lights"
#define LOG_NDEBUG 0
#include <cutils/log.h>
@@ -28,11 +30,15 @@
#include <sys/types.h>
#include <hardware/lights.h>
/* LED NOTIFICATIONS BACKLIGHT */
#define ENABLE_BL 1
#define DISABLE_BL 2
char const *const NOTIFICATION_FILE = "/sys/class/misc/notification/led";
static pthread_once_t g_init = PTHREAD_ONCE_INIT;
static pthread_mutex_t g_lock = PTHREAD_MUTEX_INITIALIZER;
char const *const LCD_FILE = "/sys/class/backlight/pwm-backlight/brightness";
char const *const BUTTON_FILE = "/sys/devices/virtual/misc/melfas_touchkey/brightness";
static int write_int(char const *path, int value)
{
@@ -61,9 +67,9 @@ static int write_int(char const *path, int value)
static int rgb_to_brightness(struct light_state_t const *state)
{
int color = state->color & 0x00ffffff;
int color = state->color & 0x00ffffff;
return ((77*((color>>16) & 0x00ff))
return ((77*((color>>16) & 0x00ff))
+ (150*((color>>8) & 0x00ff)) + (29*(color & 0x00ff))) >> 8;
}
@@ -71,27 +77,37 @@ static int is_lit (struct light_state_t const* state) {
return state->color & 0xffffffff;
}
static int set_light_backlight(struct light_device_t *dev,
struct light_state_t const *state)
static int set_light_backlight(struct light_device_t *dev, struct light_state_t const *state)
{
int err = 0;
int brightness = rgb_to_brightness(state);
pthread_mutex_lock(&g_lock);
err = write_int(LCD_FILE, brightness);
pthread_mutex_unlock(&g_lock);
return err;
}
static int set_light_buttons (struct light_device_t* dev,
struct light_state_t const* state) {
int err = 0;
int on = is_lit (state);
LOGV("%s state->color = %d is_lit = %d", __func__,state->color , on);
pthread_mutex_lock (&g_lock);
err = write_int (BUTTON_FILE, on?1:0);
pthread_mutex_unlock (&g_lock);
return 0;
static int set_light_notifications(struct light_device_t* dev, struct light_state_t const* state)
{
int err = 0;
int brightness = rgb_to_brightness(state);
if (brightness+state->color == 0 || brightness > 100 ) {
pthread_mutex_lock(&g_lock);
if (state->color & 0x00ffffff) {
LOGV("[LED Notify] set_light_notifications - ENABLE_BL\n");
err = write_int (NOTIFICATION_FILE, ENABLE_BL);
} else {
LOGV("[LED Notify] set_light_notifications - DISABLE_BL\n");
err = write_int (NOTIFICATION_FILE, DISABLE_BL);
}
pthread_mutex_unlock(&g_lock);
}
return 0;
}
static int close_lights(struct light_device_t *dev)
@@ -103,8 +119,7 @@ static int close_lights(struct light_device_t *dev)
return 0;
}
static int open_lights(const struct hw_module_t *module, char const *name,
struct hw_device_t **device)
static int open_lights(const struct hw_module_t *module, char const *name, struct hw_device_t **device)
{
int (*set_light)(struct light_device_t *dev,
struct light_state_t const *state);
@@ -113,9 +128,9 @@ static int open_lights(const struct hw_module_t *module, char const *name,
if (0 == strcmp(LIGHT_ID_BACKLIGHT, name))
set_light = set_light_backlight;
else if (0 == strcmp(LIGHT_ID_BUTTONS, name))
set_light = set_light_buttons;
else
else if (0 == strcmp(LIGHT_ID_NOTIFICATIONS, name))
set_light = set_light_notifications;
else
return -EINVAL;
pthread_mutex_init(&g_lock, NULL);

3
lpm.rc
View File

@@ -8,11 +8,14 @@ on init
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /mnt/sdcard
export PHONE_STORAGE /mnt/emmc
symlink /system/etc /etc
mkdir /mnt 0775 root system
mkdir /mnt/sdcard 0000 system system
mkdir /mnt/emmc 0000 system system
symlink /mnt/sdcard /sdcard
symlink /mnt/emmc /emmc
mkdir /preload
mkdir /system

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/assets/res/any/colors.xml
**
** Copyright 2006, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Defines the shutdown options shown in the reboot dialog. -->
<array name="shutdown_reboot_options" translatable="false">
<item>@string/reboot_reboot</item>
<item>@string/reboot_recovery</item>
<item>@string/reboot_download</item>
</array>
<!-- Do not translate. Defines the shutdown actions passed to the kernel.
The first item should be empty for regular reboot. -->
<string-array name="shutdown_reboot_actions" translatable="false">
<item></item>
<item>recovery</item>
<item>bootloader</item>
</string-array>
</resources>

View File

@@ -165,4 +165,13 @@
<!-- Boolean indicating if restoring network selection should be skipped -->
<!-- The restoring is handled by modem if it is true -->
<bool translatable="false" name="skip_restoring_network_selection">true</bool>
<!-- Enable Tablet tweaks -->
<bool name="cm_default_has_soft_buttons">true</bool>
<bool name="cm_default_show_soft_home">false</bool>
<bool name="cm_default_show_soft_menu">false</bool>
<bool name="cm_default_show_soft_back">false</bool>
<bool name="cm_default_show_soft_search">false</bool>
<bool name="cm_default_show_soft_quick_na">false</bool>
</resources>

View File

@@ -26,4 +26,13 @@
<item>64m</item>
</string-array>
<string-array name="values_heapsize" translatable="false">
<item>12m</item>
<item>16m</item>
<item>24m</item>
<item>32m</item>
<item>48m</item>
<item>64m</item>
</string-array>
</resources>

View File

@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="has_led_flash">true</bool>
<bool name="has_led_flash">true</bool>
<!-- Notification LED has single color only -->
<bool name="has_single_notification_led">true</bool>
</resources>

View File

@@ -26,4 +26,8 @@
<!-- Samsung Special Settings -->
<bool name="needsSamsungSpecialSettings">true</bool>
<bool name="ffc_canFocus">false</bool>
<bool name="ffc_canZoom">false</bool>
<string name="ffc_supportedEffects">None</string>
</resources>

View File

@@ -6,6 +6,7 @@ on init
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard
export PHONE_STORAGE /emmc
symlink /system/etc /etc

View File

@@ -35,3 +35,12 @@ class EdifyGenerator(edify_generator.EdifyGenerator):
('assert(package_extract_file("%(image)s", "/tmp/%(image)s"),\n'
' write_raw_image("/tmp/%(image)s", "%(partition)s"),\n'
' delete("/tmp/%(image)s"));') % args)
def Unmount(self, mount_point):
"""Unmount the partition with the given mount_point."""
fstab = self.info.get("fstab", None)
if fstab:
p = fstab[mount_point]
self.script.append('unmount("%s");' %
(p.mount_point))
self.mounts.add(p.mount_point)

View File

@@ -68,6 +68,7 @@ def WriteFullOTAPackage(input_zip, output_zip):
if OPTIONS.wipe_user_data:
script.FormatPartition("/data")
script.Unmount("/system")
script.FormatPartition("/system")
script.Mount("/system")
script.UnpackPackageDir("recovery", "/system")