summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.com>2012-11-11 10:36:08 +0100
committercodeworkx <codeworkx@cyanogenmod.com>2012-11-11 10:36:08 +0100
commit171d0d988d8b524786b69c2a1a3c6013b8217088 (patch)
treed221bc8cf9554c8d41d1f13a501098483696f8af
parentee1a83994c279d846ba36a42c6d3b86fcf4a4538 (diff)
downloaddevice_samsung_smdk4412-common-171d0d988d8b524786b69c2a1a3c6013b8217088.zip
device_samsung_smdk4412-common-171d0d988d8b524786b69c2a1a3c6013b8217088.tar.gz
device_samsung_smdk4412-common-171d0d988d8b524786b69c2a1a3c6013b8217088.tar.bz2
move telephony specific parts back to device
-rw-r--r--DeviceSettings/Android.mk15
-rw-r--r--DeviceSettings/AndroidManifest.xml31
-rwxr-xr-xDeviceSettings/res/drawable/ic_launcher_cmdevicesettings.pngbin8207 -> 0 bytes
-rwxr-xr-xDeviceSettings/res/layout/top.xml5
-rw-r--r--DeviceSettings/res/values-de/arrays.xml56
-rw-r--r--DeviceSettings/res/values-de/strings.xml34
-rw-r--r--DeviceSettings/res/values-es/arrays.xml48
-rw-r--r--DeviceSettings/res/values-es/strings.xml28
-rw-r--r--DeviceSettings/res/values-hu/arrays.xml56
-rw-r--r--DeviceSettings/res/values-hu/strings.xml34
-rwxr-xr-xDeviceSettings/res/values-pt-rBR/arrays.xml55
-rwxr-xr-xDeviceSettings/res/values-pt-rBR/strings.xml28
-rw-r--r--DeviceSettings/res/values-ru/arrays.xml54
-rw-r--r--DeviceSettings/res/values-ru/strings.xml34
-rw-r--r--DeviceSettings/res/values-zh-rCN/arrays.xml56
-rw-r--r--DeviceSettings/res/values-zh-rCN/strings.xml33
-rw-r--r--DeviceSettings/res/values/arrays.xml109
-rw-r--r--DeviceSettings/res/values/strings.xml34
-rw-r--r--DeviceSettings/res/xml/haptic_preferences.xml13
-rw-r--r--DeviceSettings/res/xml/radio_preferences.xml12
-rw-r--r--DeviceSettings/res/xml/screen_preferences.xml65
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java166
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java66
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/Hspa.java67
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/LedFade.java59
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java66
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java102
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/Startup.java38
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/TouchkeyTimeout.java59
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java143
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/VibratorIntensity.java59
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeMode.java59
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeNegative.java59
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeScenario.java59
-rw-r--r--common.mk50
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml73
-rw-r--r--overlay/frameworks/base/core/res/res/xml/power_profile.xml69
-rw-r--r--overlay/frameworks/base/core/res/res/xml/storage_list.xml52
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/config.xml26
39 files changed, 19 insertions, 2053 deletions
diff --git a/DeviceSettings/Android.mk b/DeviceSettings/Android.mk
deleted file mode 100644
index 12c8de5..0000000
--- a/DeviceSettings/Android.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
-
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_PACKAGE_NAME := GalaxyS3Settings
-LOCAL_CERTIFICATE := platform
-
-include $(BUILD_PACKAGE)
-
-include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/DeviceSettings/AndroidManifest.xml b/DeviceSettings/AndroidManifest.xml
deleted file mode 100644
index d373ded..0000000
--- a/DeviceSettings/AndroidManifest.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.cyanogenmod.settings.device"
- android:sharedUserId="android.uid.system" >
-
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
- <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
-
- <application android:label="@string/app_name">
- <activity
- android:name="com.cyanogenmod.settings.device.DeviceSettings"
- android:icon="@drawable/ic_launcher_cmdevicesettings"
- android:label="@string/app_name" >
- <intent-filter>
- <action android:name="com.cyanogenmod.action.LAUNCH_DEVICE_SETTINGS" />
- <action android:name="android.intent.action.MAIN" />
- </intent-filter>
- </activity>
-
- <receiver android:name=".Startup">
- <intent-filter android:priority="100">
- <action android:name="android.intent.action.BOOT_COMPLETED" />
- </intent-filter>
- </receiver>
-
- <activity android:name=".HapticFragmentActivity" />
- <activity android:name=".RadioFragmentActivity" />
- <activity android:name=".ScreenFragmentActivity" />
-
- </application>
-</manifest>
diff --git a/DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png b/DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png
deleted file mode 100755
index 66de9c3..0000000
--- a/DeviceSettings/res/drawable/ic_launcher_cmdevicesettings.png
+++ /dev/null
Binary files differ
diff --git a/DeviceSettings/res/layout/top.xml b/DeviceSettings/res/layout/top.xml
deleted file mode 100755
index 744b568..0000000
--- a/DeviceSettings/res/layout/top.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<android.support.v4.view.ViewPager xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/viewPager"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
-
diff --git a/DeviceSettings/res/values-de/arrays.xml b/DeviceSettings/res/values-de/arrays.xml
deleted file mode 100644
index 9edf346..0000000
--- a/DeviceSettings/res/values-de/arrays.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-
- <string-array name="vibrator_intensity_entries">
- <item>0%</item>
- <item>25%</item>
- <item>50% (Standard)</item>
- <item>75%</item>
- <item>100%</item>
- </string-array>
-
- <string-array name="hspa_entries">
- <item>Nur UMTS</item>
- <item>Nur HSDPA</item>
- <item>HSDPA + HSUPA</item>
- </string-array>
-
- <string-array name="mdnie_scenario_entries">
- <item>CyanogenMod (Standard)</item>
- <item>UI</item>
- <item>Video</item>
- <item>Video warm</item>
- <item>Video kalt</item>
- <item>Kamera</item>
- <item>Navigation</item>
- <item>Gallerie</item>
- <item>VT</item>
- </string-array>
-
- <string-array name="mdnie_mode_entries">
- <item>Dynamisch (Standard)</item>
- <item>Standard</item>
- <item>Natürlich</item>
- <item>Film</item>
- </string-array>
-
- <string-array name="mdnie_negative_entries">
- <item>Normal</item>
- <item>Invertiert</item>
- </string-array>
-
- <string-array name="led_fade_entries">
- <item>Blinken</item>
- <item>Verblassen</item>
- </string-array>
-
- <string-array name="touchkey_timeout_entries">
- <item>Niemals</item>
- <item>1 Sekunde</item>
- <item>2 Sekunden</item>
- <item>3 Sekunden (Standard)</item>
- <item>4 Sekunden</item>
- <item>5 Sekunden</item>
- <item>6 Sekunden</item>
- </string-array>
-
-</resources>
diff --git a/DeviceSettings/res/values-de/strings.xml b/DeviceSettings/res/values-de/strings.xml
deleted file mode 100644
index 50c66a6..0000000
--- a/DeviceSettings/res/values-de/strings.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">Galaxy S III Einstellungen</string>
-
- <string name="category_haptic_title">Haptik</string>
- <string name="vibrator_subcat_title">Vibrator</string>
- <string name="vibrator_intensity_title_head">Vibrator Intensität</string>
- <string name="vibrator_intensity_summary_head">Wähle Vibrator Intensität</string>
-
- <string name="category_radio_title">Mobilfunk</string>
- <string name="hspa_title_head">HSPA</string>
- <string name="hspa_summary_head">Aktiviere HSDPA/HSUPA</string>
-
- <string name="category_screen_title">Display</string>
- <string name="mdnie_subcat_title">Farben</string>
- <string name="mdnie_scenario_title_head">Szenario</string>
- <string name="mdnie_scenario_summary_head">Wähle das mDNIe Szenario</string>
- <string name="mdnie_mode_title_head">Modus</string>
- <string name="mdnie_mode_summary_head">Wähle den mDNIe Modus</string>
- <string name="mdnie_negative_title_head">Negativ Modus</string>
- <string name="mdnie_negative_summary_head">Invertiere Farben</string>
-
- <string name="led_subcat_title">Benachrichtigungslicht</string>
- <string name="led_fade_title_head">Modus</string>
- <string name="led_fade_summary_head">Wähle zwischen sanftem Verblassen und Blinken</string>
-
- <string name="touchkey_subcat_title">Touchkeys</string>
- <string name="touchkey_light_title_head">Beleuchtung</string>
- <string name="touchkey_light_summary_off">Aktiviere Beleuchtung</string>
- <string name="touchkey_light_summary_on">Deaktiviere Beleuchtung</string>
- <string name="touchkey_timeout_title_head">Zeitabschaltung der Beleuchtung</string>
- <string name="touchkey_timeout_summary_head">Setze Zeit für automatische Abschaltung</string>
-
-</resources>
diff --git a/DeviceSettings/res/values-es/arrays.xml b/DeviceSettings/res/values-es/arrays.xml
deleted file mode 100644
index fd55bc4..0000000
--- a/DeviceSettings/res/values-es/arrays.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
- <string-array name="vibrator_intensity_entries">
- <item>0%</item>
- <item>25%</item>
- <item>50% (por defecto)</item>
- <item>75%</item>
- <item>100%</item>
- </string-array>
- <string-array name="hspa_entries">
- <item>Solo UMTS</item>
- <item>Solo HSDPA</item>
- <item>HSDPA + HSUPA</item>
- </string-array>
- <string-array name="mdnie_scenario_entries">
- <item>CyanogenMod (por defecto)</item>
- <item>UI</item>
- <item>Vídeo</item>
- <item>Vídeo cálido</item>
- <item>Vídeo frío</item>
- <item>Camara</item>
- <item>Navegación</item>
- <item>Galería</item>
- <item>VT</item>
- </string-array>
- <string-array name="mdnie_mode_entries">
- <item>Estándar (por defecto)</item>
- <item>Dinámico</item>
- <item>Natural</item>
- <item>Película</item>
- </string-array>
- <string-array name="mdnie_negative_entries">
- <item>Normal</item>
- <item>Invertido</item>
- </string-array>
- <string-array name="led_fade_entries">
- <item>Parpadeo</item>
- <item>Fundido</item>
- </string-array>
- <string-array name="touchkey_timeout_entries">
- <item>Nunca</item>
- <item>1 segundo</item>
- <item>2 segundos</item>
- <item>3 segundos (por defecto)</item>
- <item>4 segundos</item>
- <item>5 segundos</item>
- <item>6 segundos</item>
- </string-array>
-</resources>
diff --git a/DeviceSettings/res/values-es/strings.xml b/DeviceSettings/res/values-es/strings.xml
deleted file mode 100644
index 50674d3..0000000
--- a/DeviceSettings/res/values-es/strings.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">"Ajustes Galaxy S III"</string>
- <string name="category_haptic_title">"Háptica"</string>
- <string name="vibrator_subcat_title">"Vibración"</string>
- <string name="vibrator_intensity_title_head">"Intensidad de vibración"</string>
- <string name="vibrator_intensity_summary_head">"Establecer la intensidad de vibració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>
- <string name="category_screen_title">"Pantalla"</string>
- <string name="mdnie_subcat_title">"Colores"</string>
- <string name="mdnie_scenario_title_head">"Escenario"</string>
- <string name="mdnie_scenario_summary_head">"Establecer escenario mDNIe"</string>
- <string name="mdnie_mode_title_head">"Modo"</string>
- <string name="mdnie_mode_summary_head">"Establecer modo mDNIe"</string>
- <string name="mdnie_negative_title_head">"Modo negativo"</string>
- <string name="mdnie_negative_summary_head">"Habilitar/deshabilitar colores invertidos"</string>
- <string name="led_subcat_title">"Notificación LED"</string>
- <string name="led_fade_title_head">"Fundido LED"</string>
- <string name="led_fade_summary_head">"Habilitar fundido suave en vez de parpadeo intenso"</string>
- <string name="touchkey_subcat_title">"Teclas táctiles"</string>
- <string name="touchkey_light_title_head">"Retroiluminación"</string>
- <string name="touchkey_light_summary_off">"Habilitar retroiluminación"</string>
- <string name="touchkey_light_summary_on">"Deshabilitar retroiluminación"</string>
- <string name="touchkey_timeout_title_head">"Tiempo de espera de retroiluminación"</string>
- <string name="touchkey_timeout_summary_head">"Tiempo tras pulsar una tecla antes de apagar la retroiluminación"</string>
-</resources>
diff --git a/DeviceSettings/res/values-hu/arrays.xml b/DeviceSettings/res/values-hu/arrays.xml
deleted file mode 100644
index 824296d..0000000
--- a/DeviceSettings/res/values-hu/arrays.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-
- <string-array name="vibrator_intensity_entries">
- <item>0%</item>
- <item>25%</item>
- <item>50% (Alapbeállítás)</item>
- <item>75%</item>
- <item>100%</item>
- </string-array>
-
- <string-array name="hspa_entries">
- <item>UMTS</item>
- <item>HSDPA</item>
- <item>HSDPA + HSUPA</item>
- </string-array>
-
- <string-array name="mdnie_scenario_entries">
- <item>CyanogenMod (Alapbeállítás)</item>
- <item>Felhasználói felület</item>
- <item>Videó</item>
- <item>Videó (Meleg árnyalat)</item>
- <item>Videó (Hideg árnyalat)</item>
- <item>Kamera</item>
- <item>Navigáció</item>
- <item>Galéria</item>
- <item>VT</item>
- </string-array>
-
- <string-array name="mdnie_mode_entries">
- <item>Dinamikus (Alapbeállítás)</item>
- <item>Hagyományos</item>
- <item>Természetes</item>
- <item>Film</item>
- </string-array>
-
- <string-array name="mdnie_negative_entries">
- <item>Normál</item>
- <item>Fordított</item>
- </string-array>
-
- <string-array name="led_fade_entries">
- <item>Villogás</item>
- <item>Elhalványulás</item>
- </string-array>
-
- <string-array name="touchkey_timeout_entries">
- <item>Soha</item>
- <item>1 másodperc</item>
- <item>2 másodperc</item>
- <item>3 másodperc (Alapbeállítás)</item>
- <item>4 másodperc</item>
- <item>5 másodperc</item>
- <item>6 másodperc</item>
- </string-array>
-
-</resources>
diff --git a/DeviceSettings/res/values-hu/strings.xml b/DeviceSettings/res/values-hu/strings.xml
deleted file mode 100644
index aecbf59..0000000
--- a/DeviceSettings/res/values-hu/strings.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">Galaxy S III Beállítások</string>
-
- <string name="category_haptic_title">Érintési visszajelzés</string>
- <string name="vibrator_subcat_title">Rezgés</string>
- <string name="vibrator_intensity_title_head">Rezgés erőssége</string>
- <string name="vibrator_intensity_summary_head">Rezgés erősségének beállítása</string>
-
- <string name="category_radio_title">GSM Rádió</string>
- <string name="hspa_title_head">HSPA</string>
- <string name="hspa_summary_head">HSDPA/HSUPA engedélyezése</string>
-
- <string name="category_screen_title">Kijelző</string>
- <string name="mdnie_subcat_title">Színek</string>
- <string name="mdnie_scenario_title_head">Megjelenítés</string>
- <string name="mdnie_scenario_summary_head">mDNIe megjelenítési beállítások</string>
- <string name="mdnie_mode_title_head">Üzemmód</string>
- <string name="mdnie_mode_summary_head">mDNIe üzemmódok</string>
- <string name="mdnie_negative_title_head">Negatív üzemmód</string>
- <string name="mdnie_negative_summary_head">Fordított színek ki/be</string>
-
- <string name="led_subcat_title">LED értesítés</string>
- <string name="led_fade_title_head">LED halványítás</string>
- <string name="led_fade_summary_head">LED elhalványítása villogtatás helyett</string>
-
- <string name="touchkey_subcat_title">Érintőgombok</string>
- <string name="touchkey_light_title_head">Háttérvilágítás</string>
- <string name="touchkey_light_summary_off">Háttérvilágítás engedélyezése</string>
- <string name="touchkey_light_summary_on">Háttérvilágítás tiltása</string>
- <string name="touchkey_timeout_title_head">Háttérvilágítás időkorlátja</string>
- <string name="touchkey_timeout_summary_head">Háttérvilágítás késleltetése</string>
-
-</resources>
diff --git a/DeviceSettings/res/values-pt-rBR/arrays.xml b/DeviceSettings/res/values-pt-rBR/arrays.xml
deleted file mode 100755
index 7ade7ea..0000000
--- a/DeviceSettings/res/values-pt-rBR/arrays.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string-array name="vibrator_intensity_entries">
- <item>0%</item>
- <item>25%</item>
- <item>50% (Padrão)</item>
- <item>75%</item>
- <item>100%</item>
- </string-array>
-
- <string-array name="hspa_entries">
- <item>Somente UMTS</item>
- <item>Somente HSDPA</item>
- <item>HSDPA + HSUPA</item>
- </string-array>
-
- <string-array name="mdnie_scenario_entries">
- <item>CyanogenMod (Padrão)</item>
- <item>IU</item>
- <item>Vídeo</item>
- <item>Vídeo Quente</item>
- <item>Vídeo Frio</item>
- <item>Câmera</item>
- <item>Navegação</item>
- <item>Galeria</item>
- <item>VT</item>
- </string-array>
-
- <string-array name="mdnie_mode_entries">
- <item>Padrão</item>
- <item>Dinâmico</item>
- <item>Natural</item>
- <item>Filme</item>
- </string-array>
-
- <string-array name="mdnie_negative_entries">
- <item>Normal</item>
- <item>Invertido</item>
- </string-array>
-
- <string-array name="led_fade_entries">
- <item>Piscando</item>
- <item>Desvanecimento</item>
- </string-array>
-
- <string-array name="touchkey_timeout_entries">
- <item>Nunca</item>
- <item>1 segundo</item>
- <item>2 segundos</item>
- <item>3 segundos (Padrão)</item>
- <item>4 segundos</item>
- <item>5 segundos</item>
- <item>6 segundos</item>
- </string-array>
-</resources>
diff --git a/DeviceSettings/res/values-pt-rBR/strings.xml b/DeviceSettings/res/values-pt-rBR/strings.xml
deleted file mode 100755
index 668c59c..0000000
--- a/DeviceSettings/res/values-pt-rBR/strings.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">Config. Galaxy S III</string>
- <string name="category_haptic_title">Resposta Tátil</string>
- <string name="vibrator_subcat_title">Vibração</string>
- <string name="vibrator_intensity_title_head">Intensidade da Vibração</string>
- <string name="vibrator_intensity_summary_head">Define a intensidade da vibração</string>
- <string name="category_radio_title">Rádio</string>
- <string name="hspa_summary_head">Ativar HSDPA/HSUPA</string>
- <string name="category_screen_title">Tela</string>
- <string name="mdnie_subcat_title">Cores</string>
- <string name="mdnie_scenario_title_head">Cenário</string>
- <string name="mdnie_scenario_summary_head">Define o Cenário mDNIe</string>
- <string name="mdnie_mode_title_head">Modo</string>
- <string name="mdnie_mode_summary_head">Define o Modo mDNIe</string>
- <string name="mdnie_negative_title_head">Modo Negativo</string>
- <string name="mdnie_negative_summary_head">Ativar/Desativar cores invertidas</string>
- <string name="led_subcat_title">Notificação com LED</string>
- <string name="led_fade_title_head">Desvanecimento LED</string>
- <string name="led_fade_summary_head">Ativar desvanecimento suave do LED em vez de piscar.</string>
- <string name="touchkey_subcat_title">Teclas sensíveis ao toque</string>
- <string name="touchkey_light_title_head">Luz de fundo</string>
- <string name="touchkey_light_summary_off">Ativar luz de fundo</string>
- <string name="touchkey_light_summary_on">Desativar luz de fundo</string>
- <string name="touchkey_timeout_title_head">Tempo limite da luz de fundo</string>
- <string name="touchkey_timeout_summary_head">Define o tempo limite para a luz de fundo</string>
- <string name="hspa_title_head">HSPA</string>
-</resources> \ No newline at end of file
diff --git a/DeviceSettings/res/values-ru/arrays.xml b/DeviceSettings/res/values-ru/arrays.xml
deleted file mode 100644
index ed61b6e..0000000
--- a/DeviceSettings/res/values-ru/arrays.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-
- <string-array name="vibrator_intensity_entries">
- <item>0%</item>
- <item>25%</item>
- <item>50% (По умолч.)</item>
- <item>75%</item>
- <item>100%</item>
- </string-array>
-
- <string-array name="hspa_entries">
- <item>Только UMTS</item>
- <item>Только HSDPA</item>
- <item>HSDPA + HSUPA</item>
- </string-array>
-
- <string-array name="mdnie_scenario_entries">
- <item>CyanogenMod (По умолч.)</item>
- <item>Видео</item>
- <item>Видео (тёпл.)</item>
- <item>Видео (хол.)</item>
- <item>Камера</item>
- <item>Навигация</item>
- <item>Галерея</item>
- <item>VT</item>
- </string-array>
-
- <string-array name="mdnie_mode_entries">
- <item>Динамический (По умолч.)</item>
- <item>Стандартный</item>
- <item>Натуральный</item>
- <item>Кино</item>
- </string-array>
-
- <string-array name="mdnie_negative_entries">
- <item>Нормально</item>
- <item>Инверсия</item>
- </string-array>
-
- <string-array name="led_fade_entries">
- <item>Мигание</item>
- <item>Затухание</item>
- </string-array>
-
- <string-array name="touchkey_timeout_entries">
- <item>Никогда</item>
- <item>1 секунда</item>
- <item>2 секунды</item>
- <item>3 секунды (По умолч.)</item>
- <item>4 секунды</item>
- <item>5 секунд</item>
- <item>6 секунд</item>
- </string-array>
-</resources>
diff --git a/DeviceSettings/res/values-ru/strings.xml b/DeviceSettings/res/values-ru/strings.xml
deleted file mode 100644
index d6d44b8..0000000
--- a/DeviceSettings/res/values-ru/strings.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">Настройки Galaxy S III</string>
-
- <string name="category_haptic_title">Отклик</string>
- <string name="vibrator_subcat_title">Вибрация</string>
- <string name="vibrator_intensity_title_head">Интенсивность вибрации</string>
- <string name="vibrator_intensity_summary_head">Установка интенсивности вибрации</string>
-
- <string name="category_radio_title">Модем</string>
- <string name="hspa_title_head">HSPA</string>
- <string name="hspa_summary_head">Включить HSDPA/HSUPA</string>
-
- <string name="category_screen_title">Экран</string>
- <string name="mdnie_subcat_title">Цвета</string>
- <string name="mdnie_scenario_title_head">Сценарий</string>
- <string name="mdnie_scenario_summary_head">Установка сценария mDNIe</string>
- <string name="mdnie_mode_title_head">Режим</string>
- <string name="mdnie_mode_summary_head">Установка режима mDNIe</string>
- <string name="mdnie_negative_title_head">Негатив</string>
- <string name="mdnie_negative_summary_head">Вкл./выкл. инверсии цветов</string>
-
- <string name="led_subcat_title">Индикатор событий</string>
- <string name="led_fade_title_head">Режим</string>
- <string name="led_fade_summary_head">Плавное затухание или резкое мигание</string>
-
- <string name="touchkey_subcat_title">Сенсорные клавиши</string>
- <string name="touchkey_light_title_head">Подсветка</string>
- <string name="touchkey_light_summary_off">Подсветка включена</string>
- <string name="touchkey_light_summary_on">Подсветка выключена</string>
- <string name="touchkey_timeout_title_head">Тайм-аут подсветки</string>
- <string name="touchkey_timeout_summary_head">Установка тайм-аута подсветки</string>
-
-</resources>
diff --git a/DeviceSettings/res/values-zh-rCN/arrays.xml b/DeviceSettings/res/values-zh-rCN/arrays.xml
deleted file mode 100644
index 3fe1780..0000000
--- a/DeviceSettings/res/values-zh-rCN/arrays.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-
- <string-array name="vibrator_intensity_entries">
- <item>0%</item>
- <item>25%</item>
- <item>50% (默认)</item>
- <item>75%</item>
- <item>100%</item>
- </string-array>
-
- <string-array name="hspa_entries">
- <item>仅使用 UMTS</item>
- <item>仅使用 HSDPA</item>
- <item>使用 HSDPA + HSUPA</item>
- </string-array>
-
- <string-array name="mdnie_scenario_entries">
- <item>CyanogenMod (默认)</item>
- <item>界面</item>
- <item>影片</item>
- <item>影片 (温)</item>
- <item>影片 (冷)</item>
- <item>相机</item>
- <item>导航</item>
- <item>图库</item>
- <item>VT</item>
- </string-array>
-
- <string-array name="mdnie_mode_entries">
- <item>动态 (默认)</item>
- <item>标准</item>
- <item>自然</item>
- <item>电影</item>
- </string-array>
-
- <string-array name="mdnie_negative_entries">
- <item>正常</item>
- <item>反色</item>
- </string-array>
-
- <string-array name="led_fade_entries">
- <item>闪烁</item>
- <item>淡出</item>
- </string-array>
-
- <string-array name="touchkey_timeout_entries">
- <item>从不</item>
- <item>1 秒</item>
- <item>2 秒</item>
- <item>3 秒 (默认)</item>
- <item>4 秒</item>
- <item>5 秒</item>
- <item>6 秒</item>
- </string-array>
-
-</resources>
diff --git a/DeviceSettings/res/values-zh-rCN/strings.xml b/DeviceSettings/res/values-zh-rCN/strings.xml
deleted file mode 100644
index 17451bd..0000000
--- a/DeviceSettings/res/values-zh-rCN/strings.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">Galaxy S III 设置</string>
-
- <string name="category_haptic_title">振动</string>
- <string name="vibrator_subcat_title">振动器</string>
- <string name="vibrator_intensity_title_head">振动器强度</string>
- <string name="vibrator_intensity_summary_head">设置振动器强度</string>
-
- <string name="category_radio_title">无线电</string>
- <string name="hspa_title_head">HSPA</string>
- <string name="hspa_summary_head">启用 HSDPA/HSUPA</string>
-
- <string name="category_screen_title">屏幕</string>
- <string name="mdnie_subcat_title">颜色</string>
- <string name="mdnie_scenario_title_head">场景</string>
- <string name="mdnie_scenario_summary_head">设置 mDNIe 场景</string>
- <string name="mdnie_mode_title_head">模式</string>
- <string name="mdnie_mode_summary_head">设置 mDNIe 模式</string>
- <string name="mdnie_negative_title_head">负极模式</string>
- <string name="mdnie_negative_summary_head">启用/禁用反色</string>
-
- <string name="led_subcat_title">LED 指示灯</string>
- <string name="led_fade_title_head">LED 淡出</string>
- <string name="led_fade_summary_head">启用后 LED 指示灯将会产生淡出效果而替代闪烁效果.</string>
-
- <string name="touchkey_subcat_title">触摸键</string>
- <string name="touchkey_light_title_head">背光灯</string>
- <string name="touchkey_light_summary_off">启用背光灯</string>
- <string name="touchkey_light_summary_on">禁用背光灯</string>
- <string name="touchkey_timeout_title_head">背光灯超时</string>
- <string name="touchkey_timeout_summary_head">设置背光灯超时时间</string>
-</resources>
diff --git a/DeviceSettings/res/values/arrays.xml b/DeviceSettings/res/values/arrays.xml
deleted file mode 100644
index d82ffbc..0000000
--- a/DeviceSettings/res/values/arrays.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-
- <string-array name="vibrator_intensity_entries">
- <item>0%</item>
- <item>25%</item>
- <item>50% (Default)</item>
- <item>75%</item>
- <item>100%</item>
- </string-array>
-
- <string-array name="vibrator_intensity_entries_values" translatable="false">
- <item>0</item>
- <item>25</item>
- <item>50</item>
- <item>75</item>
- <item>100</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>
-
- <string-array name="mdnie_scenario_entries">
- <item>CyanogenMod (Default)</item>
- <item>UI</item>
- <item>Video</item>
- <item>Video Warm</item>
- <item>Video Cold</item>
- <item>Camera</item>
- <item>Navigation</item>
- <item>Gallery</item>
- <item>VT</item>
- </string-array>
-
- <string-array name="mdnie_scenario_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>
- <item>7</item>
- <item>8</item>
- </string-array>
-
- <string-array name="mdnie_mode_entries">
- <item>Dynamic (Default)</item>
- <item>Standard</item>
- <item>Natural</item>
- <item>Movie</item>
- </string-array>
-
- <string-array name="mdnie_mode_entries_values" translatable="false">
- <item>0</item>
- <item>1</item>
- <item>2</item>
- <item>3</item>
- </string-array>
-
- <string-array name="mdnie_negative_entries">
- <item>Normal</item>
- <item>Inverted</item>
- </string-array>
-
- <string-array name="mdnie_negative_entries_values" translatable="false">
- <item>0</item>
- <item>1</item>
- </string-array>
-
- <string-array name="led_fade_entries">
- <item>Blinking</item>
- <item>Fading</item>
- </string-array>
-
- <string-array name="led_fade_entries_values" translatable="false">
- <item>0</item>
- <item>1</item>
- </string-array>
-
- <string-array name="touchkey_timeout_entries">
- <item>Never</item>
- <item>1 second</item>
- <item>2 seconds</item>
- <item>3 seconds (Default)</item>
- <item>4 seconds</item>
- <item>5 seconds</item>
- <item>6 seconds</item>
- </string-array>
-
- <string-array name="touchkey_timeout_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>
-
-</resources>
diff --git a/DeviceSettings/res/values/strings.xml b/DeviceSettings/res/values/strings.xml
deleted file mode 100644
index e842ae4..0000000
--- a/DeviceSettings/res/values/strings.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">Galaxy S III Settings</string>
-
- <string name="category_haptic_title">Haptic</string>
- <string name="vibrator_subcat_title">Vibrator</string>
- <string name="vibrator_intensity_title_head">Vibrator Intensity</string>
- <string name="vibrator_intensity_summary_head">Set vibrator intensity</string>
-
- <string name="category_radio_title">Radio</string>
- <string name="hspa_title_head">HSPA</string>
- <string name="hspa_summary_head">Enable HSDPA/HSUPA</string>
-
- <string name="category_screen_title">Screen</string>
- <string name="mdnie_subcat_title">Colors</string>
- <string name="mdnie_scenario_title_head">Scenario</string>
- <string name="mdnie_scenario_summary_head">Set the mDNIe Scenario</string>
- <string name="mdnie_mode_title_head">Mode</string>
- <string name="mdnie_mode_summary_head">Set the mDNIe Mode</string>
- <string name="mdnie_negative_title_head">Negative Mode</string>
- <string name="mdnie_negative_summary_head">Enable/Disable inverted colors</string>
-
- <string name="led_subcat_title">Notification LED</string>
- <string name="led_fade_title_head">LED Fading</string>
- <string name="led_fade_summary_head">Enable LED smooth fading instead of sharp blinking.</string>
-
- <string name="touchkey_subcat_title">Touchkeys</string>
- <string name="touchkey_light_title_head">Backlight</string>
- <string name="touchkey_light_summary_off">Enable backlight</string>
- <string name="touchkey_light_summary_on">Disable backlight</string>
- <string name="touchkey_timeout_title_head">Backlight timeout</string>
- <string name="touchkey_timeout_summary_head">Set timeout for the backlight</string>
-
-</resources>
diff --git a/DeviceSettings/res/xml/haptic_preferences.xml b/DeviceSettings/res/xml/haptic_preferences.xml
deleted file mode 100644
index 31c0e21..0000000
--- a/DeviceSettings/res/xml/haptic_preferences.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
- <PreferenceCategory
- android:title="@string/vibrator_subcat_title">
- <com.cyanogenmod.settings.device.VibratorIntensity
- android:key="vibrator_intensity"
- android:title="@string/vibrator_intensity_title_head"
- android:summary="@string/vibrator_intensity_summary_head"
- android:entries="@array/vibrator_intensity_entries"
- android:entryValues="@array/vibrator_intensity_entries_values"
- android:defaultValue="50" />
- </PreferenceCategory>
-</PreferenceScreen>
diff --git a/DeviceSettings/res/xml/radio_preferences.xml b/DeviceSettings/res/xml/radio_preferences.xml
deleted file mode 100644
index c173db7..0000000
--- a/DeviceSettings/res/xml/radio_preferences.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
- <!-- Hspa modes -->
- <com.cyanogenmod.settings.device.Hspa
- 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" />
-
-</PreferenceScreen>
diff --git a/DeviceSettings/res/xml/screen_preferences.xml b/DeviceSettings/res/xml/screen_preferences.xml
deleted file mode 100644
index aff39c0..0000000
--- a/DeviceSettings/res/xml/screen_preferences.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
-
- <PreferenceCategory
- android:title="@string/mdnie_subcat_title">
- <!-- mDNIe Scenario modes -->
- <com.cyanogenmod.settings.device.mDNIeScenario
- android:key="mdnie_scenario"
- android:title="@string/mdnie_scenario_title_head"
- android:summary="@string/mdnie_scenario_summary_head"
- android:entries="@array/mdnie_scenario_entries"
- android:entryValues="@array/mdnie_scenario_entries_values"
- android:defaultValue="0" />
-
- <!-- mDNIe Mode -->
- <com.cyanogenmod.settings.device.mDNIeMode
- android:key="mdnie_mode"
- android:title="@string/mdnie_mode_title_head"
- android:summary="@string/mdnie_mode_summary_head"
- android:entries="@array/mdnie_mode_entries"
- android:entryValues="@array/mdnie_mode_entries_values"
- android:defaultValue="0" />
-
- <!-- mDNIe Negative mode -->
- <com.cyanogenmod.settings.device.mDNIeNegative
- android:key="mdnie_negative"
- android:title="@string/mdnie_negative_title_head"
- android:summary="@string/mdnie_negative_summary_head"
- android:entries="@array/mdnie_negative_entries"
- android:entryValues="@array/mdnie_negative_entries_values"
- android:defaultValue="0" />
- </PreferenceCategory>
-
- <PreferenceCategory
- android:title="@string/led_subcat_title">
- <!-- LED fading mode -->
- <com.cyanogenmod.settings.device.LedFade
- android:key="led_fade"
- android:title="@string/led_fade_title_head"
- android:summary="@string/led_fade_summary_head"
- android:entries="@array/led_fade_entries"
- android:entryValues="@array/led_fade_entries_values"
- android:defaultValue="1" />
- </PreferenceCategory>
-
- <PreferenceCategory
- android:title="@string/touchkey_subcat_title">
- <!-- Touchkey backlight -->
- <CheckBoxPreference
- android:key="touchkey_light"
- android:title="@string/touchkey_light_title_head"
- android:summaryOff="@string/touchkey_light_summary_off"
- android:summaryOn="@string/touchkey_light_summary_on"
- android:defaultValue="true"
- />
- <com.cyanogenmod.settings.device.TouchkeyTimeout
- android:key="touchkey_timeout"
- android:title="@string/touchkey_timeout_title_head"
- android:summary="@string/touchkey_timeout_summary_head"
- android:entries="@array/touchkey_timeout_entries"
- android:entryValues="@array/touchkey_timeout_entries_values"
- android:defaultValue="3" />
- </PreferenceCategory>
-
-</PreferenceScreen>
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java b/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java
deleted file mode 100644
index 152e361..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/DeviceSettings.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.app.ActionBar;
-import android.app.ActionBar.Tab;
-import android.app.Activity;
-import android.app.Fragment;
-import android.app.FragmentTransaction;
-import android.content.Context;
-import android.os.Bundle;
-import android.support.v4.app.FragmentActivity;
-import android.support.v13.app.FragmentPagerAdapter;
-import android.support.v4.view.ViewPager;
-import android.view.MenuItem;
-
-import com.cyanogenmod.settings.device.R;
-
-import java.util.ArrayList;
-
-public class DeviceSettings extends FragmentActivity {
-
- public static final String SHARED_PREFERENCES_BASENAME = "com.cyanogenmod.settings.device";
- public static final String ACTION_UPDATE_PREFERENCES = "com.cyanogenmod.settings.device.UPDATE";
- public static final String KEY_HSPA = "hspa";
- public static final String KEY_VIBRATOR_INTENSITY = "vibrator_intensity";
- public static final String KEY_MDNIE_SCENARIO = "mdnie_scenario";
- public static final String KEY_MDNIE_MODE = "mdnie_mode";
- public static final String KEY_MDNIE_NEGATIVE = "mdnie_negative";
- public static final String KEY_LED_FADE = "led_fade";
- public static final String KEY_TOUCHKEY_LIGHT = "touchkey_light";
- public static final String KEY_TOUCHKEY_TIMEOUT = "touchkey_timeout";
-
- ViewPager mViewPager;
- TabsAdapter mTabsAdapter;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- mViewPager = new ViewPager(this);
- mViewPager.setId(R.id.viewPager);
- setContentView(mViewPager);
-
- final ActionBar bar = getActionBar();
- bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
- bar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE);
- bar.setTitle(R.string.app_name);
- bar.setDisplayHomeAsUpEnabled(true);
-
- mTabsAdapter = new TabsAdapter(this, mViewPager);
- mTabsAdapter.addTab(bar.newTab().setText(R.string.category_radio_title),
- RadioFragmentActivity.class, null);
- mTabsAdapter.addTab(bar.newTab().setText(R.string.category_screen_title),
- ScreenFragmentActivity.class, null);
- mTabsAdapter.addTab(bar.newTab().setText(R.string.category_haptic_title),
- HapticFragmentActivity.class, null);
-
-
- if (savedInstanceState != null) {
- bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0));
- }
- }
-
- @Override
- protected void onSaveInstanceState(Bundle outState) {
- super.onSaveInstanceState(outState);
- outState.putInt("tab", getActionBar().getSelectedNavigationIndex());
- }
-
- public static class TabsAdapter extends FragmentPagerAdapter
- implements ActionBar.TabListener, ViewPager.OnPageChangeListener {
- private final Context mContext;
- private final ActionBar mActionBar;
- private final ViewPager mViewPager;
- private final ArrayList<TabInfo> mTabs = new ArrayList<TabInfo>();
-
- static final class TabInfo {
- private final Class<?> clss;
- private final Bundle args;
-
- TabInfo(Class<?> _class, Bundle _args) {
- clss = _class;
- args = _args;
- }
- }
-
- public TabsAdapter(Activity activity, ViewPager pager) {
- super(activity.getFragmentManager());
- mContext = activity;
- mActionBar = activity.getActionBar();
- mViewPager = pager;
- mViewPager.setAdapter(this);
- mViewPager.setOnPageChangeListener(this);
- }
-
- public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) {
- TabInfo info = new TabInfo(clss, args);
- tab.setTag(info);
- tab.setTabListener(this);
- mTabs.add(info);
- mActionBar.addTab(tab);
- notifyDataSetChanged();
- }
-
- @Override
- public int getCount() {
- return mTabs.size();
- }
-
- @Override
- public Fragment getItem(int position) {
- TabInfo info = mTabs.get(position);
- return Fragment.instantiate(mContext, info.clss.getName(), info.args);
- }
-
- public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
- }
-
- public void onPageSelected(int position) {
- mActionBar.setSelectedNavigationItem(position);
- }
-
- public void onPageScrollStateChanged(int state) {
- }
-
- public void onTabSelected(Tab tab, FragmentTransaction ft) {
- Object tag = tab.getTag();
- for (int i=0; i<mTabs.size(); i++) {
- if (mTabs.get(i) == tag) {
- mViewPager.setCurrentItem(i);
- }
- }
- }
-
- public void onTabUnselected(Tab tab, FragmentTransaction ft) {
- }
-
- public void onTabReselected(Tab tab, FragmentTransaction ft) {
- }
- }
-
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- switch (item.getItemId()) {
- case android.R.id.home:
- DeviceSettings.this.onBackPressed();
- default:
- return super.onOptionsItemSelected(item);
- }
- }
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java
deleted file mode 100644
index 0f3313d..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.content.Context;
-import android.content.SharedPreferences;
-import android.os.Bundle;
-import android.preference.CheckBoxPreference;
-import android.preference.ListPreference;
-import android.preference.Preference;
-import android.preference.PreferenceActivity;
-import android.preference.PreferenceFragment;
-import android.preference.PreferenceManager;
-import android.preference.PreferenceScreen;
-import android.util.Log;
-
-import com.cyanogenmod.settings.device.R;
-
-public class HapticFragmentActivity extends PreferenceFragment {
-
- private static final String PREF_ENABLED = "1";
- private static final String TAG = "GalaxyS3Settings_Haptic";
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- addPreferencesFromResource(R.xml.haptic_preferences);
-
- PreferenceScreen prefSet = getPreferenceScreen();
-
- }
-
- @Override
- public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
-
- String boxValue;
- String key = preference.getKey();
-
- Log.w(TAG, "key: " + key);
-
- return true;
- }
-
- public static boolean isSupported(String FILE) {
- return Utils.fileExists(FILE);
- }
-
- public static void restore(Context context) {
- SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
- }
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/Hspa.java b/DeviceSettings/src/com/cyanogenmod/settings/device/Hspa.java
deleted file mode 100644
index f19eff7..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/Hspa.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.content.Context;
-import android.content.Intent;
-import android.content.SharedPreferences;
-import android.util.AttributeSet;
-import android.preference.ListPreference;
-import android.preference.Preference;
-import android.preference.Preference.OnPreferenceChangeListener;
-import android.preference.PreferenceManager;
-
-public class Hspa extends ListPreference implements OnPreferenceChangeListener {
-
- private static final String FILE = "/system/app/SamsungServiceMode.apk";
- private Context mCtx;
-
- public Hspa(Context context, AttributeSet attrs) {
- super(context, attrs);
- this.setOnPreferenceChangeListener(this);
- mCtx = context;
- }
-
- public static boolean isSupported() {
- return Utils.fileExists(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(DeviceSettings.KEY_HSPA, "23"));
- }
-
- 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);
- }
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/LedFade.java b/DeviceSettings/src/com/cyanogenmod/settings/device/LedFade.java
deleted file mode 100644
index 6d11947..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/LedFade.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import java.io.IOException;
-import android.content.Context;
-import android.util.AttributeSet;
-import android.content.SharedPreferences;
-import android.preference.Preference;
-import android.preference.ListPreference;
-import android.preference.Preference.OnPreferenceChangeListener;
-import android.preference.PreferenceManager;
-
-public class LedFade extends ListPreference implements OnPreferenceChangeListener {
-
- public LedFade(Context context, AttributeSet attrs) {
- super(context, attrs);
- this.setOnPreferenceChangeListener(this);
- }
-
- private static final String FILE = "/sys/class/sec/led/led_fade";
-
- public static boolean isSupported() {
- return Utils.fileExists(FILE);
- }
-
- /**
- * Restore led fading 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(DeviceSettings.KEY_LED_FADE, "1"));
- }
-
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- Utils.writeValue(FILE, (String) newValue);
- return true;
- }
-
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java
deleted file mode 100644
index 62b855c..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.content.Context;
-import android.content.SharedPreferences;
-import android.os.Bundle;
-import android.preference.CheckBoxPreference;
-import android.preference.ListPreference;
-import android.preference.Preference;
-import android.preference.PreferenceActivity;
-import android.preference.PreferenceFragment;
-import android.preference.PreferenceManager;
-import android.preference.PreferenceScreen;
-import android.util.Log;
-
-import com.cyanogenmod.settings.device.R;
-
-public class RadioFragmentActivity extends PreferenceFragment {
-
- private static final String PREF_ENABLED = "1";
- private static final String TAG = "GalaxyS2Parts_Radio";
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- addPreferencesFromResource(R.xml.radio_preferences);
-
- PreferenceScreen prefSet = getPreferenceScreen();
-
- }
-
- @Override
- public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
-
- String boxValue;
- String key = preference.getKey();
-
- Log.w(TAG, "key: " + key);
-
- return true;
- }
-
- public static boolean isSupported(String FILE) {
- return Utils.fileExists(FILE);
- }
-
- public static void restore(Context context) {
- SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
- }
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
deleted file mode 100644
index 36180ae..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.content.Context;
-import android.content.SharedPreferences;
-import android.os.Bundle;
-import android.preference.CheckBoxPreference;
-import android.preference.ListPreference;
-import android.preference.Preference;
-import android.preference.PreferenceActivity;
-import android.preference.PreferenceFragment;
-import android.preference.PreferenceManager;
-import android.preference.PreferenceScreen;
-import android.util.Log;
-
-import com.cyanogenmod.settings.device.R;
-
-public class ScreenFragmentActivity extends PreferenceFragment {
-
- private static final String PREF_ENABLED = "1";
- private static final String TAG = "GalaxyS3Settings_Screen";
- private mDNIeScenario mmDNIeScenario;
- private mDNIeMode mmDNIeMode;
- private mDNIeNegative mmDNIeNegative;
- private LedFade mLedFade;
-
- private static final String FILE_TOUCHKEY_BRIGHTNESS = "/sys/class/sec/sec_touchkey/brightness";
- private static final String FILE_TOUCHKEY_DISABLE = "/sys/class/sec/sec_touchkey/force_disable";
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- addPreferencesFromResource(R.xml.screen_preferences);
-
- PreferenceScreen prefSet = getPreferenceScreen();
- mmDNIeScenario = (mDNIeScenario) findPreference(DeviceSettings.KEY_MDNIE_SCENARIO);
- mmDNIeScenario.setEnabled(mDNIeScenario.isSupported());
-
- mmDNIeMode = (mDNIeMode) findPreference(DeviceSettings.KEY_MDNIE_MODE);
- mmDNIeMode.setEnabled(mDNIeMode.isSupported());
-
- mmDNIeNegative = (mDNIeNegative) findPreference(DeviceSettings.KEY_MDNIE_NEGATIVE);
- mmDNIeNegative.setEnabled(mDNIeNegative.isSupported());
-
- mLedFade = (LedFade) findPreference(DeviceSettings.KEY_LED_FADE);
- mLedFade.setEnabled(LedFade.isSupported());
-
- if (((CheckBoxPreference)prefSet.findPreference(DeviceSettings.KEY_TOUCHKEY_LIGHT)).isChecked()) {
- prefSet.findPreference(DeviceSettings.KEY_TOUCHKEY_TIMEOUT).setEnabled(true);
- } else {
- prefSet.findPreference(DeviceSettings.KEY_TOUCHKEY_TIMEOUT).setEnabled(false);
- }
- }
-
- @Override
- public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
-
- String key = preference.getKey();
- Log.w(TAG, "key: " + key);
-
- if (key.compareTo(DeviceSettings.KEY_TOUCHKEY_LIGHT) == 0) {
- if (((CheckBoxPreference)preference).isChecked()) {
- Utils.writeValue(FILE_TOUCHKEY_DISABLE, "0");
- Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, "1");
- preferenceScreen.findPreference(DeviceSettings.KEY_TOUCHKEY_TIMEOUT).setEnabled(true);
- } else {
- Utils.writeValue(FILE_TOUCHKEY_DISABLE, "1");
- Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, "2");
- preferenceScreen.findPreference(DeviceSettings.KEY_TOUCHKEY_TIMEOUT).setEnabled(false);
- }
- }
- return true;
- }
-
- public static boolean isSupported(String FILE) {
- return Utils.fileExists(FILE);
- }
-
- public static void restore(Context context) {
- SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
- boolean light = sharedPrefs.getBoolean(DeviceSettings.KEY_TOUCHKEY_LIGHT, true);
-
- Utils.writeValue(FILE_TOUCHKEY_DISABLE, light ? "0" : "1");
- Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, light ? "1" : "2");
- }
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/Startup.java b/DeviceSettings/src/com/cyanogenmod/settings/device/Startup.java
deleted file mode 100644
index dc9ec9c..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/Startup.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-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) {
- HapticFragmentActivity.restore(context);
- Hspa.restore(context);
- RadioFragmentActivity.restore(context);
- ScreenFragmentActivity.restore(context);
- mDNIeScenario.restore(context);
- mDNIeMode.restore(context);
- mDNIeNegative.restore(context);
- LedFade.restore(context);
- VibratorIntensity.restore(context);
- TouchkeyTimeout.restore(context);
- }
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/TouchkeyTimeout.java b/DeviceSettings/src/com/cyanogenmod/settings/device/TouchkeyTimeout.java
deleted file mode 100644
index 6ea9bfb..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/TouchkeyTimeout.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import java.io.IOException;
-import android.content.Context;
-import android.util.AttributeSet;
-import android.content.SharedPreferences;
-import android.preference.Preference;
-import android.preference.ListPreference;
-import android.preference.Preference.OnPreferenceChangeListener;
-import android.preference.PreferenceManager;
-
-public class TouchkeyTimeout extends ListPreference implements OnPreferenceChangeListener {
-
- public TouchkeyTimeout(Context context, AttributeSet attrs) {
- super(context, attrs);
- this.setOnPreferenceChangeListener(this);
- }
-
- private static final String FILE_TOUCHKEY_TIMEOUT = "/sys/class/sec/sec_touchkey/timeout";
-
- public static boolean isSupported() {
- return Utils.fileExists(FILE_TOUCHKEY_TIMEOUT);
- }
-
- /**
- * Restore touchscreen sensitivity 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_TOUCHKEY_TIMEOUT, sharedPrefs.getString(DeviceSettings.KEY_TOUCHKEY_TIMEOUT, "3"));
- }
-
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- Utils.writeValue(FILE_TOUCHKEY_TIMEOUT, (String) newValue);
- return true;
- }
-
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java b/DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java
deleted file mode 100644
index d4df92f..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java
+++ /dev/null
@@ -1,143 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.util.Log;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.SyncFailedException;
-import android.app.AlertDialog;
-import android.content.DialogInterface;
-import android.content.Context;
-
-public class Utils {
-
- private static final String TAG = "GalaxyS3Settings_Utils";
- private static final String TAG_READ = "GalaxyS3Settings_Utils_Read";
- private static final String TAG_WRITE = "GalaxyS3Settings_Utils_Write";
-
- /**
- * Write a string value to the specified file.
- *
- * @param filename The filename
- * @param value The value
- */
- public static void writeValue(String filename, String value) {
- FileOutputStream fos = null;
- try {
- fos = new FileOutputStream(new File(filename), false);
- fos.write(value.getBytes());
- fos.flush();
- // fos.getFD().sync();
- } catch (FileNotFoundException ex) {
- Log.w(TAG, "file " + filename + " not found: " + ex);
- } catch (SyncFailedException ex) {
- Log.w(TAG, "file " + filename + " sync failed: " + ex);
- } catch (IOException ex) {
- Log.w(TAG, "IOException trying to sync " + filename + ": " + ex);
- } catch (RuntimeException ex) {
- Log.w(TAG, "exception while syncing file: ", ex);
- } finally {
- if (fos != null) {
- try {
- Log.w(TAG_WRITE, "file " + filename + ": " + value);
- fos.close();
- } catch (IOException ex) {
- Log.w(TAG, "IOException while closing synced file: ", ex);
- } catch (RuntimeException ex) {
- Log.w(TAG, "exception while closing file: ", ex);
- }
- }
- }
-
- }
-
- /**
- * Write a string value to the specified file.
- *
- * @param filename The filename
- * @param value The value
- */
- public static void writeValue(String filename, Boolean value) {
- FileOutputStream fos = null;
- String sEnvia;
- try {
- fos = new FileOutputStream(new File(filename), false);
- if (value)
- sEnvia = "1";
- else
- sEnvia = "0";
- fos.write(sEnvia.getBytes());
- fos.flush();
- // fos.getFD().sync();
- } catch (FileNotFoundException ex) {
- Log.w(TAG, "file " + filename + " not found: " + ex);
- } catch (SyncFailedException ex) {
- Log.w(TAG, "file " + filename + " sync failed: " + ex);
- } catch (IOException ex) {
- Log.w(TAG, "IOException trying to sync " + filename + ": " + ex);
- } catch (RuntimeException ex) {
- Log.w(TAG, "exception while syncing file: ", ex);
- } finally {
- if (fos != null) {
- try {
- Log.w(TAG_WRITE, "file " + filename + ": " + value);
- fos.close();
- } catch (IOException ex) {
- Log.w(TAG, "IOException while closing synced file: ", ex);
- } catch (RuntimeException ex) {
- Log.w(TAG, "exception while closing file: ", ex);
- }
- }
- }
- }
-
- /**
- * 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();
- }
-
-
- public static void showDialog(Context ctx, String title, String message) {
- final AlertDialog alertDialog = new AlertDialog.Builder(ctx).create();
- alertDialog.setTitle(title);
- alertDialog.setMessage(message);
- alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int which) {
- alertDialog.dismiss();
- }
- });
- alertDialog.show();
- }
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/VibratorIntensity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/VibratorIntensity.java
deleted file mode 100644
index 7a809a5..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/VibratorIntensity.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import java.io.IOException;
-import android.content.Context;
-import android.util.AttributeSet;
-import android.content.SharedPreferences;
-import android.preference.Preference;
-import android.preference.ListPreference;
-import android.preference.Preference.OnPreferenceChangeListener;
-import android.preference.PreferenceManager;
-
-public class VibratorIntensity extends ListPreference implements OnPreferenceChangeListener {
-
- public VibratorIntensity(Context context, AttributeSet attrs) {
- super(context, attrs);
- this.setOnPreferenceChangeListener(this);
- }
-
- private static final String FILE = "/sys/vibrator/pwm_val";
-
- public static boolean isSupported() {
- return Utils.fileExists(FILE);
- }
-
- /**
- * Restore vibrator intensity 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(DeviceSettings.KEY_VIBRATOR_INTENSITY, "50"));
- }
-
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- Utils.writeValue(FILE, (String) newValue);
- return true;
- }
-
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeMode.java b/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeMode.java
deleted file mode 100644
index 7969637..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeMode.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.content.Context;
-
-import android.content.SharedPreferences;
-import android.util.AttributeSet;
-import android.preference.Preference;
-import android.preference.ListPreference;
-import android.preference.Preference.OnPreferenceChangeListener;
-import android.preference.PreferenceManager;
-
-public class mDNIeMode extends ListPreference implements OnPreferenceChangeListener {
-
- public mDNIeMode(Context context, AttributeSet attrs) {
- super(context, attrs);
- this.setOnPreferenceChangeListener(this);
- }
-
- private static final String FILE = "/sys/class/mdnie/mdnie/mode";
-
- 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(DeviceSettings.KEY_MDNIE_MODE, "0"));
- }
-
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- Utils.writeValue(FILE, (String) newValue);
- return true;
- }
-
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeNegative.java b/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeNegative.java
deleted file mode 100644
index c2ccc7b..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeNegative.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import java.io.IOException;
-import android.content.Context;
-import android.util.AttributeSet;
-import android.content.SharedPreferences;
-import android.preference.Preference;
-import android.preference.ListPreference;
-import android.preference.Preference.OnPreferenceChangeListener;
-import android.preference.PreferenceManager;
-
-public class mDNIeNegative extends ListPreference implements OnPreferenceChangeListener {
-
- public mDNIeNegative(Context context, AttributeSet attrs) {
- super(context, attrs);
- this.setOnPreferenceChangeListener(this);
- }
-
- private static final String FILE = "/sys/class/mdnie/mdnie/negative";
-
- 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(DeviceSettings.KEY_MDNIE_NEGATIVE, "0"));
- }
-
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- Utils.writeValue(FILE, (String) newValue);
- return true;
- }
-
-}
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeScenario.java b/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeScenario.java
deleted file mode 100644
index a9c935a..0000000
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/mDNIeScenario.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (C) 2012 The CyanogenMod 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.content.Context;
-
-import android.content.SharedPreferences;
-import android.util.AttributeSet;
-import android.preference.Preference;
-import android.preference.ListPreference;
-import android.preference.Preference.OnPreferenceChangeListener;
-import android.preference.PreferenceManager;
-
-public class mDNIeScenario extends ListPreference implements OnPreferenceChangeListener {
-
- public mDNIeScenario(Context context, AttributeSet attrs) {
- super(context,attrs);
- this.setOnPreferenceChangeListener(this);
- }
-
- private static final String FILE = "/sys/class/mdnie/mdnie/scenario";
-
- public static boolean isSupported() {
- return Utils.fileExists(FILE);
- }
-
- /**
- * Restore mdnie "camera" 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(DeviceSettings.KEY_MDNIE_SCENARIO, "0"));
- }
-
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- Utils.writeValue(FILE, (String) newValue);
- return true;
- }
-
-}
diff --git a/common.mk b/common.mk
index 290712e..fff7d57 100644
--- a/common.mk
+++ b/common.mk
@@ -14,7 +14,9 @@
# limitations under the License.
#
-DEVICE_PACKAGE_OVERLAYS := device/samsung/smdk4412-common/overlay
+COMMON_PATH := device/samsung/smdk4412-common
+
+DEVICE_PACKAGE_OVERLAYS := $(COMMON_PATH)/overlay
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
@@ -25,18 +27,18 @@ $(call inherit-product, device/common/gps/gps_us_supl.mk)
# Init files
PRODUCT_COPY_FILES := \
- device/samsung/smdk4412-common/init.bt.rc:root/init.bt.rc \
- device/samsung/smdk4412-common/init.smdk4x12.usb.rc:root/init.smdk4x12.usb.rc \
- device/samsung/smdk4412-common/lpm.rc:root/lpm.rc \
- device/samsung/smdk4412-common/init.trace.rc:root/init.trace.rc
+ $(COMMON_PATH)/init.bt.rc:root/init.bt.rc \
+ $(COMMON_PATH)/init.smdk4x12.usb.rc:root/init.smdk4x12.usb.rc \
+ $(COMMON_PATH)/lpm.rc:root/lpm.rc \
+ $(COMMON_PATH)/init.trace.rc:root/init.trace.rc
# Audio
PRODUCT_COPY_FILES += \
- device/samsung/smdk4412-common/configs/audio_policy.conf:system/etc/audio_policy.conf
+ $(COMMON_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf
# Vold and Storage
PRODUCT_COPY_FILES += \
- device/samsung/smdk4412-common/configs/vold.fstab:system/etc/vold.fstab
+ $(COMMON_PATH)/configs/vold.fstab:system/etc/vold.fstab
# Bluetooth configuration files
PRODUCT_COPY_FILES += \
@@ -44,7 +46,7 @@ PRODUCT_COPY_FILES += \
# Wifi
PRODUCT_COPY_FILES += \
- device/samsung/smdk4412-common/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
+ $(COMMON_PATH)/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
@@ -52,7 +54,7 @@ PRODUCT_PROPERTY_OVERRIDES += \
# Gps
PRODUCT_COPY_FILES += \
- device/samsung/smdk4412-common/configs/gps.conf:system/etc/gps.conf
+ $(COMMON_PATH)/configs/gps.conf:system/etc/gps.conf
# Packages
PRODUCT_PACKAGES := \
@@ -62,19 +64,12 @@ PRODUCT_PACKAGES := \
camera.exynos4 \
Camera \
com.android.future.usb.accessory \
- GalaxyS3Settings \
- libsecril-client \
- libsecril-client-sap \
libsync \
+ lights.exynos4 \
macloader \
- SamsungServiceMode \
- tinymix \
- Torch
-
-# HAL
-PRODUCT_PACKAGES += \
nfc.exynos4 \
- lights.exynos4
+ tinymix \
+ Torch
# NFC
PRODUCT_PACKAGES += \
@@ -90,9 +85,9 @@ PRODUCT_COPY_FILES += \
# NFCEE access control
ifeq ($(TARGET_BUILD_VARIANT),user)
- NFCEE_ACCESS_PATH := device/samsung/smdk4412-common/nfcee_access.xml
+ NFCEE_ACCESS_PATH := $(COMMON_PATH)/nfcee_access.xml
else
- NFCEE_ACCESS_PATH := device/samsung/smdk4412-common/nfcee_access_debug.xml
+ NFCEE_ACCESS_PATH := $(COMMON_PATH)/nfcee_access_debug.xml
endif
PRODUCT_COPY_FILES += \
@@ -119,15 +114,8 @@ PRODUCT_PACKAGES += \
# libOMX.SEC.VP8.Decoder
PRODUCT_COPY_FILES += \
- device/samsung/smdk4412-common/configs/media_profiles.xml:system/etc/media_profiles.xml \
- device/samsung/smdk4412-common/configs/media_codecs.xml:system/etc/media_codecs.xml
-
-# RIL
-PRODUCT_PROPERTY_OVERRIDES += \
- ro.telephony.ril_class=Smdk4210RIL \
- mobiledata.interfaces=pdp0,wlan0,gprs,ppp0 \
- ro.ril.hsxpa=1 \
- ro.ril.gprsclass=10
+ $(COMMON_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
+ $(COMMON_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml
# Filesystem management tools
PRODUCT_PACKAGES += \
@@ -161,7 +149,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
- frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \
@@ -195,4 +182,5 @@ TARGET_OMX_PATH := hardware/samsung/exynos/multimedia/openmax
$(call inherit-product, hardware/samsung/exynos4x12.mk)
$(call inherit-product, vendor/cm/config/nfc_enhanced.mk)
+# Include non-opensource parts if available
$(call inherit-product-if-exists, vendor/samsung/smdk4412-common/common-vendor.mk)
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 95f212c..64f1653 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -49,10 +49,6 @@
config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
<bool name="config_automatic_brightness_available">true</bool>
- <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
- autodetected from the Configuration. -->
- <bool name="config_showNavigationBar">false</bool>
-
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N + 1 zones as follows:
@@ -175,41 +171,6 @@
<!-- Minimum screen brightness allowed by the power manager. -->
<integer name="config_screenBrightnessDim">10</integer>
- <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION.
- Please don't copy them, copy anything else. -->
-
- <!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
- [associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
- <!-- the 5th element "resore-time" indicates the number of milliseconds to delay
- before automatically restore the default connection. Set -1 if the connection
- does not require auto-restore. -->
- <!-- the 6th element indicates boot-time dependency-met value. -->
- <string-array translatable="false" name="networkAttributes">
- <item>"wifi,1,1,1,-1,true"</item>
- <item>"mobile,0,0,0,-1,true"</item>
- <item>"mobile_mms,2,0,2,60000,true"</item>
- <item>"mobile_supl,3,0,2,60000,true"</item>
- <item>"mobile_dun,4,0,3,60000,true"</item>
- <item>"mobile_hipri,5,0,3,60000,true"</item>
- <item>"mobile_bluetooth,7,7,1,-1,true"</item>
- <item>"wifi_p2p,13,1,0,-1,true"</item>
- </string-array>
-
- <!-- An Array of "[ConnectivityManager connectionType],
- [# simultaneous connection types]" -->
- <string-array translatable="false" name="radioAttributes">
- <item>"1,1"</item>
- <item>"0,1"</item>
- <item>"7,1"</item>
- </string-array>
-
- <!-- List of regexpressions describing the interface (if any) that represent tetherable
- USB interfaces. If the device doesn't want to support tething over USB this should
- be empty. An example would be "usb.*" -->
- <string-array translatable="false" name="config_tether_usb_regexs">
- <item>"rndis0"</item>
- </string-array>
-
<!-- List of regexpressions describing the interface (if any) that represent tetherable
Wifi interfaces. If the device doesn't want to support tethering over Wifi this
should be empty. An example would be "softap.*" -->
@@ -224,16 +185,6 @@
<item>"bnep\\d"</item>
</string-array>
- <!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering -->
- <!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or
- <!== [0,1,5,7] for TYPE_MOBILE, TYPE_WIFI, TYPE_MOBILE_HIPRI and TYPE_BLUETOOTH -->
- <integer-array translatable="false" name="config_tether_upstream_types">
- <item>0</item>
- <item>1</item>
- <item>5</item>
- <item>7</item>
- </integer-array>
-
<!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
<bool translatable="false" name="config_wifi_dual_band_support">true</bool>
@@ -301,28 +252,4 @@
<item>10</item>
</integer-array>
- <!-- The default iface on which to monitor data use -->
- <string name="config_datause_iface">pdp0</string>
-
- <!-- Allow the menu hard key to be disabled in LockScreen on some devices -->
- <bool name="config_disableMenuKeyInLockScreen">true</bool>
-
- <!-- Disable the home key unlock setting -->
- <bool name="config_disableHomeUnlockSetting">false</bool>
-
- <!-- Workaround for devices with broken keyboards -->
- <bool name="config_forceDisableHardwareKeyboard">true</bool>
-
- <!-- Hardware 'face' keys present on the device, stored as a bit field.
- This integer should equal the sum of the corresponding value for each
- of the following keys present:
- 1 - Home
- 2 - Back
- 4 - Menu
- 8 - Assistant (search)
- 16 - App switch
- For example, a device with Home, Back and Menu keys would set this
- config to 7. -->
- <integer name="config_deviceHardwareKeys">7</integer>
-
</resources>
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
deleted file mode 100644
index e6eb4e4..0000000
--- a/overlay/frameworks/base/core/res/res/xml/power_profile.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-**
-** Copyright 2009, 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.
-*/
--->
-
-<device name="Android">
- <!-- All values are in mAh except as noted -->
- <item name="none">0</item>
- <item name="screen.on">49</item>
- <item name="bluetooth.active">142</item>
- <item name="bluetooth.on">0.3</item>
- <item name="bluetooth.at">35690</item>
- <item name="screen.full">260</item>
- <item name="wifi.on">4</item>
- <item name="wifi.active">120</item>
- <item name="wifi.scan">220</item>
- <item name="dsp.audio">88</item>
- <item name="dsp.video">88</item>
- <item name="radio.active">185</item>
- <!-- The current consumed by the radio when it is scanning for a signal -->
- <item name="radio.scanning">88</item>
- <item name="gps.on">50</item>
- <!-- Current consumed by the radio at different signal strengths, when paging -->
- <array name="radio.on"> <!-- Strength 0 to BINS-1 -->
- <value>3.4</value>
- <value>3.4</value>
- </array>
- <!-- Different CPU speeds as reported in
- /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state -->
- <array name="cpu.speeds">
- <value>200000</value>
- <value>500000</value>
- <value>800000</value>
- <value>1000000</value>
- <value>1200000</value>
- <value>1400000</value>
- <value>1600000</value>
- </array>
- <!-- Power consumption when CPU is idle -->
- <item name="cpu.idle">1.4</item>
- <!-- Power consumption due to wake lock held -->
- <item name="cpu.awake">44</item>
- <!-- Power consumption at different speeds -->
- <array name="cpu.active">
- <value>55.4</value>
- <value>82.1</value>
- <value>113.7</value>
- <value>140.0</value>
- <value>170.0</value>
- <value>200.0</value>
- <value>230.0</value>
- </array>
- <!-- This is the battery capacity in mAh -->
- <item name="battery.capacity">1650</item>
-</device>
diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
deleted file mode 100644
index d9247c5..0000000
--- a/overlay/frameworks/base/core/res/res/xml/storage_list.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-**
-** Copyright 2011, 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.
-*/
--->
-
-<!-- The <device> element should contain one or more <storage> elements.
- Exactly one of these should have the attribute primary="true".
- This storage will be the primary external storage and should have mountPoint="/mnt/sdcard".
- Each storage should have both a mountPoint and storageDescription attribute.
- The following attributes are optional:
-
- primary: (boolean) this storage is the primary external storage
- removable: (boolean) this is removable storage (for example, a real SD card)
- emulated: (boolean) the storage is emulated via the FUSE sdcard daemon
- mtpReserve: (integer) number of megabytes of storage MTP should reserve for free storage
- (used for emulated storage that is shared with system's data partition)
-
- A storage should not have both emulated and removable set to true
--->
-
-<StorageList xmlns:android="http://schemas.android.com/apk/res/android">
- <storage android:mountPoint="/storage/sdcard0"
- android:storageDescription="@string/storage_internal"
- android:primary="true"
- android:emulated="true"
- android:mtpReserve="100" />
-
- <storage android:mountPoint="/storage/sdcard1"
- android:storageDescription="@string/storage_sd_card"
- android:primary="false"
- android:removable="true"
- android:allowMassStorage="true" />
-
- <storage android:mountPoint="/storage/usbdisk0"
- android:storageDescription="@string/storage_usb"
- android:primary="false"
- android:removable="true" />
-</StorageList>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
deleted file mode 100644
index 88851f7..0000000
--- a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2011, The CyanogenMod 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.
-*/
--->
-
-<!-- These resources are around just to allow their values to be customized
- for different hardware and product builds. -->
-<resources>
- <!-- Control whether status bar should distinguish HSPA data icon form UMTS data icon on devices -->
- <bool name="config_hspa_data_distinguishable">true</bool>
-</resources>
-