diff options
author | XpLoDWilD <xplodgui@gmail.com> | 2012-07-25 18:25:15 +0200 |
---|---|---|
committer | XpLoDWilD <xplodgui@gmail.com> | 2012-07-25 18:25:15 +0200 |
commit | ad8a0cb5cb25b0454e490f6f703478bd48d159eb (patch) | |
tree | a624e4aeb989105cc67fc808619746960cbf9808 | |
parent | 0043f69e52635dec1bdb2bc9991f7db91df1ea85 (diff) | |
download | device_samsung_n7000-ad8a0cb5cb25b0454e490f6f703478bd48d159eb.zip device_samsung_n7000-ad8a0cb5cb25b0454e490f6f703478bd48d159eb.tar.gz device_samsung_n7000-ad8a0cb5cb25b0454e490f6f703478bd48d159eb.tar.bz2 |
Jellybean it
135 files changed, 1392 insertions, 7439 deletions
diff --git a/Android.mk b/Android.mk index 5a189f7..ffc5974 100755..100644 --- a/Android.mk +++ b/Android.mk @@ -1,4 +1,5 @@ -# Copyright (C) 2010 The Android Open Source Project +# +# 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. @@ -11,6 +12,13 @@ # 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. +# + +# WARNING: Everything listed here will be built on ALL platforms, +# including x86, the emulator, and the SDK. Modules must be uniquely +# named (liblights.tuna), and must build everywhere, or limit themselves +# to only building on ARM if they include assembly. Individual makefiles +# are responsible for having their own logic, for fine-grained control. LOCAL_PATH := $(call my-dir) diff --git a/AndroidProducts.mk b/AndroidProducts.mk index edf1d73..fbc118f 100755..100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2008 The Android Open-Source Project +# 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. @@ -15,4 +15,4 @@ # PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/full_n7000.mk + $(LOCAL_DIR)/full_n700Â0.mk diff --git a/BoardConfig.mk b/BoardConfig.mk index 047cd99..1699ab2 100755..100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2011 The Android Open-Source Project +# 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. @@ -16,144 +16,19 @@ # This variable is set first, so it can be overridden # by BoardConfigVendor.mk -USE_CAMERA_STUB := false -BOARD_USES_GENERIC_AUDIO := false -BOARD_USES_LIBSECRIL_STUB := true -TARGET_BOOTANIMATION_PRELOAD := true +-include device/samsung/galaxys2-common/BoardCommonConfig.mk -# CPU -TARGET_CPU_ABI := armeabi-v7a -TARGET_CPU_ABI2 := armeabi -TARGET_CPU_SMP := true -TARGET_ARCH_VARIANT := armv7-a-neon -TARGET_ARCH_VARIANT_CPU := cortex-a9 -ARCH_ARM_HAVE_NEON := true -ARCH_ARM_HAVE_TLS_REGISTER := true -TARGET_BOARD_PLATFORM := exynos4 -TARGET_SOC := exynos4210 -TARGET_BOOTLOADER_BOARD_NAME := smdk4210 TARGET_BOARD_INFO_FILE := device/samsung/n7000/board-info.txt -EXYNOS4210_ENHANCEMENTS := true -ifdef EXYNOS4210_ENHANCEMENTS -COMMON_GLOBAL_CFLAGS += -DEXYNOS4210_ENHANCEMENTS -COMMON_GLOBAL_CFLAGS += -DSURFACEFLINGER_FORCE_SCREEN_RELEASE -endif - -TARGET_NO_BOOTLOADER := true -TARGET_NO_RADIOIMAGE := true - -TARGET_PROVIDES_INIT := true -TARGET_PROVIDES_INIT_TARGET_RC := true -TARGET_RECOVERY_INITRC := device/samsung/n7000/recovery.rc - -BOARD_NAND_PAGE_SIZE := 4096 -BOARD_NAND_SPARE_SIZE := 128 -BOARD_KERNEL_PAGESIZE := 4096 -BOARD_KERNEL_BASE := 0x40000000 -BOARD_KERNEL_CMDLINE := console=ttySAC2,115200 consoleblank=0 - # Inline kernel building TARGET_KERNEL_SOURCE := kernel/samsung/smdk4210 TARGET_KERNEL_CONFIG := cyanogenmod_n7000_defconfig -# Filesystem -TARGET_USERIMAGES_USE_EXT4 := true -BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608 -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 893386752 -BOARD_USERDATAIMAGE_PARTITION_SIZE := 2147483648 -BOARD_FLASH_BLOCK_SIZE := 4096 - -# Releasetools -TARGET_RELEASETOOL_OTA_FROM_TARGET_SCRIPT := ./device/samsung/n7000/releasetools/n7000_ota_from_target_files -TARGET_RELEASETOOL_IMG_FROM_TARGET_SCRIPT := ./device/samsung/n7000/releasetools/n7000_img_from_target_files - -# Graphics (Mali 400) -BOARD_EGL_CFG := device/samsung/n7000/configs/egl.cfg -USE_OPENGL_RENDERER := true -BOARD_USES_HWCOMPOSER := true -BOARD_USE_SECTVOUT := true -BOARD_USES_FIMGAPI := true - -# OMX -BOARD_HAVE_CODEC_SUPPORT := SAMSUNG_CODEC_SUPPORT -COMMON_GLOBAL_CFLAGS += -DSAMSUNG_CODEC_SUPPORT -BOARD_NONBLOCK_MODE_PROCESS := true -BOARD_USE_STOREMETADATA := true -BOARD_USE_METADATABUFFERTYPE := true -BOARD_USES_MFC_FPS := true - -# Audio -BOARD_USE_YAMAHAPLAYER := true -BOARD_USE_SAMSUNG_SEPARATEDSTREAM := true -BOARD_HAS_SAMSUNG_VOLUME_BUG := true - -# RIL -BOARD_MOBILEDATA_INTERFACE_NAME := "pdp0" - -# FM Radio -#BOARD_HAVE_FM_RADIO := true -#BOARD_GLOBAL_CFLAGS += -DHAVE_FM_RADIO -#BOARD_FM_DEVICE := si4709 - -# Camera -COMMON_GLOBAL_CFLAGS += -DSAMSUNG_CAMERA_HARDWARE - -# WiFi (BCM4330) -BOARD_WLAN_DEVICE := bcmdhd -BOARD_WLAN_DEVICE_REV := bcm4330_b1 -WPA_SUPPLICANT_VERSION := VER_0_8_X -BOARD_WPA_SUPPLICANT_DRIVER := NL80211 -BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd -BOARD_HOSTAPD_DRIVER := NL80211 -BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd -WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko" -WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" -WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcm4330_sta.bin" -WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcm4330_apsta.bin" -WIFI_DRIVER_FW_PATH_P2P := "/system/etc/wifi/bcm4330_p2p.bin" -WIFI_DRIVER_MODULE_NAME := "dhd" -WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcm4330_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt" -WIFI_BAND := 802_11_ABG - -# Bluetooth -BOARD_HAVE_BLUETOOTH := true -BOARD_HAVE_BLUETOOTH_BCM := true - -# Vold -BOARD_VOLD_MAX_PARTITIONS := 12 -BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true -BOARD_VOLD_DISC_HAS_MULTIPLE_MAJORS := true -TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/s3c-usbgadget/gadget/lun%d/file" - -# Recovery -BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/samsung/n7000/recovery/recovery_keys.c -BOARD_CUSTOM_GRAPHICS := ../../../device/samsung/n7000/recovery/graphics.c -BOARD_UMS_LUNFILE := "/sys/class/android_usb/f_mass_storage/lun0/file" -BOARD_USES_MMCUTILS := true -BOARD_HAS_NO_MISC_PARTITION := true -BOARD_HAS_NO_SELECT_BUTTON := true -BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\" - -TARGET_SPECIFIC_HEADER_PATH := device/samsung/n7000/overlay/include - -# Charging mode -BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging -BOARD_BATTERY_DEVICE_NAME := "battery" -BOARD_CHARGER_RES := device/samsung/galaxys2/res/charger - -# assert, galaxynote needs to be removed later +TARGET_SPECIFIC_HEADER_PATH += device/samsung/n7000/overlay/include +EXYNOS4210_ENHANCEMENTS := true +# assert TARGET_OTA_ASSERT_DEVICE := galaxynote,n7000,GT-N7000 -# Nearly all shipped N7000 devices have defective eMMC chips (VYL00M fwrev 0x19) -# Prevent usage of ERASE commands in recovery on these boards. -# This is redundant for our recovery since the kernel has MMC_CAP_ERASE -# disabled for mshci.c, however it makes nightly ZIPs safer to flash -# from kernels that still have MMC_CAP_ERASE enabled. -BOARD_SUPPRESS_EMMC_WIPE := true - # Use the non-open-source parts, if they're present -include vendor/samsung/n7000/BoardConfigVendor.mk - -BOARD_CUSTOM_BOOTIMG_MK := device/samsung/n7000/shbootimg.mk diff --git a/CleanSpec.mk b/CleanSpec.mk index 71551ee..18fb296 100755..100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2007 The Android Open Source Project +# Copyright (C) 2012 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. @@ -43,7 +43,6 @@ #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) #$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) #$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) -#$(call add-clean-step, find $(PRODUCT_OUT) -name "*.apk" | xargs rm) # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST diff --git a/DeviceSettings/Android.mk b/DeviceSettings/Android.mk index faaddf0..7225f50 100644 --- a/DeviceSettings/Android.mk +++ b/DeviceSettings/Android.mk @@ -7,7 +7,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 LOCAL_SRC_FILES := $(call all-java-files-under, src) -LOCAL_PACKAGE_NAME := GalaxyNoteSettings +LOCAL_PACKAGE_NAME := GalaxyS2Settings LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) diff --git a/DeviceSettings/res/values-de/strings.xml b/DeviceSettings/res/values-de/strings.xml index 4d0589e..1528f8e 100644 --- a/DeviceSettings/res/values-de/strings.xml +++ b/DeviceSettings/res/values-de/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Galaxy Note Einstellungen</string> + <string name="app_name">Galaxy S II Einstellungen</string> <string name="screen_colors_title">Farben</string> <string name="category_mdnie_title">Bildschirm</string> diff --git a/DeviceSettings/res/values-es/strings.xml b/DeviceSettings/res/values-es/strings.xml index feb29e9..44d2a69 100644 --- a/DeviceSettings/res/values-es/strings.xml +++ b/DeviceSettings/res/values-es/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Ajustes de Galaxy Note</string> + <string name="app_name">Ajustes de Galaxy S II</string> <string name="category_radio_title">Radio</string> <string name="hspa_title_head">HSPA</string> diff --git a/DeviceSettings/res/values-fi/strings.xml b/DeviceSettings/res/values-fi/strings.xml index 081f0ef..88e234a 100644 --- a/DeviceSettings/res/values-fi/strings.xml +++ b/DeviceSettings/res/values-fi/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Galaxy Note-asetukset</string> + <string name="app_name">Galaxy S II-asetukset</string> <string name="screen_colors_title">Värit</string> <string name="category_mdnie_title">Näyttö</string> diff --git a/DeviceSettings/res/values-fr/strings.xml b/DeviceSettings/res/values-fr/strings.xml index ab81716..25dd5ad 100644 --- a/DeviceSettings/res/values-fr/strings.xml +++ b/DeviceSettings/res/values-fr/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Paramètres Galaxy Note</string> + <string name="app_name">Paramètres Galaxy S II</string> <string name="category_mdnie_title">Ecran</string> <string name="screen_colors_title">Couleurs</string> diff --git a/DeviceSettings/res/values-hu/strings.xml b/DeviceSettings/res/values-hu/strings.xml index 6a24926..d6a5f8c 100644 --- a/DeviceSettings/res/values-hu/strings.xml +++ b/DeviceSettings/res/values-hu/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Galaxy Note BeállÃtások</string> + <string name="app_name">Galaxy S II BeállÃtások</string> <string name="screen_colors_title">SzÃnek</string> <string name="category_mdnie_title">KijelzÅ‘</string> diff --git a/DeviceSettings/res/values-nl/strings.xml b/DeviceSettings/res/values-nl/strings.xml index 587b923..bd7e50b 100644 --- a/DeviceSettings/res/values-nl/strings.xml +++ b/DeviceSettings/res/values-nl/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Galaxy Note-instellingen</string> + <string name="app_name">Galaxy S II-instellingen</string> <string name="screen_colors_title">Kleuren</string> <string name="category_mdnie_title">Scherm</string> diff --git a/DeviceSettings/res/values-pt-rBR/arrays.xml b/DeviceSettings/res/values-pt-rBR/arrays.xml index f51ffde..e98a6c6 100755 --- a/DeviceSettings/res/values-pt-rBR/arrays.xml +++ b/DeviceSettings/res/values-pt-rBR/arrays.xml @@ -1,67 +1,51 @@ -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - - <string-array name="mdnie_scenario_entries"> - <item>Câmera (Padrão)</item> - <item>VÃdeo</item> - <item>VÃdeo Quente</item> - <item>VÃdeo Frio</item> - <item>IU</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="mdnie_outdoor_entries"> - <item>Desligado (Padrão)</item> - <item>Ligado</item> - </string-array> - - <string-array name="panel_gamma_entries"> - <item>2.2 (Padrão)</item> - <item>1.9</item> - </string-array> - - <string-array name="touchscreen_sensitivity_entries"> - <item>10</item> - <item>20</item> - <item>30</item> - <item>50 (Padrão)</item> - <item>70</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="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="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>
\ No newline at end of file +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <string-array name="mdnie_scenario_entries">
+ <item>Câmera (Padrão)</item>
+ <item>VÃdeo</item>
+ <item>VÃdeo Quente</item>
+ <item>VÃdeo Frio</item>
+ <item>IU</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="mdnie_outdoor_entries">
+ <item>Desligado (Padrão)</item>
+ <item>Ligado</item>
+ </string-array>
+
+ <string-array name="panel_gamma_entries">
+ <item>2.2 (Padrão)</item>
+ <item>1.9</item>
+ </string-array>
+
+ <string-array name="touchscreen_sensitivity_entries">
+ <item>10</item>
+ <item>20</item>
+ <item>30</item>
+ <item>50 (Padrão)</item>
+ <item>70</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>
+
+</resources>
diff --git a/DeviceSettings/res/values-pt-rBR/strings.xml b/DeviceSettings/res/values-pt-rBR/strings.xml index ba94306..fad81b2 100755 --- a/DeviceSettings/res/values-pt-rBR/strings.xml +++ b/DeviceSettings/res/values-pt-rBR/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Config. Galaxy Note</string> + <string name="app_name">Config. Galaxy S II</string> <string name="screen_colors_title">Cores</string> <string name="category_mdnie_title">Tela</string> <string name="mdnie_scenario_title_head">Cenário</string> @@ -8,30 +8,28 @@ <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">Ativa/Desativa cores invertidas</string> + <string name="mdnie_negative_summary_head">Ativar/Desativar cores invertidas</string> <string name="mdnie_outdoor_title_head">Modo Ao Ar Livre</string> - <string name="mdnie_outdoor_summary_head">Ativa/Desativa modo ao ar livre</string> + <string name="mdnie_outdoor_summary_head">Ativar/Desativar modo ao ar livre</string> <string name="panel_gamma_title_head">Gama da Tela</string> - <string name="panel_gamma_summary_head">Define valor da gama da tela</string> + <string name="panel_gamma_summary_head">Definir valor da gama da tela</string> <string name="touchscreen_subcat_title">Tela sensÃvel ao toque</string> <string name="touchscreen_sensitivity_title_head">Sensitividade do toque</string> <string name="touchscreen_sensitivity_summary_head">Define a sensitividade do toque na tela</string> <string name="category_sensors_title">Sensores</string> <string name="gyro_subcat_title">Giroscópio</string> <string name="use_gyro_calibration_title_head">Usar dados de calibração</string> - <string name="use_gyro_calibration_summary_head">Usa os valores de calibração do giroscópio. Calibre depois de selecionar isto!</string> + <string name="use_gyro_calibration_summary_head">Usar os valores de calibração do giroscópio. Fazer uma calibragem depois de selecionar isto!</string> <string name="calibrate_gyro_title_head">Calibrar</string> <string name="calibrate_gyro_summary_head">Coloque seu telefone em uma superfÃcie plana, e pressione isto para calibrar</string> <string name="touchkey_subcat_title">Tecla sensÃvel ao toque</string> <string name="touchkey_light_title_head">Ativar luz de fundo das teclas</string> - <string name="touchkey_light_summary_head">Acende as teclas sensÃveis ao toque quando a tela estiver ligada</string> + <string name="touchkey_light_summary_head">Acender as teclas sensÃveis ao toque quando a tela estiver ligada</string> <string name="category_radio_title">Rádio</string> <string name="hspa_title_head">HSPA</string> - <string name="hspa_summary_head">Ativa HSDPA/HSUPA</string> + <string name="hspa_summary_head">Ativar HSDPA/HSUPA</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="touchkey_timeout_title_head">Tempo limite da luz de fundo</string> - <string name="touchkey_timeout_summary_head">Quanto tempo a luz de fundo irá ficar acesa depois do botão ser pressionado</string> </resources>
\ No newline at end of file diff --git a/DeviceSettings/res/values/strings.xml b/DeviceSettings/res/values/strings.xml index be525f1..d3f0891 100644 --- a/DeviceSettings/res/values/strings.xml +++ b/DeviceSettings/res/values/strings.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="app_name">Galaxy Note Settings</string> + <string name="app_name">Galaxy S II Settings</string> <string name="screen_colors_title">Colors</string> <string name="category_mdnie_title">Screen</string> diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java index d67c234..cd307cf 100644 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java +++ b/DeviceSettings/src/com/cyanogenmod/settings/device/HapticFragmentActivity.java @@ -33,7 +33,7 @@ import com.cyanogenmod.settings.device.R; public class HapticFragmentActivity extends PreferenceFragment { private static final String PREF_ENABLED = "1"; - private static final String TAG = "GalaxyNoteParts_General"; + private static final String TAG = "GalaxyS2Parts_General"; @Override public void onCreate(Bundle savedInstanceState) { diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java index d909a57..4d830b8 100644 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java +++ b/DeviceSettings/src/com/cyanogenmod/settings/device/RadioFragmentActivity.java @@ -33,7 +33,7 @@ import com.cyanogenmod.settings.device.R; public class RadioFragmentActivity extends PreferenceFragment { private static final String PREF_ENABLED = "1"; - private static final String TAG = "GalaxyNoteParts_General"; + private static final String TAG = "GalaxyS2Parts_General"; @Override public void onCreate(Bundle savedInstanceState) { diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java index bbe5f08..eaed40e 100644 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java +++ b/DeviceSettings/src/com/cyanogenmod/settings/device/SensorsFragmentActivity.java @@ -33,7 +33,7 @@ import com.cyanogenmod.settings.device.R; public class SensorsFragmentActivity extends PreferenceFragment { private static final String PREF_ENABLED = "1"; - private static final String TAG = "GalaxyNoteParts_General"; + private static final String TAG = "GalaxyS2Parts_General"; private static final String FILE_USE_GYRO_CALIB = "/sys/class/sec/gsensorcal/calibration"; private static final String FILE_TOUCHKEY_DISABLE = "/sys/class/sec/sec_touchkey/force_disable"; diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java b/DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java index 237ea0f..d0755ef 100644 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java +++ b/DeviceSettings/src/com/cyanogenmod/settings/device/Utils.java @@ -29,9 +29,9 @@ import android.content.Context; public class Utils { - private static final String TAG = "GalaxyNoteSettings_Utils"; - private static final String TAG_READ = "GalaxyNoteSettings_Utils_Read"; - private static final String TAG_WRITE = "GalaxyNoteSettings_Utils_Write"; + private static final String TAG = "GalaxyS2Settings_Utils"; + private static final String TAG_READ = "GalaxyS2Settings_Utils_Read"; + private static final String TAG_WRITE = "GalaxyS2Settings_Utils_Write"; /** * Write a string value to the specified file. diff --git a/bdaddr_read/Android.mk b/TVOutDummy/Android.mk index 6769659..1e74174 100755..100644 --- a/bdaddr_read/Android.mk +++ b/TVOutDummy/Android.mk @@ -1,27 +1,40 @@ -# Copyright (C) 2010 Ricardo Cerqueira
-# Copyright (C) 2011 Pawit Pornkitprasan
-#
-# 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.
-
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_SRC_FILES := bdaddr_read.c
-
-LOCAL_SHARED_LIBRARIES := libcutils
-
-LOCAL_MODULE := bdaddr_read
-
-include $(BUILD_EXECUTABLE)
+# Copyright (C) 2008 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. + +LOCAL_PATH:= $(call my-dir) + +# +# libTVOut +# + +include $(CLEAR_VARS) +LOCAL_MODULE_TAGS := optional +LOCAL_PRELINK_MODULE := false + +LOCAL_SRC_FILES := \ + SecTVOutService.cpp \ + MessageQueue.cpp \ + main.cpp +# ISecTVOut.cpp \ + +LOCAL_C_INCLUDES := \ + +LOCAL_SHARED_LIBRARIES := \ + libbinder \ + libutils \ + libcutils + +LOCAL_MODULE := TVOutDummy +include $(BUILD_EXECUTABLE) + diff --git a/TVOutDummy/Barrier.h b/TVOutDummy/Barrier.h new file mode 100644 index 0000000..6f8507e --- /dev/null +++ b/TVOutDummy/Barrier.h @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2007 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. + */ + +#ifndef ANDROID_BARRIER_H +#define ANDROID_BARRIER_H + +#include <stdint.h> +#include <sys/types.h> +#include <utils/threads.h> + +namespace android { + +class Barrier +{ +public: + inline Barrier() : state(CLOSED) { } + inline ~Barrier() { } + void open() { + Mutex::Autolock _l(lock); + state = OPENED; + cv.broadcast(); + } + void close() { + Mutex::Autolock _l(lock); + state = CLOSED; + } + void wait() const { + Mutex::Autolock _l(lock); + while (state == CLOSED) { + cv.wait(lock); + } + } +private: + enum { OPENED, CLOSED }; + mutable Mutex lock; + mutable Condition cv; + volatile int state; +}; + +}; // namespace android + +#endif // ANDROID_BARRIER_H diff --git a/TVOutDummy/ISecTVOut.cpp b/TVOutDummy/ISecTVOut.cpp new file mode 100644 index 0000000..a013bf1 --- /dev/null +++ b/TVOutDummy/ISecTVOut.cpp @@ -0,0 +1,111 @@ +/* +** +** Copyright 2008, The Android Open Source Project +** Copyright 2010, Samsung Electronics Co. LTD +** +** 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. +*/ + +/* +** +** @author Taikyung, Yu(taikyung.yu@samsung.com) +** @date 2011-07-06 +*/ + +#include <stdint.h> +#include <sys/types.h> +#include <binder/Parcel.h> +#include <utils/Log.h> +#include "ISecTVOut.h" + +namespace android { + + enum { + SET_HDMI_STATUS = IBinder::FIRST_CALL_TRANSACTION, + SET_HDMI_MODE, + SET_HDMI_RESOLUTION, + SET_HDMI_HDCP, + SET_HDMI_ROTATE, + SET_HDMI_HWCLAYER, + BLIT_2_HDMI + }; + + void BpSecTVOut::setHdmiCableStatus(uint32_t status) + { + Parcel data, reply; + data.writeInt32(status); + remote()->transact(SET_HDMI_STATUS, data, &reply); + } + + void BpSecTVOut::setHdmiMode(uint32_t mode) + { + Parcel data, reply; + data.writeInt32(mode); + remote()->transact(SET_HDMI_MODE, data, &reply); + } + + void BpSecTVOut::setHdmiResolution(uint32_t resolution) + { + Parcel data, reply; + data.writeInt32(resolution); + remote()->transact(SET_HDMI_RESOLUTION, data, &reply); + } + + void BpSecTVOut::setHdmiHdcp(uint32_t resolution) + { + Parcel data, reply; + data.writeInt32(resolution); + remote()->transact(SET_HDMI_HDCP, data, &reply); + } + + void BpSecTVOut::setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer) + { + Parcel data, reply; + data.writeInt32(rotVal); + data.writeInt32(hwcLayer); + remote()->transact(SET_HDMI_ROTATE, data, &reply); + } + + void BpSecTVOut::setHdmiHwcLayer(uint32_t hwcLayer) + { + Parcel data, reply; + data.writeInt32(hwcLayer); + remote()->transact(SET_HDMI_HWCLAYER, data, &reply); + } + + void BpSecTVOut::blit2Hdmi(uint32_t w, uint32_t h, + uint32_t colorFormat, + uint32_t physYAddr, + uint32_t physCbAddr, + uint32_t physCrAddr, + uint32_t dstX, + uint32_t dstY, + uint32_t hdmiLayer, + uint32_t num_of_hwc_layer) + { + Parcel data, reply; + data.writeInt32(w); + data.writeInt32(h); + data.writeInt32(colorFormat); + data.writeInt32(physYAddr); + data.writeInt32(physCbAddr); + data.writeInt32(physCrAddr); + data.writeInt32(dstX); + data.writeInt32(dstY); + data.writeInt32(hdmiLayer); + data.writeInt32(num_of_hwc_layer); + remote()->transact(BLIT_2_HDMI, data, &reply); + } + + IMPLEMENT_META_INTERFACE(SecTVOut, "android.os.ISecTVOut"); +}; diff --git a/TVOutDummy/ISecTVOut.h b/TVOutDummy/ISecTVOut.h new file mode 100644 index 0000000..5506b57 --- /dev/null +++ b/TVOutDummy/ISecTVOut.h @@ -0,0 +1,74 @@ +/* +** +** Copyright 2008, The Android Open Source Project +** Copyright 2010, Samsung Electronics Co. LTD +** +** 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. +*/ + +/* +** +** @author Taikyung, Yu(taikyung.yu@samsung.com) +** @date 2011-07-06 +*/ + +#ifndef ISECTVOUT_H +#define ISECTVOUT_H +#include <utils/RefBase.h> +#include <binder/IInterface.h> +#include <binder/Parcel.h> + +namespace android { + class ISecTVOut: public IInterface + { + public: + DECLARE_META_INTERFACE(SecTVOut); + virtual void setHdmiCableStatus(uint32_t status) = 0; + virtual void setHdmiMode(uint32_t mode) = 0; + virtual void setHdmiResolution(uint32_t resolution) = 0; + virtual void setHdmiHdcp(uint32_t enHdcp) = 0; + virtual void setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer) = 0; + virtual void setHdmiHwcLayer(uint32_t hwcLayer) = 0; + virtual void blit2Hdmi(uint32_t w, uint32_t h, + uint32_t colorFormat, + uint32_t physYAddr, + uint32_t physCbAddr, + uint32_t physCrAddr, + uint32_t dstX, + uint32_t dstY, + uint32_t hdmiLayer, + uint32_t num_of_hwc_layer) = 0; + }; + //-------------------------------------------------------------- + class BpSecTVOut: public BpInterface<ISecTVOut> + { + public: + BpSecTVOut(const sp<IBinder>& impl): BpInterface<ISecTVOut>(impl){} + virtual void setHdmiCableStatus(uint32_t status); + virtual void setHdmiMode(uint32_t mode); + virtual void setHdmiResolution(uint32_t resolution); + virtual void setHdmiHdcp(uint32_t enHdcp); + virtual void setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer); + virtual void setHdmiHwcLayer(uint32_t hwcLayer); + virtual void blit2Hdmi(uint32_t w, uint32_t h, + uint32_t colorFormat, + uint32_t physYAddr, + uint32_t physCbAddr, + uint32_t physCrAddr, + uint32_t dstX, + uint32_t dstY, + uint32_t hdmiLayer, + uint32_t num_of_hwc_layer); + }; +}; +#endif diff --git a/TVOutDummy/MessageQueue.cpp b/TVOutDummy/MessageQueue.cpp new file mode 100644 index 0000000..9441019 --- /dev/null +++ b/TVOutDummy/MessageQueue.cpp @@ -0,0 +1,197 @@ +/* + * Copyright (C) 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. + */ + +#include <stdint.h> +#include <errno.h> +#include <sys/types.h> + +#include <utils/threads.h> +#include <utils/Timers.h> +#include <utils/Log.h> +#include <binder/IPCThreadState.h> + +#include "MessageQueue.h" + +namespace android { + +// --------------------------------------------------------------------------- + +void MessageList::insert(const sp<MessageBase>& node) +{ + LIST::iterator cur(mList.begin()); + LIST::iterator end(mList.end()); + while (cur != end) { + if (*node < **cur) { + mList.insert(cur, node); + return; + } + ++cur; + } + mList.insert(++end, node); +} + +void MessageList::remove(MessageList::LIST::iterator pos) +{ + mList.erase(pos); +} + +// --------------------------------------------------------------------------- + +MessageQueue::MessageQueue() + : mInvalidate(false) +{ + mInvalidateMessage = new MessageBase(INVALIDATE); +} + +MessageQueue::~MessageQueue() +{ +} + +sp<MessageBase> MessageQueue::waitMessage(nsecs_t timeout) +{ + sp<MessageBase> result; + + bool again; + do { + const nsecs_t timeoutTime = systemTime() + timeout; + while (true) { + Mutex::Autolock _l(mLock); + nsecs_t now = systemTime(); + nsecs_t nextEventTime = -1; + + LIST::iterator cur(mMessages.begin()); + if (cur != mMessages.end()) { + result = *cur; + } + + if (result != 0) { + if (result->when <= now) { + // there is a message to deliver + mMessages.remove(cur); + break; + } + nextEventTime = result->when; + result = 0; + } + + // see if we have an invalidate message + if (mInvalidate) { + mInvalidate = false; + mInvalidateMessage->when = now; + result = mInvalidateMessage; + break; + } + + if (timeout >= 0) { + if (timeoutTime < now) { + // we timed-out, return a NULL message + result = 0; + break; + } + if (nextEventTime > 0) { + if (nextEventTime > timeoutTime) { + nextEventTime = timeoutTime; + } + } else { + nextEventTime = timeoutTime; + } + } + + if (nextEventTime >= 0) { + //ALOGD("nextEventTime = %lld ms", nextEventTime); + if (nextEventTime > 0) { + // we're about to wait, flush the binder command buffer + IPCThreadState::self()->flushCommands(); + const nsecs_t reltime = nextEventTime - systemTime(); + if (reltime > 0) { + mCondition.waitRelative(mLock, reltime); + } + } + } else { + //ALOGD("going to wait"); + // we're about to wait, flush the binder command buffer + IPCThreadState::self()->flushCommands(); + mCondition.wait(mLock); + } + } + // here we're not holding the lock anymore + + if (result == 0) + break; + + again = result->handler(); + if (again) { + // the message has been processed. release our reference to it + // without holding the lock. + result->notify(); + result = 0; + } + + } while (again); + + return result; +} + +status_t MessageQueue::postMessage( + const sp<MessageBase>& message, nsecs_t relTime, uint32_t flags) +{ + return queueMessage(message, relTime, flags); +} + +status_t MessageQueue::invalidate() { + Mutex::Autolock _l(mLock); + mInvalidate = true; + mCondition.signal(); + return NO_ERROR; +} + +status_t MessageQueue::queueMessage( + const sp<MessageBase>& message, nsecs_t relTime, uint32_t flags) +{ + Mutex::Autolock _l(mLock); + message->when = systemTime() + relTime; + mMessages.insert(message); + + //ALOGD("MessageQueue::queueMessage time = %lld ms", message->when); + //dumpLocked(message); + + mCondition.signal(); + return NO_ERROR; +} + +void MessageQueue::dump(const sp<MessageBase>& message) +{ + Mutex::Autolock _l(mLock); + dumpLocked(message); +} + +void MessageQueue::dumpLocked(const sp<MessageBase>& message) +{ + LIST::const_iterator cur(mMessages.begin()); + LIST::const_iterator end(mMessages.end()); + int c = 0; + while (cur != end) { + const char tick = (*cur == message) ? '>' : ' '; + ALOGD("%c %d: msg{.what=%08x, when=%lld}", + tick, c, (*cur)->what, (*cur)->when); + ++cur; + c++; + } +} + +// --------------------------------------------------------------------------- + +}; // namespace android diff --git a/TVOutDummy/MessageQueue.h b/TVOutDummy/MessageQueue.h new file mode 100644 index 0000000..890f809 --- /dev/null +++ b/TVOutDummy/MessageQueue.h @@ -0,0 +1,126 @@ +/* + * Copyright (C) 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. + */ + +#ifndef ANDROID_MESSAGE_QUEUE_H +#define ANDROID_MESSAGE_QUEUE_H + +#include <stdint.h> +#include <errno.h> +#include <sys/types.h> + +#include <utils/threads.h> +#include <utils/Timers.h> +#include <utils/List.h> + +#include "Barrier.h" + +namespace android { + +// --------------------------------------------------------------------------- + +class MessageBase; + +class MessageList +{ + List< sp<MessageBase> > mList; + typedef List< sp<MessageBase> > LIST; +public: + inline LIST::iterator begin() { return mList.begin(); } + inline LIST::const_iterator begin() const { return mList.begin(); } + inline LIST::iterator end() { return mList.end(); } + inline LIST::const_iterator end() const { return mList.end(); } + inline bool isEmpty() const { return mList.empty(); } + void insert(const sp<MessageBase>& node); + void remove(LIST::iterator pos); +}; + +// ============================================================================ + +class MessageBase : + public LightRefBase<MessageBase> +{ +public: + nsecs_t when; + uint32_t what; + int32_t arg0; + + MessageBase() : when(0), what(0), arg0(0) { } + MessageBase(uint32_t what, int32_t arg0=0) + : when(0), what(what), arg0(arg0) { } + + // return true if message has a handler + virtual bool handler() { return false; } + + // waits for the handler to be processed + void wait() const { barrier.wait(); } + + // releases all waiters. this is done automatically if + // handler returns true + void notify() const { barrier.open(); } + +protected: + virtual ~MessageBase() { } + +private: + mutable Barrier barrier; + friend class LightRefBase<MessageBase>; +}; + +inline bool operator < (const MessageBase& lhs, const MessageBase& rhs) { + return lhs.when < rhs.when; +} + +// --------------------------------------------------------------------------- + +class MessageQueue +{ + typedef List< sp<MessageBase> > LIST; +public: + + MessageQueue(); + ~MessageQueue(); + + // pre-defined messages + enum { + INVALIDATE = '_upd' + }; + + sp<MessageBase> waitMessage(nsecs_t timeout = -1); + + status_t postMessage(const sp<MessageBase>& message, + nsecs_t reltime=0, uint32_t flags = 0); + + status_t invalidate(); + + void dump(const sp<MessageBase>& message); + +private: + status_t queueMessage(const sp<MessageBase>& message, + nsecs_t reltime, uint32_t flags); + void dumpLocked(const sp<MessageBase>& message); + + Mutex mLock; + Condition mCondition; + MessageList mMessages; + bool mInvalidate; + sp<MessageBase> mInvalidateMessage; +}; + +// --------------------------------------------------------------------------- + +}; // namespace android + +#endif /* ANDROID_MESSAGE_QUEUE_H */ diff --git a/TVOutDummy/SecTVOutService.cpp b/TVOutDummy/SecTVOutService.cpp new file mode 100644 index 0000000..490f888 --- /dev/null +++ b/TVOutDummy/SecTVOutService.cpp @@ -0,0 +1,168 @@ +/* +** +** Copyright 2008, The Android Open Source Project +** Copyright 2010, Samsung Electronics Co. LTD +** +** 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. +*/ + +/* +** +** @author Taikyung, Yu(taikyung.yu@samsung.com) +** @date 2011-07-06 +*/ + +#define ALOG_TAG "SecTVOutService" + +#include <binder/IServiceManager.h> +#include <utils/RefBase.h> +#include <binder/IInterface.h> +#include <binder/Parcel.h> +#include <utils/Log.h> +#include "SecTVOutService.h" +#include <linux/fb.h> + +namespace android { +#define DEFAULT_LCD_WIDTH 800 +#define DEFAULT_LCD_HEIGHT 480 + +#define DIRECT_VIDEO_RENDERING (1) +#define DIRECT_UI_RENDERING (0) + + enum { + SET_HDMI_STATUS = IBinder::FIRST_CALL_TRANSACTION, + SET_HDMI_MODE, + SET_HDMI_RESOLUTION, + SET_HDMI_HDCP, + SET_HDMI_ROTATE, + SET_HDMI_HWCLAYER, + BLIT_2_HDMI + }; + + int SecTVOutService::instantiate() + { + ALOGD("SKURWYSYN, SecTVOutService instantiate!"); + int r = defaultServiceManager()->addService(String16( "SecTVOutService"), new SecTVOutService ()); + ALOGD("SecTVOutService r=%d", r); + + return r; + } + + SecTVOutService::SecTVOutService () { + ALOGV("SecTVOutService created"); + mHdmiCableInserted = false; + } + + void SecTVOutService::setLCDsize(void) { + } + + SecTVOutService::~SecTVOutService () { + ALOGV ("SecTVOutService destroyed"); + } + + status_t SecTVOutService::onTransact(uint32_t code, const Parcel & data, Parcel * reply, uint32_t flags) + { + switch (code) { + case SET_HDMI_STATUS: { + int status = data.readInt32(); + setHdmiStatus(status); + } break; + + case SET_HDMI_MODE: { + int mode = data.readInt32(); + setHdmiMode(mode); + } break; + + case SET_HDMI_RESOLUTION: { + int resolution = data.readInt32(); + setHdmiResolution(resolution); + } break; + + case SET_HDMI_HDCP: { + int enHdcp = data.readInt32(); + setHdmiHdcp(enHdcp); + } break; + + case SET_HDMI_ROTATE: { + int rotVal = data.readInt32(); + int hwcLayer = data.readInt32(); + setHdmiRotate(rotVal, hwcLayer); + } break; + + case SET_HDMI_HWCLAYER: { + int hwcLayer = data.readInt32(); + setHdmiHwcLayer((uint32_t)hwcLayer); + } break; + + case BLIT_2_HDMI: { + uint32_t w = data.readInt32(); + uint32_t h = data.readInt32(); + uint32_t colorFormat = data.readInt32(); + uint32_t physYAddr = data.readInt32(); + uint32_t physCbAddr = data.readInt32(); + uint32_t physCrAddr = data.readInt32(); + uint32_t dstX = data.readInt32(); + uint32_t dstY = data.readInt32(); + uint32_t hdmiLayer = data.readInt32(); + uint32_t num_of_hwc_layer = data.readInt32(); + + blit2Hdmi(w, h, colorFormat, physYAddr, physCbAddr, physCrAddr, dstX, dstY, hdmiLayer, num_of_hwc_layer); + } break; + + default : + ALOGE ( "onTransact::default"); + return BBinder::onTransact (code, data, reply, flags); + } + + return NO_ERROR; + } + + void SecTVOutService::setHdmiStatus(uint32_t status) + { + + } + + void SecTVOutService::setHdmiMode(uint32_t mode) + { + } + + void SecTVOutService::setHdmiResolution(uint32_t resolution) + { + } + + void SecTVOutService::setHdmiHdcp(uint32_t hdcp_en) + { + } + + void SecTVOutService::setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer) + { + } + + void SecTVOutService::setHdmiHwcLayer(uint32_t hwcLayer) + { + } + + void SecTVOutService::blit2Hdmi(uint32_t w, uint32_t h, uint32_t colorFormat, + uint32_t pPhyYAddr, uint32_t pPhyCbAddr, uint32_t pPhyCrAddr, + uint32_t dstX, uint32_t dstY, + uint32_t hdmiMode, + uint32_t num_of_hwc_layer) + { + } + + bool SecTVOutService::hdmiCableInserted(void) + { + return mHdmiCableInserted; + } + +} diff --git a/TVOutDummy/SecTVOutService.h b/TVOutDummy/SecTVOutService.h new file mode 100644 index 0000000..11e10d5 --- /dev/null +++ b/TVOutDummy/SecTVOutService.h @@ -0,0 +1,94 @@ +/* +** +** Copyright 2008, The Android Open Source Project +** Copyright 2010, Samsung Electronics Co. LTD +** +** 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. +*/ + +/* +** +** @author Taikyung, Yu(taikyung.yu@samsung.com) +** @date 2011-07-06 +*/ + +#ifndef SECTVOUTSERVICE_H +#define SECTVOUTSERVICE_H + +#include <stdint.h> +#include <sys/types.h> +#include <binder/Parcel.h> +#include <utils/KeyedVector.h> + +#include "ISecTVOut.h" +#include "MessageQueue.h" + +namespace android { +//#define CHECK_VIDEO_TIME +//#define CHECK_UI_TIME + + class SecTVOutService : public BBinder + { + public : + enum { + HDMI_MODE_NONE = 0, + HDMI_MODE_UI, + HDMI_MODE_VIDEO, + }; + + mutable Mutex mLock; + + class HDMIFlushThread : public Thread { + SecTVOutService *mTVOutService; + public: + HDMIFlushThread(SecTVOutService *service): + Thread(false), + mTVOutService(service) { } + virtual void onFirstRef() { + run("HDMIFlushThread", PRIORITY_URGENT_DISPLAY); + } + virtual bool threadLoop() { + return false; + } + }; + + mutable MessageQueue mHdmiEventQueue; + bool mExitHdmiFlushThread; + + SecTVOutService(); + static int instantiate (); + virtual status_t onTransact(uint32_t, const Parcel &, Parcel *, uint32_t); + virtual ~SecTVOutService (); + + virtual void setHdmiStatus(uint32_t status); + virtual void setHdmiMode(uint32_t mode); + virtual void setHdmiResolution(uint32_t resolution); + virtual void setHdmiHdcp(uint32_t enHdcp); + virtual void setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer); + virtual void setHdmiHwcLayer(uint32_t hwcLayer); + virtual void blit2Hdmi(uint32_t w, uint32_t h, + uint32_t colorFormat, + uint32_t pPhyYAddr, uint32_t pPhyCbAddr, uint32_t pPhyCrAddr, + uint32_t dstX, uint32_t dstY, + uint32_t hdmiMode, uint32_t num_of_hwc_layer); + bool hdmiCableInserted(void); + void setLCDsize(void); + + private: + bool mHdmiCableInserted; + int mUILayerMode; + uint32_t mLCD_width, mLCD_height; + uint32_t mHwcLayer; + }; +}; +#endif diff --git a/TVOutDummy/main.cpp b/TVOutDummy/main.cpp new file mode 100644 index 0000000..d0a7497 --- /dev/null +++ b/TVOutDummy/main.cpp @@ -0,0 +1,11 @@ +#include "SecTVOutService.h" +#include <cstdlib> + +int main() { + android::SecTVOutService::instantiate(); + + // let it run for some time (1 sec) + usleep(1000000); + + return 0; +} diff --git a/bdaddr_read/bdaddr_read.c b/bdaddr_read/bdaddr_read.c deleted file mode 100755 index 5286e5f..0000000 --- a/bdaddr_read/bdaddr_read.c +++ /dev/null @@ -1,54 +0,0 @@ -#include <fcntl.h>
-#include <string.h>
-#include <cutils/properties.h>
-#include <cutils/log.h>
-
-#define LOG_TAG "bdaddr"
-#define SAMSUNG_BDADDR_PATH "/efs/imei/bt.txt"
-#define BDADDR_PATH "/data/bdaddr"
-
-/* Read bluetooth MAC from SAMSUNG_BDADDR_PATH (different format),
- * write it to BDADDR_PATH, and set ro.bt.bdaddr_path to BDADDR_PATH
- *
- * Adapted from bdaddr_read.c of thunderg
- */
-
-int main() {
- char tmpbdaddr[23]; // bt_macaddr:xxxxxxxxxxxx
- char bdaddr[18];
- int count;
- int fd;
-
- fd = open(SAMSUNG_BDADDR_PATH, O_RDONLY);
- if(fd < 0) {
- fprintf(stderr, "open(%s) failed\n", SAMSUNG_BDADDR_PATH);
- LOGE("Can't open %s\n", SAMSUNG_BDADDR_PATH);
- return -1;
- }
-
- count = read(fd, tmpbdaddr, sizeof(tmpbdaddr));
- if (count < 0) {
- fprintf(stderr, "read(%s) failed\n", SAMSUNG_BDADDR_PATH);
- LOGE("Can't read %s\n", SAMSUNG_BDADDR_PATH);
- return -1;
- }
- else if (count != sizeof(tmpbdaddr)) {
- fprintf(stderr, "read(%s) unexpected size %d\n", SAMSUNG_BDADDR_PATH, count);
- LOGE("Error reading %s (unexpected size %d)\n", SAMSUNG_BDADDR_PATH, count);
- return -1;
- }
-
- count = sprintf(bdaddr, "%2.2s:%2.2s:%2.2s:%2.2s:%2.2s:%2.2s\0",
- tmpbdaddr+11,tmpbdaddr+13,tmpbdaddr+15,tmpbdaddr+17,tmpbdaddr+19,tmpbdaddr+21);
-
- fd = open(BDADDR_PATH, O_WRONLY|O_CREAT|O_TRUNC, 00600|00060|00006);
- if (fd < 0) {
- fprintf(stderr, "open(%s) failed\n", BDADDR_PATH);
- LOGE("Can't open %s\n", BDADDR_PATH);
- return -2;
- }
- write(fd, bdaddr, 18);
- close(fd);
- property_set("ro.bt.bdaddr_path", BDADDR_PATH);
- return 0;
-}
\ No newline at end of file diff --git a/board-info.txt b/board-info.txt index 1225363..51f5961 100755..100644 --- a/board-info.txt +++ b/board-info.txt @@ -1,2 +1,3 @@ -require board=c1 -require version-bootloader=N7000XXKK5 +require board=smdk4210 +require version-bootloader=I9100XXLPH + diff --git a/camera/Android.mk b/camera/Android.mk deleted file mode 100644 index 46cce24..0000000 --- a/camera/Android.mk +++ /dev/null @@ -1,15 +0,0 @@ -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := \ - CameraWrapper.cpp - -LOCAL_SHARED_LIBRARIES := \ - libhardware liblog libcamera_client libutils - -LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw -LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM) -LOCAL_MODULE_TAGS := optional - -include $(BUILD_SHARED_LIBRARY) -#include $(BUILD_HEAPTRACKED_SHARED_LIBRARY) diff --git a/camera/CameraWrapper.cpp b/camera/CameraWrapper.cpp deleted file mode 100644 index 9154216..0000000 --- a/camera/CameraWrapper.cpp +++ /dev/null @@ -1,598 +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. - */ - -/** -* @file CameraWrapper.cpp -* -* This file wraps a vendor camera module. -* -*/ - -/* -#define LOG_NDEBUG 0 -#define LOG_PARAMETERS -*/ -#define LOG_TAG "CameraWrapper" -#include <cutils/log.h> - -#include <utils/threads.h> -#include <utils/String8.h> -#include <hardware/hardware.h> -#include <hardware/camera.h> -#include <camera/Camera.h> -#include <camera/CameraParameters.h> - -static android::Mutex gCameraWrapperLock; -static camera_module_t *gVendorModule = 0; - -static int camera_device_open(const hw_module_t* module, const char* name, - hw_device_t** device); -static int camera_device_close(hw_device_t* device); -static int camera_get_number_of_cameras(void); -static int camera_get_camera_info(int camera_id, struct camera_info *info); - -static struct hw_module_methods_t camera_module_methods = { - open: camera_device_open -}; - -camera_module_t HAL_MODULE_INFO_SYM = { - common: { - tag: HARDWARE_MODULE_TAG, - version_major: 1, - version_minor: 0, - id: CAMERA_HARDWARE_MODULE_ID, - name: "Exynos Camera Wrapper", - author: "Teamhacksung <info@teamhacksung.org>", - methods: &camera_module_methods, - dso: NULL, /* remove compilation warnings */ - reserved: {0}, /* remove compilation warnings */ - }, - get_number_of_cameras: camera_get_number_of_cameras, - get_camera_info: camera_get_camera_info, -}; - -typedef struct wrapper_camera_device { - camera_device_t base; - int id; - camera_device_t *vendor; -} wrapper_camera_device_t; - -#define VENDOR_CALL(device, func, ...) ({ \ - wrapper_camera_device_t *__wrapper_dev = (wrapper_camera_device_t*) device; \ - __wrapper_dev->vendor->ops->func(__wrapper_dev->vendor, ##__VA_ARGS__); \ -}) - -#define CAMERA_ID(device) (((wrapper_camera_device_t *)(device))->id) - -static int check_vendor_module() -{ - int rv = 0; - LOGV("%s", __FUNCTION__); - - if(gVendorModule) - return 0; - - rv = hw_get_module("vendor-camera", (const hw_module_t **)&gVendorModule); - if (rv) - LOGE("failed to open vendor camera module"); - return rv; -} - -const static char * video_preview_sizes[] = { - "1920x1080,1280x720,640x480", - "640x480,352x288,320x240,176x144" -}; - -const static char * iso_values[] = {"auto,ISO50,ISO100,ISO200,ISO400,ISO800","auto"}; - -static char * camera_fixup_getparams(int id, const char * settings) -{ - android::CameraParameters params; - params.unflatten(android::String8(settings)); - - params.remove(android::CameraParameters::KEY_SUPPORTED_VIDEO_SIZES); - - if(params.get("cam_mode")) - { - params.set(android::CameraParameters::KEY_SUPPORTED_PREVIEW_SIZES, video_preview_sizes[id]); - const char* videoSize = params.get(android::CameraParameters::KEY_VIDEO_SIZE); - params.set(android::CameraParameters::KEY_PREVIEW_SIZE, videoSize); - } - - params.set(android::CameraParameters::KEY_SUPPORTED_ISO_MODES, iso_values[id]); - - android::String8 strParams = params.flatten(); - char *ret = strdup(strParams.string()); - - LOGD("%s: get parameters fixed up", __FUNCTION__); - return ret; -} - -char * camera_fixup_setparams(int id, const char * settings) -{ - android::CameraParameters params; - params.unflatten(android::String8(settings)); - - if(params.get("cam_mode")) - { - const char* previewSize = params.get(android::CameraParameters::KEY_PREVIEW_SIZE); - params.set(android::CameraParameters::KEY_PREFERRED_PREVIEW_SIZE_FOR_VIDEO, previewSize); - params.set(android::CameraParameters::KEY_SUPPORTED_VIDEO_SIZES, video_preview_sizes[id]); - } - - if(params.get("iso")) { - const char* isoMode = params.get(android::CameraParameters::KEY_ISO_MODE); - if(strcmp(isoMode, "ISO50") == 0) - params.set(android::CameraParameters::KEY_ISO_MODE, "50"); - else if(strcmp(isoMode, "ISO100") == 0) - params.set(android::CameraParameters::KEY_ISO_MODE, "100"); - else if(strcmp(isoMode, "ISO200") == 0) - params.set(android::CameraParameters::KEY_ISO_MODE, "200"); - else if(strcmp(isoMode, "ISO400") == 0) - params.set(android::CameraParameters::KEY_ISO_MODE, "400"); - else if(strcmp(isoMode, "ISO800") == 0) - params.set(android::CameraParameters::KEY_ISO_MODE, "800"); - } - - android::String8 strParams = params.flatten(); - char *ret = strdup(strParams.string()); - - LOGD("%s: set parameters fixed up", __FUNCTION__); - return ret; -} - -/******************************************************************* - * implementation of camera_device_ops functions - *******************************************************************/ - -int camera_set_preview_window(struct camera_device * device, - struct preview_stream_ops *window) -{ - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, set_preview_window, window); -} - -void camera_set_callbacks(struct camera_device * device, - camera_notify_callback notify_cb, - camera_data_callback data_cb, - camera_data_timestamp_callback data_cb_timestamp, - camera_request_memory get_memory, - void *user) -{ - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - LOGV("%s", __FUNCTION__); - - if(!device) - return; - - VENDOR_CALL(device, set_callbacks, notify_cb, data_cb, data_cb_timestamp, get_memory, user); -} - -void camera_enable_msg_type(struct camera_device * device, int32_t msg_type) -{ - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - LOGV("%s", __FUNCTION__); - - if(!device) - return; - - VENDOR_CALL(device, enable_msg_type, msg_type); -} - -void camera_disable_msg_type(struct camera_device * device, int32_t msg_type) -{ - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - LOGV("%s", __FUNCTION__); - - if(!device) - return; - - VENDOR_CALL(device, disable_msg_type, msg_type); -} - -int camera_msg_type_enabled(struct camera_device * device, int32_t msg_type) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return 0; - - return VENDOR_CALL(device, msg_type_enabled, msg_type); -} - -int camera_start_preview(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, start_preview); -} - -void camera_stop_preview(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - VENDOR_CALL(device, stop_preview); -} - -int camera_preview_enabled(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, preview_enabled); -} - -int camera_store_meta_data_in_buffers(struct camera_device * device, int enable) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, store_meta_data_in_buffers, enable); -} - -int camera_start_recording(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return EINVAL; - - return VENDOR_CALL(device, start_recording); -} - -void camera_stop_recording(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - - VENDOR_CALL(device, stop_recording); -} - -int camera_recording_enabled(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, recording_enabled); -} - -void camera_release_recording_frame(struct camera_device * device, - const void *opaque) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - VENDOR_CALL(device, release_recording_frame, opaque); -} - -int camera_auto_focus(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - - return VENDOR_CALL(device, auto_focus); -} - -int camera_cancel_auto_focus(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - - return VENDOR_CALL(device, cancel_auto_focus); -} - -int camera_take_picture(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, take_picture); -} - -int camera_cancel_picture(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, take_picture); -} - -int camera_set_parameters(struct camera_device * device, const char *params) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - char *tmp = NULL; - tmp = camera_fixup_setparams(CAMERA_ID(device), params); - -#ifdef LOG_PARAMETERS - __android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, tmp); -#endif - - int ret = VENDOR_CALL(device, set_parameters, tmp); - return ret; -} - -char* camera_get_parameters(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return NULL; - - char* params = VENDOR_CALL(device, get_parameters); - -#ifdef LOG_PARAMETERS - __android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, params); -#endif - - char * tmp = camera_fixup_getparams(CAMERA_ID(device), params); - VENDOR_CALL(device, put_parameters, params); - params = tmp; - -#ifdef LOG_PARAMETERS - __android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, params); -#endif - - return params; -} - -static void camera_put_parameters(struct camera_device *device, char *params) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(params) - free(params); -} - -int camera_send_command(struct camera_device * device, - int32_t cmd, int32_t arg1, int32_t arg2) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, send_command, cmd, arg1, arg2); -} - -void camera_release(struct camera_device * device) -{ - LOGV("%s", __FUNCTION__); - LOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); - - if(!device) - return; - - VENDOR_CALL(device, release); -} - -int camera_dump(struct camera_device * device, int fd) -{ - if(!device) - return -EINVAL; - - return VENDOR_CALL(device, dump, fd); -} - -extern "C" void heaptracker_free_leaked_memory(void); - -int camera_device_close(hw_device_t* device) -{ - int ret = 0; - wrapper_camera_device_t *wrapper_dev = NULL; - - LOGV("%s", __FUNCTION__); - - android::Mutex::Autolock lock(gCameraWrapperLock); - - if (!device) { - ret = -EINVAL; - goto done; - } - - wrapper_dev = (wrapper_camera_device_t*) device; - - wrapper_dev->vendor->common.close((hw_device_t*)wrapper_dev->vendor); - if (wrapper_dev->base.ops) - free(wrapper_dev->base.ops); - free(wrapper_dev); -done: -#ifdef HEAPTRACKER - heaptracker_free_leaked_memory(); -#endif - return ret; -} - -/******************************************************************* - * implementation of camera_module functions - *******************************************************************/ - -/* open device handle to one of the cameras - * - * assume camera service will keep singleton of each camera - * so this function will always only be called once per camera instance - */ - -int camera_device_open(const hw_module_t* module, const char* name, - hw_device_t** device) -{ - int rv = 0; - int num_cameras = 0; - int cameraid; - wrapper_camera_device_t* camera_device = NULL; - camera_device_ops_t* camera_ops = NULL; - - android::Mutex::Autolock lock(gCameraWrapperLock); - - LOGV("camera_device open"); - - if (name != NULL) { - if (check_vendor_module()) - return -EINVAL; - - cameraid = atoi(name); - num_cameras = gVendorModule->get_number_of_cameras(); - - if(cameraid > num_cameras) - { - LOGE("camera service provided cameraid out of bounds, " - "cameraid = %d, num supported = %d", - cameraid, num_cameras); - rv = -EINVAL; - goto fail; - } - - camera_device = (wrapper_camera_device_t*)malloc(sizeof(*camera_device)); - if(!camera_device) - { - LOGE("camera_device allocation fail"); - rv = -ENOMEM; - goto fail; - } - memset(camera_device, 0, sizeof(*camera_device)); - camera_device->id = cameraid; - - if(rv = gVendorModule->common.methods->open((const hw_module_t*)gVendorModule, name, (hw_device_t**)&(camera_device->vendor))) - { - LOGE("vendor camera open fail"); - goto fail; - } - LOGV("%s: got vendor camera device 0x%08X", __FUNCTION__, (uintptr_t)(camera_device->vendor)); - - camera_ops = (camera_device_ops_t*)malloc(sizeof(*camera_ops)); - if(!camera_ops) - { - LOGE("camera_ops allocation fail"); - rv = -ENOMEM; - goto fail; - } - - memset(camera_ops, 0, sizeof(*camera_ops)); - - camera_device->base.common.tag = HARDWARE_DEVICE_TAG; - camera_device->base.common.version = 0; - camera_device->base.common.module = (hw_module_t *)(module); - camera_device->base.common.close = camera_device_close; - camera_device->base.ops = camera_ops; - - camera_ops->set_preview_window = camera_set_preview_window; - camera_ops->set_callbacks = camera_set_callbacks; - camera_ops->enable_msg_type = camera_enable_msg_type; - camera_ops->disable_msg_type = camera_disable_msg_type; - camera_ops->msg_type_enabled = camera_msg_type_enabled; - camera_ops->start_preview = camera_start_preview; - camera_ops->stop_preview = camera_stop_preview; - camera_ops->preview_enabled = camera_preview_enabled; - camera_ops->store_meta_data_in_buffers = camera_store_meta_data_in_buffers; - camera_ops->start_recording = camera_start_recording; - camera_ops->stop_recording = camera_stop_recording; - camera_ops->recording_enabled = camera_recording_enabled; - camera_ops->release_recording_frame = camera_release_recording_frame; - camera_ops->auto_focus = camera_auto_focus; - camera_ops->cancel_auto_focus = camera_cancel_auto_focus; - camera_ops->take_picture = camera_take_picture; - camera_ops->cancel_picture = camera_cancel_picture; - camera_ops->set_parameters = camera_set_parameters; - camera_ops->get_parameters = camera_get_parameters; - camera_ops->put_parameters = camera_put_parameters; - camera_ops->send_command = camera_send_command; - camera_ops->release = camera_release; - camera_ops->dump = camera_dump; - - *device = &camera_device->base.common; - } - - return rv; - -fail: - if(camera_device) { - free(camera_device); - camera_device = NULL; - } - if(camera_ops) { - free(camera_ops); - camera_ops = NULL; - } - *device = NULL; - return rv; -} - -int camera_get_number_of_cameras(void) -{ - LOGV("%s", __FUNCTION__); - if (check_vendor_module()) - return 0; - return gVendorModule->get_number_of_cameras(); -} - -int camera_get_camera_info(int camera_id, struct camera_info *info) -{ - LOGV("%s", __FUNCTION__); - if (check_vendor_module()) - return 0; - return gVendorModule->get_camera_info(camera_id, info); -} diff --git a/cm.dependencies b/cm.dependencies index 5acfbeb..bf2e154 100644 --- a/cm.dependencies +++ b/cm.dependencies @@ -1,14 +1,14 @@ [ { + "repository": "android_device_samsung_galaxys2-common", + "target_path": "device/samsung/galaxys2-common" + }, + { "repository": "android_kernel_samsung_smdk4210", "target_path": "kernel/samsung/smdk4210" }, { "repository": "android_packages_apps_SamsungServiceMode", "target_path": "packages/apps/SamsungServiceMode" - }, - { - "repository": "android_device_samsung_galaxys2", - "target_path": "device/samsung/galaxys2" } ] @@ -1,21 +1,36 @@ -## Specify phone tech before including full_phone
-$(call inherit-product, vendor/cm/config/gsm.mk)
-
-# Release name
-PRODUCT_RELEASE_NAME := N7000
-
-# Inherit some common CM stuff.
-$(call inherit-product, vendor/cm/config/common_full_phone.mk)
-
-# Inherit device configuration
-$(call inherit-product, device/samsung/n7000/full_n7000.mk)
-
-## Device identifier. This must come after all inclusions
-PRODUCT_DEVICE := n7000
-PRODUCT_NAME := cm_n7000
-PRODUCT_BRAND := Samsung
-PRODUCT_MODEL := GT-N7000
-
-#Set build fingerprint / ID / Prduct Name ect.
-PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=GT-N7000 TARGET_DEVICE=GT-N7000 BUILD_FINGERPRINT=samsung/GT-N7000/GT-N7000:4.0.3/IML74K/ZCLP6:user/release-keys PRIVATE_BUILD_DESC="GT-N7000-user 4.0.3 IML74K ZCLP6 release-keys"
-
+# +# 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. +# + +# Specify phone tech before including full_phone +$(call inherit-product, vendor/cm/config/gsm.mk) + +# Release name +PRODUCT_RELEASE_NAME := GT-N7000 + +# Inherit some common CM stuff. +$(call inherit-product, vendor/cm/config/common_full_phone.mk) + +# Inherit device configuration +$(call inherit-product, device/samsung/n7000/full_n7000.mk) + +# Device identifier. This must come after all inclusions +PRODUCT_DEVICE := n7000 +PRODUCT_NAME := cm_n7000 +PRODUCT_BRAND := Samsung +PRODUCT_MODEL := GT-N7000 + +# Set build fingerprint / ID / Prduct Name ect. +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=GT-N7000 TARGET_DEVICE=GT-N7000 BUILD_FINGERPRINT=samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XXLPQ:user/release-keys PRIVATE_BUILD_DESC="GT-I9100-user 4.0.3 IML74K XXLPQ release-keys" diff --git a/configs/asound.conf b/configs/asound.conf deleted file mode 100644 index 6144596..0000000 --- a/configs/asound.conf +++ /dev/null @@ -1,61 +0,0 @@ -# -# Copyright(c) 2010 Yamaha Corporation -# - -# ---------------------------------------- -# PCM Interface -# - -pcm.hifi { - type plug - slave.pcm { - type hw - card 0 - device 0 - format S16_LE - channels 2 - rate 44100 - } -} - -pcm.voice { - type plug - slave.pcm { - type hw - card 0 - device 1 - format S16_LE - channels 1 - rate 8000 - } -} - -pcm.bluetooth { - type plug - slave.pcm { - type hw - card 0 - device 2 - format S16_LE - channels 1 - rate 8000 - } -} - -# ---------------------------------------- -# Mixer Interface -# - -ctl.mc1n2 { - type hw - card 0 -} - -# ---------------------------------------- -# Hardware Dependant Interface -# - -hwdep.mc1n2 { - type hw - card 0 -} diff --git a/configs/bcmdhd.cal b/configs/bcmdhd.cal deleted file mode 100755 index 105088f..0000000 --- a/configs/bcmdhd.cal +++ /dev/null @@ -1,118 +0,0 @@ -manfid=0x2d0 -prodid=0x0532 -vendid=0x14e4 -devid=0x4360 -boardtype=0x0532 -boardrev=0x20 -boardflags=0x10080201 - -nocrc=1 -xtalfreq=37400 -xtalmode=0x20,0x4,0 -boardnum=22 -macaddr=00:90:4c:c5:12:38 -ag0=252 -ag1=252 -aa2g=1 -aa5g=1 -ccode=ALL - -#for BT-coexistence -btc_params80=0 -btc_params6=10 -btc_params8=10000 - -sd_gpout=0 -# sd_oobonly=1 -muxenab=0x10 - -# 2G PA param_B42R 110927 -pa0b0=0x12E4 -pa0b1=0xFE09 -pa0b2=0xFF9A -#pa0itssit=62 -rssismf2g=0xa -rssismc2g=0x3 -rssisav2g=0x7 - -# rssi params for 5GHz B42R_110803 -#rssismf5g=0x4 -rssismf5g=0xa -rssismc5g=0x7 -rssisav5g=0x1 -#PA parameters for lower band -pa1lob0=0x144F -pa1lob1=0xFD6B -pa1lob2=0xFF3B -#PA parameters for midband -pa1b0=0x139C -pa1b1=0xFD87 -pa1b2=0xFF4F -#PA parameters for high band -pa1hib0=0x12CA -pa1hib1=0xFD9A -pa1hib2=0xFF4E - -# 2G PA offset -maxp2ga0=64 -sromrev=3 -cckpo=0 -ofdm2gpo=0x66666666 -mcs2gpo0=0xaaaa -mcs2gpo1=0xaaaa - -# 5G PA offset -maxp5ga0=66 -maxp5gla0=66 -maxp5gha0=66 -ofdm5gpo=0x22222222 -ofdm5glpo=0x11111111 -ofdm5ghpo=0x22222222 -mcs5gpo0=0x6666 -mcs5gpo1=0x6666 -mcs5glpo0=0x5555 -mcs5glpo1=0x5555 -mcs5ghpo0=0x6666 -mcs5ghpo1=0x6666 - -cckPwrOffset=4 -cckdigfilttype=22 -ofdmdigfilttype=2 -extpagain5g=2 -#wl0id=0x431b - -# For 2GHz Tx EVM/SM -rfreg033=0x19 -rfreg033_cck=0x1d -pacalidx2g=65 -dacrate2g=160 -txalpfbyp2g=1 -bphyscale=17 - -# 5GHz LOFT and IQ CAL -txgaintbl5g=1 -txiqlopapu5g=1 -txiqlopag5g=0x10 -iqlocalidx5g=24 - -# 5GHz Noise CAL parameter -noise_cal_po_5g=5 -noise_cal_enable_5g=0 - -# 2GHz RxPER at low rates -noise_cal_ref_2g=56 -noise_cal_po_bias_2g=-4 -noise_cal_enable_2g=1 - -# Max input level on a-band -triso5g=9 - -# Tx power control, especially temp. -tssitime=1 - -#fc+1.7GHz Spur Elimination -loidacmode5g=1 - -swctrlmap_2g=0x84048404, 0x82028202, 0x84048404, 0x010202, 0x1ff -swctrlmap_5g=0xC040C040, 0xB030A020, 0xA020C040, 0x010A02, 0x2F8 - diff --git a/configs/egl.cfg b/configs/egl.cfg deleted file mode 100755 index 4515dfd..0000000 --- a/configs/egl.cfg +++ /dev/null @@ -1 +0,0 @@ -0 1 mali diff --git a/configs/gps.conf b/configs/gps.conf deleted file mode 100644 index 5f60d23..0000000 --- a/configs/gps.conf +++ /dev/null @@ -1,6 +0,0 @@ -NTP_SERVER=north-america.pool.ntp.org
-XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
-XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
-XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
-SUPL_HOST=supl.google.com
-SUPL_PORT=7276
diff --git a/configs/media_profiles.xml b/configs/media_profiles.xml deleted file mode 100644 index d627199..0000000 --- a/configs/media_profiles.xml +++ /dev/null @@ -1,497 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2010 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. ---> -<!DOCTYPE MediaSettings [ - <!ELEMENT MediaSettings (CamcorderProfiles, - EncoderOutputFileFormat+, - VideoEncoderCap+, - AudioEncoderCap+, - VideoDecoderCap, - AudioDecoderCap)> - <!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)> - <!ELEMENT EncoderProfile (Video, Audio)> - <!ATTLIST EncoderProfile quality (timelapse1080p|timelapse720p|timelapse480p|timelapsehigh|timelapselow|480p|qcif|high|low) #REQUIRED> - <!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED> - <!ATTLIST EncoderProfile duration (30|60) #REQUIRED> - <!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED> - <!ELEMENT Video EMPTY> - <!ATTLIST Video codec (h264|h263|m4v) #REQUIRED> - <!ATTLIST Video bitRate CDATA #REQUIRED> - <!ATTLIST Video width CDATA #REQUIRED> - <!ATTLIST Video height CDATA #REQUIRED> - <!ATTLIST Video frameRate CDATA #REQUIRED> - <!ELEMENT Audio EMPTY> - <!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED> - <!ATTLIST Audio bitRate CDATA #REQUIRED> - <!ATTLIST Audio sampleRate CDATA #REQUIRED> - <!ATTLIST Audio channels (1|2) #REQUIRED> - <!ELEMENT ImageEncoding EMPTY> - <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED> - <!ELEMENT ImageDecoding EMPTY> - <!ATTLIST ImageDecoding memCap CDATA #REQUIRED> - <!ELEMENT Camera EMPTY> - <!ATTLIST Camera previewFrameRate CDATA #REQUIRED> - <!ELEMENT EncoderOutputFileFormat EMPTY> - <!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED> - <!ELEMENT VideoEncoderCap EMPTY> - <!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED> - <!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED> - <!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED> - <!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED> - <!ELEMENT AudioEncoderCap EMPTY> - <!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED> - <!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED> - <!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED> - <!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED> - <!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED> - <!ELEMENT VideoDecoderCap EMPTY> - <!ATTLIST VideoDecoderCap name (wmv) #REQUIRED> - <!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED> - <!ELEMENT AudioDecoderCap EMPTY> - <!ATTLIST AudioDecoderCap name (wma) #REQUIRED> - <!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED> - <!ELEMENT VideoEditorCap EMPTY> - <!ATTLIST VideoEditorCap maxInputFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED> - <!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED> - <!ELEMENT ExportVideoProfile EMPTY> - <!ATTLIST ExportVideoProfile name (h264|h263|m4v) #REQUIRED> - <!ATTLIST ExportVideoProfile profile CDATA #REQUIRED> - <!ATTLIST ExportVideoProfile level CDATA #REQUIRED> -]> -<!-- - This file is used to declare the multimedia profiles and capabilities - on an android-powered device. ---> -<MediaSettings> - <!-- Each camcorder profile defines a set of predefined configuration parameters --> - <!-- Back Camera --> - <CamcorderProfiles cameraId="0"> - - <EncoderProfile quality="low" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="high" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="17000000" - width="1920" - height="1080" - frameRate="30" /> - - <Audio codec="aac" - bitRate="128000" - sampleRate="48000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="qcif" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="480p" fileFormat="mp4" duration="30"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="720p" fileFormat="mp4" duration="30"> - <Video codec="h264" - bitRate="16000000" - width="1280" - height="720" - frameRate="30" /> - - <Audio codec="aac" - bitRate="128000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="1080p" fileFormat="mp4" duration="30"> - <Video codec="h264" - bitRate="20000000" - width="1920" - height="1080" - frameRate="30" /> - - <Audio codec="aac" - bitRate="128000" - sampleRate="48000" - channels="2" /> - </EncoderProfile> - - <EncoderProfile quality="timelapselow" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapsehigh" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="17000000" - width="1920" - height="1080" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapseqcif" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapse480p" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapse720p" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="12000000" - width="1280" - height="720" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapse1080p" fileFormat="3gp" duration="30"> - <Video codec="h264" - bitRate="17000000" - width="1920" - height="1080" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <ImageEncoding quality="90" /> - <ImageEncoding quality="80" /> - <ImageEncoding quality="70" /> - <ImageDecoding memCap="20000000" /> - - </CamcorderProfiles> - - <!-- Front Camera --> - <CamcorderProfiles cameraId="1"> - - <EncoderProfile quality="low" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="high" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="qcif" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="480p" fileFormat="mp4" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapselow" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapsehigh" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapseqcif" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="384000" - width="176" - height="144" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="amrnb" - bitRate="12200" - sampleRate="8000" - channels="1" /> - </EncoderProfile> - - <EncoderProfile quality="timelapse480p" fileFormat="3gp" duration="15"> - <Video codec="h264" - bitRate="3078000" - width="640" - height="480" - frameRate="30" /> - - <!-- - The Audio part of the profile will not be used since time lapse mode - does not capture audio - --> - <Audio codec="aac" - bitRate="96000" - sampleRate="16000" - channels="1" /> - </EncoderProfile> - - <ImageEncoding quality="90" /> - <ImageEncoding quality="80" /> - <ImageEncoding quality="70" /> - <ImageDecoding memCap="20000000" /> - - </CamcorderProfiles> - - <EncoderOutputFileFormat name="3gp" /> - <EncoderOutputFileFormat name="mp4" /> - - <!-- - If a codec is not enabled, it is invisible to the applications - In other words, the applications won't be able to use the codec - or query the capabilities of the codec at all if it is disabled - --> - <VideoEncoderCap name="h264" enabled="true" - minBitRate="64000" maxBitRate="20000000" - minFrameWidth="176" maxFrameWidth="1920" - minFrameHeight="144" maxFrameHeight="1080" - minFrameRate="1" maxFrameRate="30" /> - - <VideoEncoderCap name="h263" enabled="true" - minBitRate="64000" maxBitRate="1000000" - minFrameWidth="176" maxFrameWidth="800" - minFrameHeight="144" maxFrameHeight="480" - minFrameRate="1" maxFrameRate="30" /> - - <VideoEncoderCap name="m4v" enabled="true" - minBitRate="64000" maxBitRate="20000000" - minFrameWidth="176" maxFrameWidth="1920" - minFrameHeight="144" maxFrameHeight="1080" - minFrameRate="1" maxFrameRate="30" /> - - <AudioEncoderCap name="aac" enabled="true" - minBitRate="8192" maxBitRate="196000" - minSampleRate="8000" maxSampleRate="48000" - minChannels="1" maxChannels="2" /> - - <AudioEncoderCap name="amrwb" enabled="true" - minBitRate="6600" maxBitRate="23050" - minSampleRate="16000" maxSampleRate="16000" - minChannels="1" maxChannels="1" /> - - <AudioEncoderCap name="amrnb" enabled="true" - minBitRate="5525" maxBitRate="12200" - minSampleRate="8000" maxSampleRate="8000" - minChannels="1" maxChannels="1" /> - - <!-- - FIXME: - We do not check decoder capabilities at present - At present, we only check whether windows media is visible - for TEST applications. For other applications, we do - not perform any checks at all. - --> - <VideoDecoderCap name="wmv" enabled="false"/> - <AudioDecoderCap name="wma" enabled="false"/> - - <!-- - The VideoEditor Capability configuration: - - maxInputFrameWidth: maximum video width of imported video clip. - - maxInputFrameHeight: maximum video height of imported video clip. - - maxOutputFrameWidth: maximum video width of exported video clip. - - maxOutputFrameHeight: maximum video height of exported video clip. - - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder, - used to limit the amount of memory for prefetched YUV frames. - For this platform, it allows maximum ~1MB(~0.1MB per QVGA frame x 10 - frames) memory. - --> - - <VideoEditorCap maxInputFrameWidth="1920" - maxInputFrameHeight="1080" maxOutputFrameWidth="1280" - maxOutputFrameHeight="720" maxPrefetchYUVFrames="5"/> - <!-- - The VideoEditor Export codec profile and level values - correspond to the values in OMX_Video.h. - E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline - and level 256 means OMX_VIDEO_AVCLevel3. - Please note that the values are in decimal. - These values are for video encoder. - --> - <!-- - Codec = h.264, Baseline profile, level 3.1 - --> - <ExportVideoProfile name="h264" profile= "1" level="512"/> - <!-- - Codec = h.263, Baseline profile, level 0 - --> - <ExportVideoProfile name="h263" profile= "1" level="1"/> - <!-- - Codec = mpeg4, Simple profile, level 3 - --> - <ExportVideoProfile name="m4v" profile= "1" level="16"/> -</MediaSettings> diff --git a/configs/vold.fstab b/configs/vold.fstab deleted file mode 100644 index 13658ce..0000000 --- a/configs/vold.fstab +++ /dev/null @@ -1,22 +0,0 @@ -## Vold 2.0 Generic fstab -## - San Mehat (san@android.com) -## - -####################### -## Regular device mount -## -## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...> -## label - Label for the volume -## mount_point - Where the volume will be mounted -## part - Partition # (1 based), or 'auto' for first usable partition. -## <sysfs_path> - List of sysfs paths to source devices -###################### - -# internal sdcard -dev_mount emmc /mnt/emmc 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 nonremovable,encryptable - -# external sdcard -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 diff --git a/configs/wpa_supplicant.conf b/configs/wpa_supplicant.conf deleted file mode 100644 index ca9c83c..0000000 --- a/configs/wpa_supplicant.conf +++ /dev/null @@ -1,9 +0,0 @@ -update_config=1 -ctrl_interface=wlan0 -eapol_version=1 -ap_scan=1 -fast_reauth=1 -p2p_listen_reg_class=81 -p2p_listen_channel=1 -p2p_oper_reg_class=81 -p2p_oper_channel=11 diff --git a/extract-files.sh b/extract-files.sh deleted file mode 100755 index 1ce1fdd..0000000 --- a/extract-files.sh +++ /dev/null @@ -1,288 +0,0 @@ -#!/bin/sh - -# 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. - -# This file is generated by device/common/generate-blob-scripts.sh - DO NOT EDIT - -DEVICE=n7000 -MANUFACTURER=samsung - -mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/ -mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/proprietary - -# RIL -adb pull /system/bin/rild ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/rild -adb pull /system/lib/libril.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libril.so -adb pull /system/lib/libsec-ril.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libsec-ril.so -adb pull /system/lib/libsecril-client.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libsecril-client.so - -# AUDIO -adb pull /system/lib/hw/alsa.default.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/alsa.default.so -adb pull /system/lib/hw/audio.a2dp.default.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/audio.a2dp.default.so -adb pull /system/lib/hw/audio.primary.exynos4.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/audio.primary.exynos4.so -adb pull /system/lib/hw/audio_policy.exynos4.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/audio_policy.exynos4.so -adb pull /system/lib/lib_Samsung_Acoustic_Module_Llite.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib_Samsung_Acoustic_Module_Llite.so -adb pull /system/lib/lib_Samsung_Resampler.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib_Samsung_Resampler.so -adb pull /system/lib/lib_Samsung_Sound_Booster.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/lib_Samsung_Sound_Booster.so -adb pull /system/lib/libasound.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libasound.so -adb pull /system/lib/liblvvefs.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/liblvvefs.so -adb pull /system/lib/libmediayamaha.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libmediayamaha.so -adb pull /system/lib/libmediayamaha_jni.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libmediayamaha_jni.so -adb pull /system/lib/libmediayamaha_tuning_jni.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libmediayamaha_tuning_jni.so -adb pull /system/lib/libmediayamahaservice.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libmediayamahaservice.so -adb pull /system/lib/libsamsungAcousticeq.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libsamsungAcousticeq.so -adb pull /system/lib/libsamsungSoundbooster.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libsamsungSoundbooster.so -adb pull /system/lib/libyamahasrc.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libyamahasrc.so -adb pull /system/etc/audio/LVVEFS_Rx_Configuration.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/LVVEFS_Rx_Configuration.txt -adb pull /system/etc/audio/LVVEFS_Tx_Configuration.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/LVVEFS_Tx_Configuration.txt -adb pull /system/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Rx_ControlParams_EARPIECE_WIDEBAND.txt -adb pull /system/etc/audio/Rx_ControlParams_SPEAKER_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Rx_ControlParams_SPEAKER_WIDEBAND.txt -adb pull /system/etc/audio/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt -adb pull /system/etc/audio/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt -adb pull /system/etc/audio/Tx_ControlParams_EARPIECE_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Tx_ControlParams_EARPIECE_WIDEBAND.txt -adb pull /system/etc/audio/Tx_ControlParams_SPEAKER_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Tx_ControlParams_SPEAKER_WIDEBAND.txt -adb pull /system/etc/audio/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt -adb pull /system/etc/audio/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt -adb pull /system/usr/share/alsa/alsa.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/alsa.conf -adb pull /system/usr/share/alsa/cards/aliases.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/aliases.conf -adb pull /system/usr/share/alsa/pcm/center_lfe.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/center_lfe.conf -adb pull /system/usr/share/alsa/pcm/default.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/default.conf -adb pull /system/usr/share/alsa/pcm/dmix.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/dmix.conf -adb pull /system/usr/share/alsa/pcm/dpl.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/dpl.conf -adb pull /system/usr/share/alsa/pcm/dsnoop.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/dsnoop.conf -adb pull /system/usr/share/alsa/pcm/front.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/front.conf -adb pull /system/usr/share/alsa/pcm/iec958.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/iec958.conf -adb pull /system/usr/share/alsa/pcm/modem.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/modem.conf -adb pull /system/usr/share/alsa/pcm/rear.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/rear.conf -adb pull /system/usr/share/alsa/pcm/side.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/side.conf -adb pull /system/usr/share/alsa/pcm/surround40.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/surround40.conf -adb pull /system/usr/share/alsa/pcm/surround41.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/surround41.conf -adb pull /system/usr/share/alsa/pcm/surround50.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/surround50.conf -adb pull /system/usr/share/alsa/pcm/surround51.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/surround51.conf -adb pull /system/usr/share/alsa/pcm/surround71.conf ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/surround71.conf -adb pull /system/bin/alsa_amixer ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/alsa_amixer -adb pull /system/bin/alsa_aplay ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/alsa_aplay -adb pull /system/bin/alsa_ctl ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/alsa_ctl - -# EGL -adb pull /system/lib/hw/gralloc.exynos4.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/gralloc.exynos4.so -adb pull /system/lib/egl/libEGL_mali.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libEGL_mali.so -adb pull /system/lib/egl/libGLES_android.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libGLES_android.so -adb pull /system/lib/egl/libGLESv1_CM_mali.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libGLESv1_CM_mali.so -adb pull /system/lib/egl/libGLESv2_mali.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libGLESv2_mali.so -adb pull /system/lib/libGLESv1_CM.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libGLESv1_CM.so -adb pull /system/lib/libGLESv2.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libGLESv2.so -adb pull /system/lib/libGLESv2_dbg.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libGLESv2_dbg.so -adb pull /system/lib/libion.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libion.so -adb pull /system/lib/libMali.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libMali.so -adb pull /system/lib/libUMP.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libUMP.so - -# HWCOMPOSER -adb pull /system/lib/hw/hwcomposer.exynos4.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/hwcomposer.exynos4.so -adb pull /system/bin/bintvoutservice ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/bintvoutservice -adb pull /system/lib/libcec.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libcec.so -adb pull /system/lib/libddc.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libddc.so -adb pull /system/lib/libedid.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libedid.so -adb pull /system/lib/libfimc.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libfimc.so -adb pull /system/lib/libhdmi.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libhdmi.so -adb pull /system/lib/libhdmiclient.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libhdmiclient.so -adb pull /system/lib/libTVOut.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libTVOut.so -adb pull /system/lib/libtvout_jni.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libtvout_jni.so -adb pull /system/lib/libtvoutinterface.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libtvoutinterface.so -adb pull /system/lib/libtvoutservice.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libtvoutservice.so - -# CAMERA -adb pull /system/lib/hw/vendor-camera.exynos4.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/camera.exynos4.so -adb pull /system/lib/libcaps.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libcaps.so -adb pull /system/cameradata/datapattern_420sp.yuv ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/datapattern_420sp.yuv -adb pull /system/cameradata/datapattern_front_420sp.yuv ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/datapattern_front_420sp.yuv - -# SENSORS -adb pull /system/lib/libakm.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/libakm.so -adb pull /system/lib/hw/sensors.exynos4.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/sensors.exynos4.so - -# GPS -adb pull /system/lib/hw/gps.exynos4.so ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/gps.exynos4.so -adb pull /system/bin/gpsd ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/gpsd -adb pull /system/bin/gps.cer ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/gps.cer -adb pull /system/etc/gps.xml ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/gps.xml - -# WIFI -adb pull /system/bin/bcm4330B1.hcd ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/bcm4330B1.hcd -adb pull /system/etc/wifi/bcm4330_apsta.bin ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/bcm4330_apsta.bin -adb pull /system/etc/wifi/bcm4330_mfg.bin ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/bcm4330_mfg.bin -adb pull /system/etc/wifi/bcm4330_p2p.bin ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/bcm4330_p2p.bin -adb pull /system/etc/wifi/bcm4330_sta.bin ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/bcm4330_sta.bin -adb pull /system/etc/wifi/nvram_mfg.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/nvram_mfg.txt -adb pull /system/etc/wifi/nvram_mfg.txt_murata ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/nvram_mfg.txt_murata -adb pull /system/etc/wifi/nvram_mfg.txt_semcove ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/nvram_mfg.txt_semcove -adb pull /system/etc/wifi/nvram_net.txt ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/nvram_net.txt -adb pull /system/etc/wifi/nvram_net.txt_murata ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/nvram_net.txt_murata -adb pull /system/etc/wifi/nvram_net.txt_semcove ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/nvram_net.txt_semcove - -# MFC Firmware -adb pull /system/vendor/firmware/mfc_fw.bin ../../../vendor/$MANUFACTURER/$DEVICE/proprietary/mfc_fw.bin - - -(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/$DEVICE-vendor-blobs.mk -# 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. - -# This file is generated by device/__MANUFACTURER__/__DEVICE__/extract-files.sh - DO NOT EDIT - -# Prebuilt libraries that are needed to build open-source libraries -PRODUCT_COPY_FILES := \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libril.so:obj/lib/libril.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libsecril-client.so:obj/lib/libsecril-client.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libmediayamahaservice.so:obj/lib/libmediayamahaservice.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libTVOut.so:obj/lib/libTVOut.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libfimc.so:obj/lib/libfimc.so - -# RIL -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/rild:system/bin/rild \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libril.so:system/lib/libril.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libsec-ril.so:system/lib/libsec-ril.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libsecril-client.so:system/lib/libsecril-client.so - -# AUDIO -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/alsa_amixer:system/bin/alsa_amixer \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/alsa_aplay:system/bin/alsa_aplay \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/alsa_ctl:system/bin/alsa_ctl \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/alsa.default.so:system/lib/hw/alsa.default.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/audio.a2dp.default.so:system/lib/hw/audio.a2dp.default.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/audio.primary.exynos4.so:system/lib/hw/audio.primary.exynos4.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/audio_policy.exynos4.so:system/lib/hw/audio_policy.exynos4.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/lib_Samsung_Acoustic_Module_Llite.so:system/lib/lib_Samsung_Acoustic_Module_Llite.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/lib_Samsung_Resampler.so:system/lib/lib_Samsung_Resampler.so \ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/lib_Samsung_Sound_Booster.so:system/lib/lib_Samsung_Sound_Booster.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libasound.so:system/lib/libasound.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/liblvvefs.so:system/lib/liblvvefs.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libmediayamaha.so:system/lib/libmediayamaha.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libmediayamaha_jni.so:system/lib/libmediayamaha_jni.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libmediayamaha_tuning_jni.so:system/lib/libmediayamaha_tuning_jni.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libmediayamahaservice.so:system/lib/libmediayamahaservice.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libsamsungAcousticeq.so:system/lib/libsamsungAcousticeq.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libsamsungSoundbooster.so:system/lib/libsamsungSoundbooster.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libyamahasrc.so:system/lib/libyamahasrc.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/LVVEFS_Rx_Configuration.txt:system/etc/audio/LVVEFS_Rx_Configuration.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/LVVEFS_Tx_Configuration.txt:system/etc/audio/LVVEFS_Tx_Configuration.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Rx_ControlParams_EARPIECE_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Rx_ControlParams_SPEAKER_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_SPEAKER_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Tx_ControlParams_EARPIECE_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_EARPIECE_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Tx_ControlParams_SPEAKER_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_SPEAKER_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/alsa.conf:system/usr/share/alsa/alsa.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/aliases.conf:system/usr/share/alsa/cards/aliases.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/center_lfe.conf:system/usr/share/alsa/pcm/center_lfe.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/default.conf:system/usr/share/alsa/pcm/default.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/dmix.conf:system/usr/share/alsa/pcm/dmix.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/dpl.conf:system/usr/share/alsa/pcm/dpl.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/dsnoop.conf:system/usr/share/alsa/pcm/dsnoop.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/front.conf:system/usr/share/alsa/pcm/front.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/iec958.conf:system/usr/share/alsa/pcm/iec958.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/modem.conf:system/usr/share/alsa/pcm/modem.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/rear.conf:system/usr/share/alsa/pcm/rear.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/side.conf:system/usr/share/alsa/pcm/side.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/surround40.conf:system/usr/share/alsa/pcm/surround40.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/surround41.conf:system/usr/share/alsa/pcm/surround41.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/surround50.conf:system/usr/share/alsa/pcm/surround50.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/surround51.conf:system/usr/share/alsa/pcm/surround51.conf \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/surround71.conf:system/usr/share/alsa/pcm/surround71.conf - -# EGL -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/gralloc.exynos4.so:system/lib/hw/gralloc.exynos4.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libEGL_mali.so:system/lib/egl/libEGL_mali.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libGLES_android.so:system/lib/egl/libGLES_android.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libGLESv1_CM_mali.so:system/lib/egl/libGLESv1_CM_mali.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libGLESv2_mali.so:system/lib/egl/libGLESv2_mali.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libGLESv1_CM.so:system/lib/libGLESv1_CM.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libGLESv2.so:system/lib/libGLESv2.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libGLESv2_dbg.so:system/lib/libGLESv2_dbg.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libion.so:system/lib/libion.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libMali.so:system/lib/libMali.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libUMP.so:system/lib/libUMP.so - -# HWCOMPOSER -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/hwcomposer.exynos4.so:system/lib/hw/hwcomposer.exynos4.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/bintvoutservice:system/bin/bintvoutservice \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libcec.so:system/lib/libcec.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libddc.so:system/lib/libddc.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libedid.so:system/lib/libedid.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libfimc.so:system/lib/libfimc.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libhdmi.so:system/lib/libhdmi.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libhdmiclient.so:system/lib/libhdmiclient.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libTVOut.so:system/lib/libTVOut.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libtvout_jni.so:system/lib/libtvout_jni.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libtvoutinterface.so:system/lib/libtvoutinterface.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libtvoutservice.so:system/lib/libtvoutservice.so - -# CAMERA -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/camera.exynos4.so:system/lib/hw/vendor-camera.exynos4.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libcaps.so:system/lib/libcaps.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/datapattern_420sp.yuv:system/cameradata/datapattern_420sp.yuv \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/datapattern_front_420sp.yuv:system/cameradata/datapattern_front_420sp.yuv - -# SENSORS -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/libakm.so:system/lib/libakm.so \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/sensors.exynos4.so:system/lib/hw/sensors.exynos4.so - -# GPS -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/gpsd:system/bin/gpsd \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/gps.exynos4.so:system/lib/hw/gps.exynos4.so\\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/gps.cer:system/bin/gps.cer \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/gps.xml:system/etc/gps.xml \\ - -# WIFI -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/bcm4330B1.hcd:system/bin/bcm4330B1.hcd \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/bcm4330_apsta.bin:system/etc/wifi/bcm4330_apsta.bin \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/bcm4330_mfg.bin:system/etc/wifi/bcm4330_mfg.bin \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/bcm4330_p2p.bin:system/etc/wifi/bcm4330_p2p.bin \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/bcm4330_sta.bin:system/etc/wifi/bcm4330_sta.bin \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/nvram_mfg.txt:system/etc/wifi/nvram_mfg.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/nvram_mfg.txt_murata:system/etc/wifi/nvram_mfg.txt_murata \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/nvram_mfg.txt_semcove:system/etc/wifi/nvram_mfg.txt_semcove \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/nvram_net.txt:system/etc/wifi/nvram_net.txt \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/nvram_net.txt_murata:system/etc/wifi/nvram_net.txt_murata \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/nvram_net.txt_semcove:system/etc/wifi/nvram_net.txt_semcove \\ - -# MFC Firmware -PRODUCT_COPY_FILES += \\ - vendor/__MANUFACTURER__/__DEVICE__/proprietary/mfc_fw.bin:system/vendor/firmware/mfc_fw.bin - -EOF - -./setup-makefiles.sh diff --git a/full_n7000.mk b/full_n7000.mk index fce00f8..37ddff8 100755..100644 --- a/full_n7000.mk +++ b/full_n7000.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2009 The Android Open Source Project +# Copyright (C) 2012 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. @@ -14,15 +14,16 @@ # # This file is the build configuration for a full Android -# build for crespo hardware. This cleanly combines a set of +# build for toro hardware. This cleanly combines a set of # device-specific aspects (drivers) with a device-agnostic -# product configuration (apps). +# product configuration (apps). Except for a few implementation +# details, it only fundamentally contains two inherit-product +# lines, full and toro, hence its name. # # Inherit from those products. Most specific first. +$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) -#$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) -#$(call inherit-product, $(SRC_TARGET_DIR)/product/full.mk) $(call inherit-product, device/samsung/n7000/n7000.mk) # Discard inherited values and use our own instead. @@ -31,3 +32,9 @@ PRODUCT_DEVICE := n7000 PRODUCT_BRAND := samsung PRODUCT_MANUFACTURER := samsung PRODUCT_MODEL := GT-N7000 + +# This device is xhdpi. +PRODUCT_AAPT_CONFIG := normal xhdpi +PRODUCT_AAPT_PREF_CONFIG := xhdpi +PRODUCT_LOCALES += xhdpi + diff --git a/gpswrapper/Android.mk b/gpswrapper/Android.mk deleted file mode 100755 index e0b4e2b..0000000 --- a/gpswrapper/Android.mk +++ /dev/null @@ -1,21 +0,0 @@ -LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_MODULE := gps.$(TARGET_BOARD_PLATFORM)
-
-LOCAL_SHARED_LIBRARIES:= \
- liblog \
- libdl
-
-LOCAL_SRC_FILES += \
- gps.c
-
-LOCAL_CFLAGS += \
- -fno-short-enums
-
-LOCAL_PRELINK_MODULE := false
-LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
-
-include $(BUILD_SHARED_LIBRARY)
\ No newline at end of file diff --git a/gpswrapper/MODULE_LICENSE_APACHE2 b/gpswrapper/MODULE_LICENSE_APACHE2 deleted file mode 100755 index 0519ecb..0000000 --- a/gpswrapper/MODULE_LICENSE_APACHE2 +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/gpswrapper/gps.c b/gpswrapper/gps.c deleted file mode 100755 index 699dc93..0000000 --- a/gpswrapper/gps.c +++ /dev/null @@ -1,203 +0,0 @@ -/******************************************************************************
- * GPS HAL wrapper
- * wrapps around Samsung GPS Libary and replaces a faulty pointer to
- * a faulty function from Samsung that will cause the system_server
- * to crash.
- *
- * Copyright 2010 - Kolja Dummann
- *
- * 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.
- *
- ******************************************************************************/
-
-#include <hardware/hardware.h>
-#include <hardware/gps.h>
-#include <errno.h>
-#include <dlfcn.h>
-
-//#define LOG_NDEBUG 0
-
-#include <stdlib.h>
-#define LOG_TAG "gps-wrapper"
-#include <utils/Log.h>
-
-#define ORIGINAL_HAL_PATH "/system/lib/hw/vendor-gps.exynos4.so"
-
-static const AGpsRilInterface* oldAGPSRIL = NULL;
-static AGpsRilInterface newAGPSRIL;
-
-static const GpsInterface* originalGpsInterface = NULL;
-static GpsInterface newGpsInterface;
-
-/**
- * Load the file defined by the variant and if successful
- * return the dlopen handle and the hmi.
- * @return 0 = success, !0 = failure.
- */
-static int load(const char *id,
- const char *path,
- const struct hw_module_t **pHmi)
-{
- int status;
- void *handle;
- struct hw_module_t *hmi;
-
- /*
- * load the symbols resolving undefined symbols before
- * dlopen returns. Since RTLD_GLOBAL is not or'd in with
- * RTLD_NOW the external symbols will not be global
- */
- handle = dlopen(path, RTLD_NOW);
- if (handle == NULL) {
- char const *err_str = dlerror();
- LOGE("load: module=%s\n%s", path, err_str?err_str:"unknown");
- status = -EINVAL;
- goto done;
- }
-
- /* Get the address of the struct hal_module_info. */
- const char *sym = HAL_MODULE_INFO_SYM_AS_STR;
- hmi = (struct hw_module_t *)dlsym(handle, sym);
- if (hmi == NULL) {
- LOGE("load: couldn't find symbol %s", sym);
- status = -EINVAL;
- goto done;
- }
-
- /* Check that the id matches */
- if (strcmp(id, hmi->id) != 0) {
- LOGE("load: id=%s != hmi->id=%s", id, hmi->id);
- status = -EINVAL;
- goto done;
- }
-
- hmi->dso = handle;
-
- /* success */
- status = 0;
-
- done:
- if (status != 0) {
- hmi = NULL;
- if (handle != NULL) {
- dlclose(handle);
- handle = NULL;
- }
- } else {
- LOGV("loaded HAL id=%s path=%s hmi=%p handle=%p",
- id, path, *pHmi, handle);
- }
-
- *pHmi = hmi;
-
- return status;
-}
-
-static void update_network_state_wrapper(int connected, int type, int roaming, const char* extra_info)
-{
- LOGI("%s was called and saved your from a faulty implementation ;-)", __func__);
-}
-
-static const void* wrapper_get_extension(const char* name)
-{
- LOGV("%s was called", __func__);
-
- if (!strcmp(name, AGPS_RIL_INTERFACE) && (oldAGPSRIL = originalGpsInterface->get_extension(name)))
- {
- LOGV("%s AGPS_RIL_INTERFACE extension requested", __func__);
- /* use a wrapper to avoid calling samsungs faulty implemetation */
- newAGPSRIL.size = sizeof(AGpsRilInterface);
- newAGPSRIL.init = oldAGPSRIL->init;
- newAGPSRIL.set_ref_location = oldAGPSRIL->set_ref_location;
- newAGPSRIL.set_set_id = oldAGPSRIL->set_set_id;
- newAGPSRIL.ni_message = oldAGPSRIL->ni_message;
- LOGV("%s setting update_network_state_wrapper", __func__);
- newAGPSRIL.update_network_state = update_network_state_wrapper;
- return &newAGPSRIL;
- }
- return originalGpsInterface->get_extension(name);
-}
-
-/* HAL Methods */
-const GpsInterface* gps_get_gps_interface(struct gps_device_t* dev)
-{
- hw_module_t* module;
- int err;
-
- LOGV("%s was called", __func__);
-
- err = load(GPS_HARDWARE_MODULE_ID, ORIGINAL_HAL_PATH, (hw_module_t const**)&module);
-
- if (err == 0) {
- LOGV("%s vendor lib loaded", __func__);
- hw_device_t* device;
- struct gps_device_t *gps_device;
- err = module->methods->open(module, GPS_HARDWARE_MODULE_ID, &device);
- if (err == 0) {
- LOGV("%s got gps device", __func__);
- gps_device = (struct gps_device_t *)device;
- originalGpsInterface = gps_device->get_gps_interface(gps_device);
- LOGV("%s device set", __func__);
- }
- }
-
- if(originalGpsInterface)
- {
- LOGV("%s exposing callbacks", __func__);
- newGpsInterface.size = sizeof(GpsInterface);
- newGpsInterface.init = originalGpsInterface->init;
- newGpsInterface.start = originalGpsInterface->start;
- newGpsInterface.stop = originalGpsInterface->stop;
- newGpsInterface.cleanup = originalGpsInterface->cleanup;
- newGpsInterface.inject_time = originalGpsInterface->inject_time;
- newGpsInterface.inject_location = originalGpsInterface->inject_location;
- newGpsInterface.delete_aiding_data = originalGpsInterface->delete_aiding_data;
- newGpsInterface.set_position_mode = originalGpsInterface->set_position_mode;
- LOGV("%s setting extension wrapper", __func__);
- newGpsInterface.get_extension = wrapper_get_extension;
-
- }
- LOGV("%s done", __func__);
- return &newGpsInterface;
-}
-
-static int open_gps(const struct hw_module_t* module, char const* name,
- struct hw_device_t** device)
-{
- struct gps_device_t *dev = malloc(sizeof(struct gps_device_t));
- memset(dev, 0, sizeof(*dev));
-
- LOGV("%s was called", __func__);
-
- dev->common.tag = HARDWARE_DEVICE_TAG;
- dev->common.version = 0;
- dev->common.module = (struct hw_module_t*)module;
- dev->get_gps_interface = gps_get_gps_interface;
-
- *device = (struct hw_device_t*)dev;
- return 0;
-}
-
-static struct hw_module_methods_t gps_module_methods = {
- .open = open_gps
-};
-
-const struct hw_module_t HAL_MODULE_INFO_SYM = {
- .tag = HARDWARE_MODULE_TAG,
- .version_major = 1,
- .version_minor = 0,
- .id = GPS_HARDWARE_MODULE_ID,
- .name = "GPS HAL Wrapper Module",
- .author = "Kolja Dummann",
- .methods = &gps_module_methods,
-};
\ No newline at end of file diff --git a/init.smdk4210.rc b/init.smdk4210.rc deleted file mode 100644 index dc48af8..0000000 --- a/init.smdk4210.rc +++ /dev/null @@ -1,382 +0,0 @@ -import init.smdk4210.usb.rc - -on early-init - export SECONDARY_STORAGE /mnt/emmc - export EXTERNAL_STORAGE /mnt/sdcard - mkdir /mnt 0775 system system - mkdir /mnt/sdcard 0775 system system - mkdir /mnt/emmc 0775 system system - mkdir /mnt/usbdisk 0775 system system - mkdir /efs 0771 radio system - mkdir /preload 0771 system system - mkdir /mnt/.lfs 0755 root root - - # for backwards compatibility - symlink /mnt/sdcard /sdcard - symlink /mnt/emmc /emmc - -# Disable CFQ slice idle delay - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 - -# FIXME: permissions for tvout - chmod 0777 /dev/graphics/fb0 - chmod 0777 /dev/graphics/fb10 - chmod 0777 /dev/graphics/fb11 - chown media graphics /sys/class/switch/hdmi - chmod 0777 /sys/class/switch/hdmi - -# FIXME: permission for HDMI audio path - chown media audio /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext - chmod 0777 /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext - -on fs -# mount ext4 partitions - mount ext4 /dev/block/mmcblk0p9 /system noatime wait ro - mount ext4 /dev/block/mmcblk0p7 /cache nosuid nodev noatime wait - mount ext4 /dev/block/mmcblk0p10 /data nosuid nodev noatime wait noauto_da_alloc - mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait - - mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait - mkdir /efs/bluetooth - mkdir /efs/wifi - chown radio system /efs/bluetooth - chown radio system /efs/wifi - chmod 0775 /efs/bluetooth - chmod 0775 /efs/wifi - - mkdir /data/misc/vpn/profiles 0770 system system - mkdir /data/misc/radio 0775 radio system - chmod 0770 /data/misc/wifi - -on post-fs-data -# insmod kernel modules - insmod /system/lib/modules/Si4709_driver.ko -# insmod /lib/modules/j4fs.ko - -# mount param.lfs -# mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs - -# GPS - chown root system /dev/ttySAC1 - chmod 0660 /dev/ttySAC1 - chown root system /sys/class/sec/gps/GPS_PWR_EN/value - chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value - chown root system /sys/class/sec/gps/GPS_nRST/value - chmod 0664 /sys/class/sec/gps/GPS_nRST/value - mkdir /data/gps 771 system system - chown system system /data/gps - - # give system access to wpa_supplicant.conf for backup and restore - mkdir /data/misc/wifi 0770 wifi wifi - chmod 0770 /data/misc/wifi - chmod 0660 /data/misc/wifi/wpa_supplicant.conf - mkdir /data/misc/wifi/sockets 0770 wifi wifi - mkdir /data/misc/dhcp 0770 dhcp dhcp - chown dhcp dhcp /data/misc/dhcp - -#DRM directory creation - mkdir /system/etc/security/.drm 0775 - chown root root /system/etc/security/.drm - chmod 0775 /system/etc/security/.drm - - # Added for Playready DRM Support - mkdir /data/data/.drm 0775 - chown drm system /data/data/.drm - chmod 0775 /data/data/.drm - mkdir /data/data/.drm/.playready 0775 - chown drm system /data/data/.drm/.playready - chmod 0775 /data/data/.drm/.playready - - #Added drm folder to copy drm plugins - mkdir /system/lib/drm 0775 - chown root root /system/lib/drm - chmod 0775 /system/lib/drm - - # DivX DRM - mkdir /efs/.files 0775 - mkdir /efs/.files/.dx1 0775 - mkdir /efs/.files/.dm33 0775 - mkdir /efs/.files/.mp301 0775 - chown media system /efs/.files/.dx1 - chown media system /efs/.files/.dm33 - chown media system /efs/.files/.mp301 - chmod 0775 /efs/.files/.dx1 - chmod 0775 /efs/.files/.dm33 - chmod 0775 /efs/.files/.mp301 - -# MTP Device permission. - chmod 0660 /dev/usb_mtp_gadget - chown system system /dev/usb_mtp_gadget - -# terminal mode - chmod 0660 /sys/class/android_usb/android0/terminal_version - chown system system /sys/class/android_usb/android0/terminal_version - -# NFC - setprop ro.nfc.port "I2C" - chmod 0600 /dev/pn544 - chown nfc nfc /dev/pn544 - -# setup for alsa snd device - chmod 0770 /dev/snd/pcmC0D0c - chmod 0770 /dev/snd/pcmC0D0p - chmod 0770 /dev/snd/controlC0 - chmod 0770 /dev/snd/timer - chmod 0770 /dev/snd/hwC0D0 - - # create log system - mkdir /data/log 0775 system log - chown system log /data/log - - chmod 0775 /data/log - chmod 0775 /data/anr - - chmod 0662 /dev/log/radio - chmod 0662 /dev/log/main - chmod 0662 /dev/log/event - -#panorama directory creation - mkdir /data/pxtmpdir 0775 - chown system system /data/pxtmpdir - chmod 0775 /data/pxtmpdir - - # permission for HDMI audio path - chown media audio /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext - -# Permissions for gpio_keys. - chown system radio /sys/class/sec/sec_key/wakeup_keys - write /sys/class/sec/sec_key/wakeup_keys 102,116 - -# Add permission for ATM. 2010.03.20 - chown system radio /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_read_soc - chown system radio /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_lpm_state - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/fg_psoc - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/system_rev - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_current_adc - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_test_value - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_spec - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_check - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_full_check - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_type - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/mp3 - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/video - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_lp_charging - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/charging_source - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_avg - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_vfocv - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_soc - chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_vol - - chown system system /sys/class/backlight/panel/brightness - chown system system /sys/class/power_supply/battery/temp - -# Permissions for input devices - chown system radio /sys/devices/virtual/sec/sec_key/sec_key_pressed - - chown system radio /sys/devices/virtual/sec/sec_touchkey/force_disable - chown system radio /sys/devices/virtual/sec/sec_touchkey/recommended_version - chown system radio /sys/devices/virtual/sec/sec_touchkey/touch_sensitivity - chown system radio /sys/devices/virtual/sec/sec_touchkey/brightness - chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness - chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_back - chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_menu - chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_panel - chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_phone - chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update_status - chown system radio /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update - chown system radio /sys/devices/virtual/sec/sec_touchkey/updated_version - chown system radio /sys/devices/virtual/sec/sec_touchkey/led_timeout - - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_firm_version - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_threshould - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_all_delta - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_all_refer - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta4 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer4 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta3 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer3 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta2 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer2 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta1 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer1 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_delta0 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_refer0 - chown system radio /sys/devices/virtual/sec/tsp_noise_test/disp_all_deltadata - chown system radio /sys/devices/virtual/sec/tsp_noise_test/disp_all_refdata - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_module_off - chown system radio /sys/devices/virtual/sec/tsp_noise_test/set_module_on - - chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_panel - chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_version_phone - chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update_status - chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_firm_update - chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_threshold - chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_config_version - chown system radio /sys/devices/virtual/sec/sec_touchscreen/tsp_touchtype - -# Permissions for bluetooth - setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" - chown bluetooth bluetooth ro.bt.bdaddr_path - chown bluetooth bluetooth /dev/ttySAC0 - chmod 0600 /dev/ttySAC0 - chmod 0660 /sys/class/rfkill/rfkill0/state - chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state - chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type - -# Vibetonz - chmod 0660 /dev/tspdrv - chown root shell /dev/tspdrv - chmod 0660 /sys/vibrator/pwm_val - chown system system /sys/vibrator/pwm_val - -# Permissions for LCD - chown system radio /sys/class/lcd/panel/lcd_power - chown system radio /sys/class/lcd/panel/lcd_type - chown system media_rw /sys/class/lcd/panel/gamma_mode - chown system media_rw /sys/class/lcd/panel/power_reduce - -# Permissions for mDNIe - chown system media_rw /sys/class/mdnie/mdnie/mode - chown system media_rw /sys/class/mdnie/mdnie/outdoor - chown system media_rw /sys/class/mdnie/mdnie/scenario - write /sys/class/mdnie/mdnie/scenario 4 - -# Permissions for uart_sel and usb_sel - chown system radio /sys/class/sec/switch/uart_sel/value - chown system radio /sys/class/sec/switch/usb_sel - chown system radio /sys/class/sec/switch/audio_path - chown system radio /sys/class/sec/switch/otg_test - chown system radio /sys/class/sec/switch/adc_debounce_time - chown system radio /sys/class/sec/switch/status - chown system radio /sys/class/sec/switch/adc - chown system radio /mnt/.lfs/sw_sel - -# Permissions for OTG Test - chown system radio /sys/class/host_notify/usb_otg/booster - chmod 0664 /sys/class/host_notify/usb_otg/booster - -# Permission for radio - chown system radio /sys/devices/platform/s5p-ehci/ehci_power - chown system radio /sys/devices/platform/s5p-ehci/ehci_runtime - chown system radio /sys/devices/virtual/misc/multipdp/waketime - -# for datarouter - chown system system /dev/dun - chown system system /dev/ttyGS0 - chown system system /dev/ttyGS1 - chown system system /dev/ttyGS2 - chown system system /dev/ttyGS3 - -# DVFS - cpufreq ondemand - write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 5 - write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 85 - -on boot - chown system system /sys/class/backlight/pwm-backlight/brightness - chmod 0660 /sys/class/backlight/pwm-backlight/brightness - chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness - chmod 0660 /sys/devices/virtual/misc/melfas_touchkey/brightness - -#panorama directory creation - mkdir /data/pxtmpdir 0775 - chown system system /data/pxtmpdir - chmod 0775 /data/pxtmpdir - -# Permissions for dvfs lock - chown system system /sys/power/cpufreq_max_limit - chown system system /sys/power/cpufreq_min_limit - chmod 0660 /sys/power/cpufreq_max_limit - chmod 0660 /sys/power/cpufreq_min_limit - - mount debugfs /sys/kernel/debug /sys/kernel/debug - - setprop ro.build.product GT-N7000 - setprop ro.product.device GT-N7000 - setprop ro.radio.noril yes - -# Permisions for sensors - chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest - chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp - chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on - chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file - chown radio system /sys/devices/virtual/sec/gsensorcal/calibration - -# permissions for NFC - setprop ro.nfc.port "I2C" - chmod 0600 /dev/pn544 - chown nfc nfc /dev/pn544 - -# Device Encryption by B2B Security Lab. - setprop ro.crypto.keyfile.userdata /efs/metadata - -# fake some battery state - setprop status.battery.state Slow - setprop status.battery.level 5 - setprop status.battery.level_raw 50 - setprop status.battery.level_scale 9 - -service wpa_supplicant /system/bin/wpa_supplicant \ - -Dnl80211 -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin - class main - socket wpa_wlan0 dgram 0660 wifi wifi - disabled - oneshot - -service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL - class main - disabled - oneshot - -service dhcpcd_p2p /system/bin/dhcpcd -aABKL - class main - disabled - oneshot - -service iprenew_wlan0 /system/bin/dhcpcd -n - class main - disabled - oneshot - -service iprenew_p2p /system/bin/dhcpcd -n - class main - disabled - oneshot - -# for bluetooth -service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --no2bytes --tosleep 50000 \ - --baudrate 3000000 --use_baudrate_for_download --patchram /system/bin/bcm4330B1.hcd \ - --scopcm=0,0,0,0,0,0,0,3,3,0 /dev/ttySAC0 - class main - user bluetooth - group bluetooth net_bt_admin - disabled - oneshot - -# bluetooth mac address -service bdaddr /system/bin/bdaddr_read - class main - user root - disabled - oneshot - -service gpsd /system/bin/gpsd -c /system/etc/gps.xml - class main - socket gps seqpacket 0660 gps system - user gps - group system inet sdcard_rw - -# TVout -service TvoutService_C /system/bin/bintvoutservice - class main - user system - group graphics - -# bugreport is triggered by holding down volume down, volume up and power -service bugreport /system/bin/bugmailer.sh -v - class main - disabled - oneshot - keycodes 114 115 116 diff --git a/init.smdk4210.usb.rc b/init.smdk4210.usb.rc deleted file mode 100644 index 7545695..0000000 --- a/init.smdk4210.usb.rc +++ /dev/null @@ -1,89 +0,0 @@ -on init - write /sys/class/android_usb/android0/iSerial $ro.serialno - write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung - write /sys/class/android_usb/android0/f_rndis/vendorID 04e8 - write /sys/class/android_usb/android0/f_rndis/wceis 1 - -on boot - write /sys/class/android_usb/android0/iManufacturer $ro.manufacturer - write /sys/class/android_usb/android0/iProduct $ro.model - write /sys/class/android_usb/android0/iSerial $ro.serialno - write /sys/class/android_usb/f_mass_storage/inquiry_string "Samsung" - -on property:sys.usb.config=mtp - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6860 - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=mtp,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6860 - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=rndis - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6863 - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/bDeviceClass 224 - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=rndis,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6864 - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/bDeviceClass 224 - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=ptp - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6865 - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=ptp,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6866 - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=rndis,dm - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6862 - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=mass_storage - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 685B - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state $sys.usb.config - -on property:sys.usb.config=mass_storage,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 685e - write /sys/class/android_usb/android0/functions $sys.usb.config - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state $sys.usb.config @@ -1,64 +0,0 @@ -on early-init - start ueventd - -on init - export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin - export LD_LIBRARY_PATH /vendor/lib:/system/lib - export ANDROID_ROOT /system - export ANDROID_DATA /data - export ANDROID_CACHE /cache - export SECONDARY_STORAGE /mnt/emmc - export EXTERNAL_STORAGE /mnt/sdcard - - symlink /system/etc /etc - mkdir /mnt 0775 root system - - mkdir /system - mkdir /tmp - mkdir /mnt 0775 root root - - -on boot -# CPU Frequency Governor - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave - - ifup lo - hostname localhost - domainname localdomain - - class_start default - -service ueventd /sbin/ueventd - class core - critical - -service console /system/bin/sh - class core - console - -service adbd /sbin/adbd - disabled - -service charger /charger - class default - user root - -# Always start adbd on userdebug and eng builds -# In recovery, always run adbd as root. -on property:ro.debuggable=1 - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6860 - write /sys/class/android_usb/android0/functions adb - write /sys/class/android_usb/android0/enable 1 - write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer - write /sys/class/android_usb/android0/iProduct $ro.product.model - write /sys/class/android_usb/android0/iSerial $ro.serialno - start adbd - setprop service.adb.root 1 - -# Restart adbd so it can run as root -on property:service.adb.root=1 - write /sys/class/android_usb/android0/enable 0 - restart adbd - write /sys/class/android_usb/android0/enable 1 @@ -1,4 +1,5 @@ -# Copyright (C) 2010 The Android Open Source Project +# +# Copyright (C) 2012 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. @@ -11,213 +12,49 @@ # 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_PACKAGE_OVERLAYS := device/samsung/n7000/overlay - -# This device is hdpi. -PRODUCT_AAPT_CONFIG := normal hdpi xhdpi -PRODUCT_AAPT_PREF_CONFIG := xhdpi -PRODUCT_LOCALES += xhdpi - -#Bootanimation -TARGET_BOOTANIMATION_NAME := vertical-800x1280 - -# Init files -PRODUCT_COPY_FILES := \ - device/samsung/n7000/lpm.rc:root/lpm.rc \ - device/samsung/n7000/init.smdk4210.usb.rc:root/init.smdk4210.usb.rc \ - device/samsung/n7000/init.smdk4210.rc:root/init.smdk4210.rc \ - device/samsung/n7000/ueventd.smdk4210.rc:root/ueventd.smdk4210.rc - -# Audio -PRODUCT_COPY_FILES += \ - device/samsung/n7000/configs/asound.conf:system/etc/asound.conf - -# Vold and Storage -PRODUCT_COPY_FILES += \ - device/samsung/n7000/configs/vold.fstab:system/etc/vold.fstab - -PRODUCT_PROPERTY_OVERRIDES := \ - ro.vold.switchablepair=/mnt/emmc,/mnt/sdcard - -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - persist.sys.vold.switchexternal=1 - -# Wifi -PRODUCT_COPY_FILES += \ - device/samsung/n7000/configs/bcmdhd.cal:system/etc/wifi/bcmdhd.cal - -PRODUCT_PROPERTY_OVERRIDES += \ - wifi.interface=wlan0 \ - wifi.supplicant_scan_interval=20 - -# Gps -PRODUCT_COPY_FILES += \ - device/samsung/n7000/configs/gps.conf:system/etc/gps.conf - -# Packages -PRODUCT_PACKAGES := \ - Camera \ - camera.exynos4 \ - Torch \ - GalaxyNoteSettings \ - TvOut \ - TvOutHack \ - com.android.future.usb.accessory \ - -# HAL -PRODUCT_PACKAGES += \ - lights.exynos4 \ - libhwconverter \ - libs5pjpeg \ - libfimg - -# Charger -PRODUCT_PACKAGES += \ - charger \ - charger_res_images - -# MFC API -PRODUCT_PACKAGES += \ - libsecmfcapi - -# Sensors -PRODUCT_PACKAGES += \ - sensors.exynos4 - -# OMX -PRODUCT_PACKAGES += \ - libstagefrighthw \ - libseccscapi \ - libsecbasecomponent \ - libsecosal \ - libSEC_OMX_Resourcemanager \ - libSEC_OMX_Core \ - libSEC_OMX_Vdec \ - libOMX.SEC.AVC.Decoder \ - libOMX.SEC.M4V.Decoder \ - libOMX.SEC.WMV.Decoder \ - libOMX.SEC.VP8.Decoder \ - libSEC_OMX_Venc \ - libOMX.SEC.AVC.Encoder \ - libOMX.SEC.M4V.Encoder \ - libSEC_OMX_Adec \ - libOMX.SEC.MP3.Decoder - -PRODUCT_COPY_FILES += \ - device/samsung/n7000/configs/media_profiles.xml:system/etc/media_profiles.xml - -# Ril -PRODUCT_PROPERTY_OVERRIDES += \ - ro.telephony.ril_class=Smdk4210RIL \ - mobiledata.interfaces=pdp0,wlan0,gprs,ppp0 - -# Filesystem management tools -PRODUCT_PACKAGES += \ - static_busybox \ - make_ext4fs \ - setup_fs +# Include common makefile +$(call inherit-product, device/samsung/galaxys2-common/common.mk) -# Bluetooth MAC Address -PRODUCT_PACKAGES += \ - bdaddr_read +LOCAL_PATH := device/samsung/n7000 -# Live Wallpapers -PRODUCT_PACKAGES += \ - Galaxy4 \ - HoloSpiralWallpaper \ - LiveWallpapers \ - LiveWallpapersPicker \ - MagicSmokeWallpapers \ - NoiseField \ - PhaseBeam \ - VisualizationWallpapers \ - librs_jni +# Overlay +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay # Keylayout PRODUCT_COPY_FILES += \ - device/samsung/n7000/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \ - device/samsung/n7000/usr/keylayout/Generic.kl:system/usr/keylayout/Generic.kl \ - device/samsung/n7000/usr/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ - device/samsung/n7000/usr/keylayout/max8997-muic.kl:system/usr/keylayout/max8997-muic.kl \ - device/samsung/n7000/usr/keylayout/melfas-touchkey.kl:system/usr/keylayout/melfas-touchkey.kl \ - device/samsung/n7000/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \ - device/samsung/n7000/usr/keylayout/samsung-keypad.kl:system/usr/keylayout/samsung-keypad.kl \ - device/samsung/n7000/usr/keylayout/sec_key.kl:system/usr/keylayout/sec_key.kl \ - device/samsung/n7000/usr/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl \ - device/samsung/n7000/usr/keylayout/sii9234_rcp.kl:system/usr/keylayout/sii9234_rcp.kl \ - device/samsung/n7000/usr/keylayout/Vendor_04e8_Product_7021.kl:system/usr/keylayout/Vendor_04e8_Product_7021.kl \ - device/samsung/n7000/usr/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl \ - device/samsung/n7000/usr/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl \ - device/samsung/n7000/usr/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl \ - device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl \ - device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl \ - device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl \ - device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl \ - device/samsung/n7000/usr/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl + $(LOCAL_PATH)/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \ + $(LOCAL_PATH)/usr/keylayout/Generic.kl:system/usr/keylayout/Generic.kl \ + $(LOCAL_PATH)/usr/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ + $(LOCAL_PATH)/usr/keylayout/max8997-muic.kl:system/usr/keylayout/max8997-muic.kl \ + $(LOCAL_PATH)/usr/keylayout/melfas-touchkey.kl:system/usr/keylayout/melfas-touchkey.kl \ + $(LOCAL_PATH)/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \ + $(LOCAL_PATH)/usr/keylayout/samsung-keypad.kl:system/usr/keylayout/samsung-keypad.kl \ + $(LOCAL_PATH)/usr/keylayout/sec_key.kl:system/usr/keylayout/sec_key.kl \ + $(LOCAL_PATH)/usr/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl \ + $(LOCAL_PATH)/usr/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl # Keychars PRODUCT_COPY_FILES += \ - device/samsung/n7000/usr/keychars/Generic.kcm:system/usr/keychars/Generic.kcm \ - device/samsung/n7000/usr/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm \ - device/samsung/n7000/usr/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm \ - device/samsung/n7000/usr/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm + $(LOCAL_PATH)/usr/keychars/Generic.kcm:system/usr/keychars/Generic.kcm \ + $(LOCAL_PATH)/usr/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm \ + $(LOCAL_PATH)/usr/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm \ + $(LOCAL_PATH)/usr/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm -#idc +# Idc PRODUCT_COPY_FILES += \ - device/samsung/n7000/usr/idc/melfas_ts.idc:system/usr/idc/melfas_ts.idc \ - device/samsung/n7000/usr/idc/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc \ - device/samsung/n7000/usr/idc/qwerty.idc:system/usr/idc/qwerty.idc \ - device/samsung/n7000/usr/idc/qwerty2.idc:system/usr/idc/qwerty2.idc \ - device/samsung/n7000/usr/idc/sec_touchscreen.idc:system/usr/idc/sec_touchscreen.idc \ - device/samsung/n7000/usr/idc/sec_e-pen.idc:system/usr/idc/sec_e-pen.idc - -# These are the hardware-specific features -PRODUCT_COPY_FILES += \ - frameworks/base/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ - frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ - frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ - frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ - frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ - frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ - frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ - frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ - frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ - frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ - frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ - frameworks/base/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ - frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ - frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ - frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ - frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ - packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml - -PRODUCT_PROPERTY_OVERRIDES += \ - ro.opengles.version=131072 \ - ro.sf.lcd_density=320 \ - hwui.render_dirty_regions=false \ - hwui.disable_vsync=true \ - ro.kernel.android.checkjni=0 \ - dalvik.vm.checkjni=false - -# enable Google-specific location features, -# like NetworkLocationProvider and LocationCollector -PRODUCT_PROPERTY_OVERRIDES += \ - ro.com.google.locationfeatures=1 \ - ro.com.google.networklocation=1 - -PRODUCT_TAGS += dalvik.gc.type-precise - -# Set default USB interface -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ - persist.sys.usb.config=mtp - -$(call inherit-product, frameworks/base/build/phone-xhdpi-1024-dalvik-heap.mk) - -# Include exynos4 platform specific parts -TARGET_HAL_PATH := hardware/samsung/exynos4/hal -TARGET_OMX_PATH := hardware/samsung/exynos/multimedia/openmax -$(call inherit-product, hardware/samsung/exynos4210.mk) + $(LOCAL_PATH)/usr/idc/melfas_ts.idc:system/usr/idc/melfas_ts.idc \ + $(LOCAL_PATH)/usr/idc/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc \ + $(LOCAL_PATH)/usr/idc/qwerty.idc:system/usr/idc/qwerty.idc \ + $(LOCAL_PATH)/usr/idc/qwerty2.idc:system/usr/idc/qwerty2.idc \ + $(LOCAL_PATH)/usr/idc/sec_touchscreen.idc:system/usr/idc/sec_touchscreen.idc $(call inherit-product-if-exists, vendor/samsung/n7000/n7000-vendor.mk) -$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk) diff --git a/overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg b/overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg Binary files differdeleted file mode 100755 index e400338..0000000 --- a/overlay/frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg +++ /dev/null diff --git a/overlay/frameworks/base/core/res/res/values/arrays.xml b/overlay/frameworks/base/core/res/res/values/arrays.xml deleted file mode 100755 index 6d169e6..0000000 --- a/overlay/frameworks/base/core/res/res/values/arrays.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?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> diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml deleted file mode 100755 index 4ffbe7b..0000000 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ /dev/null @@ -1,233 +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. -*/ ---> - -<!-- These resources are around just to allow their values to be customized - for different hardware and product builds. --> -<resources> - - <!-- Default color for notification LED is white. --> - <color name="config_defaultNotificationColor">#ffffffff</color> - - <!-- Default LED on time for notification LED in milliseconds. --> - <integer name="config_defaultNotificationLedOn">1000</integer> - - <!-- Default LED off time for notification LED in milliseconds. --> - <integer name="config_defaultNotificationLedOff">9000</integer> - - <!-- Our amoled doesn't animate well. --> - <bool name="config_animateScreenLights">false</bool> - - <integer name="config_deskDockKeepsScreenOn">0</integer> - <integer name="config_carDockKeepsScreenOn">1</integer> - - <!-- If this is true, the screen will come on when you unplug usb/power/whatever. --> - <bool name="config_unplugTurnsOnScreen">true</bool> - - <!-- Component name of the service providing network location support. --> - <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string> - - <!-- Component name of the service providing geocoder API support. --> - <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string> - - <!-- Flag indicating whether we should enable the automatic brightness in Settings. - 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: - - Zone 0: 0 <= LUX < array[0] - Zone 1: array[0] <= LUX < array[1] - ... - Zone N: array[N - 1] <= LUX < array[N] - Zone N + 1: array[N] <= LUX < infinity - - Must be overridden in platform specific overlays --> - <integer-array name="config_autoBrightnessLevels"> - <item>100</item> - <item>200</item> - <item>400</item> - <item>1000</item> - <item>3000</item> - </integer-array> - - <!-- Array of output values for LCD backlight corresponding to the LUX values - in the config_autoBrightnessLevels array. This array should have size one greater - than the size of the config_autoBrightnessLevels array. - --> - <integer-array name="config_autoBrightnessLcdBacklightValues"> - <item>16</item> - <item>40</item> - <item>60</item> - <item>70</item> - <item>70</item> - <item>250</item> - </integer-array> - - <!-- Array of output values for button backlight corresponding to the LUX values - in the config_autoBrightnessLevels array. This array should have size one greater - than the size of the config_autoBrightnessLevels array. - --> - <integer-array name="config_autoBrightnessButtonBacklightValues"> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - </integer-array> - - <!-- Array of output values for keyboard backlight corresponding to the LUX values - in the config_autoBrightnessLevels array. This array should have size one greater - than the size of the config_autoBrightnessLevels array. - Crespo has no keyboard so all values are zero. - --> - <integer-array name="config_autoBrightnessKeyboardBacklightValues"> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - <item>0</item> - </integer-array> - - <!-- Minimum screen brightness allowed by the power manager. --> - <integer name="config_screenBrightnessDim">10</integer> - - <!--Boolean to enable stk functionality on Samsung phones--> - <bool name="config_samsung_stk">true</bool> - - <!-- 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.*" --> - <string-array translatable="false" name="config_tether_wifi_regexs"> - <item>"wlan0"</item> - </string-array> - - <!-- List of regexpressions describing the interface (if any) that represent tetherable - bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this - should be empty. --> - <string-array translatable="false" name="config_tether_bluetooth_regexs"> - <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> - - <!-- Boolean indicating whether the wifi chipset has background scan support --> - <bool translatable="false" name="config_wifi_background_scan_support">true</bool> - - <bool name="config_ui_enableFadingMarquee">false</bool> - - <!-- Component name of the service providing network location support. --> - <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string> - - <!-- Component name of the service providing geocoder API support. --> - <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string> - - <!-- Is the notification LED intrusive? Used to decide if there should be a disable option --> - <bool name="config_intrusiveNotificationLed">true</bool> - - <!-- Boolean indicating whether the wifi chipset has p2p support --> - <bool translatable="false" name="config_wifi_p2p_support">true</bool> - - <!-- Vibrator pattern for feedback about touching a virtual key --> - <integer-array name="config_virtualKeyVibePattern"> - <item>10</item> - <item>30</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> - - <!-- CM CHANGES START HERE --> - - <!-- LUN file to be used by legacy USB manager. - The existence of this file will be used to determine in the - legacy USB manager should be started. --> - <string name="config_legacyUmsLunFile">/sys/class/android_usb/f_mass_storage/lun0/file</string> - - <!-- 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 - 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 99dd14a..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="/mnt/emmc" - android:storageDescription="@string/storage_internal" - android:primary="false" - android:removable="false" - android:allowMassStorage="true" /> - - <storage android:mountPoint="/mnt/sdcard" - android:storageDescription="@string/storage_sd_card" - android:primary="true" - android:removable="false" - android:allowMassStorage="true" /> - - <storage android:mountPoint="/mnt/usbdisk" - android:storageDescription="@string/storage_usb" - android:primary="false" - android:removable="true" /> -</StorageList> diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml deleted file mode 100755 index 1e32354..0000000 --- a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -/** - * Copyright (c) 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. - */ ---> -<resources> - <!-- Screen timeout default = 30 seconds --> - <integer name="def_screen_off_timeout">30000</integer> -</resources> 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 100755 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> - diff --git a/overlay/include/hardware/gps.h b/overlay/include/hardware/gps.h deleted file mode 100644 index 05b3b11..0000000 --- a/overlay/include/hardware/gps.h +++ /dev/null @@ -1,686 +0,0 @@ -/* - * Copyright (C) 2010 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. - */ - -#ifndef ANDROID_INCLUDE_HARDWARE_GPS_H -#define ANDROID_INCLUDE_HARDWARE_GPS_H - -#include <stdint.h> -#include <sys/cdefs.h> -#include <sys/types.h> -#include <pthread.h> - -#include <hardware/hardware.h> - -__BEGIN_DECLS - -/** - * The id of this module - */ -#define GPS_HARDWARE_MODULE_ID "gps" - - -/** Milliseconds since January 1, 1970 */ -typedef int64_t GpsUtcTime; - -/** Maximum number of SVs for gps_sv_status_callback(). */ -#define GPS_MAX_SVS 32 - -/** Requested operational mode for GPS operation. */ -typedef uint32_t GpsPositionMode; -// IMPORTANT: Note that the following values must match -// constants in GpsLocationProvider.java. -/** Mode for running GPS standalone (no assistance). */ -#define GPS_POSITION_MODE_STANDALONE 0 -/** AGPS MS-Based mode. */ -#define GPS_POSITION_MODE_MS_BASED 1 -/** AGPS MS-Assisted mode. */ -#define GPS_POSITION_MODE_MS_ASSISTED 2 - -/** Requested recurrence mode for GPS operation. */ -typedef uint32_t GpsPositionRecurrence; -// IMPORTANT: Note that the following values must match -// constants in GpsLocationProvider.java. -/** Receive GPS fixes on a recurring basis at a specified period. */ -#define GPS_POSITION_RECURRENCE_PERIODIC 0 -/** Request a single shot GPS fix. */ -#define GPS_POSITION_RECURRENCE_SINGLE 1 - -/** GPS status event values. */ -typedef uint16_t GpsStatusValue; -// IMPORTANT: Note that the following values must match -// constants in GpsLocationProvider.java. -/** GPS status unknown. */ -#define GPS_STATUS_NONE 0 -/** GPS has begun navigating. */ -#define GPS_STATUS_SESSION_BEGIN 1 -/** GPS has stopped navigating. */ -#define GPS_STATUS_SESSION_END 2 -/** GPS has powered on but is not navigating. */ -#define GPS_STATUS_ENGINE_ON 3 -/** GPS is powered off. */ -#define GPS_STATUS_ENGINE_OFF 4 - -/** Flags to indicate which values are valid in a GpsLocation. */ -typedef uint16_t GpsLocationFlags; -// IMPORTANT: Note that the following values must match -// constants in GpsLocationProvider.java. -/** GpsLocation has valid latitude and longitude. */ -#define GPS_LOCATION_HAS_LAT_LONG 0x0001 -/** GpsLocation has valid altitude. */ -#define GPS_LOCATION_HAS_ALTITUDE 0x0002 -/** GpsLocation has valid speed. */ -#define GPS_LOCATION_HAS_SPEED 0x0004 -/** GpsLocation has valid bearing. */ -#define GPS_LOCATION_HAS_BEARING 0x0008 -/** GpsLocation has valid accuracy. */ -#define GPS_LOCATION_HAS_ACCURACY 0x0010 - -/** Flags for the gps_set_capabilities callback. */ - -/** GPS HAL schedules fixes for GPS_POSITION_RECURRENCE_PERIODIC mode. - If this is not set, then the framework will use 1000ms for min_interval - and will start and call start() and stop() to schedule the GPS. - */ -#define GPS_CAPABILITY_SCHEDULING 0x0000001 -/** GPS supports MS-Based AGPS mode */ -#define GPS_CAPABILITY_MSB 0x0000002 -/** GPS supports MS-Assisted AGPS mode */ -#define GPS_CAPABILITY_MSA 0x0000004 -/** GPS supports single-shot fixes */ -#define GPS_CAPABILITY_SINGLE_SHOT 0x0000008 -/** GPS supports on demand time injection */ -#define GPS_CAPABILITY_ON_DEMAND_TIME 0x0000010 - -/** Flags used to specify which aiding data to delete - when calling delete_aiding_data(). */ -typedef uint16_t GpsAidingData; -// IMPORTANT: Note that the following values must match -// constants in GpsLocationProvider.java. -#define GPS_DELETE_EPHEMERIS 0x0001 -#define GPS_DELETE_ALMANAC 0x0002 -#define GPS_DELETE_POSITION 0x0004 -#define GPS_DELETE_TIME 0x0008 -#define GPS_DELETE_IONO 0x0010 -#define GPS_DELETE_UTC 0x0020 -#define GPS_DELETE_HEALTH 0x0040 -#define GPS_DELETE_SVDIR 0x0080 -#define GPS_DELETE_SVSTEER 0x0100 -#define GPS_DELETE_SADATA 0x0200 -#define GPS_DELETE_RTI 0x0400 -#define GPS_DELETE_CELLDB_INFO 0x8000 -#define GPS_DELETE_ALL 0xFFFF - -/** AGPS type */ -typedef uint16_t AGpsType; -#define AGPS_TYPE_SUPL 1 -#define AGPS_TYPE_C2K 2 - -typedef uint16_t AGpsSetIDType; -#define AGPS_SETID_TYPE_NONE 0 -#define AGPS_SETID_TYPE_IMSI 1 -#define AGPS_SETID_TYPE_MSISDN 2 - -/** - * String length constants - */ -#define GPS_NI_SHORT_STRING_MAXLEN 256 -#define GPS_NI_LONG_STRING_MAXLEN 2048 - -/** - * GpsNiType constants - */ -typedef uint32_t GpsNiType; -#define GPS_NI_TYPE_VOICE 1 -#define GPS_NI_TYPE_UMTS_SUPL 2 -#define GPS_NI_TYPE_UMTS_CTRL_PLANE 3 - -/** - * GpsNiNotifyFlags constants - */ -typedef uint32_t GpsNiNotifyFlags; -/** NI requires notification */ -#define GPS_NI_NEED_NOTIFY 0x0001 -/** NI requires verification */ -#define GPS_NI_NEED_VERIFY 0x0002 -/** NI requires privacy override, no notification/minimal trace */ -#define GPS_NI_PRIVACY_OVERRIDE 0x0004 - -/** - * GPS NI responses, used to define the response in - * NI structures - */ -typedef int GpsUserResponseType; -#define GPS_NI_RESPONSE_ACCEPT 1 -#define GPS_NI_RESPONSE_DENY 2 -#define GPS_NI_RESPONSE_NORESP 3 - -/** - * NI data encoding scheme - */ -typedef int GpsNiEncodingType; -#define GPS_ENC_NONE 0 -#define GPS_ENC_SUPL_GSM_DEFAULT 1 -#define GPS_ENC_SUPL_UTF8 2 -#define GPS_ENC_SUPL_UCS2 3 -#define GPS_ENC_UNKNOWN -1 - -/** AGPS status event values. */ -typedef uint16_t AGpsStatusValue; -/** GPS requests data connection for AGPS. */ -#define GPS_REQUEST_AGPS_DATA_CONN 1 -/** GPS releases the AGPS data connection. */ -#define GPS_RELEASE_AGPS_DATA_CONN 2 -/** AGPS data connection initiated */ -#define GPS_AGPS_DATA_CONNECTED 3 -/** AGPS data connection completed */ -#define GPS_AGPS_DATA_CONN_DONE 4 -/** AGPS data connection failed */ -#define GPS_AGPS_DATA_CONN_FAILED 5 - -#define AGPS_REF_LOCATION_TYPE_GSM_CELLID 1 -#define AGPS_REF_LOCATION_TYPE_UMTS_CELLID 2 -#define AGPS_REG_LOCATION_TYPE_MAC 3 - -/** Network types for update_network_state "type" parameter */ -#define AGPS_RIL_NETWORK_TYPE_MOBILE 0 -#define AGPS_RIL_NETWORK_TYPE_WIFI 1 -#define AGPS_RIL_NETWORK_TYPE_MOBILE_MMS 2 -#define AGPS_RIL_NETWORK_TYPE_MOBILE_SUPL 3 -#define AGPS_RIL_NETWORK_TTYPE_MOBILE_DUN 4 -#define AGPS_RIL_NETWORK_TTYPE_MOBILE_HIPRI 5 -#define AGPS_RIL_NETWORK_TTYPE_WIMAX 6 - -/** - * Name for the GPS XTRA interface. - */ -#define GPS_XTRA_INTERFACE "gps-xtra" - -/** - * Name for the GPS DEBUG interface. - */ -#define GPS_DEBUG_INTERFACE "gps-debug" - -/** - * Name for the AGPS interface. - */ -#define AGPS_INTERFACE "agps" - -/** - * Name for NI interface - */ -#define GPS_NI_INTERFACE "gps-ni" - -/** - * Name for the AGPS-RIL interface. - */ -#define AGPS_RIL_INTERFACE "agps_ril" - -/** Represents a location. */ -typedef struct { - /** set to sizeof(GpsLocation) */ - size_t size; - /** Contains GpsLocationFlags bits. */ - uint16_t flags; - /** Represents latitude in degrees. */ - double latitude; - /** Represents longitude in degrees. */ - double longitude; - /** Represents altitude in meters above the WGS 84 reference - * ellipsoid. */ - double altitude; - /** Represents speed in meters per second. */ - float speed; - /** Represents heading in degrees. */ - float bearing; - /** Represents expected accuracy in meters. */ - float accuracy; - /** Timestamp for the location fix. */ - GpsUtcTime timestamp; -} GpsLocation; - -/** Represents the status. */ -typedef struct { - /** set to sizeof(GpsStatus) */ - size_t size; - GpsStatusValue status; -} GpsStatus; - -/** Represents SV information. */ -typedef struct { - /** set to sizeof(GpsSvInfo) */ - size_t size; - /** Pseudo-random number for the SV. */ - int prn; - /** Signal to noise ratio. */ - float snr; - /** Elevation of SV in degrees. */ - float elevation; - /** Azimuth of SV in degrees. */ - float azimuth; - /** Unknown field in Samsung I9100 libgps - May be an indicator for constellation type - (GPS, GLONASS, Galileo)? - Used on GT-I9100, likely also present on GT-N7000, - SGH-I717, SGH-I727 but this needs confirmation. - */ - int unknown_samsung_field; -} GpsSvInfo; - -/** Represents SV status. */ -typedef struct { - /** set to sizeof(GpsSvStatus) */ - size_t size; - - /** Number of SVs currently visible. */ - int num_svs; - - /** Contains an array of SV information. */ - GpsSvInfo sv_list[GPS_MAX_SVS]; - - /** Represents a bit mask indicating which SVs - * have ephemeris data. - */ - uint32_t ephemeris_mask; - - /** Represents a bit mask indicating which SVs - * have almanac data. - */ - uint32_t almanac_mask; - - /** - * Represents a bit mask indicating which SVs - * were used for computing the most recent position fix. - */ - uint32_t used_in_fix_mask; -} GpsSvStatus; - -/* 2G and 3G */ -/* In 3G lac is discarded */ -typedef struct { - uint16_t type; - uint16_t mcc; - uint16_t mnc; - uint16_t lac; - uint32_t cid; -} AGpsRefLocationCellID; - -typedef struct { - uint8_t mac[6]; -} AGpsRefLocationMac; - -/** Represents ref locations */ -typedef struct { - uint16_t type; - union { - AGpsRefLocationCellID cellID; - AGpsRefLocationMac mac; - } u; -} AGpsRefLocation; - -/** Callback with location information. - * Can only be called from a thread created by create_thread_cb. - */ -typedef void (* gps_location_callback)(GpsLocation* location); - -/** Callback with status information. - * Can only be called from a thread created by create_thread_cb. - */ -typedef void (* gps_status_callback)(GpsStatus* status); - -/** Callback with SV status information. - * Can only be called from a thread created by create_thread_cb. - */ -typedef void (* gps_sv_status_callback)(GpsSvStatus* sv_info); - -/** Callback for reporting NMEA sentences. - * Can only be called from a thread created by create_thread_cb. - */ -typedef void (* gps_nmea_callback)(GpsUtcTime timestamp, const char* nmea, int length); - -/** Callback to inform framework of the GPS engine's capabilities. - * Capability parameter is a bit field of GPS_CAPABILITY_* flags. - */ -typedef void (* gps_set_capabilities)(uint32_t capabilities); - -/** Callback utility for acquiring the GPS wakelock. - * This can be used to prevent the CPU from suspending while handling GPS events. - */ -typedef void (* gps_acquire_wakelock)(); - -/** Callback utility for releasing the GPS wakelock. */ -typedef void (* gps_release_wakelock)(); - -/** Callback for requesting NTP time */ -typedef void (* gps_request_utc_time)(); - -/** Callback for creating a thread that can call into the Java framework code. - * This must be used to create any threads that report events up to the framework. - */ -typedef pthread_t (* gps_create_thread)(const char* name, void (*start)(void *), void* arg); - -/** GPS callback structure. */ -typedef struct { - /** set to sizeof(GpsCallbacks) */ - size_t size; - gps_location_callback location_cb; - gps_status_callback status_cb; - gps_sv_status_callback sv_status_cb; - gps_nmea_callback nmea_cb; - gps_set_capabilities set_capabilities_cb; - gps_acquire_wakelock acquire_wakelock_cb; - gps_release_wakelock release_wakelock_cb; - gps_create_thread create_thread_cb; - gps_request_utc_time request_utc_time_cb; -} GpsCallbacks; - - -/** Represents the standard GPS interface. */ -typedef struct { - /** set to sizeof(GpsInterface) */ - size_t size; - /** - * Opens the interface and provides the callback routines - * to the implemenation of this interface. - */ - int (*init)( GpsCallbacks* callbacks ); - - /** Starts navigating. */ - int (*start)( void ); - - /** Stops navigating. */ - int (*stop)( void ); - - /** Closes the interface. */ - void (*cleanup)( void ); - - /** Injects the current time. */ - int (*inject_time)(GpsUtcTime time, int64_t timeReference, - int uncertainty); - - /** Injects current location from another location provider - * (typically cell ID). - * latitude and longitude are measured in degrees - * expected accuracy is measured in meters - */ - int (*inject_location)(double latitude, double longitude, float accuracy); - - /** - * Specifies that the next call to start will not use the - * information defined in the flags. GPS_DELETE_ALL is passed for - * a cold start. - */ - void (*delete_aiding_data)(GpsAidingData flags); - - /** - * min_interval represents the time between fixes in milliseconds. - * preferred_accuracy represents the requested fix accuracy in meters. - * preferred_time represents the requested time to first fix in milliseconds. - */ - int (*set_position_mode)(GpsPositionMode mode, GpsPositionRecurrence recurrence, - uint32_t min_interval, uint32_t preferred_accuracy, uint32_t preferred_time); - - /** Get a pointer to extension information. */ - const void* (*get_extension)(const char* name); -} GpsInterface; - -/** Callback to request the client to download XTRA data. - * The client should download XTRA data and inject it by calling inject_xtra_data(). - * Can only be called from a thread created by create_thread_cb. - */ -typedef void (* gps_xtra_download_request)(); - -/** Callback structure for the XTRA interface. */ -typedef struct { - gps_xtra_download_request download_request_cb; - gps_create_thread create_thread_cb; -} GpsXtraCallbacks; - -/** Extended interface for XTRA support. */ -typedef struct { - /** set to sizeof(GpsXtraInterface) */ - size_t size; - /** - * Opens the XTRA interface and provides the callback routines - * to the implemenation of this interface. - */ - int (*init)( GpsXtraCallbacks* callbacks ); - /** Injects XTRA data into the GPS. */ - int (*inject_xtra_data)( char* data, int length ); -} GpsXtraInterface; - -/** Extended interface for DEBUG support. */ -typedef struct { - /** set to sizeof(GpsDebugInterface) */ - size_t size; - - /** - * This function should return any information that the native - * implementation wishes to include in a bugreport. - */ - size_t (*get_internal_state)(char* buffer, size_t bufferSize); -} GpsDebugInterface; - -/** Represents the status of AGPS. */ -typedef struct { - /** set to sizeof(AGpsStatus) */ - size_t size; - - AGpsType type; - AGpsStatusValue status; - uint32_t ipaddr; -} AGpsStatus; - -/** Callback with AGPS status information. - * Can only be called from a thread created by create_thread_cb. - */ -typedef void (* agps_status_callback)(AGpsStatus* status); - -/** Callback structure for the AGPS interface. */ -typedef struct { - agps_status_callback status_cb; - gps_create_thread create_thread_cb; -} AGpsCallbacks; - - -/** Extended interface for AGPS support. */ -typedef struct { - /** set to sizeof(AGpsInterface) */ - size_t size; - - /** - * Opens the AGPS interface and provides the callback routines - * to the implemenation of this interface. - */ - void (*init)( AGpsCallbacks* callbacks ); - /** - * Notifies that a data connection is available and sets - * the name of the APN to be used for SUPL. - */ - int (*data_conn_open)( const char* apn ); - /** - * Notifies that the AGPS data connection has been closed. - */ - int (*data_conn_closed)(); - /** - * Notifies that a data connection is not available for AGPS. - */ - int (*data_conn_failed)(); - /** - * Sets the hostname and port for the AGPS server. - */ - int (*set_server)( AGpsType type, const char* hostname, int port ); -} AGpsInterface; - - -/** Represents an NI request */ -typedef struct { - /** set to sizeof(GpsNiNotification) */ - size_t size; - - /** - * An ID generated by HAL to associate NI notifications and UI - * responses - */ - int notification_id; - - /** - * An NI type used to distinguish different categories of NI - * events, such as GPS_NI_TYPE_VOICE, GPS_NI_TYPE_UMTS_SUPL, ... - */ - GpsNiType ni_type; - - /** - * Notification/verification options, combinations of GpsNiNotifyFlags constants - */ - GpsNiNotifyFlags notify_flags; - - /** - * Timeout period to wait for user response. - * Set to 0 for no time out limit. - */ - int timeout; - - /** - * Default response when time out. - */ - GpsUserResponseType default_response; - - /** - * Requestor ID - */ - char requestor_id[GPS_NI_SHORT_STRING_MAXLEN]; - - /** - * Notification message. It can also be used to store client_id in some cases - */ - char text[GPS_NI_LONG_STRING_MAXLEN]; - - /** - * Client name decoding scheme - */ - GpsNiEncodingType requestor_id_encoding; - - /** - * Client name decoding scheme - */ - GpsNiEncodingType text_encoding; - - /** - * A pointer to extra data. Format: - * key_1 = value_1 - * key_2 = value_2 - */ - char extras[GPS_NI_LONG_STRING_MAXLEN]; - -} GpsNiNotification; - -/** Callback with NI notification. - * Can only be called from a thread created by create_thread_cb. - */ -typedef void (*gps_ni_notify_callback)(GpsNiNotification *notification); - -/** GPS NI callback structure. */ -typedef struct -{ - /** - * Sends the notification request from HAL to GPSLocationProvider. - */ - gps_ni_notify_callback notify_cb; - gps_create_thread create_thread_cb; -} GpsNiCallbacks; - -/** - * Extended interface for Network-initiated (NI) support. - */ -typedef struct -{ - /** set to sizeof(GpsNiInterface) */ - size_t size; - - /** Registers the callbacks for HAL to use. */ - void (*init) (GpsNiCallbacks *callbacks); - - /** Sends a response to HAL. */ - void (*respond) (int notif_id, GpsUserResponseType user_response); -} GpsNiInterface; - -struct gps_device_t { - struct hw_device_t common; - - /** - * Set the provided lights to the provided values. - * - * Returns: 0 on succes, error code on failure. - */ - const GpsInterface* (*get_gps_interface)(struct gps_device_t* dev); -}; - -#define AGPS_RIL_REQUEST_SETID_IMSI (1<<0L) -#define AGPS_RIL_REQUEST_SETID_MSISDN (1<<1L) - -#define AGPS_RIL_REQUEST_REFLOC_CELLID (1<<0L) -#define AGPS_RIL_REQUEST_REFLOC_MAC (1<<1L) - -typedef void (*agps_ril_request_set_id)(uint32_t flags); -typedef void (*agps_ril_request_ref_loc)(uint32_t flags); - -typedef struct { - agps_ril_request_set_id request_setid; - agps_ril_request_ref_loc request_refloc; - gps_create_thread create_thread_cb; -} AGpsRilCallbacks; - -/** Extended interface for AGPS_RIL support. */ -typedef struct { - /** set to sizeof(AGpsRilInterface) */ - size_t size; - /** - * Opens the AGPS interface and provides the callback routines - * to the implemenation of this interface. - */ - void (*init)( AGpsRilCallbacks* callbacks ); - - /** - * Sets the reference location. - */ - void (*set_ref_location) (const AGpsRefLocation *agps_reflocation, size_t sz_struct); - /** - * Sets the set ID. - */ - void (*set_set_id) (AGpsSetIDType type, const char* setid); - - /** - * Send network initiated message. - */ - void (*ni_message) (uint8_t *msg, size_t len); - - /** - * Notify GPS of network status changes. - * These parameters match values in the android.net.NetworkInfo class. - */ - void (*update_network_state) (int connected, int type, int roaming, const char* extra_info); - - /** - * Notify GPS of network status changes. - * These parameters match values in the android.net.NetworkInfo class. - */ - void (*update_network_availability) (int avaiable, const char* apn); -} AGpsRilInterface; - -__END_DECLS - -#endif /* ANDROID_INCLUDE_HARDWARE_GPS_H */ - diff --git a/overlay/packages/apps/Camera/res/values/config.xml b/overlay/packages/apps/Camera/res/values/config.xml deleted file mode 100644 index 788a977..0000000 --- a/overlay/packages/apps/Camera/res/values/config.xml +++ /dev/null @@ -1,29 +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. -*/ ---> - -<resources> - <!-- Allows setting video size before recording starts --> - <bool name="needsEarlyVideoSize">true</bool> - <!-- Samsung Camcorder Mode --> - <bool name="needsSamsungCamMode">true</bool> - <!-- Samsung Camera Settings --> - <bool name="hasSamsungCamSettings">true</bool> - <!-- Restart the preview on picture taken --> - <bool name="restartPreviewOnPictureTaken">true</bool> -</resources> diff --git a/overlay/packages/apps/Phone/res/values/config.xml b/overlay/packages/apps/Phone/res/values/config.xml deleted file mode 100755 index 48d1ffc..0000000 --- a/overlay/packages/apps/Phone/res/values/config.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 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. ---> - -<!-- Tuna-specific phone app resources. --> -<resources> - - <!-- Flag indicating if the tty is enabled --> - <bool name="tty_enabled">false</bool> - - <!-- Determines if device implements a noise suppression device for in call audio--> - <bool name="has_in_call_noise_suppression">true</bool> - - <!-- Audio parameter for setting noise suppression--> - <string name="in_call_noise_suppression_audioparameter">dualmic_enabled=true=false</string> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-af/arrays.xml b/overlay/packages/apps/Settings/res/values-af/arrays.xml deleted file mode 100755 index 4f2780f..0000000 --- a/overlay/packages/apps/Settings/res/values-af/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekondes"</item> - <item msgid="8672738773876256432">"30 sekondes"</item> - <item msgid="465923292941002466">"1 minuut"</item> - <item msgid="7955177189296850016">"2 minute"</item> - <item msgid="1244255986255344525">"5 minute"</item> - <item msgid="294890536998091748">"10 minute"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-am/arrays.xml b/overlay/packages/apps/Settings/res/values-am/arrays.xml deleted file mode 100755 index 73deb95..0000000 --- a/overlay/packages/apps/Settings/res/values-am/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 ሰከንዶች"</item> - <item msgid="8672738773876256432">"30 ሰከንዶች"</item> - <item msgid="465923292941002466">"1 ደቂቃ"</item> - <item msgid="7955177189296850016">"2 ደቂቃዎች"</item> - <item msgid="1244255986255344525">"5 ደቂቃዎች"</item> - <item msgid="294890536998091748">"10 ደቂቃዎች"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-ar/arrays.xml b/overlay/packages/apps/Settings/res/values-ar/arrays.xml deleted file mode 100755 index 396b12e..0000000 --- a/overlay/packages/apps/Settings/res/values-ar/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 ثانية"</item> - <item msgid="8672738773876256432">"30 ثانية"</item> - <item msgid="465923292941002466">"دقيقة واØدة"</item> - <item msgid="7955177189296850016">"دقيقتان"</item> - <item msgid="1244255986255344525">"5 دقائق"</item> - <item msgid="294890536998091748">"10 دقائق"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-bg/arrays.xml b/overlay/packages/apps/Settings/res/values-bg/arrays.xml deleted file mode 100755 index 7c35aca..0000000 --- a/overlay/packages/apps/Settings/res/values-bg/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 Ñекунди"</item> - <item msgid="8672738773876256432">"30 Ñекунди"</item> - <item msgid="465923292941002466">"1 минута"</item> - <item msgid="7955177189296850016">"2 минути"</item> - <item msgid="1244255986255344525">"5 минути"</item> - <item msgid="294890536998091748">"10 минути"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-ca/arrays.xml b/overlay/packages/apps/Settings/res/values-ca/arrays.xml deleted file mode 100755 index 7b8afb8..0000000 --- a/overlay/packages/apps/Settings/res/values-ca/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 segons"</item> - <item msgid="8672738773876256432">"30 segons"</item> - <item msgid="465923292941002466">"1 minut"</item> - <item msgid="7955177189296850016">"2 minuts"</item> - <item msgid="1244255986255344525">"5 minuts"</item> - <item msgid="294890536998091748">"10 minuts"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-cs/arrays.xml b/overlay/packages/apps/Settings/res/values-cs/arrays.xml deleted file mode 100755 index 266d10e..0000000 --- a/overlay/packages/apps/Settings/res/values-cs/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 s."</item> - <item msgid="8672738773876256432">"30 s."</item> - <item msgid="465923292941002466">"1 min."</item> - <item msgid="7955177189296850016">"2 min."</item> - <item msgid="1244255986255344525">"5 min."</item> - <item msgid="294890536998091748">"10 min."</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-da/arrays.xml b/overlay/packages/apps/Settings/res/values-da/arrays.xml deleted file mode 100755 index 5286122..0000000 --- a/overlay/packages/apps/Settings/res/values-da/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekunder"</item> - <item msgid="8672738773876256432">"30 sekunder"</item> - <item msgid="465923292941002466">"1 minut"</item> - <item msgid="7955177189296850016">"2 minutter"</item> - <item msgid="1244255986255344525">"5 minutter"</item> - <item msgid="294890536998091748">"10 minutter"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-de/arrays.xml b/overlay/packages/apps/Settings/res/values-de/arrays.xml deleted file mode 100755 index a185f05..0000000 --- a/overlay/packages/apps/Settings/res/values-de/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 Sekunden"</item> - <item msgid="8672738773876256432">"30 Sekunden"</item> - <item msgid="465923292941002466">"1 Minute"</item> - <item msgid="7955177189296850016">"2 Minuten"</item> - <item msgid="1244255986255344525">"5 Minuten"</item> - <item msgid="294890536998091748">"10 Minuten"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-el/arrays.xml b/overlay/packages/apps/Settings/res/values-el/arrays.xml deleted file mode 100755 index c5b4111..0000000 --- a/overlay/packages/apps/Settings/res/values-el/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 δευτεÏόλεπτα"</item> - <item msgid="8672738773876256432">"30 δευτεÏόλεπτα"</item> - <item msgid="465923292941002466">"1 λεπτό"</item> - <item msgid="7955177189296850016">"2 λεπτά"</item> - <item msgid="1244255986255344525">"5 λεπτά"</item> - <item msgid="294890536998091748">"10 λεπτά"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-en-rGB/arrays.xml b/overlay/packages/apps/Settings/res/values-en-rGB/arrays.xml deleted file mode 100755 index d99e0a6..0000000 --- a/overlay/packages/apps/Settings/res/values-en-rGB/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 seconds"</item> - <item msgid="8672738773876256432">"30 seconds"</item> - <item msgid="465923292941002466">"1 minute"</item> - <item msgid="7955177189296850016">"2 minutes"</item> - <item msgid="1244255986255344525">"5 minutes"</item> - <item msgid="294890536998091748">"10 minutes"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-es-rUS/arrays.xml b/overlay/packages/apps/Settings/res/values-es-rUS/arrays.xml deleted file mode 100755 index 9d0d76b..0000000 --- a/overlay/packages/apps/Settings/res/values-es-rUS/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 segundos"</item> - <item msgid="8672738773876256432">"30 segundos"</item> - <item msgid="465923292941002466">"1 minuto"</item> - <item msgid="7955177189296850016">"2 minutos"</item> - <item msgid="1244255986255344525">"5 minutos"</item> - <item msgid="294890536998091748">"10 minutos"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-es/arrays.xml b/overlay/packages/apps/Settings/res/values-es/arrays.xml deleted file mode 100755 index 9d0d76b..0000000 --- a/overlay/packages/apps/Settings/res/values-es/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 segundos"</item> - <item msgid="8672738773876256432">"30 segundos"</item> - <item msgid="465923292941002466">"1 minuto"</item> - <item msgid="7955177189296850016">"2 minutos"</item> - <item msgid="1244255986255344525">"5 minutos"</item> - <item msgid="294890536998091748">"10 minutos"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-fa/arrays.xml b/overlay/packages/apps/Settings/res/values-fa/arrays.xml deleted file mode 100755 index bf95ca8..0000000 --- a/overlay/packages/apps/Settings/res/values-fa/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 ثانیه"</item> - <item msgid="8672738773876256432">"30 ثانیه"</item> - <item msgid="465923292941002466">"1 دقیقه"</item> - <item msgid="7955177189296850016">"2 دقیقه"</item> - <item msgid="1244255986255344525">"5 دقیقه"</item> - <item msgid="294890536998091748">"10 دقیقه"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-fi/arrays.xml b/overlay/packages/apps/Settings/res/values-fi/arrays.xml deleted file mode 100755 index 7bf4c62..0000000 --- a/overlay/packages/apps/Settings/res/values-fi/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekuntia"</item> - <item msgid="8672738773876256432">"30 sekuntia"</item> - <item msgid="465923292941002466">"1 minuutti"</item> - <item msgid="7955177189296850016">"2 minuuttia"</item> - <item msgid="1244255986255344525">"5 minuuttia"</item> - <item msgid="294890536998091748">"10 minuuttia"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-fr/arrays.xml b/overlay/packages/apps/Settings/res/values-fr/arrays.xml deleted file mode 100755 index cb9e4ff..0000000 --- a/overlay/packages/apps/Settings/res/values-fr/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 secondes"</item> - <item msgid="8672738773876256432">"30 secondes"</item> - <item msgid="465923292941002466">"1 minute"</item> - <item msgid="7955177189296850016">"2 minutes"</item> - <item msgid="1244255986255344525">"5 minutes"</item> - <item msgid="294890536998091748">"10 minutes"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-hi/arrays.xml b/overlay/packages/apps/Settings/res/values-hi/arrays.xml deleted file mode 100755 index 7c2f835..0000000 --- a/overlay/packages/apps/Settings/res/values-hi/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 सेकंड"</item> - <item msgid="8672738773876256432">"30 सेकंड"</item> - <item msgid="465923292941002466">"1 मिनट"</item> - <item msgid="7955177189296850016">"2 मिनट"</item> - <item msgid="1244255986255344525">"5 मिनट"</item> - <item msgid="294890536998091748">"10 मिनट"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-hr/arrays.xml b/overlay/packages/apps/Settings/res/values-hr/arrays.xml deleted file mode 100755 index 5e0c117..0000000 --- a/overlay/packages/apps/Settings/res/values-hr/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekundi"</item> - <item msgid="8672738773876256432">"30 sekundi"</item> - <item msgid="465923292941002466">"1 minuta"</item> - <item msgid="7955177189296850016">"2 minute"</item> - <item msgid="1244255986255344525">"5 minuta"</item> - <item msgid="294890536998091748">"10 minuta"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-hu/arrays.xml b/overlay/packages/apps/Settings/res/values-hu/arrays.xml deleted file mode 100755 index 208464e..0000000 --- a/overlay/packages/apps/Settings/res/values-hu/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 másodperc"</item> - <item msgid="8672738773876256432">"30 másodperc"</item> - <item msgid="465923292941002466">"1 perc"</item> - <item msgid="7955177189296850016">"2 perc"</item> - <item msgid="1244255986255344525">"5 perc"</item> - <item msgid="294890536998091748">"10 perc"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-in/arrays.xml b/overlay/packages/apps/Settings/res/values-in/arrays.xml deleted file mode 100755 index b3c4776..0000000 --- a/overlay/packages/apps/Settings/res/values-in/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 detik"</item> - <item msgid="8672738773876256432">"30 detik"</item> - <item msgid="465923292941002466">"1 menit"</item> - <item msgid="7955177189296850016">"2 menit"</item> - <item msgid="1244255986255344525">"5 menit"</item> - <item msgid="294890536998091748">"10 menit"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-it/arrays.xml b/overlay/packages/apps/Settings/res/values-it/arrays.xml deleted file mode 100755 index 3d923d3..0000000 --- a/overlay/packages/apps/Settings/res/values-it/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 secondi"</item> - <item msgid="8672738773876256432">"30 secondi"</item> - <item msgid="465923292941002466">"1 minuto"</item> - <item msgid="7955177189296850016">"2 minuti"</item> - <item msgid="1244255986255344525">"5 minuti"</item> - <item msgid="294890536998091748">"10 minuti"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-iw/arrays.xml b/overlay/packages/apps/Settings/res/values-iw/arrays.xml deleted file mode 100755 index 4a90801..0000000 --- a/overlay/packages/apps/Settings/res/values-iw/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 ×©× ×™×•×ª"</item> - <item msgid="8672738773876256432">"30 ×©× ×™×•×ª"</item> - <item msgid="465923292941002466">"דקה ×חת"</item> - <item msgid="7955177189296850016">"2 דקות"</item> - <item msgid="1244255986255344525">"5 דקות"</item> - <item msgid="294890536998091748">"10 דקות"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-ja/arrays.xml b/overlay/packages/apps/Settings/res/values-ja/arrays.xml deleted file mode 100755 index abde1bf..0000000 --- a/overlay/packages/apps/Settings/res/values-ja/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15秒"</item> - <item msgid="8672738773876256432">"30秒"</item> - <item msgid="465923292941002466">"1分"</item> - <item msgid="7955177189296850016">"2分"</item> - <item msgid="1244255986255344525">"5分"</item> - <item msgid="294890536998091748">"10分"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-ko/arrays.xml b/overlay/packages/apps/Settings/res/values-ko/arrays.xml deleted file mode 100755 index d2b686f..0000000 --- a/overlay/packages/apps/Settings/res/values-ko/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15ì´ˆ"</item> - <item msgid="8672738773876256432">"30ì´ˆ"</item> - <item msgid="465923292941002466">"1분"</item> - <item msgid="7955177189296850016">"2분"</item> - <item msgid="1244255986255344525">"5분"</item> - <item msgid="294890536998091748">"10분"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-lt/arrays.xml b/overlay/packages/apps/Settings/res/values-lt/arrays.xml deleted file mode 100755 index 3028803..0000000 --- a/overlay/packages/apps/Settings/res/values-lt/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sek."</item> - <item msgid="8672738773876256432">"30 sek."</item> - <item msgid="465923292941002466">"1 min."</item> - <item msgid="7955177189296850016">"2 min."</item> - <item msgid="1244255986255344525">"5 min."</item> - <item msgid="294890536998091748">"10 min."</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-lv/arrays.xml b/overlay/packages/apps/Settings/res/values-lv/arrays.xml deleted file mode 100755 index 19ffffd..0000000 --- a/overlay/packages/apps/Settings/res/values-lv/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekundes"</item> - <item msgid="8672738773876256432">"30 sekundes"</item> - <item msgid="465923292941002466">"1 minÅ«te"</item> - <item msgid="7955177189296850016">"2 minÅ«tes"</item> - <item msgid="1244255986255344525">"5 minÅ«tes"</item> - <item msgid="294890536998091748">"10 minÅ«tes"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-ms/arrays.xml b/overlay/packages/apps/Settings/res/values-ms/arrays.xml deleted file mode 100755 index 0f5b80d..0000000 --- a/overlay/packages/apps/Settings/res/values-ms/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 saat"</item> - <item msgid="8672738773876256432">"30 saat"</item> - <item msgid="465923292941002466">"1 minit"</item> - <item msgid="7955177189296850016">"2 minit"</item> - <item msgid="1244255986255344525">"5 minit"</item> - <item msgid="294890536998091748">"10 minit"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-nb/arrays.xml b/overlay/packages/apps/Settings/res/values-nb/arrays.xml deleted file mode 100755 index c5db781..0000000 --- a/overlay/packages/apps/Settings/res/values-nb/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekunder"</item> - <item msgid="8672738773876256432">"30 sekunder"</item> - <item msgid="465923292941002466">"Ett minutt"</item> - <item msgid="7955177189296850016">"To minutter"</item> - <item msgid="1244255986255344525">"Fem minutter"</item> - <item msgid="294890536998091748">"Ti minutter"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-nl/arrays.xml b/overlay/packages/apps/Settings/res/values-nl/arrays.xml deleted file mode 100755 index aa15318..0000000 --- a/overlay/packages/apps/Settings/res/values-nl/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 seconden"</item> - <item msgid="8672738773876256432">"30 seconden"</item> - <item msgid="465923292941002466">"1 minuut"</item> - <item msgid="7955177189296850016">"2 minuten"</item> - <item msgid="1244255986255344525">"5 minuten"</item> - <item msgid="294890536998091748">"10 minuten"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-pl/arrays.xml b/overlay/packages/apps/Settings/res/values-pl/arrays.xml deleted file mode 100755 index 265da14..0000000 --- a/overlay/packages/apps/Settings/res/values-pl/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekund"</item> - <item msgid="8672738773876256432">"30 sekund"</item> - <item msgid="465923292941002466">"1 minuta"</item> - <item msgid="7955177189296850016">"2 minuty"</item> - <item msgid="1244255986255344525">"5 minut"</item> - <item msgid="294890536998091748">"10 minut"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-pt-rPT/arrays.xml b/overlay/packages/apps/Settings/res/values-pt-rPT/arrays.xml deleted file mode 100755 index 9d0d76b..0000000 --- a/overlay/packages/apps/Settings/res/values-pt-rPT/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 segundos"</item> - <item msgid="8672738773876256432">"30 segundos"</item> - <item msgid="465923292941002466">"1 minuto"</item> - <item msgid="7955177189296850016">"2 minutos"</item> - <item msgid="1244255986255344525">"5 minutos"</item> - <item msgid="294890536998091748">"10 minutos"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-pt/arrays.xml b/overlay/packages/apps/Settings/res/values-pt/arrays.xml deleted file mode 100755 index 1e00250..0000000 --- a/overlay/packages/apps/Settings/res/values-pt/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 segundos"</item> - <item msgid="8672738773876256432">"30 segundos"</item> - <item msgid="465923292941002466">"Um minuto"</item> - <item msgid="7955177189296850016">"Dois minutos"</item> - <item msgid="1244255986255344525">"Cinco minutos"</item> - <item msgid="294890536998091748">"10 minutos"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-ro/arrays.xml b/overlay/packages/apps/Settings/res/values-ro/arrays.xml deleted file mode 100755 index 903ea72..0000000 --- a/overlay/packages/apps/Settings/res/values-ro/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 secunde"</item> - <item msgid="8672738773876256432">"30 de secunde"</item> - <item msgid="465923292941002466">"1 minut"</item> - <item msgid="7955177189296850016">"2 minute"</item> - <item msgid="1244255986255344525">"5 minute"</item> - <item msgid="294890536998091748">"10 minute"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-ru/arrays.xml b/overlay/packages/apps/Settings/res/values-ru/arrays.xml deleted file mode 100755 index b4d5e6e..0000000 --- a/overlay/packages/apps/Settings/res/values-ru/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 Ñекунд"</item> - <item msgid="8672738773876256432">"30 Ñекунд"</item> - <item msgid="465923292941002466">"1 минута"</item> - <item msgid="7955177189296850016">"2 минуты"</item> - <item msgid="1244255986255344525">"5 минут"</item> - <item msgid="294890536998091748">"10 минут"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-sk/arrays.xml b/overlay/packages/apps/Settings/res/values-sk/arrays.xml deleted file mode 100755 index f6ffc42..0000000 --- a/overlay/packages/apps/Settings/res/values-sk/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 s"</item> - <item msgid="8672738773876256432">"30 s"</item> - <item msgid="465923292941002466">"1 min."</item> - <item msgid="7955177189296850016">"2 min."</item> - <item msgid="1244255986255344525">"5 min."</item> - <item msgid="294890536998091748">"10 min."</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-sl/arrays.xml b/overlay/packages/apps/Settings/res/values-sl/arrays.xml deleted file mode 100755 index c660d19..0000000 --- a/overlay/packages/apps/Settings/res/values-sl/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 s"</item> - <item msgid="8672738773876256432">"30 s"</item> - <item msgid="465923292941002466">"1 min"</item> - <item msgid="7955177189296850016">"2 min"</item> - <item msgid="1244255986255344525">"5 min"</item> - <item msgid="294890536998091748">"10 min"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-sr/arrays.xml b/overlay/packages/apps/Settings/res/values-sr/arrays.xml deleted file mode 100755 index bea8b75..0000000 --- a/overlay/packages/apps/Settings/res/values-sr/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 Ñекунди"</item> - <item msgid="8672738773876256432">"30 Ñекунди"</item> - <item msgid="465923292941002466">"1 минут"</item> - <item msgid="7955177189296850016">"2 минута"</item> - <item msgid="1244255986255344525">"5 минута"</item> - <item msgid="294890536998091748">"10 минута"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-sv/arrays.xml b/overlay/packages/apps/Settings/res/values-sv/arrays.xml deleted file mode 100755 index c28821f..0000000 --- a/overlay/packages/apps/Settings/res/values-sv/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 sekunder"</item> - <item msgid="8672738773876256432">"30 sekunder"</item> - <item msgid="465923292941002466">"1 minut"</item> - <item msgid="7955177189296850016">"2 minuter"</item> - <item msgid="1244255986255344525">"5 minuter"</item> - <item msgid="294890536998091748">"10 minuter"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-sw/arrays.xml b/overlay/packages/apps/Settings/res/values-sw/arrays.xml deleted file mode 100755 index 1eda2bd..0000000 --- a/overlay/packages/apps/Settings/res/values-sw/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"Sekunde 15"</item> - <item msgid="8672738773876256432">"sekunde 30"</item> - <item msgid="465923292941002466">"Dakika 1"</item> - <item msgid="7955177189296850016">"Dakika 2"</item> - <item msgid="1244255986255344525">"Dakika 5"</item> - <item msgid="294890536998091748">"Dakika 10"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-th/arrays.xml b/overlay/packages/apps/Settings/res/values-th/arrays.xml deleted file mode 100755 index 0a62eb2..0000000 --- a/overlay/packages/apps/Settings/res/values-th/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 วินาที"</item> - <item msgid="8672738773876256432">"30 วินาที"</item> - <item msgid="465923292941002466">"1 นาที"</item> - <item msgid="7955177189296850016">"2 นาที"</item> - <item msgid="1244255986255344525">"5 นาที"</item> - <item msgid="294890536998091748">"10 นาที"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-tl/arrays.xml b/overlay/packages/apps/Settings/res/values-tl/arrays.xml deleted file mode 100755 index f6eed62..0000000 --- a/overlay/packages/apps/Settings/res/values-tl/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 segundo"</item> - <item msgid="8672738773876256432">"30 segundo"</item> - <item msgid="465923292941002466">"1 minuto"</item> - <item msgid="7955177189296850016">"2 minuto"</item> - <item msgid="1244255986255344525">"5 minuto"</item> - <item msgid="294890536998091748">"10 minuto"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-tr/arrays.xml b/overlay/packages/apps/Settings/res/values-tr/arrays.xml deleted file mode 100755 index 4c0aecc..0000000 --- a/overlay/packages/apps/Settings/res/values-tr/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 saniye"</item> - <item msgid="8672738773876256432">"30 saniye"</item> - <item msgid="465923292941002466">"1 dakika"</item> - <item msgid="7955177189296850016">"2 dakika"</item> - <item msgid="1244255986255344525">"5 dakika"</item> - <item msgid="294890536998091748">"10 dakika"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-uk/arrays.xml b/overlay/packages/apps/Settings/res/values-uk/arrays.xml deleted file mode 100755 index 3406602..0000000 --- a/overlay/packages/apps/Settings/res/values-uk/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 Ñекунд"</item> - <item msgid="8672738773876256432">"30 Ñекунд"</item> - <item msgid="465923292941002466">"1 хвилина"</item> - <item msgid="7955177189296850016">"2 хвилини"</item> - <item msgid="1244255986255344525">"5 хвилин"</item> - <item msgid="294890536998091748">"10 хвилин"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-vi/arrays.xml b/overlay/packages/apps/Settings/res/values-vi/arrays.xml deleted file mode 100755 index c6de6bd..0000000 --- a/overlay/packages/apps/Settings/res/values-vi/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 giây"</item> - <item msgid="8672738773876256432">"30 giây"</item> - <item msgid="465923292941002466">"1 phút"</item> - <item msgid="7955177189296850016">"2 phút"</item> - <item msgid="1244255986255344525">"5 phút"</item> - <item msgid="294890536998091748">"10 phuÌt"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-zh-rCN/arrays.xml b/overlay/packages/apps/Settings/res/values-zh-rCN/arrays.xml deleted file mode 100755 index cb28ca4..0000000 --- a/overlay/packages/apps/Settings/res/values-zh-rCN/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 秒"</item> - <item msgid="8672738773876256432">"30 秒"</item> - <item msgid="465923292941002466">"1 分钟"</item> - <item msgid="7955177189296850016">"2 分钟"</item> - <item msgid="1244255986255344525">"5 分钟"</item> - <item msgid="294890536998091748">"10 分钟"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-zh-rTW/arrays.xml b/overlay/packages/apps/Settings/res/values-zh-rTW/arrays.xml deleted file mode 100755 index eb9329b..0000000 --- a/overlay/packages/apps/Settings/res/values-zh-rTW/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"15 秒"</item> - <item msgid="8672738773876256432">"30 秒"</item> - <item msgid="465923292941002466">"1 分é˜"</item> - <item msgid="7955177189296850016">"2 分é˜"</item> - <item msgid="1244255986255344525">"5 分é˜"</item> - <item msgid="294890536998091748">"10 分é˜"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values-zu/arrays.xml b/overlay/packages/apps/Settings/res/values-zu/arrays.xml deleted file mode 100755 index e675fbb..0000000 --- a/overlay/packages/apps/Settings/res/values-zu/arrays.xml +++ /dev/null @@ -1,31 +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. -*/ - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string-array name="screen_timeout_entries"> - <item msgid="5314770629356662739">"Imizuzwana engu-15"</item> - <item msgid="8672738773876256432">"30 amasekhondi"</item> - <item msgid="465923292941002466">"1 iminithi"</item> - <item msgid="7955177189296850016">"2 amaminithi"</item> - <item msgid="1244255986255344525">"5 amaminithii"</item> - <item msgid="294890536998091748">"10 amaminithi"</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values/arrays.xml b/overlay/packages/apps/Settings/res/values/arrays.xml deleted file mode 100755 index 3b47031..0000000 --- a/overlay/packages/apps/Settings/res/values/arrays.xml +++ /dev/null @@ -1,46 +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. -*/ ---> -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <!-- Display settings. The delay in inactivity before the screen is turned off. These are shown in a list dialog. --> - <string-array name="screen_timeout_entries"> - <item msgid="3342301044271143016">15 seconds</item> - <item msgid="8881760709354815449">30 seconds</item> - <item msgid="7589406073232279088">1 minute</item> - <item msgid="7001195990902244174">2 minutes</item> - <item msgid="7489864775127957179">5 minutes</item> - <item msgid="2314124409517439288">10 minutes</item> - </string-array> - - <!-- Do not translate. --> - <string-array name="screen_timeout_values" translatable="false"> - <!-- Do not translate. --> - <item>15000</item> - <!-- Do not translate. --> - <item>30000</item> - <!-- Do not translate. --> - <item>60000</item> - <!-- Do not translate. --> - <item>120000</item> - <!-- Do not translate. --> - <item>300000</item> - <!-- Do not translate. --> - <item>600000</item> - </string-array> -</resources> diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml deleted file mode 100644 index f2c22fd..0000000 --- a/overlay/packages/apps/Settings/res/values/config.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - 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. ---> - -<resources xmlns:xliff="urnasis:names:tc:xliff:document:1.2 "> - <!-- LED Flashlight --> - <bool name="has_led_flash">true</bool> - - <!-- Dock Settings --> - <bool name="has_dock_settings">true</bool> -</resources> diff --git a/overlay/packages/apps/Torch/res/values/config.xml b/overlay/packages/apps/Torch/res/values/config.xml deleted file mode 100644 index d0ea1d0..0000000 --- a/overlay/packages/apps/Torch/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> - <!-- If there is no sysfs-based control mechanism, enable this --> - <bool name="useCameraInterface">true</bool> - -</resources> diff --git a/proprietary-common-files.txt b/proprietary-common-files.txt new file mode 100644 index 0000000..63a5dfd --- /dev/null +++ b/proprietary-common-files.txt @@ -0,0 +1,71 @@ +system/etc/audio/LVVEFS_Rx_Configuration.txt +system/etc/audio/LVVEFS_Tx_Configuration.txt +system/etc/audio/Rx_ControlParams_BLUETOOTH_HEADSET.txt +system/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt +system/etc/audio/Rx_ControlParams_SPEAKER_WIDEBAND.txt +system/etc/audio/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt +system/etc/audio/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_BLUETOOTH_HEADSET.txt +system/etc/audio/Tx_ControlParams_EARPIECE_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_SPEAKER_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt +system/etc/audio/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt +system/lib/hw/alsa.default.so +system/lib/hw/audio.primary.exynos4.so +system/lib/hw/audio_policy.exynos4.so +system/lib/lib_Samsung_Acoustic_Module_Llite.so +system/lib/lib_Samsung_Resampler.so +system/lib/lib_Samsung_Sound_Booster.so +system/lib/libasound.so +system/lib/liblvvefs.so +system/lib/libmediayamaha.so +system/lib/libmediayamaha_jni.so +system/lib/libmediayamaha_tuning_jni.so +system/lib/libmediayamahaservice.so +system/lib/libsamsungAcousticeq.so +system/lib/libsamsungSoundbooster.so +system/lib/libyamahasrc.so +system/usr/share/alsa/alsa.conf +system/usr/share/alsa/cards/aliases.conf +system/usr/share/alsa/pcm/center_lfe.conf +system/usr/share/alsa/pcm/default.conf +system/usr/share/alsa/pcm/dmix.conf +system/usr/share/alsa/pcm/dpl.conf +system/usr/share/alsa/pcm/dsnoop.conf +system/usr/share/alsa/pcm/front.conf +system/usr/share/alsa/pcm/iec958.conf +system/usr/share/alsa/pcm/modem.conf +system/usr/share/alsa/pcm/rear.conf +system/usr/share/alsa/pcm/side.conf +system/usr/share/alsa/pcm/surround40.conf +system/usr/share/alsa/pcm/surround41.conf +system/usr/share/alsa/pcm/surround50.conf +system/usr/share/alsa/pcm/surround51.conf +system/usr/share/alsa/pcm/surround71.conf +system/cameradata/datapattern_420sp.yuv +system/cameradata/datapattern_front_420sp.yuv +system/lib/libcaps.so +system/vendor/firmware/mfc_fw.bin +system/lib/hw/gps.exynos4.so +system/lib/egl/libEGL_mali.so +system/lib/egl/libGLES_android.so +system/lib/egl/libGLESv1_CM_mali.so +system/lib/egl/libGLESv2_mali.so +system/lib/hw/gralloc.exynos4.so +system/lib/libMali.so +system/lib/libUMP.so +system/lib/libion.so +system/bin/bintvoutservice +system/lib/libTVOut.so +system/lib/libcec.so +system/lib/libddc.so +system/lib/libedid.so +system/lib/libfimc.so +system/lib/libhdmi.so +system/lib/libhdmiclient.so +system/lib/libtvout_jni.so +system/lib/libtvoutinterface.so +system/lib/libtvoutservice.so +system/lib/hw/hwcomposer.smdk4210.so +system/vendor/firmware/libpn544_fw.so +system/lib/libakm.so diff --git a/proprietary-files.sh b/proprietary-files.sh new file mode 100755 index 0000000..4d6ea7a --- /dev/null +++ b/proprietary-files.sh @@ -0,0 +1,259 @@ +#!/bin/sh + +# 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. + +VENDOR=samsung +COMMON=galaxys2-common +DEVICE=i9100 +COMMONOUTDIR=vendor/$VENDOR/$COMMON +COMMONBASE=../../../$COMMONOUTDIR/proprietary +COMMONMAKEFILE=../../../$COMMONOUTDIR/common-vendor-blobs.mk +DEVICEOUTDIR=vendor/$VENDOR/$DEVICE +DEVICEBASE=../../../$DEVICEOUTDIR/proprietary +DEVICEMAKEFILE=../../../$DEVICEOUTDIR/$DEVICE-vendor-blobs.mk + +echo "Pulling common files..." +for FILE in `cat proprietary-common-files.txt | grep -v ^# | grep -v ^$`; do + DIR=`dirname $FILE` + if [ ! -d $COMMONBASE/$DIR ]; then + mkdir -p $COMMONBASE/$DIR + fi + adb pull /$FILE $COMMONBASE/$FILE +done + +adb pull /system/lib/hw/vendor-camera.exynos4.so $COMMONBASE/system/lib/hw/camera.exynos4.so + +echo "Pulling device specific files..." +for FILE in `cat proprietary-$DEVICE-files.txt | grep -v ^# | grep -v ^$`; do + DIR=`dirname $FILE` + if [ ! -d $DEVICEBASE/$DIR ]; then + mkdir -p $DEVICEBASE/$DIR + fi + adb pull /$FILE $DEVICEBASE/$FILE +done + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > $COMMONMAKEFILE +# 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. + +PRODUCT_PACKAGES += \\ + libTVOut \\ + libfimc \\ + libhdmi \\ + libhdmiclient \\ + libmediayamahaservice \\ + libsamsungion + +PRODUCT_COPY_FILES += \\ + vendor/__VENDOR__/__COMMON__/proprietary/system/lib/hw/camera.exynos4.so:system/lib/hw/vendor-camera.exynos4.so \\ +EOF + +LINEEND=" \\" +COUNT=`cat proprietary-common-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` +for FILE in `cat proprietary-common-files.txt | grep -v ^# | grep -v ^$`; do + COUNT=`expr $COUNT - 1` + if [ $COUNT = "0" ]; then + LINEEND="" + fi + echo " $COMMONOUTDIR/proprietary/$FILE:$FILE$LINEEND" >> $COMMONMAKEFILE +done + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > $COMMONBASE/Android.mk +# 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. + +LOCAL_PATH := \$(call my-dir) + +ifneq (\$(filter i777 i9100 n7000,\$(TARGET_DEVICE)),) + +include \$(CLEAR_VARS) +LOCAL_MODULE := libTVOut +LOCAL_MODULE_OWNER := samsung +LOCAL_SRC_FILES := system/lib/libTVOut.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib +include \$(BUILD_PREBUILT) + +include \$(CLEAR_VARS) +LOCAL_MODULE := libsamsungion +LOCAL_MODULE_OWNER := samsung +LOCAL_SRC_FILES := system/lib/libion.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib +include \$(BUILD_PREBUILT) + +include \$(CLEAR_VARS) +LOCAL_MODULE := libfimc +LOCAL_MODULE_OWNER := samsung +LOCAL_SRC_FILES := system/lib/libfimc.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib +include \$(BUILD_PREBUILT) + +include \$(CLEAR_VARS) +LOCAL_MODULE := libhdmi +LOCAL_MODULE_OWNER := samsung +LOCAL_SRC_FILES := system/lib/libhdmi.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib +include \$(BUILD_PREBUILT) + +include \$(CLEAR_VARS) +LOCAL_MODULE := libhdmiclient +LOCAL_MODULE_OWNER := samsung +LOCAL_SRC_FILES := system/lib/libhdmiclient.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib +include \$(BUILD_PREBUILT) + +include \$(CLEAR_VARS) +LOCAL_MODULE := libmediayamahaservice +LOCAL_MODULE_OWNER := samsung +LOCAL_SRC_FILES := system/lib/libmediayamahaservice.so +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +LOCAL_MODULE_PATH := \$(TARGET_OUT)/lib +include \$(BUILD_PREBUILT) + +endif + +EOF + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > $DEVICEMAKEFILE +# 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. + +# Prebuilt libraries that are needed to build open-source libraries +PRODUCT_COPY_FILES := \\ + vendor/__VENDOR__/__DEVICE__/proprietary/system/lib/libril.so:obj/lib/libril.so \\ + vendor/__VENDOR__/__DEVICE__/proprietary/system/lib/libsecril-client.so:obj/lib/libsecril-client.so + +PRODUCT_COPY_FILES += \\ +EOF + +LINEEND=" \\" +COUNT=`cat proprietary-$DEVICE-files.txt | grep -v ^# | grep -v ^$ | wc -l | awk {'print $1'}` +for FILE in `cat proprietary-$DEVICE-files.txt | grep -v ^# | grep -v ^$`; do + COUNT=`expr $COUNT - 1` + if [ $COUNT = "0" ]; then + LINEEND="" + fi + echo " $DEVICEOUTDIR/proprietary/$FILE:$FILE$LINEEND" >> $DEVICEMAKEFILE +done + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../$COMMONOUTDIR/common-vendor.mk +# 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. + +# Pick up overlay for features that depend on non-open-source files +DEVICE_PACKAGE_OVERLAYS += vendor/__VENDOR__/__COMMON__/overlay + +\$(call inherit-product, vendor/__VENDOR__/__COMMON__/common-vendor-blobs.mk) +EOF + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../$DEVICEOUTDIR/BoardConfigVendor.mk +# 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. + +USE_CAMERA_STUB := false +BOARD_USES_GENERIC_AUDIO := false +EOF + +(cat << EOF) | sed s/__COMMON__/$COMMON/g | sed s/__DEVICE__/$DEVICE/g | sed s/__VENDOR__/$VENDOR/g > ../../../$DEVICEOUTDIR/$DEVICE-vendor.mk +# 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. + +# Pick up overlay for features that depend on non-open-source files +DEVICE_PACKAGE_OVERLAYS += vendor/__VENDOR__/__DEVICE__/overlay + +\$(call inherit-product, vendor/__VENDOR__/__DEVICE__/__DEVICE__-vendor-blobs.mk) +EOF diff --git a/recovery.rc b/recovery.rc deleted file mode 100644 index d9fbb50..0000000 --- a/recovery.rc +++ /dev/null @@ -1,72 +0,0 @@ -on early-init - start ueventd - -on init - export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin - export ANDROID_ROOT /system - export ANDROID_DATA /data - export ANDROID_CACHE /cache - export SECONDARY_STORAGE /emmc - export EXTERNAL_STORAGE /sdcard - - symlink /system/etc /etc - - mkdir /sdcard - mkdir /emmc - mkdir /usbdisk - mkdir /system - mkdir /data - mkdir /cache - mkdir /preload - mount /tmp /tmp tmpfs - -on boot - -# Permissions for mDNIe - chown system media_rw /sys/class/mdnie/mdnie/mode - chown system media_rw /sys/class/mdnie/mdnie/outdoor - chown system media_rw /sys/class/mdnie/mdnie/scenario - write /sys/class/mdnie/mdnie/scenario 4 - - ifup lo - hostname localhost - domainname localdomain - - class_start default - -service ueventd /sbin/ueventd - critical - -service console /sbin/sh - class core - console - disabled - group log - -on property:ro.debuggable=1 - start console - -service recovery /sbin/recovery - -service adbd /sbin/adbd recovery - disabled - -# Always start adbd on userdebug and eng builds -# In recovery, always run adbd as root. -on property:ro.debuggable=1 - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6860 - write /sys/class/android_usb/android0/functions adb - write /sys/class/android_usb/android0/enable 1 - write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer - write /sys/class/android_usb/android0/iProduct $ro.product.model - write /sys/class/android_usb/android0/iSerial $ro.serialno - start adbd - setprop service.adb.root 1 - -# Restart adbd so it can run as root -on property:service.adb.root=1 - write /sys/class/android_usb/android0/enable 0 - restart adbd - write /sys/class/android_usb/android0/enable 1 diff --git a/recovery/graphics.c b/recovery/graphics.c deleted file mode 100755 index 6d60b27..0000000 --- a/recovery/graphics.c +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Copyright (C) 2007 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. - */ - -#include <stdbool.h> -#include <stdlib.h> -#include <unistd.h> - -#include <fcntl.h> -#include <stdio.h> - -#include <sys/ioctl.h> -#include <sys/mman.h> -#include <sys/types.h> - -#include <linux/fb.h> -#include <linux/kd.h> - -#include <pixelflinger/pixelflinger.h> - -#ifdef BOARD_USE_CUSTOM_RECOVERY_FONT -#include BOARD_USE_CUSTOM_RECOVERY_FONT -#else -#include "font_10x18.h" -#endif - -#include "minui.h" - -#define PIXEL_FORMAT GGL_PIXEL_FORMAT_BGRA_8888 -#define PIXEL_SIZE 4 - -typedef struct { - GGLSurface texture; - unsigned cwidth; - unsigned cheight; - unsigned ascent; -} GRFont; - -static GRFont *gr_font = 0; -static GGLContext *gr_context = 0; -static GGLSurface gr_font_texture; -static GGLSurface gr_framebuffer[2]; -static GGLSurface gr_mem_surface; -static unsigned gr_active_fb = 0; - -static int gr_fb_fd = -1; -static int gr_vt_fd = -1; - -static struct fb_var_screeninfo vi; -static struct fb_fix_screeninfo fi; - -static int get_framebuffer(GGLSurface *fb) -{ - int fd; - void *bits; - - fd = open("/dev/graphics/fb0", O_RDWR); - if (fd < 0) { - perror("cannot open fb0"); - return -1; - } - - if (ioctl(fd, FBIOGET_VSCREENINFO, &vi) < 0) { - perror("failed to get fb0 info"); - close(fd); - return -1; - } - - vi.bits_per_pixel = PIXEL_SIZE * 8; - if (PIXEL_FORMAT == GGL_PIXEL_FORMAT_BGRA_8888) { - vi.red.offset = 8; - vi.red.length = 8; - vi.green.offset = 16; - vi.green.length = 8; - vi.blue.offset = 24; - vi.blue.length = 8; - vi.transp.offset = 0; - vi.transp.length = 8; - } else if (PIXEL_FORMAT == GGL_PIXEL_FORMAT_RGBX_8888) { - vi.red.offset = 24; - vi.red.length = 8; - vi.green.offset = 16; - vi.green.length = 8; - vi.blue.offset = 8; - vi.blue.length = 8; - vi.transp.offset = 0; - vi.transp.length = 8; - } else { /* RGB565*/ - vi.red.offset = 11; - vi.red.length = 5; - vi.green.offset = 5; - vi.green.length = 6; - vi.blue.offset = 0; - vi.blue.length = 5; - vi.transp.offset = 0; - vi.transp.length = 0; - } - if (ioctl(fd, FBIOPUT_VSCREENINFO, &vi) < 0) { - perror("failed to put fb0 info"); - close(fd); - return -1; - } - - if (ioctl(fd, FBIOGET_FSCREENINFO, &fi) < 0) { - perror("failed to get fb0 info"); - close(fd); - return -1; - } - - bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); - if (bits == MAP_FAILED) { - perror("failed to mmap framebuffer"); - close(fd); - return -1; - } - - fb->version = sizeof(*fb); - fb->width = vi.xres; - fb->height = vi.yres; - fb->stride = fi.line_length/PIXEL_SIZE; - fb->data = bits; - fb->format = PIXEL_FORMAT; - memset(fb->data, 0, vi.yres * fi.line_length); - - fb++; - - fb->version = sizeof(*fb); - fb->width = vi.xres; - fb->height = vi.yres; - fb->stride = fi.line_length/PIXEL_SIZE; - fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length); - fb->format = PIXEL_FORMAT; - memset(fb->data, 0, vi.yres * fi.line_length); - - return fd; -} - -static void get_memory_surface(GGLSurface* ms) { - ms->version = sizeof(*ms); - ms->width = vi.xres; - ms->height = vi.yres; - ms->stride = fi.line_length/PIXEL_SIZE; - ms->data = malloc(fi.line_length * vi.yres); - ms->format = PIXEL_FORMAT; -} - -static void set_active_framebuffer(unsigned n) -{ - if (n > 1) return; - vi.yres_virtual = vi.yres * PIXEL_SIZE; - vi.yoffset = n * vi.yres; - vi.bits_per_pixel = PIXEL_SIZE * 8; - if (ioctl(gr_fb_fd, FBIOPUT_VSCREENINFO, &vi) < 0) { - perror("active fb swap failed"); - } -} - -void gr_flip(void) -{ - GGLContext *gl = gr_context; - - /* swap front and back buffers */ - gr_active_fb = (gr_active_fb + 1) & 1; - - /* copy data from the in-memory surface to the buffer we're about - * to make active. */ - memcpy(gr_framebuffer[gr_active_fb].data, gr_mem_surface.data, - fi.line_length * vi.yres); - - /* inform the display driver */ - set_active_framebuffer(gr_active_fb); -} - -void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a) -{ - GGLContext *gl = gr_context; - GGLint color[4]; - color[0] = ((r << 8) | r) + 1; - color[1] = ((g << 8) | g) + 1; - color[2] = ((b << 8) | b) + 1; - color[3] = ((a << 8) | a) + 1; - gl->color4xv(gl, color); -} - -int gr_measure(const char *s) -{ - return gr_font->cwidth * strlen(s); -} - -void gr_font_size(int *x, int *y) -{ - *x = gr_font->cwidth; - *y = gr_font->cheight; -} - -int gr_text(int x, int y, const char *s) -{ - GGLContext *gl = gr_context; - GRFont *font = gr_font; - unsigned off; - - y -= font->ascent; - - gl->bindTexture(gl, &font->texture); - gl->texEnvi(gl, GGL_TEXTURE_ENV, GGL_TEXTURE_ENV_MODE, GGL_REPLACE); - gl->texGeni(gl, GGL_S, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE); - gl->texGeni(gl, GGL_T, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE); - gl->enable(gl, GGL_TEXTURE_2D); - - while((off = *s++)) { - off -= 32; - if (off < 96) { - gl->texCoord2i(gl, (off * font->cwidth) - x, 0 - y); - gl->recti(gl, x, y, x + font->cwidth, y + font->cheight); - } - x += font->cwidth; - } - - return x; -} - -void gr_fill(int x, int y, int w, int h) -{ - GGLContext *gl = gr_context; - gl->disable(gl, GGL_TEXTURE_2D); - gl->recti(gl, x, y, w, h); -} - -void gr_blit(gr_surface source, int sx, int sy, int w, int h, int dx, int dy) { - if (gr_context == NULL) { - return; - } - GGLContext *gl = gr_context; - - gl->bindTexture(gl, (GGLSurface*) source); - gl->texEnvi(gl, GGL_TEXTURE_ENV, GGL_TEXTURE_ENV_MODE, GGL_REPLACE); - gl->texGeni(gl, GGL_S, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE); - gl->texGeni(gl, GGL_T, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE); - gl->enable(gl, GGL_TEXTURE_2D); - gl->texCoord2i(gl, sx - dx, sy - dy); - gl->recti(gl, dx, dy, dx + w, dy + h); -} - -unsigned int gr_get_width(gr_surface surface) { - if (surface == NULL) { - return 0; - } - return ((GGLSurface*) surface)->width; -} - -unsigned int gr_get_height(gr_surface surface) { - if (surface == NULL) { - return 0; - } - return ((GGLSurface*) surface)->height; -} - -static void gr_init_font(void) -{ - GGLSurface *ftex; - unsigned char *bits, *rle; - unsigned char *in, data; - - gr_font = calloc(sizeof(*gr_font), 1); - ftex = &gr_font->texture; - - bits = malloc(font.width * font.height); - - ftex->version = sizeof(*ftex); - ftex->width = font.width; - ftex->height = font.height; - ftex->stride = font.width; - ftex->data = (void*) bits; - ftex->format = GGL_PIXEL_FORMAT_A_8; - - in = font.rundata; - while((data = *in++)) { - memset(bits, (data & 0x80) ? 255 : 0, data & 0x7f); - bits += (data & 0x7f); - } - - gr_font->cwidth = font.cwidth; - gr_font->cheight = font.cheight; - gr_font->ascent = font.cheight - 2; -} - -int gr_init(void) -{ - gglInit(&gr_context); - GGLContext *gl = gr_context; - - gr_init_font(); - gr_vt_fd = open("/dev/tty0", O_RDWR | O_SYNC); - if (gr_vt_fd < 0) { - // This is non-fatal; post-Cupcake kernels don't have tty0. - perror("can't open /dev/tty0"); - } else if (ioctl(gr_vt_fd, KDSETMODE, (void*) KD_GRAPHICS)) { - // However, if we do open tty0, we expect the ioctl to work. - perror("failed KDSETMODE to KD_GRAPHICS on tty0"); - gr_exit(); - return -1; - } - - gr_fb_fd = get_framebuffer(gr_framebuffer); - if (gr_fb_fd < 0) { - gr_exit(); - return -1; - } - - get_memory_surface(&gr_mem_surface); - - fprintf(stderr, "framebuffer: fd %d (%d x %d)\n", - gr_fb_fd, gr_framebuffer[0].width, gr_framebuffer[0].height); - - /* start with 0 as front (displayed) and 1 as back (drawing) */ - gr_active_fb = 0; - set_active_framebuffer(0); - gl->colorBuffer(gl, &gr_mem_surface); - - gl->activeTexture(gl, 0); - gl->enable(gl, GGL_BLEND); - gl->blendFunc(gl, GGL_SRC_ALPHA, GGL_ONE_MINUS_SRC_ALPHA); - - gr_fb_blank(true); - gr_fb_blank(false); - - return 0; -} - -void gr_exit(void) -{ - close(gr_fb_fd); - gr_fb_fd = -1; - - free(gr_mem_surface.data); - - ioctl(gr_vt_fd, KDSETMODE, (void*) KD_TEXT); - close(gr_vt_fd); - gr_vt_fd = -1; -} - -int gr_fb_width(void) -{ - return gr_framebuffer[0].width; -} - -int gr_fb_height(void) -{ - return gr_framebuffer[0].height; -} - -gr_pixel *gr_fb_data(void) -{ - return (unsigned short *) gr_mem_surface.data; -} - -void gr_fb_blank(bool blank) -{ - int ret; - - ret = ioctl(gr_fb_fd, FBIOBLANK, blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK); - if (ret < 0) - perror("ioctl(): blank"); -} diff --git a/recovery/recovery_keys.c b/recovery/recovery_keys.c deleted file mode 100755 index 37096a4..0000000 --- a/recovery/recovery_keys.c +++ /dev/null @@ -1,63 +0,0 @@ -#include <linux/input.h> - -#include "recovery_ui.h" -#include "common.h" -#include "extendedcommands.h" - - -int device_toggle_display(volatile char* key_pressed, int key_code) { - int alt = key_pressed[KEY_LEFTALT] || key_pressed[KEY_RIGHTALT]; - if (alt && key_code == KEY_L) - return 1; - // allow toggling of the display if the correct key is pressed, and the display toggle is allowed or the display is currently off - if (ui_get_showing_back_button()) { - return 0; - //return get_allow_toggle_display() && (key_code == KEY_HOME || key_code == KEY_MENU || key_code == KEY_END); - } - return get_allow_toggle_display() && (key_code == KEY_HOMEPAGE || key_code == KEY_MENU || key_code == KEY_POWER || key_code == KEY_END); -} - -int device_handle_key(int key_code, int visible) { - if (visible) { - switch (key_code) { - case KEY_CAPSLOCK: - case KEY_DOWN: - case KEY_VOLUMEDOWN: - return HIGHLIGHT_DOWN; - case KEY_MENU: - return NO_ACTION; - case KEY_LEFTSHIFT: - case KEY_UP: - case KEY_VOLUMEUP: - return HIGHLIGHT_UP; - case KEY_HOME: - case KEY_HOMEPAGE: - if (ui_get_showing_back_button()) { - return SELECT_ITEM; - } - if (!get_allow_toggle_display()) - return GO_BACK; - break; - case KEY_POWER: - if (ui_get_showing_back_button()) { - return SELECT_ITEM; - } - if (!get_allow_toggle_display()) - return GO_BACK; - break; - case KEY_LEFTBRACE: - case KEY_ENTER: - case BTN_MOUSE: - case KEY_CAMERA: - case KEY_F21: - case KEY_SEND: - case KEY_END: - case KEY_BACKSPACE: - case KEY_SEARCH: - case KEY_BACK: - return GO_BACK; - } - } - - return NO_ACTION; -} diff --git a/releasetools/n7000_common.py b/releasetools/n7000_common.py deleted file mode 100755 index 93f1b8e..0000000 --- a/releasetools/n7000_common.py +++ /dev/null @@ -1,31 +0,0 @@ -# -# Copyright (C) 2008 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. - -import os, sys - -LOCAL_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) -RELEASETOOLS_DIR = os.path.abspath(os.path.join(LOCAL_DIR, '../../../build/tools/releasetools')) - -# Add releasetools directory to python path -sys.path.append(RELEASETOOLS_DIR) - -from common import * - -def load_module_from_file(module_name, filename): - import imp - f = open(filename, 'r') - module = imp.load_module(module_name, f, filename, ('', 'U', 1)) - f.close() - return module diff --git a/releasetools/n7000_edify_generator.py b/releasetools/n7000_edify_generator.py deleted file mode 100755 index 95bdf48..0000000 --- a/releasetools/n7000_edify_generator.py +++ /dev/null @@ -1,46 +0,0 @@ -# -# Copyright (C) 2008 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. - -import os, sys - -LOCAL_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) -RELEASETOOLS_DIR = os.path.abspath(os.path.join(LOCAL_DIR, '../../../build/tools/releasetools')) - -import edify_generator - -class EdifyGenerator(edify_generator.EdifyGenerator): - def UnpackPackageFile(self, src, dst): - """Unpack a given file from the OTA package into the given - destination file.""" - self.script.append('package_extract_file("%s", "%s");' % (src, dst)) - - def EMMCWriteRawImage(self, partition, image): - """Write the given package file into the given partition.""" - - args = {'partition': partition, 'image': image} - - self.script.append( - ('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) diff --git a/releasetools/n7000_img_from_target_files b/releasetools/n7000_img_from_target_files deleted file mode 100755 index f9a5904..0000000 --- a/releasetools/n7000_img_from_target_files +++ /dev/null @@ -1,185 +0,0 @@ -#!/usr/bin/env python -# -# Copyright (C) 2008 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. - -""" -Given a target-files zipfile, produces an image zipfile suitable for -use with 'fastboot update'. - -Usage: img_from_target_files [flags] input_target_files output_image_zip - - -b (--board_config) <file> - Deprecated. - -""" - -import sys - -if sys.hexversion < 0x02040000: - print >> sys.stderr, "Python 2.4 or newer is required." - sys.exit(1) - -import errno -import os -import re -import shutil -import subprocess -import tempfile -import zipfile - -# missing in Python 2.4 and before -if not hasattr(os, "SEEK_SET"): - os.SEEK_SET = 0 - -import n7000_common as common - -OPTIONS = common.OPTIONS - -def AddUserdata(output_zip): - """Create an empty userdata image and store it in output_zip.""" - - print "creating userdata.img..." - - # The name of the directory it is making an image out of matters to - # mkyaffs2image. So we create a temp dir, and within it we create an - # empty dir named "data", and build the image from that. - temp_dir = tempfile.mkdtemp() - user_dir = os.path.join(temp_dir, "data") - os.mkdir(user_dir) - img = tempfile.NamedTemporaryFile() - - build_command = [] - if OPTIONS.info_dict["fstab"]["/data"].fs_type.startswith("ext"): - build_command = ["mkuserimg.sh", - user_dir, img.name, - OPTIONS.info_dict["fstab"]["/data"].fs_type, "data"] - if "userdata_size" in OPTIONS.info_dict: - build_command.append(str(OPTIONS.info_dict["userdata_size"])) - else: - build_command = ["mkyaffs2image", "-f"] - extra = OPTIONS.info_dict.get("mkyaffs2_extra_flags", None) - if extra: - build_command.extend(extra.split()) - build_command.append(user_dir) - build_command.append(img.name) - - p = common.Run(build_command) - p.communicate() - assert p.returncode == 0, "build userdata.img image failed" - - common.CheckSize(img.name, "userdata.img", OPTIONS.info_dict) - output_zip.write(img.name, "userdata.img") - img.close() - os.rmdir(user_dir) - os.rmdir(temp_dir) - - -def AddSystem(output_zip): - """Turn the contents of SYSTEM into a system image and store it in - output_zip.""" - - print "creating system.img..." - - img = tempfile.NamedTemporaryFile() - - # The name of the directory it is making an image out of matters to - # mkyaffs2image. It wants "system" but we have a directory named - # "SYSTEM", so create a symlink. - try: - os.symlink(os.path.join(OPTIONS.input_tmp, "SYSTEM"), - os.path.join(OPTIONS.input_tmp, "system")) - except OSError, e: - if (e.errno == errno.EEXIST): - pass - - build_command = [] - if OPTIONS.info_dict["fstab"]["/system"].fs_type.startswith("ext"): - build_command = ["mkuserimg.sh", - os.path.join(OPTIONS.input_tmp, "system"), img.name, - OPTIONS.info_dict["fstab"]["/system"].fs_type, "system"] - if "system_size" in OPTIONS.info_dict: - build_command.append(str(OPTIONS.info_dict["system_size"])) - else: - build_command = ["mkyaffs2image", "-f"] - extra = OPTIONS.info_dict.get("mkyaffs2_extra_flags", None) - if extra: - build_command.extend(extra.split()) - build_command.append(os.path.join(OPTIONS.input_tmp, "system")) - build_command.append(img.name) - - p = common.Run(build_command) - p.communicate() - assert p.returncode == 0, "build system.img image failed" - - img.seek(os.SEEK_SET, 0) - data = img.read() - img.close() - - common.CheckSize(data, "system.img", OPTIONS.info_dict) - common.ZipWriteStr(output_zip, "system.img", data) - - -def CopyInfo(output_zip): - """Copy the android-info.txt file from the input to the output.""" - output_zip.write(os.path.join(OPTIONS.input_tmp, "OTA", "android-info.txt"), - "android-info.txt") - - -def main(argv): - - def option_handler(o, a): - if o in ("-b", "--board_config"): - pass # deprecated - else: - return False - return True - - args = common.ParseOptions(argv, __doc__, - extra_opts="b:", - extra_long_opts=["board_config="], - extra_option_handler=option_handler) - - if len(args) != 2: - common.Usage(__doc__) - sys.exit(1) - - OPTIONS.input_tmp = common.UnzipTemp(args[0]) - - input_zip = zipfile.ZipFile(args[0], "r") - OPTIONS.info_dict = common.LoadInfoDict(input_zip) - - output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED) - - common.AddBoot(output_zip, OPTIONS.info_dict) - common.AddRecovery(output_zip, OPTIONS.info_dict) - AddSystem(output_zip) - AddUserdata(output_zip) - CopyInfo(output_zip) - - print "cleaning up..." - output_zip.close() - shutil.rmtree(OPTIONS.input_tmp) - - print "done." - - -if __name__ == '__main__': - try: - main(sys.argv[1:]) - except common.ExternalError, e: - print - print " ERROR: %s" % (e,) - print - sys.exit(1) diff --git a/releasetools/n7000_ota_from_target_files b/releasetools/n7000_ota_from_target_files deleted file mode 100755 index f19f059..0000000 --- a/releasetools/n7000_ota_from_target_files +++ /dev/null @@ -1,124 +0,0 @@ -#!/usr/bin/env python -# -# Copyright (C) 2008 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. - -import sys -import os -import n7000_common as common - -LOCAL_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) -RELEASETOOLS_DIR = os.path.abspath(os.path.join(LOCAL_DIR, '../../../build/tools/releasetools')) -TARGET_DIR = os.getenv('OUT') - -# Add releasetools directory to python path -sys.path.append(RELEASETOOLS_DIR) - -# Import the existing file so we just have to rewrite the modules we need. -# This is a nasty hack as the filename doesn't end in .py, but it works -filename = os.path.join(RELEASETOOLS_DIR, "ota_from_target_files") -ota_from_target_files = common.load_module_from_file('ota_from_target_files', filename) - -from ota_from_target_files import * -import n7000_edify_generator as edify_generator - -__doc__ = ota_from_target_files.__doc__ - -def CopyBootFiles(input_zip, output_zip): - output_zip.write(os.path.join(TARGET_DIR, "boot.img"),"boot.img") - -def WriteFullOTAPackage(input_zip, output_zip): - # TODO: how to determine this? We don't know what version it will - # be installed on top of. For now, we expect the API just won't - # change very often. - script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict) - - metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip), - "pre-device": GetBuildProp("ro.product.device", input_zip), - "post-timestamp": GetBuildProp("ro.build.date.utc", input_zip), - } - - device_specific = common.DeviceSpecificParams( - input_zip=input_zip, - input_version=OPTIONS.info_dict["recovery_api_version"], - output_zip=output_zip, - script=script, - input_tmp=OPTIONS.input_tmp, - metadata=metadata, - info_dict=OPTIONS.info_dict) - - AppendAssertions(script, input_zip) - device_specific.FullOTA_Assertions() - if OPTIONS.backuptool: - script.Mount("/system") - script.RunBackup("backup") - script.Unmount("/system") - - script.ShowProgress(0.5, 0) - - if OPTIONS.wipe_user_data: - script.FormatPartition("/data") - - script.Unmount("/system") - script.FormatPartition("/system") - script.Mount("/system") - script.UnpackPackageDir("recovery", "/system") - script.UnpackPackageDir("system", "/system") - - (symlinks, retouch_files) = CopySystemFiles(input_zip, output_zip) - script.MakeSymlinks(symlinks) - if OPTIONS.aslr_mode: - script.RetouchBinaries(retouch_files) - else: - script.UndoRetouchBinaries(retouch_files) - - CopyBootFiles(input_zip, output_zip) - - Item.GetMetadata(input_zip) - Item.Get("system").SetPermissions(script) - - script.ShowProgress(0.2, 0) - - if OPTIONS.backuptool: - script.ShowProgress(0.2, 10) - script.RunBackup("restore") - - script.ShowProgress(0.2, 10) - script.EMMCWriteRawImage("/dev/block/mmcblk0p5", "boot.img") - - script.ShowProgress(0.1, 0) - device_specific.FullOTA_InstallEnd() - - if OPTIONS.extra_script is not None: - script.AppendExtra(OPTIONS.extra_script) - - script.UnmountAll() - script.AddToZip(input_zip, output_zip) - WriteMetadata(metadata, output_zip) -ota_from_target_files.WriteFullOTAPackage = WriteFullOTAPackage - - -def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip): - print "Incremental OTA Packages are not support on the n7000 at this time" - sys.exit(1) -ota_from_target_files.WriteIncrementalOTAPackage = WriteIncrementalOTAPackage - -if __name__ == '__main__': - try: - main(sys.argv[1:]) - except common.ExternalError, e: - print - print " ERROR: %s" % (e,) - print - sys.exit(1) diff --git a/setup-makefiles.sh b/setup-makefiles.sh deleted file mode 100755 index 4b6782b..0000000 --- a/setup-makefiles.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -# 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. - -DEVICE=n7000 -MANUFACTURER=samsung - -mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE - -(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/$DEVICE-vendor.mk -# 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. - -# This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh - -# Live wallpaper packages and Themes -PRODUCT_PACKAGES := \\ - LiveWallpapers \\ - LiveWallpapersPicker \\ - MagicSmokeWallpapers \\ - VisualizationWallpapers \\ - librs_jni - -# Publish that we support the live wallpaper feature. -PRODUCT_COPY_FILES := \\ - packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml - -# Pick up overlay for features that depend on non-open-source files -DEVICE_PACKAGE_OVERLAYS := vendor/__MANUFACTURER__/__DEVICE__/overlay - -\$(call inherit-product, vendor/__MANUFACTURER__/__DEVICE__/__DEVICE__-vendor-blobs.mk) -EOF - -(cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/BoardConfigVendor.mk -# 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. - -# This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh - -USE_CAMERA_STUB := false -BOARD_USES_GENERIC_AUDIO := false -BOARD_USES_LIBSECRIL_STUB := false - -EOF diff --git a/shbootimg.mk b/shbootimg.mk deleted file mode 100755 index a83532f..0000000 --- a/shbootimg.mk +++ /dev/null @@ -1,34 +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. -# - -LOCAL_PATH := $(call my-dir) - -INSTALLED_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/boot.img - -uncompressed_ramdisk := $(PRODUCT_OUT)/ramdisk.cpio -$(uncompressed_ramdisk): $(INSTALLED_RAMDISK_TARGET) - zcat $< > $@ - -TARGET_KERNEL_BINARIES: $(KERNEL_OUT) $(KERNEL_CONFIG) $(KERNEL_HEADERS_INSTALL) $(recovery_uncompressed_ramdisk) $(uncompressed_ramdisk) - $(MAKE) -C $(KERNEL_SRC) O=$(KERNEL_OUT) ARCH=$(TARGET_ARCH) $(ARM_CROSS_COMPILE) $(TARGET_PREBUILT_INT_KERNEL_TYPE) - $(MAKE) -C $(KERNEL_SRC) O=$(KERNEL_OUT) ARCH=$(TARGET_ARCH) $(ARM_CROSS_COMPILE) modules - $(MAKE) -C $(KERNEL_SRC) O=$(KERNEL_OUT) INSTALL_MOD_PATH=../../$(KERNEL_MODULES_INSTALL) ARCH=$(TARGET_ARCH) $(ARM_CROSS_COMPILE) modules_install - -$(INSTALLED_BOOTIMAGE_TARGET): $(INSTALLED_KERNEL_TARGET) - $(ACP) -fp $< $@ - -$(INSTALLED_RECOVERYIMAGE_TARGET): $(INSTALLED_KERNEL_TARGET) - $(ACP) -fp $< $@ diff --git a/system.prop b/system.prop index d4c4159..1a6fbb2 100644 --- a/system.prop +++ b/system.prop @@ -4,4 +4,3 @@ rild.libpath=/system/lib/libsec-ril.so rild.libargs=-d /dev/ttyS0 -persist.sys.strictmode.visual=0 diff --git a/tvout/Android.mk b/tvout/Android.mk deleted file mode 100644 index c73e1cf..0000000 --- a/tvout/Android.mk +++ /dev/null @@ -1,16 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_PROGUARD_FLAG_FILES := proguard.flags - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := TvOut -LOCAL_CERTIFICATE := platform - -include $(BUILD_PACKAGE) - -# Use the folloing include to make our test apk. -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/tvout/AndroidManifest.xml b/tvout/AndroidManifest.xml deleted file mode 100644 index 79d5745..0000000 --- a/tvout/AndroidManifest.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.teamhacksung.tvout" android:versionCode="1" - android:versionName="1.0"> - - <application android:label="TvOut"> - - <service android:exported="false" android:enabled="true" - android:name=".TvOutService"> - </service> - - <receiver android:name=".BootCompletedReceiver"> - <intent-filter> - <action android:name="android.intent.action.BOOT_COMPLETED" /> - <category android:name="android.intent.category.DEFAULT" /> - </intent-filter> - </receiver> - - </application> - - <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"></uses-permission> - <uses-permission android:name="android.permission.BROADCAST_STICKY"></uses-permission> - <uses-permission android:name="android.permission.FACTORY_TEST"></uses-permission> -</manifest> diff --git a/tvout/proguard.flags b/tvout/proguard.flags deleted file mode 100644 index 3725966..0000000 --- a/tvout/proguard.flags +++ /dev/null @@ -1 +0,0 @@ --dontshrink diff --git a/tvout/src/android/hardware/Tvout.java b/tvout/src/android/hardware/Tvout.java deleted file mode 100644 index f2fc3a8..0000000 --- a/tvout/src/android/hardware/Tvout.java +++ /dev/null @@ -1,102 +0,0 @@ -package android.hardware; - -import android.util.Log; - -public class Tvout { - private static final String TAG = "Tvout_java"; - - static { - System.loadLibrary("tvout_jni"); - } - - public Tvout() { - Log.i(TAG, "Tvout Initializing"); - _native_setup(); - } - - private native boolean _TvoutGetCableStatus(); - - private native boolean _TvoutGetStatus(); - - private native boolean _TvoutGetSubtitleStatus(); - - private native boolean _TvoutGetSuspendStatus(); - - private native boolean _TvoutPostSubtitle(String string, int param); - - private native boolean _TvoutPostSuspend(String string); - - private native boolean _TvoutSetCableStatus(boolean connected); - - private native boolean _TvoutSetOutputMode(int mode); - - private native boolean _TvoutSetResolution(int resolution); - - private native boolean _TvoutSetStatus(boolean enabled); - - private native boolean _TvoutSetSubtitleStatus(boolean enabled); - - private native boolean _TvoutSetSuspendStatus(boolean enabled); - - private native boolean _TvoutSetDefaultString(String string); - - private final native void _native_setup(); - - private final native void _release(); - - public boolean getCableStatus() { - return _TvoutGetCableStatus(); - } - - public boolean getStatus() { - return _TvoutGetStatus(); - } - - public boolean getSubtitleStatus() { - return _TvoutGetSubtitleStatus(); - } - - public boolean getSuspendStatus() { - return _TvoutGetSuspendStatus(); - } - - public boolean postSubtitle(String string, int paramInt) { - return _TvoutPostSubtitle(string, paramInt); - } - - public boolean postSuspend(String string) { - return _TvoutPostSuspend(string); - } - - public boolean setCableStatus(boolean connected) { - return _TvoutSetCableStatus(connected); - } - - public boolean setOutputMode(int mode) { - return _TvoutSetOutputMode(mode); - } - - public boolean setResolution(int resolution) { - return _TvoutSetResolution(resolution); - } - - public boolean setStatus(boolean enabled) { - return _TvoutSetStatus(enabled); - } - - public boolean setSubtitleStatus(boolean enabled) { - return _TvoutSetSubtitleStatus(enabled); - } - - public boolean setSuspendStatus(boolean enabled) { - return _TvoutSetSuspendStatus(enabled); - } - - public boolean setDefaultString(String string) { - return _TvoutSetDefaultString(string); - } - - public void release() { - _release(); - } -} diff --git a/tvout/src/com/teamhacksung/tvout/BootCompletedReceiver.java b/tvout/src/com/teamhacksung/tvout/BootCompletedReceiver.java deleted file mode 100644 index 5ed6af6..0000000 --- a/tvout/src/com/teamhacksung/tvout/BootCompletedReceiver.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.teamhacksung.tvout; - -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; - -public class BootCompletedReceiver extends BroadcastReceiver { - @Override - public void onReceive(Context context, Intent intent) { - context.startService(new Intent(context, TvOutService.class)); - } -} diff --git a/tvout/src/com/teamhacksung/tvout/TvOutService.java b/tvout/src/com/teamhacksung/tvout/TvOutService.java deleted file mode 100644 index b633b3d..0000000 --- a/tvout/src/com/teamhacksung/tvout/TvOutService.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.teamhacksung.tvout; - -import android.app.Service; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.hardware.Tvout; -import android.nfc.Tag; -import android.os.IBinder; -import android.os.RemoteException; -import android.os.ServiceManager; -import android.util.Log; - -public class TvOutService extends Service { - - public static final String TAG = "TvOutService_java"; - - private Tvout mTvOut; - private boolean mWasOn = false; // For enabling on screen on - - private BroadcastReceiver mReceiver = new BroadcastReceiver() { - @Override - public void onReceive(Context context, Intent intent) { - String action = intent.getAction(); - if (Intent.ACTION_HDMI_AUDIO_PLUG.equals(action)) { - getTvoutInstance(); - int state = intent.getIntExtra("state", 0); - if (state == 1 && !mTvOut.getStatus()) { - // Enable when cable is plugged - Log.i(TAG, "HDMI plugged"); - mWasOn = false; - enable(); - } else if (mTvOut.getStatus()) { - // Disable when cable is unplugged - Log.i(TAG, "HDMI unplugged"); - mWasOn = false; - disable(); - releaseTvout(); - } - } else if (Intent.ACTION_SCREEN_ON.equals(action)) { - if (mTvOut != null && mWasOn) { - Log.i(TAG, "Screen On - Resume TvOut stream"); - mWasOn = false; - mTvOut.setSuspendStatus(false); - } - } else if (Intent.ACTION_SCREEN_OFF.equals(action)) { - if (mTvOut != null && mTvOut.getStatus()) { - Log.i(TAG, "Screen Off - Pausing TvOut stream"); - mWasOn = true; - mTvOut.setSuspendStatus(true); - } - } - } - - }; - - @Override - public IBinder onBind(Intent intent) { - return null; - } - - @Override - public void onCreate() { - IntentFilter filter = new IntentFilter(Intent.ACTION_HDMI_AUDIO_PLUG); - filter.addAction(Intent.ACTION_SCREEN_OFF); - filter.addAction(Intent.ACTION_SCREEN_ON); - registerReceiver(mReceiver, filter); - Log.i(TAG, "Registered Receiver"); - } - - @Override - public int onStartCommand(Intent intent, int flags, int startId) { - return START_STICKY; - } - - private boolean getTvoutInstance() { - if (mTvOut != null) return true; - - try { - mTvOut = new Tvout(); - } catch (Exception e) { - return false; - } - - return true; - } - - private void releaseTvout() { - if (mTvOut != null) { - mTvOut.release(); - mTvOut = null; - } - } - - @Override - public void onDestroy() { - unregisterReceiver(mReceiver); - releaseTvout(); - super.onDestroy(); - } - - private void enable() { - if (mTvOut == null) return; - mTvOut.setStatus(true); - mTvOut.setCableStatus(true); - mTvOut.setSuspendStatus(false); - } - - private void disable() { - if (mTvOut == null) return; - mTvOut.setStatus(false); - mTvOut.setCableStatus(false); - } - -} diff --git a/tvouthack/Android.mk b/tvouthack/Android.mk deleted file mode 100644 index 19ad32f..0000000 --- a/tvouthack/Android.mk +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2012 The CyanogenMod Project -# Copyright (C) 2012 Pawit Pornkitprasan -# -# 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. - -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_SRC_FILES := main.cpp - -LOCAL_SHARED_LIBRARIES := libutils libbinder - -LOCAL_MODULE := TvOutHack - -include $(BUILD_EXECUTABLE) diff --git a/tvouthack/main.cpp b/tvouthack/main.cpp deleted file mode 100644 index a59d4a9..0000000 --- a/tvouthack/main.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include <stdio.h> -#include <binder/IPCThreadState.h> -#include <binder/ProcessState.h> -#include <binder/IServiceManager.h> -#include <utils/Log.h> - -using namespace android; - -int main() { - sp<IServiceManager> sm = defaultServiceManager(); - sp<IBinder> binder; - - do { - binder = sm->getService(String16("TvoutService_C")); - if (binder != 0) break; - usleep(500000); // 0.5 s - } while(true); - - int ret; - - Parcel s2, r2; - s2.writeInterfaceToken(String16("android.hardware.ITvoutService")); - binder->transact(1, s2, &r2); - sp<IBinder> binder2 = r2.readStrongBinder(); - - while (true) { - { - - Parcel send, reply; - int code = 4; - send.writeInterfaceToken(String16("android.hardware.Tvout")); - int ret = binder2->transact(code, send, &reply); - } - { - - Parcel send, reply; - int code = 27; - send.writeInterfaceToken(String16("android.hardware.ITvout")); - int ret = binder2->transact(code, send, &reply); - } - { - - Parcel send, reply; - int code = 13; - send.writeInterfaceToken(String16("android.hardware.ITvout")); - send.writeInt32(0); - int ret = binder2->transact(code, send, &reply); - } - usleep(15000); // Should give ~60 fps - } - return 0; -} diff --git a/ueventd.smdk4210.rc b/ueventd.smdk4210.rc deleted file mode 100644 index 95e6691..0000000 --- a/ueventd.smdk4210.rc +++ /dev/null @@ -1,32 +0,0 @@ -/dev/mali 0666 system system -/dev/ump 0666 system graphics -/dev/exynos-mem 0666 system graphics -/dev/s3c-mem 0666 system system -/dev/s3c-mfc 0666 system graphics -/dev/s5p-mfc 0666 system graphics -/dev/video0 0666 system m2m -/dev/video1 0666 system camera -/dev/video2 0666 system m2m -/dev/video3 0666 system m2m -/dev/video4 0666 system m2m -/dev/s5p-jpeg 0666 system camera -/dev/video14 0666 system system -/dev/video21 0666 system system -/dev/pmem 0660 system graphics -/dev/pmem_gpu1 0660 system graphics -# logger should be world writable (for logging) but not readable -/dev/log/* 0662 root log -/dev/i2c-7 0666 system system -/dev/CEC 0666 system system -/dev/HPD 0666 system system -/dev/fimg2d 0666 system graphics -/dev/fmradio 0660 system audio -/dev/input/* 0666 root input -/dev/srp 0666 system audio -/dev/srp_ctrl 0666 system audio -/dev/umts* 0660 system radio -/dev/link_pm 0660 system radio -/dev/block/mmcblk0p8 0660 system radio -/dev/akm8975 0660 system system -/dev/accelerometer 0660 system system -/dev/graphics/fb0 0777 root graphics diff --git a/usr/idc/sec_e-pen.idc b/usr/idc/sec_e-pen.idc deleted file mode 100644 index 0e7fb4f..0000000 --- a/usr/idc/sec_e-pen.idc +++ /dev/null @@ -1,2 +0,0 @@ -touch.deviceType = pointer -touch.orientationAware = 1 diff --git a/usr/keylayout/Generic.kl b/usr/keylayout/Generic.kl index bc31305..10de6ac 100644 --- a/usr/keylayout/Generic.kl +++ b/usr/keylayout/Generic.kl @@ -141,7 +141,7 @@ key 117 NUMPAD_EQUALS key 119 BREAK # key 120 (undefined) key 121 NUMPAD_COMMA -key 122 LANG +# key 122 "KEY_HANGEUL" # key 123 "KEY_HANJA" # key 124 "KEY_YEN" key 125 META_LEFT @@ -159,7 +159,7 @@ key 128 MEDIA_STOP # key 137 "KEY_CUT" # key 138 "KEY_HELP" key 139 MENU WAKE_DROPPED -key 140 CALCULATOR +# key 140 "KEY_CALC" # key 141 "KEY_SETUP" key 142 POWER WAKE key 143 POWER WAKE @@ -190,7 +190,7 @@ key 167 MEDIA_RECORD key 168 MEDIA_REWIND key 169 CALL # key 170 "KEY_ISO" -key 171 MUSIC +# key 171 "KEY_CONFIG" key 172 HOME # key 173 "KEY_REFRESH" # key 174 "KEY_EXIT" @@ -232,7 +232,7 @@ key 208 MEDIA_FAST_FORWARD # key 210 "KEY_PRINT" # key 211 "KEY_HP" key 212 CAMERA -key 213 MUSIC +# key 213 "KEY_SOUND" # key 214 "KEY_QUESTION" key 215 ENVELOPE # key 216 "KEY_CHAT" @@ -344,7 +344,7 @@ key 377 TV # key 394 "KEY_DIRECTORY" # key 395 "KEY_LIST" # key 396 "KEY_MEMO" -key 397 CALENDAR +# key 397 "KEY_CALENDAR" # key 398 "KEY_RED" # key 399 "KEY_GREEN" # key 400 "KEY_YELLOW" @@ -364,7 +364,6 @@ key 403 CHANNEL_DOWN # key 414 "KEY_TEEN" # key 415 "KEY_TWEN" -key 429 CONTACTS # key 448 "KEY_DEL_EOL" # key 449 "KEY_DEL_EOS" diff --git a/usr/keylayout/Vendor_04e8_Product_7021.kl b/usr/keylayout/Vendor_04e8_Product_7021.kl deleted file mode 100644 index 4eddce0..0000000 --- a/usr/keylayout/Vendor_04e8_Product_7021.kl +++ /dev/null @@ -1,393 +0,0 @@ -# Copyright (C) 2010 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.
-
-#
-# Generic key layout file for full alphabetic US English PC style external keyboards.
-#
-# This file is intentionally very generic and is intended to support a broad rang of keyboards.
-# Do not edit the generic key layout to support a specific keyboard; instead, create
-# a new key layout file with the required keyboard configuration.
-#
-
-key 1 BACK
-key 2 1
-key 3 2
-key 4 3
-key 5 4
-key 6 5
-key 7 6
-key 8 7
-key 9 8
-key 10 9
-key 11 0
-key 12 MINUS
-key 13 EQUALS
-key 14 DEL
-key 15 TAB
-key 16 Q
-key 17 W
-key 18 E
-key 19 R
-key 20 T
-key 21 Y
-key 22 U
-key 23 I
-key 24 O
-key 25 P
-key 26 LEFT_BRACKET
-key 27 RIGHT_BRACKET
-key 28 ENTER
-key 29 CTRL_LEFT
-key 30 A
-key 31 S
-key 32 D
-key 33 F
-key 34 G
-key 35 H
-key 36 J
-key 37 K
-key 38 L
-key 39 SEMICOLON
-key 40 APOSTROPHE
-key 41 GRAVE
-key 42 SHIFT_LEFT
-key 43 BACKSLASH
-key 44 Z
-key 45 X
-key 46 C
-key 47 V
-key 48 B
-key 49 N
-key 50 M
-key 51 COMMA
-key 52 PERIOD
-key 53 SLASH
-key 54 SHIFT_RIGHT
-key 55 NUMPAD_MULTIPLY
-key 56 ALT_LEFT
-key 57 SPACE
-key 58 CAPS_LOCK
-key 59 F1
-key 60 F2
-key 61 F3
-key 62 F4
-key 63 F5
-key 64 F6
-key 65 F7
-key 66 F8
-key 67 F9
-key 68 F10
-key 69 NUM_LOCK
-key 70 SCROLL_LOCK
-key 71 NUMPAD_7
-key 72 NUMPAD_8
-key 73 NUMPAD_9
-key 74 NUMPAD_SUBTRACT
-key 75 NUMPAD_4
-key 76 NUMPAD_5
-key 77 NUMPAD_6
-key 78 NUMPAD_ADD
-key 79 NUMPAD_1
-key 80 NUMPAD_2
-key 81 NUMPAD_3
-key 82 NUMPAD_0
-key 83 NUMPAD_DOT
-# key 84 (undefined)
-# key 85 "KEY_ZENKAKUHANKAKU"
-key 86 BACKSLASH
-key 87 F11
-key 88 F12
-# key 89 "KEY_RO"
-# key 90 "KEY_KATAKANA"
-# key 91 "KEY_HIRAGANA"
-# key 92 "KEY_HENKAN"
-# key 93 "KEY_KATAKANAHIRAGANA"
-# key 94 "KEY_MUHENKAN"
-key 95 NUMPAD_COMMA
-key 96 NUMPAD_ENTER
-key 97 CTRL_RIGHT
-key 98 NUMPAD_DIVIDE
-key 99 SYSRQ
-key 100 ALT_GR
-# key 101 "KEY_LINEFEED"
-key 102 MOVE_HOME
-key 103 DPAD_UP
-key 104 PAGE_UP
-key 105 DPAD_LEFT
-key 106 DPAD_RIGHT
-key 107 MOVE_END
-key 108 DPAD_DOWN
-key 109 PAGE_DOWN
-key 110 INSERT
-key 111 FORWARD_DEL
-# key 112 "KEY_MACRO"
-key 113 MUTE
-key 114 VOLUME_DOWN
-key 115 VOLUME_UP
-key 116 POWER WAKE
-key 117 NUMPAD_EQUALS
-# key 118 "KEY_KPPLUSMINUS"
-key 119 BREAK
-# key 120 (undefined)
-key 121 NUMPAD_COMMA
-# key 122 "KEY_HANGEUL"
-# key 123 "KEY_HANJA"
-# key 124 "KEY_YEN"
-key 125 META_LEFT
-key 126 META_RIGHT
-key 127 MENU WAKE_DROPPED
-key 128 MEDIA_STOP
-# key 129 "KEY_AGAIN"
-# key 130 "KEY_PROPS"
-# key 131 "KEY_UNDO"
-# key 132 "KEY_FRONT"
-# key 133 "KEY_COPY"
-# key 134 "KEY_OPEN"
-# key 135 "KEY_PASTE"
-# key 136 "KEY_FIND"
-# key 137 "KEY_CUT"
-# key 138 "KEY_HELP"
-key 139 MENU WAKE_DROPPED
-# key 140 "KEY_CALC"
-# key 141 "KEY_SETUP"
-# key 142 "KEY_SLEEP"
-# key 143 "KEY_WAKEUP"
-# key 144 "KEY_FILE"
-# key 145 "KEY_SENDFILE"
-# key 146 "KEY_DELETEFILE"
-# key 147 "KEY_XFER"
-# key 148 "KEY_PROG1"
-# key 149 "KEY_PROG2"
-key 150 EXPLORER
-# key 151 "KEY_MSDOS"
-# key 152 "KEY_COFFEE"
-key 152 POWER WAKE
-# key 153 "KEY_DIRECTION"
-# key 154 "KEY_CYCLEWINDOWS"
-key 155 EMAIL
-key 156 BOOKMARK
-# key 157 "KEY_COMPUTER"
-key 158 BACK WAKE_DROPPED
-key 159 FORWARD
-key 160 MEDIA_CLOSE
-key 161 MEDIA_EJECT
-key 162 MEDIA_EJECT
-key 163 MEDIA_NEXT
-key 164 MEDIA_PLAY_PAUSE
-key 165 MEDIA_PREVIOUS
-key 166 MEDIA_STOP
-key 167 MEDIA_RECORD
-key 168 MEDIA_REWIND
-key 169 CALL
-# key 170 "KEY_ISO"
-# key 171 "KEY_CONFIG"
-key 172 HOME
-# key 173 "KEY_REFRESH"
-# key 174 "KEY_EXIT"
-# key 175 "KEY_MOVE"
-# key 176 "KEY_EDIT"
-key 177 PAGE_UP
-key 178 PAGE_DOWN
-key 179 NUMPAD_LEFT_PAREN
-key 180 NUMPAD_RIGHT_PAREN
-# key 181 "KEY_NEW"
-# key 182 "KEY_REDO"
-# key 183 F13
-# key 184 F14
-# key 185 F15
-# key 186 F16
-# key 187 F17
-# key 188 F18
-# key 189 F19
-# key 190 F20
-# key 191 F21
-# key 192 F22
-# key 193 F23
-# key 194 F24
-# key 195 (undefined)
-# key 196 (undefined)
-# key 197 (undefined)
-# key 198 (undefined)
-# key 199 (undefined)
-key 200 MEDIA_PLAY
-key 201 MEDIA_PAUSE
-# key 202 "KEY_PROG3"
-# key 203 "KEY_PROG4"
-# key 204 (undefined)
-# key 205 "KEY_SUSPEND"
-# key 206 "KEY_CLOSE"
-key 207 MEDIA_PLAY
-key 208 MEDIA_FAST_FORWARD
-# key 209 "KEY_BASSBOOST"
-# key 210 "KEY_PRINT"
-# key 211 "KEY_HP"
-key 212 CAMERA
-# key 213 "KEY_SOUND"
-# key 214 "KEY_QUESTION"
-key 215 ENVELOPE
-# key 216 "KEY_CHAT"
-key 217 SEARCH
-# key 218 "KEY_CONNECT"
-# key 219 "KEY_FINANCE"
-# key 220 "KEY_SPORT"
-# key 221 "KEY_SHOP"
-# key 222 "KEY_ALTERASE"
-# key 223 "KEY_CANCEL"
-key 224 BRIGHTNESS_DOWN
-key 225 BRIGHTNESS_UP
-key 226 HEADSETHOOK
-key 227 STAR
-key 228 POUND
-key 229 SOFT_LEFT
-key 230 SOFT_RIGHT
-key 231 CALL
-key 232 DPAD_CENTER
-key 233 HEADSETHOOK
-# key 234 "KEY_0_5" or "KEY_SAVE"
-# key 235 "KEY_2_5" or "KEY_DOCUMENTS"
-# key 236 "KEY_SWITCHVIDEOMODE" or "KEY_BATTERY"
-# key 237 "KEY_KBDILLUMTOGGLE"
-# key 238 "KEY_KBDILLUMDOWN"
-# key 239 "KEY_KBDILLUMUP"
-# key 240 "KEY_UNKNOWN"
-
-
-key 304 BUTTON_A
-key 305 BUTTON_B
-key 306 BUTTON_C
-key 307 BUTTON_X
-key 308 BUTTON_Y
-key 309 BUTTON_Z
-key 310 BUTTON_L1
-key 311 BUTTON_R1
-key 312 BUTTON_L2
-key 313 BUTTON_R2
-key 314 BUTTON_SELECT
-key 315 BUTTON_START
-key 316 BUTTON_MODE
-key 317 BUTTON_THUMBL
-key 318 BUTTON_THUMBR
-
-
-# key 352 "KEY_OK"
-# key 353 "KEY_SELECT"
-# key 354 "KEY_GOTO"
-# key 355 "KEY_CLEAR"
-# key 356 "KEY_POWER2"
-# key 357 "KEY_OPTION"
-# key 358 "KEY_INFO"
-# key 359 "KEY_TIME"
-# key 360 "KEY_VENDOR"
-# key 361 "KEY_ARCHIVE"
-key 362 GUIDE
-# key 363 "KEY_CHANNEL"
-# key 364 "KEY_FAVORITES"
-# key 365 "KEY_EPG"
-key 366 DVR
-# key 367 "KEY_MHP"
-# key 368 "KEY_LANGUAGE"
-key 368 LANG
-# key 369 "KEY_TITLE"
-# key 370 "KEY_SUBTITLE"
-# key 371 "KEY_ANGLE"
-# key 372 "KEY_ZOOM"
-# key 373 "KEY_MODE"
-# key 374 "KEY_KEYBOARD"
-# key 375 "KEY_SCREEN"
-# key 376 "KEY_PC"
-key 377 TV
-# key 378 "KEY_TV2"
-# key 379 "KEY_VCR"
-# key 380 "KEY_VCR2"
-# key 381 "KEY_SAT"
-# key 382 "KEY_SAT2"
-# key 383 "KEY_CD"
-# key 384 "KEY_TAPE"
-# key 385 "KEY_RADIO"
-# key 386 "KEY_TUNER"
-# key 387 "KEY_PLAYER"
-# key 388 "KEY_TEXT"
-# key 389 "KEY_DVD"
-# key 390 "KEY_AUX"
-# key 391 "KEY_MP3"
-# key 392 "KEY_AUDIO"
-# key 393 "KEY_VIDEO"
-# key 394 "KEY_DIRECTORY"
-# key 395 "KEY_LIST"
-# key 396 "KEY_MEMO"
-# key 397 "KEY_CALENDAR"
-# key 398 "KEY_RED"
-# key 399 "KEY_GREEN"
-# key 400 "KEY_YELLOW"
-# key 401 "KEY_BLUE"
-key 402 CHANNEL_UP
-key 403 CHANNEL_DOWN
-# key 404 "KEY_FIRST"
-# key 405 "KEY_LAST"
-# key 406 "KEY_AB"
-# key 407 "KEY_NEXT"
-# key 408 "KEY_RESTART"
-# key 409 "KEY_SLOW"
-# key 410 "KEY_SHUFFLE"
-# key 411 "KEY_BREAK"
-# key 412 "KEY_PREVIOUS"
-# key 413 "KEY_DIGITS"
-# key 414 "KEY_TEEN"
-# key 415 "KEY_TWEN"
-
-
-# key 448 "KEY_DEL_EOL"
-# key 449 "KEY_DEL_EOS"
-# key 450 "KEY_INS_LINE"
-# key 451 "KEY_DEL_LINE"
-
-
-key 464 FUNCTION
-key 465 ESCAPE FUNCTION
-key 466 F1 FUNCTION
-key 467 F2 FUNCTION
-key 468 F3 FUNCTION
-key 469 F4 FUNCTION
-key 470 F5 FUNCTION
-key 471 F6 FUNCTION
-key 472 F7 FUNCTION
-key 473 F8 FUNCTION
-key 474 F9 FUNCTION
-key 475 F10 FUNCTION
-key 476 F11 FUNCTION
-key 477 F12 FUNCTION
-key 478 1 FUNCTION
-key 479 2 FUNCTION
-key 480 D FUNCTION
-key 481 E FUNCTION
-key 482 F FUNCTION
-key 483 S FUNCTION
-key 484 B FUNCTION
-
-
-# key 497 KEY_BRL_DOT1
-# key 498 KEY_BRL_DOT2
-# key 499 KEY_BRL_DOT3
-# key 500 KEY_BRL_DOT4
-# key 501 KEY_BRL_DOT5
-# key 502 KEY_BRL_DOT6
-# key 503 KEY_BRL_DOT7
-# key 504 KEY_BRL_DOT8
-
-
-key 704 RECENTAPPS
-key 705 APPLICATION
-key 706 SIP_ON_OFF
-key 707 VOICESEARCH
-key 708 QPANEL_ON_OFF
\ No newline at end of file diff --git a/usr/keylayout/melfas-touchkey.kl b/usr/keylayout/melfas-touchkey.kl index aeb9f12..22db299 100644 --- a/usr/keylayout/melfas-touchkey.kl +++ b/usr/keylayout/melfas-touchkey.kl @@ -1,3 +1,3 @@ -key 158 BACK WAKE -key 139 MENU WAKE +key 158 BACK VIRTUAL +key 139 MENU VIRTUAL diff --git a/usr/keylayout/sec_touchkey.kl b/usr/keylayout/sec_touchkey.kl index 22db299..7d79415 100644 --- a/usr/keylayout/sec_touchkey.kl +++ b/usr/keylayout/sec_touchkey.kl @@ -1,3 +1,2 @@ key 158 BACK VIRTUAL key 139 MENU VIRTUAL - diff --git a/usr/keylayout/sii9234_rcp.kl b/usr/keylayout/sii9234_rcp.kl deleted file mode 100644 index ae6c6a2..0000000 --- a/usr/keylayout/sii9234_rcp.kl +++ /dev/null @@ -1,28 +0,0 @@ -key 1 ENTER WAKE_DROPPED -key 2 DPAD_UP WAKE_DROPPED -key 3 DPAD_DOWN WAKE_DROPPED -key 4 DPAD_LEFT WAKE_DROPPED -key 5 DPAD_RIGHT WAKE_DROPPED -key 10 MENU WAKE_DROPPED -key 14 BACK WAKE_DROPPED - -key 33 0 -key 34 1 -key 35 2 -key 36 3 -key 37 4 -key 38 5 -key 39 6 -key 40 7 -key 41 8 -key 42 9 - -key 45 DEL - -key 69 MEDIA_PLAY_PAUSE WAKE -key 70 MEDIA_STOP WAKE -key 71 MEDIA_PLAY_PAUSE WAKE -key 73 MEDIA_REWIND WAKE -key 74 MEDIA_FAST_FORWARD WAKE -key 76 MEDIA_NEXT WAKE -key 77 MEDIA_PREVIOUS WAKE |