Compare commits
30 Commits
cm-7.1.0
...
gingerbrea
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e26bd947a | |||
|
|
faf8c0c6a7 | ||
|
|
2cd0b405fa | ||
|
|
92780dfae5 | ||
|
|
69e9daff39 | ||
| d7a46781ab | |||
|
|
70c21bc5bc | ||
|
|
e07a97a632 | ||
|
|
225428b3dc | ||
|
|
ac7d016b41 | ||
|
|
a76d1a2b8e | ||
|
|
f267e14e26 | ||
|
|
fbfb2b8389 | ||
|
|
815eaec4de | ||
|
|
95c6dcd743 | ||
|
|
2861776e7a | ||
|
|
334b776e09 | ||
|
|
25a238979b | ||
|
|
aa671285b4 | ||
|
|
7ca7db9efc | ||
|
|
ef4f22ab2e | ||
|
|
33fd1df988 | ||
|
|
ca3157a203 | ||
|
|
816e55f1a4 | ||
|
|
36472fb89a | ||
|
|
4d222384cc | ||
|
|
a19677045f | ||
|
|
896c792e87 | ||
|
|
a5bfeb9314 | ||
|
|
fe7d1278d9 |
13
C1Parts/Android.mk
Normal file
13
C1Parts/Android.mk
Normal 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))
|
||||
18
C1Parts/AndroidManifest.xml
Normal file
18
C1Parts/AndroidManifest.xml
Normal 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>
|
||||
61
C1Parts/res/values-es/arrays.xml
Normal file
61
C1Parts/res/values-es/arrays.xml
Normal 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>
|
||||
|
||||
24
C1Parts/res/values-es/strings.xml
Normal file
24
C1Parts/res/values-es/strings.xml
Normal 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>
|
||||
60
C1Parts/res/values-fr/arrays.xml
Normal file
60
C1Parts/res/values-fr/arrays.xml
Normal 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>
|
||||
24
C1Parts/res/values-fr/strings.xml
Normal file
24
C1Parts/res/values-fr/strings.xml
Normal 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>
|
||||
48
C1Parts/res/values-ru/arrays.xml
Normal file
48
C1Parts/res/values-ru/arrays.xml
Normal 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>
|
||||
24
C1Parts/res/values-ru/strings.xml
Normal file
24
C1Parts/res/values-ru/strings.xml
Normal 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>
|
||||
60
C1Parts/res/values-zh-rTW/arrays.xml
Normal file
60
C1Parts/res/values-zh-rTW/arrays.xml
Normal 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>HSDPA+HSUPA</item>
|
||||
</string-array>
|
||||
|
||||
<!-- skipping untranslatable /resources:0/string-array:name=hspa_entries_values -->
|
||||
|
||||
</resources>
|
||||
24
C1Parts/res/values-zh-rTW/strings.xml
Normal file
24
C1Parts/res/values-zh-rTW/strings.xml
Normal 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">啟用 HSDPA/HSUPA</string>
|
||||
</resources>
|
||||
93
C1Parts/res/values/arrays.xml
Normal file
93
C1Parts/res/values/arrays.xml
Normal 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>
|
||||
24
C1Parts/res/values/strings.xml
Normal file
24
C1Parts/res/values/strings.xml
Normal 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
68
C1Parts/res/xml/main.xml
Normal 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>
|
||||
53
C1Parts/src/com/cyanogenmod/C1Parts/C1Parts.java
Normal file
53
C1Parts/src/com/cyanogenmod/C1Parts/C1Parts.java
Normal 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));
|
||||
}
|
||||
|
||||
}
|
||||
48
C1Parts/src/com/cyanogenmod/C1Parts/Hspa.java
Normal file
48
C1Parts/src/com/cyanogenmod/C1Parts/Hspa.java
Normal 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);
|
||||
}
|
||||
}
|
||||
37
C1Parts/src/com/cyanogenmod/C1Parts/NotificationEnabled.java
Normal file
37
C1Parts/src/com/cyanogenmod/C1Parts/NotificationEnabled.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
37
C1Parts/src/com/cyanogenmod/C1Parts/NotificationTimeout.java
Normal file
37
C1Parts/src/com/cyanogenmod/C1Parts/NotificationTimeout.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
19
C1Parts/src/com/cyanogenmod/C1Parts/Startup.java
Normal file
19
C1Parts/src/com/cyanogenmod/C1Parts/Startup.java
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
48
C1Parts/src/com/cyanogenmod/C1Parts/Utils.java
Normal file
48
C1Parts/src/com/cyanogenmod/C1Parts/Utils.java
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
37
C1Parts/src/com/cyanogenmod/C1Parts/mDNIeUIMode.java
Normal file
37
C1Parts/src/com/cyanogenmod/C1Parts/mDNIeUIMode.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
37
C1Parts/src/com/cyanogenmod/C1Parts/mDNIeUserMode.java
Normal file
37
C1Parts/src/com/cyanogenmod/C1Parts/mDNIeUserMode.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
25
common.mk
25
common.mk
@@ -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 \
|
||||
|
||||
4
etc/audio/soundbooster.txt
Normal file
4
etc/audio/soundbooster.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
H,0
|
||||
G,6
|
||||
C,2
|
||||
S,2
|
||||
7
etc/init.d/10soundbooster
Normal file
7
etc/init.d/10soundbooster
Normal 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;
|
||||
13
etc/mdnie_tune_bypass_mode
Normal file
13
etc/mdnie_tune_bypass_mode
Normal 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
|
||||
13
etc/mdnie_tune_camera_mode
Normal file
13
etc/mdnie_tune_camera_mode
Normal 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
|
||||
17
etc/mdnie_tune_camera_outdoor_mode
Normal file
17
etc/mdnie_tune_camera_outdoor_mode
Normal 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
|
||||
43
etc/mdnie_tune_dynamic_mode
Normal file
43
etc/mdnie_tune_dynamic_mode
Normal 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
|
||||
13
etc/mdnie_tune_gallery_mode
Normal file
13
etc/mdnie_tune_gallery_mode
Normal 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
43
etc/mdnie_tune_movie_mode
Normal 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
|
||||
17
etc/mdnie_tune_outdoor_mode
Normal file
17
etc/mdnie_tune_outdoor_mode
Normal 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
|
||||
43
etc/mdnie_tune_standard_mode
Normal file
43
etc/mdnie_tune_standard_mode
Normal 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
|
||||
13
etc/mdnie_tune_ui_dynamic_mode
Normal file
13
etc/mdnie_tune_ui_dynamic_mode
Normal 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
|
||||
13
etc/mdnie_tune_ui_movie_mode
Normal file
13
etc/mdnie_tune_ui_movie_mode
Normal 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
|
||||
15
etc/mdnie_tune_ui_standard_mode
Normal file
15
etc/mdnie_tune_ui_standard_mode
Normal 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
|
||||
16
etc/mdnie_tune_video_cold_mode
Normal file
16
etc/mdnie_tune_video_cold_mode
Normal 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
|
||||
20
etc/mdnie_tune_video_cold_outdoor_mode
Normal file
20
etc/mdnie_tune_video_cold_outdoor_mode
Normal 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
13
etc/mdnie_tune_video_mode
Normal 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
|
||||
16
etc/mdnie_tune_video_warm_mode
Normal file
16
etc/mdnie_tune_video_warm_mode
Normal 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
|
||||
20
etc/mdnie_tune_video_warm_outdoor_mode
Normal file
20
etc/mdnie_tune_video_warm_outdoor_mode
Normal 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
|
||||
@@ -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
15
init.rc
@@ -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
|
||||
|
||||
@@ -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
3
lpm.rc
@@ -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
|
||||
|
||||
37
overlay/frameworks/base/core/res/res/values/arrays.xml
Normal file
37
overlay/frameworks/base/core/res/res/values/arrays.xml
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user