diff --git a/Android.mk b/Android.mk index 110dd35..f8b621f 100644 --- a/Android.mk +++ b/Android.mk @@ -1,3 +1,3 @@ -ifeq ($(TARGET_DEVICE),kyleprods) +ifeq ($(TARGET_DEVICE),kylepro) include $(all-subdir-makefiles) endif diff --git a/BoardConfig.mk b/BoardConfig.mk index 7585031..c9ddb72 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,206 +1,194 @@ USE_CAMERA_STUB := true -# inherit from the proprietary version +# Inherit from the proprietary version -include vendor/samsung/kylepro/BoardConfigVendor.mk # Platform -TARGET_ARCH := arm -TARGET_NO_BOOTLOADER := true -TARGET_BOARD_PLATFORM := hawaii -TARGET_CPU_ABI := armeabi-v7a -TARGET_CPU_ABI2 := armeabi -TARGET_ARCH_VARIANT := armv7-a-neon -TARGET_CPU_VARIANT := cortex-a9 -TARGET_CPU_SMP := true -ARCH_ARM_HAVE_ARMV7A := true -ARCH_ARM_HAVE_VFP := true -ARCH_ARM_HAVE_TLS_REGISTER := true -ARCH_ARM_HAVE_NEON := true -TARGET_BOOTLOADER_BOARD_NAME := hawaii -TARGET_GLOBAL_CFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp -TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp +TARGET_ARCH := arm +TARGET_NO_BOOTLOADER := true +TARGET_BOARD_PLATFORM := hawaii +TARGET_CPU_ABI := armeabi-v7a +TARGET_CPU_ABI2 := armeabi +TARGET_ARCH_VARIANT := armv7-a-neon +TARGET_CPU_VARIANT := cortex-a9 +TARGET_CPU_SMP := true +ARCH_ARM_HAVE_ARMV7A := true +ARCH_ARM_HAVE_VFP := true +ARCH_ARM_HAVE_TLS_REGISTER := true +ARCH_ARM_HAVE_NEON := true +TARGET_BOOTLOADER_BOARD_NAME := hawaii +TARGET_GLOBAL_CFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp +TARGET_GLOBAL_CPPFLAGS += -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp # Assert -TARGET_OTA_ASSERT_DEVICE := kylepro,S7580,GT-S7580,hawaii,kylexx +TARGET_OTA_ASSERT_DEVICE := kylepro,S7580,GT-S7580,hawaii,kylexx # Kernel -BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 -BOARD_KERNEL_CMDLINE := -BOARD_KERNEL_BASE := 0x82000000 -BOARD_KERNEL_PAGESIZE := 4096 -BOARD_KERNEL_OFFSET := 0x00008000 -BOARD_KERNEL_TAGS_OFFSET := 0x00000100 -BOARD_RAMDISK_OFFSET := 0x01000000 - -#TARGET_GCC_VERSION_EXP := 4.8 -TARGET_KERNEL_CONFIG := bcm21664_hawaii_ss_kylepro_rev00_cyanogenmod_defconfig -TARGET_KERNEL_SOURCE := kernel/samsung/kyleproxx -TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.6 +BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 +BOARD_KERNEL_CMDLINE := +BOARD_KERNEL_BASE := 0x82000000 +BOARD_KERNEL_PAGESIZE := 4096 +BOARD_KERNEL_OFFSET := 0x00008000 +BOARD_KERNEL_TAGS_OFFSET := 0x00000100 +BOARD_RAMDISK_OFFSET := 0x01000000 +TARGET_KERNEL_CONFIG := bcm21664_hawaii_ss_kylepro_rev00_cyanogenmod_defconfig +TARGET_KERNEL_SOURCE := kernel/samsung/kyleproxx +TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.6 # Use the CM PowerHAL -TARGET_USES_CM_POWERHAL := true -CM_POWERHAL_EXTENSION := hawaii -TARGET_POWERHAL_VARIANT = cm +TARGET_USES_CM_POWERHAL := true +CM_POWERHAL_EXTENSION := hawaii +TARGET_POWERHAL_VARIANT := cm # PARTITION SIZE -BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608 -BOARD_RECOVERYIMAGE_PARTITION_SIZE := 9191424 #8388608 -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1210769408 -BOARD_USERDATAIMAGE_PARTITION_SIZE := 2373976064 -BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200 -BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 -BOARD_FLASH_BLOCK_SIZE := 262144 # BOARD_KERNEL_PAGESIZE * 64 +BOARD_BOOTIMAGE_PARTITION_SIZE := 8388608 +BOARD_RECOVERYIMAGE_PARTITION_SIZE := 9191424 +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1210769408 +BOARD_USERDATAIMAGE_PARTITION_SIZE := 2373976064 +BOARD_CACHEIMAGE_PARTITION_SIZE := 209715200 +BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 +BOARD_FLASH_BLOCK_SIZE := 262144 # Bluetooth -BOARD_HAVE_BLUETOOTH := true -BOARD_HAVE_BLUETOOTH_BCM := true +BOARD_HAVE_BLUETOOTH := true +BOARD_HAVE_BLUETOOTH_BCM := true BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/kylepro/bluetooth -BOARD_BLUEDROID_VENDOR_CONF := device/samsung/kylepro/bluetooth/libbt_vndcfg_s7580.txt +BOARD_BLUEDROID_VENDOR_CONF := device/samsung/kylepro/bluetooth/libbt_vndcfg_s7580.txt # Connectivity - Wi-Fi -BOARD_HAVE_SAMSUNG_WIFI := true -WPA_BUILD_SUPPLICANT := true -BOARD_WPA_SUPPLICANT_DRIVER := NL80211 -WPA_SUPPLICANT_VERSION := VER_0_8_X -BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd -BOARD_HOSTAPD_DRIVER := NL80211 -BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd -BOARD_WLAN_DEVICE := bcmdhd -BOARD_WLAN_DEVICE_REV := bcm4330_b1 -WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" -WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcmdhd_sta.bin" -WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcmdhd_apsta.bin" -WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko" -WIFI_DRIVER_MODULE_NAME := "dhd" -WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt" -WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt" -WIFI_BAND := 802_11_ABG +BOARD_HAVE_SAMSUNG_WIFI := true +WPA_BUILD_SUPPLICANT := true +BOARD_WPA_SUPPLICANT_DRIVER := NL80211 +WPA_SUPPLICANT_VERSION := VER_0_8_X +BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd +BOARD_HOSTAPD_DRIVER := NL80211 +BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd +BOARD_WLAN_DEVICE := bcmdhd +BOARD_WLAN_DEVICE_REV := bcm4330_b1 +WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path" +WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcmdhd_sta.bin" +WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcmdhd_apsta.bin" +WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/dhd.ko" +WIFI_DRIVER_MODULE_NAME := "dhd" +WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt" +WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt" +WIFI_BAND := 802_11_ABG # Resolution -TARGET_SCREEN_HEIGHT := 800 -TARGET_SCREEN_WIDTH := 480 +TARGET_SCREEN_HEIGHT := 800 +TARGET_SCREEN_WIDTH := 480 # Hardware rendering -BOARD_EGL_CFG := device/samsung/kylepro/configs/egl.cfg -USE_OPENGL_RENDERER := true -BOARD_USE_MHEAP_SCREENSHOT := true -BOARD_EGL_WORKAROUND_BUG_10194508 := true -NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 -TARGET_USES_ION := true -HWUI_COMPILE_FOR_PERF := true -COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS -DHAWAII_HWC -DADD_LEGACY_ACQUIRE_BUFFER_SYMBOL -#TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true - -# Camera -#BOARD_USE_METADATABUFFERTYPE := true -#BOARD_USE_STOREMETADATA := true +USE_OPENGL_RENDERER := true +BOARD_USE_MHEAP_SCREENSHOT := true +BOARD_EGL_WORKAROUND_BUG_10194508 := true +TARGET_USES_ION := true +HWUI_COMPILE_FOR_PERF := true +COMMON_GLOBAL_CFLAGS += -DNEEDS_VECTORIMPL_SYMBOLS -DHAWAII_HWC -DADD_LEGACY_ACQUIRE_BUFFER_SYMBOL +TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true + +# Enable WEBGL in WebKit +ENABLE_WEBGL := true # External apps on SD -TARGET_EXTERNAL_APPS = sdcard1 +TARGET_EXTERNAL_APPS := sdcard1 # Include an expanded selection of fonts -EXTENDED_FONT_FOOTPRINT := true +EXTENDED_FONT_FOOTPRINT := true -# Opengl -BOARD_USES_HWCOMPOSER := true -BOARD_USE_BGRA_8888 := true +# OpenGL +BOARD_USES_HWCOMPOSER := true +BOARD_USE_BGRA_8888 := true # Audio -BOARD_USES_ALSA_AUDIO := true +BOARD_USES_ALSA_AUDIO := true # Enable dex-preoptimization to speed up the first boot sequence # of an SDK AVD. Note that this operation only works on Linux for now ifeq ($(HOST_OS),linux) - WITH_DEXPREOPT := true + WITH_DEXPREOPT := true endif -# Bootanimation -TARGET_BOOTANIMATION_PRELOAD := true -TARGET_BOOTANIMATION_TEXTURE_CACHE := true +# BootAnimation +TARGET_BOOTANIMATION_PRELOAD := true +TARGET_BOOTANIMATION_TEXTURE_CACHE := true # Charger -BOARD_BATTERY_DEVICE_NAME := battery -BOARD_CHARGER_ENABLE_SUSPEND := true -BOARD_CHARGER_SHOW_PERCENTAGE := true -BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging -CHARGING_ENABLED_PATH := "/sys/class/power_supply/battery/batt_lp_charging" -BACKLIGHT_PATH := "/sys/class/backlight/panel/brightness" +BOARD_BATTERY_DEVICE_NAME := battery +BOARD_CHARGER_ENABLE_SUSPEND := true +BOARD_CHARGER_SHOW_PERCENTAGE := true +BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging +CHARGING_ENABLED_PATH := "/sys/class/power_supply/battery/batt_lp_charging" +BACKLIGHT_PATH := "/sys/class/backlight/panel/brightness" # healthd -BOARD_HAL_STATIC_LIBRARIES := libhealthd-kylepro.hawaii +BOARD_HAL_STATIC_LIBRARIES := libhealthd-kylepro.hawaii # RIL -BOARD_RIL_CLASS := ../../../device/samsung/kylepro/ril/ +BOARD_RIL_CLASS := ../../../device/samsung/kylepro/ril/ # Recovery -#TARGET_RECOVERY_INITRC := -TARGET_RECOVERY_FSTAB := device/samsung/kylepro/ramdisk/fstab.hawaii_ss_kylepro -TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/class/android_usb/android0/f_mass_storage/lun%d/file" -BOARD_HAS_NO_SELECT_BUTTON := true -BOARD_HAS_LARGE_FILESYSTEM := true -TARGET_USERIMAGES_USE_EXT4 := true -TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888 -BOARD_HAS_NO_MISC_PARTITION := true -BOARD_RECOVERY_HANDLES_MOUNT := true -BOARD_USES_MMCUTILS := true -BOARD_HAS_DOWNLOAD_MODE := true -BOARD_USE_USB_MASS_STORAGE_SWITCH := true -BOARD_SUPPRESS_EMMC_WIPE := true -TARGET_RECOVERY_DENSITY := hdpi +TARGET_RECOVERY_FSTAB := device/samsung/kylepro/ramdisk/fstab.hawaii_ss_kylepro +TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/class/android_usb/android0/f_mass_storage/lun%d/file" +BOARD_HAS_NO_SELECT_BUTTON := true +BOARD_HAS_LARGE_FILESYSTEM := true +TARGET_USERIMAGES_USE_EXT4 := true +TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888 +BOARD_HAS_NO_MISC_PARTITION := true +BOARD_RECOVERY_HANDLES_MOUNT := true +BOARD_USES_MMCUTILS := true +BOARD_HAS_DOWNLOAD_MODE := true +BOARD_USE_USB_MASS_STORAGE_SWITCH := true +BOARD_SUPPRESS_EMMC_WIPE := true +TARGET_RECOVERY_DENSITY := hdpi # TWRP -#TARGET_RECOVERY_FSTAB := device/samsung/kylepro/ramdisk/twrp.fstab.hawaii_ss_kylepro -DEVICE_RESOLUTION := 480x800 -TW_MAX_BRIGHTNESS := 255 -TW_CUSTOM_BATTERY_PATH := /sys/class/power_supply/battery -TW_BRIGHTNESS_PATH := /sys/class/backlight/panel/brightness -RECOVERY_SDCARD_ON_DATA := true -TW_NO_REBOOT_BOOTLOADER := true -RECOVERY_GRAPHICS_USE_LINELENGTH := true -TW_INTERNAL_STORAGE_PATH := /data/media -TW_INTERNAL_STORAGE_MOUNT_POINT := data -TW_EXTERNAL_STORAGE_PATH := /external_sd -TW_EXTERNAL_STORAGE_MOUNT_POINT := external_sd -TW_DEFAULT_EXTERNAL_STORAGE := true -TW_EXCLUDE_SUPERSU := true -BOARD_HAS_NO_REAL_SDCARD := true -HAVE_SELINUX := true +#TARGET_RECOVERY_FSTAB := device/samsung/kylepro/ramdisk/twrp.fstab.hawaii_ss_kylepro +DEVICE_RESOLUTION := 480x800 +TW_MAX_BRIGHTNESS := 255 +TW_CUSTOM_BATTERY_PATH := /sys/class/power_supply/battery +TW_BRIGHTNESS_PATH := /sys/class/backlight/panel/brightness +RECOVERY_SDCARD_ON_DATA := true +TW_NO_REBOOT_BOOTLOADER := true +RECOVERY_GRAPHICS_USE_LINELENGTH := true +TW_INTERNAL_STORAGE_PATH := /data/media +TW_INTERNAL_STORAGE_MOUNT_POINT := data +TW_EXTERNAL_STORAGE_PATH := /external_sd +TW_EXTERNAL_STORAGE_MOUNT_POINT := external_sd +TW_DEFAULT_EXTERNAL_STORAGE := true +TW_EXCLUDE_SUPERSU := true +BOARD_HAS_NO_REAL_SDCARD := true +HAVE_SELINUX := true # Vold -BOARD_UMS_LUNFILE := /sys/class/android_usb/f_mass_storage/lun0/file -TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/class/android_usb/android0/f_mass_storage/lun/file -BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true -BOARD_VOLD_MAX_PARTITIONS := 19 +BOARD_UMS_LUNFILE := /sys/class/android_usb/f_mass_storage/lun0/file +TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/class/android_usb/android0/f_mass_storage/lun/file +BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true +BOARD_VOLD_MAX_PARTITIONS := 19 # MTP -BOARD_MTP_DEVICE := /dev/mtp_usb +BOARD_MTP_DEVICE := /dev/mtp_usb # CMHW -BOARD_HARDWARE_CLASS := hardware/samsung/cmhw/ device/samsung/kylepro/cmhw/ +BOARD_HARDWARE_CLASS := hardware/samsung/cmhw/ device/samsung/kylepro/cmhw/ # GPS -TARGET_SPECIFIC_HEADER_PATH := device/samsung/kylepro/include +TARGET_SPECIFIC_HEADER_PATH := device/samsung/kylepro/include # Compat -TARGET_USES_LOGD := false - -# Legends said jemalloc causes a lot of random crash on free() -# but when dlmalloc running on this device it's terrible slow and causes -# slow app install; "Optimizing app"; "Android is upgrading" -# on boot. Feel free to try it -MALLOC_IMPL := jemalloc +TARGET_USES_LOGD := false +# SELinux BOARD_SEPOLICY_DIRS += \ device/samsung/kylepro/sepolicy BOARD_SEPOLICY_UNION += \ file_contexts \ property_contexts \ - service_contexts \ bkmgrd.te \ device.te \ - surfaceflinger.te \ - bluetooth.te \ + surfaceflinger.te \ + bluetooth.te \ geomagneticd.te \ gpsd.te \ init.te \ @@ -209,6 +197,4 @@ BOARD_SEPOLICY_UNION += \ macloader.te \ rild.te \ shell.te \ - system_server.te \ - tvserver.te \ - vclmk.te + system_server.te diff --git a/README.md b/README.md index b044261..4f94f85 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,69 @@ -# This is device tree for GT-S7580 (Kylepro), build based on GT-S7270 device tree by Zim555 +# CM12.1 Device tree for GT-S7580 -### Other source: -* Kernel: https://github.com/SandPox/android_kernel_samsung_kyleproxx -* Vendor: https://github.com/SandPox/android_vendor_samsung_kyleproxx +### Spec: + - Platform: HAWAII (BROADCOM) + - Family: KONA (BROADCOM) + - Codename: KYLEPRO + - SoC: BCM21664T (1.2Ghz) + - CPU: Cortex-A9 + - GPU: Broadcom VideoCore IV + - Screen Resolution: 480x800 + - RAM: 768M + - Sensor: Accelerometer, proximity, compass + - Misc: WIFI, Bluetooth, HSPA+, GPS + - Memory: 4GB (Usable 2.2GB) -### Patch -* Will release when CM13 arrives. +### Other resource: + - Kernel source: https://github.com/SandPox/android_kernel_samsung_kyleproxx + - Vendor blobs: https://github.com/SandPox/android_vendor_samsung_kyleproxx/tree/kylepro -Thanks to Zim555 for all his helps :) +### More Information: +```sh +$ cat /proc/cpuinfo +Processor : ARMv7 Processor rev 0 (v7l) +processor : 0 +BogoMIPS : 1190.29 + +processor : 1 +BogoMIPS : 1190.29 + +Features : swp half thumb fastmult vfp edsp neon vfpv3 tls +CPU implementer : 0x41 +CPU architecture: 7 +CPU variant : 0x3 +CPU part : 0xc09 +CPU revision : 0 + +Hardware : hawaii_ss_kylepro +Revision : 0000 +Serial : 0000000000000000 +``` + +```sh +$ cat /proc/emmc +dev: size erasesize name +mmcblk0p1: 00000800 00000400 "cal" +mmcblk0p2: 00000200 00000400 "sysparm_dep" +mmcblk0p3: 00000200 00000400 "parm-spml_dep" +mmcblk0p4: 00000200 00000400 "RF_CAL_FILE" +mmcblk0p5: 00004000 00000400 "KERNEL" +mmcblk0p6: 00004000 00000400 "RECOVERY" +mmcblk0p7: 00009600 00000400 "modem" +mmcblk0p8: 00000400 00000400 "reserved" +mmcblk0p9: 00001000 00000400 "SBL1" +mmcblk0p10: 00001000 00000400 "SBL2" +mmcblk0p11: 00004000 00000400 "PARAM" +mmcblk0p12: 00000400 00000400 "DTSBK" +mmcblk0p13: 00000400 00000400 "DTS" +mmcblk0p14: 00000200 00000400 "FOTA_SIG" +mmcblk0p15: 0000a000 00000400 "efs" +mmcblk0p16: 00064000 00000400 "CSC" +mmcblk0p17: 00241570 00000400 "system" +mmcblk0p18: 0000f000 00000400 "HIDDEN" +mmcblk0p19: 0046c000 00000400 "userdata" +``` + +### Credits (Sort by alphabetical order): + - Pawitp + - The CyanogenMod Team + - Zim555 diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index f5e3ccc..e46f849 100644 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -17,6 +17,6 @@ #ifndef _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H -#define BTM_DEF_LOCAL_NAME "GT-S7580" +#define BTM_DEF_LOCAL_NAME "GT-S7580" #endif diff --git a/cm.dependencies b/cm.dependencies index 920bdb8..0cd0484 100644 --- a/cm.dependencies +++ b/cm.dependencies @@ -1,10 +1,10 @@ [ - { - "repository": "android_packages_apps_SamsungServiceMode", - "target_path": "packages/apps/SamsungServiceMode" - }, - { - "repository": "android_hardware_samsung", - "target_path": "hardware/samsung" - } + { + "repository": "android_packages_apps_SamsungServiceMode", + "target_path": "packages/apps/SamsungServiceMode" + }, + { + "repository": "android_hardware_samsung", + "target_path": "hardware/samsung" + } ] \ No newline at end of file diff --git a/cmhw/org/cyanogenmod/hardware/SerialNumber.java b/cmhw/org/cyanogenmod/hardware/SerialNumber.java index 9a769ab..1f53fc8 100644 --- a/cmhw/org/cyanogenmod/hardware/SerialNumber.java +++ b/cmhw/org/cyanogenmod/hardware/SerialNumber.java @@ -36,7 +36,7 @@ public class SerialNumber { * Returns the alternative serial number to be displayed. */ public static String getSerialNumber() { - return SystemProperties.get("ril.serialnumber"); + return SystemProperties.get("ro.serialno"); } } diff --git a/configs/audio_policy.conf b/configs/audio_policy.conf deleted file mode 100644 index 7296dd5..0000000 --- a/configs/audio_policy.conf +++ /dev/null @@ -1,95 +0,0 @@ -# -# Audio policy configuration for generic device builds (goldfish audio HAL - emulator) -# - -# Global configuration section: lists input and output devices always present on the device -# as well as the output device selected by default. -# Devices are designated by a string that corresponds to the enum in audio.h - -global_configuration { - attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER - default_output_device AUDIO_DEVICE_OUT_SPEAKER - attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_VOICE_CALL -} - -# audio hardware module section: contains descriptors for all audio hw modules present on the -# device. Each hw module node is named after the corresponding hw module library base name. -# For instance, "primary" corresponds to audio.primary..so. -# The "primary" module is mandatory and must include at least one output with -# AUDIO_OUTPUT_FLAG_PRIMARY flag. -# Each module descriptor contains one or more output profile descriptors and zero or more -# input profile descriptors. Each profile lists all the parameters supported by a given output -# or input stream category. -# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding -# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n". - -# IMPORTATANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -# If your output device support 16000hz sample rate, please do NOT list 16000 first, because I use -# first_supported_sample_rate==16000 as VoIP out -# I also use input device that support AUDIO_DEVICE_IN_VOICE_CALL as VoIP input indicator, otherwise I -# need to modify AudioPolicyManagerBase to add enum strings or rewrite Audio Policy Configuration -# loading function to add more enum strings. -# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -audio_hw_modules { - primary { - outputs { - primary { - sampling_rates 48000 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET - flags AUDIO_OUTPUT_FLAG_PRIMARY - } - voip { - sampling_rates 16000|48000 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO - } - } - inputs { - primary { - sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000 - channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_FM|AUDIO_DEVICE_IN_VOICE_CALL - } - voip { - sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000 - channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_VOICE_CALL - } - } - } - a2dp { - outputs { - a2dp { - sampling_rates 44100 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_ALL_A2DP - } - } - } - r_submix { - outputs { - submix { - sampling_rates 44100|48000 - channel_masks AUDIO_CHANNEL_OUT_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX - } - } - inputs { - submix { - sampling_rates 44100|48000 - channel_masks AUDIO_CHANNEL_IN_STEREO - formats AUDIO_FORMAT_PCM_16_BIT - devices AUDIO_DEVICE_IN_REMOTE_SUBMIX - } - } - } - } -} diff --git a/configs/egl.cfg b/configs/egl.cfg deleted file mode 100644 index 7e9da07..0000000 --- a/configs/egl.cfg +++ /dev/null @@ -1,2 +0,0 @@ -0 0 android -0 1 hawaii diff --git a/configs/media_codecs.xml b/configs/media_codecs.xml deleted file mode 100644 index 9e1ea49..0000000 --- a/configs/media_codecs.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/configs/media_profiles.xml b/configs/media_profiles.xml deleted file mode 100644 index 5f5c7ac..0000000 --- a/configs/media_profiles.xml +++ /dev/null @@ -1,529 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/device_kylepro.mk b/device_kylepro.mk index a1b9401..5a0fc51 100644 --- a/device_kylepro.mk +++ b/device_kylepro.mk @@ -3,118 +3,109 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) $(call inherit-product-if-exists, vendor/samsung/kylepro/kylepro-common-vendor.mk) # Use high-density artwork where available -PRODUCT_LOCALES += hdpi -PRODUCT_AAPT_CONFIG := normal -PRODUCT_AAPT_PREF_CONFIG := hdpi +#PRODUCT_LOCALES += hdpi +#PRODUCT_AAPT_CONFIG := normal +#PRODUCT_AAPT_PREF_CONFIG := hdpi DEVICE_PACKAGE_OVERLAYS += device/samsung/kylepro/overlay # Init files PRODUCT_COPY_FILES += \ - device/samsung/kylepro/ramdisk/fstab.hawaii_ss_kylepro:root/fstab.hawaii_ss_kylepro \ - device/samsung/kylepro/ramdisk/init.rc:root/init.rc \ - device/samsung/kylepro/ramdisk/init.hawaii_ss_kylepro.rc:root/init.hawaii_ss_kylepro.rc \ - device/samsung/kylepro/ramdisk/init.bcm2166x.usb.rc:root/init.bcm2166x.usb.rc \ - device/samsung/kylepro/ramdisk/init.log.rc:root/init.log.rc \ - device/samsung/kylepro/ramdisk/charger:root/charger \ - device/samsung/kylepro/ramdisk/ueventd.hawaii_ss_kylepro.rc:root/ueventd.hawaii_ss_kylepro.rc - + device/samsung/kylepro/ramdisk/fstab.hawaii_ss_kylepro:root/fstab.hawaii_ss_kylepro \ + device/samsung/kylepro/ramdisk/init.hawaii_ss_kylepro.rc:root/init.hawaii_ss_kylepro.rc \ + device/samsung/kylepro/ramdisk/init.bcm2166x.usb.rc:root/init.bcm2166x.usb.rc \ + device/samsung/kylepro/ramdisk/init.log.rc:root/init.log.rc \ + device/samsung/kylepro/ramdisk/ueventd.hawaii_ss_kylepro.rc:root/ueventd.hawaii_ss_kylepro.rc + PRODUCT_COPY_FILES += \ - device/samsung/kylepro/configs/media_profiles.xml:system/etc/media_profiles.xml \ - device/samsung/kylepro/configs/audio_policy.conf:system/etc/audio_policy.conf \ - frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ - frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ - frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml \ - device/samsung/kylepro/configs/media_codecs.xml:system/etc/media_codecs.xml - -# Prebuilt kl keymaps -PRODUCT_COPY_FILES += \ - device/samsung/kylepro/keylayouts/bcm_headset.kl:system/usr/keylayout/bcm_headset.kl \ - device/samsung/kylepro/keylayouts/bcm_keypad_v2.kl:system/usr/keylayout/bcm_keypad_v2.kl \ - device/samsung/kylepro/keylayouts/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ - device/samsung/kylepro/keylayouts/samsung-keypad.kl:system/usr/keylayout/samsung-keypad.kl + frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml # Charger PRODUCT_PACKAGES += \ - charger_res_images + charger_res_images # Insecure ADBD ADDITIONAL_DEFAULT_PROPERTIES += \ - ro.adb.secure=0 \ - persist.service.adb.enable=0 + ro.adb.secure=0 \ + persist.service.adb.enable=0 # Filesystem management tools PRODUCT_PACKAGES += \ - make_ext4fs \ - e2fsck \ - setup_fs - + make_ext4fs \ + e2fsck \ + setup_fs + # Usb accessory PRODUCT_PACKAGES += \ - com.android.future.usb.accessory + com.android.future.usb.accessory # Misc other modules PRODUCT_PACKAGES += \ - audio.a2dp.default \ - audio.usb.default \ - audio.r_submix.default \ - audio.primary.default \ + audio.a2dp.default \ + audio.usb.default \ + audio.r_submix.default \ + audio.primary.default # Device-specific packages PRODUCT_PACKAGES += \ - SamsungServiceMode + SamsungServiceMode # KSM PRODUCT_PROPERTY_OVERRIDES += \ - ro.ksm.default=1 - + ro.ksm.default=1 + +# Disable sending usage data +PRODUCT_PROPERTY_OVERRIDES += \ + ro.config.nocheckin=1 + # Wi-Fi PRODUCT_PACKAGES += \ - dhcpcd.conf \ - hostapd \ - wpa_supplicant \ - wpa_supplicant.conf + dhcpcd.conf \ + hostapd \ + wpa_supplicant \ + wpa_supplicant.conf # These are the hardware-specific features PRODUCT_COPY_FILES += \ - frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ - frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ - frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ - frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ - frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ - frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \ - frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ - frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \ - frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ - frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ - frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ - frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ - frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ - frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ - frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ - frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ - frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ - frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ - frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml + frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ + frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ + frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ + frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ + frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ + frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \ + frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ + frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ + frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ + frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ + frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ + frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ + frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ + frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ + frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ + frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ + frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ + frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml # These are the hardware-specific settings that are stored in system properties. # Note that the only such settings should be the ones that are too low-level to # be reachable from resources or other mechanisms. PRODUCT_PROPERTY_OVERRIDES += \ - wifi.interface=wlan0 \ - mobiledata.interfaces=rmnet0 \ - ro.telephony.ril_class=SamsungBCMRIL \ - persist.radio.multisim.config=none \ - cm.updater.uri=http://ota.sandpox.org \ - ro.telephony.call_ring.multiple=0 \ - camera2.portability.force_api=1 \ - ro.telephony.call_ring=0 - -# enable Google-specific location features, + wifi.interface=wlan0 \ + mobiledata.interfaces=rmnet0 \ + ro.telephony.ril_class=SamsungBCMRIL \ + persist.radio.multisim.config=none \ + cm.updater.uri=http://ota.sandpox.org \ + ro.telephony.call_ring.multiple=0 \ + camera2.portability.force_api=1 \ + ro.telephony.call_ring=0 + +# Enable Google-specific location features, # like NetworkLocationProvider and LocationCollector -#PRODUCT_PROPERTY_OVERRIDES += \ -# ro.com.google.locationfeatures=1 \ -# ro.com.google.networklocation=1 +PRODUCT_PROPERTY_OVERRIDES += \ + ro.com.google.locationfeatures=1 \ + ro.com.google.networklocation=1 # Extended JNI checks # The extended JNI checks will cause the system to run more slowly, but they can spot a variety of nasty bugs @@ -127,26 +118,22 @@ PRODUCT_PROPERTY_OVERRIDES += \ # MTP PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ persist.sys.usb.config=mtp - + # Override phone-hdpi-512-dalvik-heap to match value on stock # - helps pass CTS com.squareup.okhttp.internal.spdy.Spdy3Test#tooLargeDataFrame) # (property override must come before included property) -#PRODUCT_PROPERTY_OVERRIDES += \ -# dalvik.vm.heapgrowthlimit=56m +PRODUCT_PROPERTY_OVERRIDES += \ + dalvik.vm.heapgrowthlimit=56m # Dalvik heap config include frameworks/native/build/phone-hdpi-512-dalvik-heap.mk -# we have enough storage space to hold precise GC data +# We have enough storage space to hold precise GC data #PRODUCT_TAGS += dalvik.gc.type-precise $(call inherit-product, hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) -ifeq ($(TARGET_BUILD_VARIANT),user) -else -endif - PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 PRODUCT_NAME := full_kylepro PRODUCT_DEVICE := kylepro diff --git a/health/healthd-hawaii.cpp b/health/healthd-hawaii.cpp index c66ec2c..34ea3e0 100644 --- a/health/healthd-hawaii.cpp +++ b/health/healthd-hawaii.cpp @@ -31,7 +31,7 @@ healthd_board_init(struct healthd_config *config) } int -healthd_board_battery_update(struct android::BatteryProperties *props) +healthd_board_battery_update(__attribute__((unused)) struct android::BatteryProperties *props) { // don't log to kernel return 1; diff --git a/include/hardware/gps.h b/include/hardware/gps.h index edf7c7b..d8ccb2a 100644 --- a/include/hardware/gps.h +++ b/include/hardware/gps.h @@ -464,8 +464,8 @@ typedef struct { float elevation; /** Azimuth of SV in degrees. */ float azimuth; - /** Unknown Samsung element. */ - int padding; + /** Unknown Samsung element. */ + int padding; } GpsSvInfo; /** Represents SV status. */ diff --git a/keylayouts/bcm_headset.kl b/keylayouts/bcm_headset.kl deleted file mode 100644 index e344086..0000000 --- a/keylayouts/bcm_headset.kl +++ /dev/null @@ -1,3 +0,0 @@ -key 226 HEADSETHOOK -key 115 VOLUME_UP -key 114 VOLUME_DOWN diff --git a/keylayouts/bcm_keypad_v2.kl b/keylayouts/bcm_keypad_v2.kl deleted file mode 100644 index 735077a..0000000 --- a/keylayouts/bcm_keypad_v2.kl +++ /dev/null @@ -1,85 +0,0 @@ -key 399 GRAVE -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 158 BACK -key 139 MENU -key 127 SEARCH -key 217 RECENTAPPS -key 228 POUND -key 227 STAR -key 352 DPAD_CENTER -key 108 DPAD_DOWN -key 103 DPAD_UP -key 102 HOME -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 115 VOLUME_UP -key 114 VOLUME_DOWN -key 116 POWER -key 212 CAMERA - -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 43 BACKSLASH - -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 14 DEL - -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 28 ENTER - -key 56 ALT_LEFT -key 100 ALT_RIGHT -key 42 SHIFT_LEFT -key 54 SHIFT_RIGHT -key 15 TAB -key 57 SPACE -key 150 EXPLORER -key 155 CUST2 -key 442 CHATON -key 373 SYM -key 12 MINUS -key 13 EQUALS -key 215 AT -key 207 MUSIC - -# On an AT keyboard: ESC, F10 -key 1 BACK -key 68 MENU diff --git a/keylayouts/gpio-keys.kl b/keylayouts/gpio-keys.kl deleted file mode 100644 index 58da020..0000000 --- a/keylayouts/gpio-keys.kl +++ /dev/null @@ -1,9 +0,0 @@ -key 115 VOLUME_UP -key 114 VOLUME_DOWN -key 116 POWER -key 102 HOME -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 103 DPAD_UP -key 108 DPAD_DOWN -key 232 DPAD_CENTER diff --git a/keylayouts/samsung-keypad.kl b/keylayouts/samsung-keypad.kl deleted file mode 100644 index 8428176..0000000 --- a/keylayouts/samsung-keypad.kl +++ /dev/null @@ -1,91 +0,0 @@ -key 399 GRAVE -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 158 BACK -key 230 SOFT_RIGHT -key 60 SOFT_RIGHT -key 107 ENDCALL -key 62 ENDCALL -key 229 MENU -key 139 MENU -key 59 MENU -key 127 SEARCH -key 217 SEARCH -key 228 POUND -key 227 STAR -key 231 CALL -key 61 CALL -key 232 DPAD_CENTER -key 108 DPAD_DOWN -key 103 DPAD_UP -key 102 HOME -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 115 VOLUME_UP -key 114 VOLUME_DOWN -key 116 POWER -key 212 CAMERA - -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 43 BACKSLASH - -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 14 DEL - -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 28 ENTER - -key 56 ALT_LEFT -key 100 ALT_RIGHT -key 42 SHIFT_LEFT -key 54 SHIFT_RIGHT -key 15 TAB -key 57 SPACE -key 150 EXPLORER -key 155 ENVELOPE - -key 12 MINUS -key 13 EQUALS -key 215 AT - -# On an AT keyboard: ESC, F10 -key 1 BACK -key 68 MENU diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 56cfa7a..d34f46d 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -27,13 +27,13 @@ true - + false true - - 65 - + true 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 b9fa984..0000000 --- a/overlay/packages/apps/Settings/res/values/config.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/ramdisk/charger b/ramdisk/charger deleted file mode 100644 index 1d26480..0000000 Binary files a/ramdisk/charger and /dev/null differ diff --git a/ramdisk/fstab.hawaii_ss_kylepro b/ramdisk/fstab.hawaii_ss_kylepro index d8c979a..07e77ce 100644 --- a/ramdisk/fstab.hawaii_ss_kylepro +++ b/ramdisk/fstab.hawaii_ss_kylepro @@ -2,17 +2,20 @@ # The filesystem that contains the filesystem checker binary (typically /system) cannot # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK -# -/dev/block/platform/sdhci.1/by-name/system /system ext4 ro,noatime wait -/dev/block/platform/sdhci.1/by-name/efs /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check -/dev/block/platform/sdhci.1/by-name/CSC /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check -/dev/block/platform/sdhci.1/by-name/userdata /data ext4 noatime,nosuid,nodev,discard,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer,length=-16384 -/dev/block/platform/sdhci.1/by-name/KERNEL /boot emmc defaults defaults -/dev/block/platform/sdhci.1/by-name/RECOVERY /recovery emmc defaults defaults -/dev/block/platform/sdhci.1/by-name/modem /modem emmc defaults defaults +# +/dev/block/platform/sdhci.1/by-name/system /system ext4 ro,noatime,noauto_da_alloc wait +/dev/block/platform/sdhci.1/by-name/efs /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check +/dev/block/platform/sdhci.1/by-name/CSC /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check +/dev/block/platform/sdhci.1/by-name/userdata /data ext4 noatime,nosuid,nodev,discard,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer,length=-16384 +/dev/block/platform/sdhci.1/by-name/KERNEL /boot emmc defaults defaults +/dev/block/platform/sdhci.1/by-name/RECOVERY /recovery emmc defaults defaults +/dev/block/platform/sdhci.1/by-name/modem /modem emmc defaults defaults # vold-managed volumes ("block device" is actually a sysfs devpath) -/devices/platform/sdhci.0/mmc_host/mmc2* auto auto defaults voldmanaged=sdcard1:auto,noemulatedsd +/devices/platform/sdhci.0/mmc_host/mmc2* auto auto defaults voldmanaged=sdcard1:auto,noemulatedsd -# ZRam -#/dev/block/zram0 none swap defaults zramsize=52428800 \ No newline at end of file +# ZRAM +/dev/block/zram0 none swap defaults zramsize=67108864 + +# SWAP +/dev/block/platform/sdhci.1/by-name/HIDDEN none swap defaults defaults diff --git a/ramdisk/init.hawaii_ss_kylepro.rc b/ramdisk/init.hawaii_ss_kylepro.rc index 7432fa7..0dce759 100644 --- a/ramdisk/init.hawaii_ss_kylepro.rc +++ b/ramdisk/init.hawaii_ss_kylepro.rc @@ -5,14 +5,14 @@ on early-init mkdir /efs 0771 radio system on init - # See storage config details at http://source.android.com/tech/storage/ +# See storage config details at http://source.android.com/tech/storage/ mkdir /mnt/shell/emulated 0700 shell shell mkdir /storage/emulated 0555 root root export EXTERNAL_STORAGE /storage/emulated/legacy export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_TARGET /storage/emulated - # Support legacy paths +# Support legacy paths symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /storage/sdcard0 @@ -23,9 +23,9 @@ on init mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw mkdir /storage/sdcard1 0700 root root - # for backwards compatibility - #symlink /storage/sdcard1 /external_sd - #symlink /storage/sdcard1 /mnt/external_sd +# For backwards compatibility + symlink /storage/sdcard1 /external_sd + symlink /storage/sdcard1 /mnt/external_sd # To store widevine keybox symlink /data/app /factory @@ -33,7 +33,7 @@ on init symlink /dev/block/mmcblk0p11 /dev/block/param on post-fs-data -# we will remap this as /storage/sdcard with the sdcard fuse tool +# We will remap this as /storage/sdcard with the sdcard fuse tool mkdir /data/media 0770 media_rw media_rw chown media_rw media_rw /data/media @@ -45,7 +45,7 @@ on post-fs-data chmod 0777 /data/log chmod 0777 /data/anr - #for wifi +# For WIFI mkdir /efs/wifi 0775 radio system mkdir /efs/bluetooth 0775 radio system mkdir /efs/imei 0775 radio system @@ -58,7 +58,7 @@ on post-fs-data chown system system /efs/imei/.nvmac.info chmod 0664 /efs/imei/.nvmac.info - # permissions for bluetooth. +# Permissions for bluetooth. setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" chown bluetooth net_bt_stack ro.bt.bdaddr_path chown bluetooth net_bt_stack /dev/ttyS0 @@ -81,7 +81,7 @@ on post-fs-data chown system system /sys/class/backlight/touchkey-led/brightness chmod 0660 /sys/class/backlight/touchkey-led/brightness -# permissions for sensors (accelerometer & magnetic & proximity) +# Permissions for sensors (accelerometer & magnetic & proximity) chown system system /sys/class/input/input0/enable chown system system /sys/class/input/input0/poll_delay chmod 0660 /sys/class/input/input0/enable @@ -143,7 +143,7 @@ on post-fs-data chmod 0660 /sys/class/input/input2/rept_z chmod 0660 /sys/class/input/input2/odr -# for adb +# For adb chmod 0775 /system/etc/usbdev.sh chmod 0775 /system/etc/startadb.sh @@ -200,11 +200,7 @@ on boot chmod 0660 /sys/class/sensors/magnetic_sensor/selftest chmod 0660 /sys/class/sensors/magnetic_sensor/op_mode -## Vibetonz -# chmod 0660 /dev/tspdrv -# chown root shell /dev/tspdrv - -# required so RIL can open kernel RPC drivers +# Required so RIL can open kernel RPC drivers chmod 0660 /dev/bcm_rpc chmod 0660 /dev/bcm_irpc chown radio radio /dev/bcm_rpc @@ -234,8 +230,7 @@ on boot # Video Telephony chmod 0666 /dev/bcm_vsp - -# allow user space (atx) access to kernel pm debug +# Allow user space (atx) access to kernel pm debug chown system system /sys/module/pm_dbg/parameters/debug chmod 0660 /sys/module/pm_dbg/parameters/debug chown system system /sys/module/bcmpmu59xxx_ponkey/parameters/simulate_ponkey @@ -246,8 +241,7 @@ on boot chmod 0664 /sys/ponkey/ponkey_mode # END BCM QUICK BOOT FEATURE - -# security driver +# Security driver chmod 0660 /dev/bcm_security chown radio root /dev/bcm_security mkdir /data/sec 0770 @@ -256,7 +250,7 @@ on boot # BCMPMU drivers chown -R system system /sys/devices/platform/bcmpmu*/* -# fake some battery state +# Fake some battery state setprop status.battery.state Slow setprop status.battery.level 10 setprop status.battery.level_raw 100 @@ -266,14 +260,14 @@ on boot chmod 0777 /dev/s5p-smem rm /data/app/tlcd_sock -# phone +# Phone setprop ro.telephony.call_ring.multiple 0 # Enable dithering algorithm setprop fb.force.dithering 1 -# permissions for gps. +# Permissions for gps. mkdir /data/gps 0770 gps system chown gps system /data/gps chmod 0770 /data/gps @@ -300,19 +294,19 @@ on boot # SEC_PRODUCT_FEATURE_COMMON_USE_MULTISIM setprop ro.multisim.simslotcount 1 -# # for multi csc +# For multi csc chown radio radio /proc/LinuStoreIII/efs_info chmod 0664 /proc/LinuStoreIII/efs_info -# # for protecting key string +# For protecting key string chown radio radio /proc/LinuStoreIII/keystr chmod 0664 /proc/LinuStoreIII/keystr -# # for ril_prop +# For ril_prop chown radio radio /proc/LinuStoreIII/ril_prop chmod 0664 /proc/LinuStoreIII/ril_prop -# # for fsbuild_check +# For fsbuild_check chown radio radio /proc/LinuStoreIII/fsbuild_check chmod 0664 /proc/LinuStoreIII/fsbuild_check -# # for recovery_opts +# For recovery_opts chown system radio /proc/LinuStoreIII/recovery_opts chmod 0664 /proc/LinuStoreIII/recovery_opts @@ -419,50 +413,43 @@ on boot chown system system /sys/class/sec/led/led_lowpower # Init Compcache taejin5.park - chmod 0664 /sys/class/lmk/lowmemorykiller/lmk_state - chown system system /sys/class/lmk/lowmemorykiller/lmk_state - chmod 0664 /sys/block/zram0/disksize - chown system system /sys/block/zram0/disksize - write /sys/block/zram0/disksize 104857600 - chmod 0664 /sys/block/zram0/initstate - chown system system /sys/block/zram0/initstate - write /sys/block/zram0/initstate 1 + chmod 0664 /sys/class/lmk/lowmemorykiller/lmk_state + chown system system /sys/class/lmk/lowmemorykiller/lmk_state + chmod 0664 /sys/block/zram0/disksize + chown system system /sys/block/zram0/disksize + write /sys/block/zram0/disksize 67108864 + chmod 0664 /sys/block/zram0/initstate + chown system system /sys/block/zram0/initstate + write /sys/block/zram0/initstate 1 # serial_no permission change chmod 0770 /efs/FactoryApp/serial_no chown system system /efs/FactoryApp/serial_no -# disable swap page clustering -- recommended in https://source.android.com/devices/low-ram.html - #write /proc/sys/vm/page-cluster 0 - -on charger - #mount ext4 /dev/block/mmcblk0p17 /system ro wait noatime - #exec sfsck /dev/block/mmcblk0p19 ext4 - #mount ext4 /dev/block/mmcblk0p19 /data wait nosuid nodev noatime discard,noauto_da_alloc,journal_async_commit +# Disable swap page clustering -- recommended in https://source.android.com/devices/low-ram.html + write /proc/sys/vm/page-cluster 0 +on charger # Set cpu governor to powersave while in charging mode write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor powersave - -# EHCI runtime enable for LPA - write /sys/devices/platform/s5p-ehci/power/control auto on fs mount_all /fstab.hawaii_ss_kylepro - #swapon_all fstab.hawaii_ss_kylepro + swapon_all fstab.hawaii_ss_kylepro setprop ro.crypto.fuse_sdcard true - # don't require sim + # Don't require sim setprop keyguard.no_require_sim 1 -# For NV Read/Write - chown radio system /dev/block/mmcblk0p1 +# For NV Read/Write + chown radio system /dev/block/mmcblk0p1 chmod 0770 /dev/block/mmcblk0p1 chmod 6755 /system/xbin/su -#for ASE application +# For ASE application mkdir /data/brcm mkdir /data/brcm/ase mkdir /data/brcm/ase/extras @@ -483,18 +470,19 @@ on fs chmod 0775 /data/brcm/ase/scripts/modem.sh chmod 0775 /data/brcm/ase/scripts/atmode.sh chmod 0775 /data/brcm/ase/scripts/usbconfig.sh -#runSysCmd + +# runSysCmd mkdir /data/brcm/utils chmod 0775 /data/brcm/utils -# Logging required to save file in /data/brcm for configuration +# Logging required to save file in /data/brcm for configuration mkdir /data/brcm chmod 0775 /data/brcm # Permissions for System Server and daemons. chown system system /sys/devices/platform/panel/backlight/panel/brightness - #for touch fw + # For touch FW chown system system /sys/class/sec/tsp/cmd chmod 0660 /sys/class/sec/tsp/cmd chown system system /sys/class/sec/tsp/cmd_status @@ -531,7 +519,7 @@ on post-fs chown radio system /efs chmod 0771 /efs -# create virtual SD card at /mnt/sdcard, based on the /data/media directory +# Create virtual SD card at /mnt/sdcard, based on the /data/media directory # daemon will drop to user/group system/media_rw after initializing # underlying files in /data/media will be created with user and group media_rw (1023) service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated @@ -542,7 +530,7 @@ service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emul class late_start disabled -# create filesystem if necessary +# Create filesystem if necessary service setup_fs /system/bin/setup_fs \ /dev/block/mmcblk0p15 \ /dev/block/mmcblk0p11 @@ -551,7 +539,7 @@ service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emul group root oneshot -#bosch sensor deamon +# bosch sensor deamon service sensord /system/bin/sensord class main user system @@ -571,10 +559,10 @@ service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emul -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -e/data/misc/wifi/entropy.bin \ -O/data/misc/wifi/sockets -g@android:wpa_wlan0 - # we will start as root and wpa_supplicant will switch to user wifi - # after setting up the capabilities required for WEXT - # user wifi - # group wifi inet keystore + # we will start as root and wpa_supplicant will switch to user wifi + # after setting up the capabilities required for WEXT + # user wifi + # group wifi inet keystore class main socket wpa_wlan0 dgram 660 wifi wifi disabled @@ -587,7 +575,7 @@ service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emul -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 \ -O/data/misc/wifi/sockets -g@android:wpa_wlan0 - # we will start as root and wpa_supplicant will switch to user wifi + # We will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT # user wifi # group wifi inet keystore @@ -627,7 +615,7 @@ service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emul disabled oneshot -#for WiFi MFG(TestMode) +# For WiFi MFG(TestMode) service mfgloader /system/bin/mfgloader class main disabled @@ -649,7 +637,7 @@ on property:init.svc.macloader=stopped chmod 0664 /data/.cid.info chown system root /data/.rev chmod 0660 /data/.rev -# end of wifi +# End of wifi service gpsd /system/bin/glgps -c /system/etc/gps/glconfig.xml class late_start @@ -674,7 +662,7 @@ service usb_portd /system/bin/usb_portd user system group input vpn net_admin net_raw radio system sdcard_rw log mount -#Indicate boot complete to PM to complete PM initialization +# Indicate boot complete to PM to complete PM initialization on property:dev.bootcomplete=1 write /sys/module/pwr_mgr/parameters/pm_late_init 1 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive @@ -703,19 +691,6 @@ service startadb /system/etc/startadb.sh service battery_charger /charger class charger critical - -# service playlpm /system/bin/playlpm -# user root -# critical -# service immvibed /system/bin/immvibed -# oneshot -# service lpmkey /system/bin/lpmkey -# user root -# critical -#on charger -# start playlpm -# start immvibed -# start lpmkey on property:ro.dumpstate.dmesg=1 write /proc/sys/kernel/dmesg_restrict 0 diff --git a/ramdisk/init.log.rc b/ramdisk/init.log.rc index d159a69..dabcd2b 100644 --- a/ramdisk/init.log.rc +++ b/ramdisk/init.log.rc @@ -1,6 +1,5 @@ - on boot - # setup permissions for logging + # setup permissions for logging chown system system /sys/class/bcm_log/bcm_log/log chown system system /sys/class/bcm_log/bcm_log/log_lock chown system system /sys/class/bcm_log/bcm_log/cp_crash @@ -21,69 +20,69 @@ on boot # Setup Logging persistent data on property:persist.brcm.log=auto - write /sys/class/bcm_log/bcm_log/log_lock 0 + write /sys/class/bcm_log/bcm_log/log_lock 0 on property:persist.brcm.log=sdcard - write /sys/class/bcm_log/bcm_log/log_lock 0 - write /sys/class/bcm_log/bcm_log/log sdcard - write /sys/class/bcm_log/bcm_log/log_lock 1 + write /sys/class/bcm_log/bcm_log/log_lock 0 + write /sys/class/bcm_log/bcm_log/log sdcard + write /sys/class/bcm_log/bcm_log/log_lock 1 on property:persist.brcm.log=uart - write /sys/class/bcm_log/bcm_log/log_lock 0 - write /sys/class/bcm_log/bcm_log/log uart - write /sys/class/bcm_log/bcm_log/log_lock 1 + write /sys/class/bcm_log/bcm_log/log_lock 0 + write /sys/class/bcm_log/bcm_log/log uart + write /sys/class/bcm_log/bcm_log/log_lock 1 on property:persist.brcm.log=stm - write /sys/class/bcm_log/bcm_log/log_lock 0 - write /sys/class/bcm_log/bcm_log/log stm - write /sys/class/bcm_log/bcm_log/log_lock 1 + write /sys/class/bcm_log/bcm_log/log_lock 0 + write /sys/class/bcm_log/bcm_log/log stm + write /sys/class/bcm_log/bcm_log/log_lock 1 on property:persist.brcm.log=rndis - write /sys/class/bcm_log/bcm_log/log_lock 0 - write /sys/class/bcm_log/bcm_log/log rndis - write /sys/class/bcm_log/bcm_log/log_lock 1 + write /sys/class/bcm_log/bcm_log/log_lock 0 + write /sys/class/bcm_log/bcm_log/log rndis + write /sys/class/bcm_log/bcm_log/log_lock 1 on property:persist.brcm.log=acm - write /sys/class/bcm_log/bcm_log/log_lock 0 - write /sys/class/bcm_log/bcm_log/log acm - write /sys/class/bcm_log/bcm_log/log_lock 1 + write /sys/class/bcm_log/bcm_log/log_lock 0 + write /sys/class/bcm_log/bcm_log/log acm + write /sys/class/bcm_log/bcm_log/log_lock 1 on property:persist.brcm.cp_crash=auto - write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 + write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 on property:persist.brcm.cp_crash=sdcard - write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 - write /sys/class/bcm_log/bcm_log/cp_crash sdcard - write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 + write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 + write /sys/class/bcm_log/bcm_log/cp_crash sdcard + write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 on property:persist.brcm.cp_crash=uart - write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 - write /sys/class/bcm_log/bcm_log/cp_crash uart - write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 + write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 + write /sys/class/bcm_log/bcm_log/cp_crash uart + write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 on property:persist.brcm.cp_crash=stm - write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 - write /sys/class/bcm_log/bcm_log/cp_crash stm - write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 + write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 + write /sys/class/bcm_log/bcm_log/cp_crash stm + write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 on property:persist.brcm.cp_crash=rndis - write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 - write /sys/class/bcm_log/bcm_log/cp_crash rndis - write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 + write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 + write /sys/class/bcm_log/bcm_log/cp_crash rndis + write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 on property:persist.brcm.cp_crash=acm - write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 - write /sys/class/bcm_log/bcm_log/cp_crash acm - write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 + write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 + write /sys/class/bcm_log/bcm_log/cp_crash acm + write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 on property:persist.brcm.cp_crash=panic - write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 - write /sys/class/bcm_log/bcm_log/cp_crash panic - write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 + write /sys/class/bcm_log/bcm_log/cp_crash_lock 0 + write /sys/class/bcm_log/bcm_log/cp_crash panic + write /sys/class/bcm_log/bcm_log/cp_crash_lock 1 on property:persist.brcm.ap_crash=auto - write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 + write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 on property:persist.brcm.ap_crash=stm - write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 - write /sys/class/bcm_log/bcm_log/ap_crash stm - write /sys/class/bcm_log/bcm_log/ap_crash_lock 1 + write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 + write /sys/class/bcm_log/bcm_log/ap_crash stm + write /sys/class/bcm_log/bcm_log/ap_crash_lock 1 on property:persist.brcm.ap_crash=panic - write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 - write /sys/class/bcm_log/bcm_log/ap_crash panic - write /sys/class/bcm_log/bcm_log/ap_crash_lock 1 + write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 + write /sys/class/bcm_log/bcm_log/ap_crash panic + write /sys/class/bcm_log/bcm_log/ap_crash_lock 1 on property:persist.brcm.ap_crash=sdcard - write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 - write /sys/class/bcm_log/bcm_log/ap_crash sdcard - write /sys/class/bcm_log/bcm_log/ap_crash_lock 1 + write /sys/class/bcm_log/bcm_log/ap_crash_lock 0 + write /sys/class/bcm_log/bcm_log/ap_crash sdcard + write /sys/class/bcm_log/bcm_log/ap_crash_lock 1 #Setup Broadcom brcm.ase.xxx handling for ASE on property:brcm.ase.log=* diff --git a/ramdisk/init.rc b/ramdisk/init.rc deleted file mode 100644 index aa68e1f..0000000 --- a/ramdisk/init.rc +++ /dev/null @@ -1,652 +0,0 @@ -# Copyright (C) 2012 The Android Open Source Project -# -# IMPORTANT: Do not create world writable files or directories. -# This is a common source of Android security bugs. -# - -import /init.environ.rc -import /init.usb.rc -import /init.${ro.hardware}.rc -import /init.${ro.zygote}.rc -import /init.trace.rc -# Include CM's extra init file -import /init.cm.rc - - -on early-init - # Set init and its forked children's oom_adj. - write /proc/1/oom_score_adj -1000 - - # Apply strict SELinux checking of PROT_EXEC on mmap/mprotect calls. - write /sys/fs/selinux/checkreqprot 0 - - # Set the security context for the init process. - # This should occur before anything else (e.g. ueventd) is started. - setcon u:r:init:s0 - - # Set the security context of /adb_keys if present. - restorecon /adb_keys - - start ueventd - - # create mountpoints - mkdir /mnt 0775 root system - -on init - sysclktz 0 - - loglevel 3 - - # Backward compatibility - symlink /system/etc /etc - symlink /sys/kernel/debug /d - - # Right now vendor lives on the same filesystem as system, - # but someday that may change. - symlink /system/vendor /vendor - - # Create cgroup mount point for cpu accounting - mkdir /acct - mount cgroup none /acct cpuacct - mkdir /acct/uid - - # Create cgroup mount point for memory - mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000 - mkdir /sys/fs/cgroup/memory 0750 root system - mount cgroup none /sys/fs/cgroup/memory memory - write /sys/fs/cgroup/memory/memory.move_charge_at_immigrate 1 - chown root system /sys/fs/cgroup/memory/tasks - chmod 0660 /sys/fs/cgroup/memory/tasks - mkdir /sys/fs/cgroup/memory/sw 0750 root system - write /sys/fs/cgroup/memory/sw/memory.swappiness 100 - write /sys/fs/cgroup/memory/sw/memory.move_charge_at_immigrate 1 - chown root system /sys/fs/cgroup/memory/sw/tasks - chmod 0660 /sys/fs/cgroup/memory/sw/tasks - - mkdir /system - mkdir /data 0771 system system - mkdir /cache 0770 system cache - mkdir /config 0500 root root - - # See storage config details at http://source.android.com/tech/storage/ - mkdir /mnt/shell 0700 shell shell - mkdir /mnt/media_rw 0700 media_rw media_rw - mkdir /storage 0751 root sdcard_r - - # Directory for putting things only root should see. - mkdir /mnt/secure 0700 root root - - # Directory for staging bindmounts - mkdir /mnt/secure/staging 0700 root root - - # Directory-target for where the secure container - # imagefile directory will be bind-mounted - mkdir /mnt/secure/asec 0700 root root - - # Secure container public mount points. - mkdir /mnt/asec 0700 root system - mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000 - - # Filesystem image public mount points. - mkdir /mnt/obb 0700 root system - mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000 - - # memory control cgroup - mkdir /dev/memcg 0700 root system - mount cgroup none /dev/memcg memory - - write /proc/sys/kernel/panic_on_oops 1 - write /proc/sys/kernel/hung_task_timeout_secs 0 - write /proc/cpu/alignment 4 - write /proc/sys/kernel/sched_latency_ns 10000000 - write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000 - write /proc/sys/kernel/sched_compat_yield 1 - write /proc/sys/kernel/sched_child_runs_first 0 - write /proc/sys/kernel/randomize_va_space 2 - write /proc/sys/kernel/kptr_restrict 2 - write /proc/sys/vm/mmap_min_addr 32768 - write /proc/sys/net/ipv4/ping_group_range "0 2147483647" - write /proc/sys/net/unix/max_dgram_qlen 300 - write /proc/sys/kernel/sched_rt_runtime_us 950000 - write /proc/sys/kernel/sched_rt_period_us 1000000 - - # reflect fwmark from incoming packets onto generated replies - write /proc/sys/net/ipv4/fwmark_reflect 1 - write /proc/sys/net/ipv6/fwmark_reflect 1 - - # set fwmark on accepted sockets - write /proc/sys/net/ipv4/tcp_fwmark_accept 1 - - # Create cgroup mount points for process groups - mkdir /dev/cpuctl - mount cgroup none /dev/cpuctl cpu - chown system system /dev/cpuctl - chown system system /dev/cpuctl/tasks - chmod 0666 /dev/cpuctl/tasks - write /dev/cpuctl/cpu.shares 1024 - write /dev/cpuctl/cpu.rt_runtime_us 800000 - write /dev/cpuctl/cpu.rt_period_us 1000000 - - mkdir /dev/cpuctl/bg_non_interactive - chown system system /dev/cpuctl/bg_non_interactive/tasks - chmod 0666 /dev/cpuctl/bg_non_interactive/tasks - # 5.0 % - write /dev/cpuctl/bg_non_interactive/cpu.shares 52 - write /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us 700000 - write /dev/cpuctl/bg_non_interactive/cpu.rt_period_us 1000000 - - # qtaguid will limit access to specific data based on group memberships. - # net_bw_acct grants impersonation of socket owners. - # net_bw_stats grants access to other apps' detailed tagged-socket stats. - chown root net_bw_acct /proc/net/xt_qtaguid/ctrl - chown root net_bw_stats /proc/net/xt_qtaguid/stats - - # Allow everybody to read the xt_qtaguid resource tracking misc dev. - # This is needed by any process that uses socket tagging. - chmod 0644 /dev/xt_qtaguid - - # Create location for fs_mgr to store abbreviated output from filesystem - # checker programs. - mkdir /dev/fscklogs 0770 root system - - # pstore/ramoops previous console log - mount pstore pstore /sys/fs/pstore - chown system log /sys/fs/pstore/console-ramoops - chmod 0440 /sys/fs/pstore/console-ramoops - -# Healthd can trigger a full boot from charger mode by signaling this -# property when the power button is held. -on property:sys.boot_from_charger_mode=1 - class_stop charger - trigger late-init - -# Load properties from /system/ + /factory after fs mount. -on load_all_props_action - load_all_props - -# Indicate to fw loaders that the relevant mounts are up. -on firmware_mounts_complete - rm /dev/.booting - -# Mount filesystems and start core system services. -on late-init - trigger early-fs - trigger fs - trigger post-fs - trigger post-fs-data - - # Load properties from /system/ + /factory after fs mount. Place - # this in another action so that the load will be scheduled after the prior - # issued fs triggers have completed. - trigger load_all_props_action - - # Remove a file to wake up anything waiting for firmware. - trigger firmware_mounts_complete - - trigger early-boot - trigger boot - - -on post-fs - # once everything is setup, no need to modify / - mount rootfs rootfs / ro remount - # mount shared so changes propagate into child namespaces - mount rootfs rootfs / shared rec - - # We chown/chmod /cache again so because mount is run as root + defaults - chown system cache /cache - chmod 0770 /cache - # We restorecon /cache in case the cache partition has been reset. - restorecon_recursive /cache - - # This may have been created by the recovery system with odd permissions - chown system cache /cache/recovery - chmod 0770 /cache/recovery - - #change permissions on vmallocinfo so we can grab it from bugreports - chown root log /proc/vmallocinfo - chmod 0440 /proc/vmallocinfo - - chown root log /proc/slabinfo - chmod 0440 /proc/slabinfo - - #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks - chown root system /proc/kmsg - chmod 0440 /proc/kmsg - chown root system /proc/sysrq-trigger - chmod 0220 /proc/sysrq-trigger - chown system log /proc/last_kmsg - chmod 0440 /proc/last_kmsg - - # make the selinux kernel policy world-readable - chmod 0444 /sys/fs/selinux/policy - - # create the lost+found directories, so as to enforce our permissions - mkdir /cache/lost+found 0770 root root - -on post-fs-data - # We chown/chmod /data again so because mount is run as root + defaults - chown system system /data - chmod 0771 /data - # We restorecon /data in case the userdata partition has been reset. - restorecon /data - - # Avoid predictable entropy pool. Carry over entropy from previous boot. - copy /data/system/entropy.dat /dev/urandom - - # Create dump dir and collect dumps. - # Do this before we mount cache so eventually we can use cache for - # storing dumps on platforms which do not have a dedicated dump partition. - mkdir /data/dontpanic 0750 root log - - # Collect apanic data, free resources and re-arm trigger - copy /proc/apanic_console /data/dontpanic/apanic_console - chown root log /data/dontpanic/apanic_console - chmod 0640 /data/dontpanic/apanic_console - - copy /proc/apanic_threads /data/dontpanic/apanic_threads - chown root log /data/dontpanic/apanic_threads - chmod 0640 /data/dontpanic/apanic_threads - - write /proc/apanic_console 1 - - # create basic filesystem structure - mkdir /data/misc 01771 system misc - mkdir /data/misc/adb 02750 system shell - mkdir /data/misc/audit 02750 audit system - mkdir /data/misc/bluedroid 0770 bluetooth net_bt_stack - mkdir /data/misc/bluetooth 0770 system system - mkdir /data/misc/keystore 0700 keystore keystore - mkdir /data/misc/keychain 0771 system system - mkdir /data/misc/net 0750 root shell - mkdir /data/misc/radio 0770 system radio - mkdir /data/misc/sms 0770 system radio - mkdir /data/misc/zoneinfo 0775 system system - mkdir /data/misc/vpn 0770 system vpn - mkdir /data/misc/shared_relro 0771 shared_relro shared_relro - mkdir /data/misc/systemkeys 0700 system system - mkdir /data/misc/wifi 0770 wifi wifi - mkdir /data/misc/wifi/sockets 0770 wifi wifi - mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi - mkdir /data/misc/ethernet 0770 system system - mkdir /data/misc/dhcp 0770 dhcp dhcp - mkdir /data/misc/user 0771 root root - # give system access to wpa_supplicant.conf for backup and restore - chmod 0660 /data/misc/wifi/wpa_supplicant.conf - mkdir /data/local 0751 root root - mkdir /data/misc/media 0700 media media - - # For security reasons, /data/local/tmp should always be empty. - # Do not place files or directories in /data/local/tmp - mkdir /data/local/tmp 0771 shell shell - mkdir /data/data 0771 system system - mkdir /data/app-private 0771 system system - mkdir /data/app-asec 0700 root root - mkdir /data/app-lib 0771 system system - mkdir /data/app 0771 system system - mkdir /data/property 0700 root root - - # create dalvik-cache, so as to enforce our permissions - mkdir /data/dalvik-cache 0771 root root - mkdir /data/dalvik-cache/profiles 0711 system system - - # create resource-cache and double-check the perms - mkdir /data/resource-cache 0771 system system - chown system system /data/resource-cache - chmod 0771 /data/resource-cache - - # create the lost+found directories, so as to enforce our permissions - mkdir /data/lost+found 0770 root root - - # create directory for DRM plug-ins - give drm the read/write access to - # the following directory. - mkdir /data/drm 0770 drm drm - - # create directory for MediaDrm plug-ins - give drm the read/write access to - # the following directory. - mkdir /data/mediadrm 0770 mediadrm mediadrm - - mkdir /data/adb 0700 root root - - # symlink to bugreport storage location - symlink /data/data/com.android.shell/files/bugreports /data/bugreports - - # Separate location for storing security policy files on data - mkdir /data/security 0711 system system - - # Reload policy from /data/security if present. - setprop selinux.reload_policy 1 - - # Set SELinux security contexts on upgrade or policy update. - restorecon_recursive /data - restorecon /data/data - restorecon /data/user - restorecon /data/user/0 - - # If there is no fs-post-data action in the init..rc file, you - # must uncomment this line, otherwise encrypted filesystems - # won't work. - # Set indication (checked by vold) that we have finished this action - #setprop vold.post_fs_data_done 1 - -on boot - # basic network init - ifup lo - hostname localhost - domainname localdomain - - # set RLIMIT_NICE to allow priorities from 19 to -20 - setrlimit 13 40 40 - - # Memory management. Basic kernel parameters, and allow the high - # level system server to be able to adjust the kernel OOM driver - # parameters to match how it is managing things. - write /proc/sys/vm/overcommit_memory 1 - write /proc/sys/vm/min_free_order_shift 4 - chown root system /sys/module/lowmemorykiller/parameters/adj - chmod 0220 /sys/module/lowmemorykiller/parameters/adj - chown root system /sys/module/lowmemorykiller/parameters/minfree - chmod 0220 /sys/module/lowmemorykiller/parameters/minfree - - # Tweak background writeout - write /proc/sys/vm/dirty_expire_centisecs 200 - write /proc/sys/vm/dirty_background_ratio 5 - - # Permissions for System Server and daemons. - chown radio system /sys/android_power/state - chown radio system /sys/android_power/request_state - chown radio system /sys/android_power/acquire_full_wake_lock - chown radio system /sys/android_power/acquire_partial_wake_lock - chown radio system /sys/android_power/release_wake_lock - chown system system /sys/power/autosleep - chown system system /sys/power/state - chown system system /sys/power/wakeup_count - chown radio system /sys/power/wake_lock - chown radio system /sys/power/wake_unlock - chmod 0660 /sys/power/state - chmod 0660 /sys/power/wake_lock - chmod 0660 /sys/power/wake_unlock - - chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate - chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack - chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time - chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq - chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads - chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load - chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay - chown system system /sys/devices/system/cpu/cpufreq/interactive/boost - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost - chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse - chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost - chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration - chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy - chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy - - # Assume SMP uses shared cpufreq policy for all CPUs - chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq - chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq - - chown system system /sys/class/timed_output/vibrator/enable - chown system system /sys/class/leds/keyboard-backlight/brightness - chown system system /sys/class/leds/lcd-backlight/brightness - chown system system /sys/class/leds/torch-light/brightness - chown system system /sys/class/leds/button-backlight/brightness - chown system system /sys/class/leds/jogball-backlight/brightness - chown system system /sys/class/leds/red/brightness - chown system system /sys/class/leds/green/brightness - chown system system /sys/class/leds/blue/brightness - chown system system /sys/class/leds/red/device/grpfreq - chown system system /sys/class/leds/red/device/grppwm - chown system system /sys/class/leds/red/device/blink - chown system system /sys/class/timed_output/vibrator/enable - chown system system /sys/module/sco/parameters/disable_esco - chown system system /sys/kernel/ipv4/tcp_wmem_min - chown system system /sys/kernel/ipv4/tcp_wmem_def - chown system system /sys/kernel/ipv4/tcp_wmem_max - chown system system /sys/kernel/ipv4/tcp_rmem_min - chown system system /sys/kernel/ipv4/tcp_rmem_def - chown system system /sys/kernel/ipv4/tcp_rmem_max - chown root radio /proc/cmdline - - # Define default initial receive window size in segments. - setprop net.tcp.default_init_rwnd 60 - - class_start core - -on nonencrypted - class_start main - class_start late_start - -on property:vold.decrypt=trigger_default_encryption - start defaultcrypto - -on property:vold.decrypt=trigger_encryption - start surfaceflinger - start encrypt - -on property:sys.init_log_level=* - loglevel ${sys.init_log_level} - -on charger - class_start charger - -on property:vold.decrypt=trigger_reset_main - class_reset main - -on property:vold.decrypt=trigger_load_persist_props - load_persist_props - -on property:vold.decrypt=trigger_post_fs_data - trigger post-fs-data - -on property:vold.decrypt=trigger_restart_min_framework - class_start main - -on property:vold.decrypt=trigger_restart_framework - class_start main - class_start late_start - -on property:vold.decrypt=trigger_shutdown_framework - class_reset late_start - class_reset main - -on property:sys.powerctl=* - powerctl ${sys.powerctl} - -# system server cannot write to /proc/sys files, -# and chown/chmod does not work for /proc/sys/ entries. -# So proxy writes through init. -on property:sys.sysctl.extra_free_kbytes=* - write /proc/sys/vm/extra_free_kbytes ${sys.sysctl.extra_free_kbytes} - -# "tcp_default_init_rwnd" Is too long! -on property:sys.sysctl.tcp_def_init_rwnd=* - write /proc/sys/net/ipv4/tcp_default_init_rwnd ${sys.sysctl.tcp_def_init_rwnd} - - -## Daemon processes to be run by init. -## -service ueventd /sbin/ueventd - class core - critical - seclabel u:r:ueventd:s0 - -service logd /system/bin/logd - class core - socket logd stream 0666 logd logd - socket logdr seqpacket 0666 logd logd - socket logdw dgram 0222 logd logd - seclabel u:r:logd:s0 - -service healthd /sbin/healthd - class core - critical - seclabel u:r:healthd:s0 - -service console /system/bin/sh - class core - console - disabled - user shell - group shell log - seclabel u:r:shell:s0 - -service auditd /system/bin/auditd -k - seclabel u:r:logd:s0 - class main - -on property:ro.debuggable=1 - start console - -# adbd is controlled via property triggers in init..usb.rc -service adbd /sbin/adbd --root_seclabel=u:r:su:s0 - class core - socket adbd stream 660 system system - disabled - seclabel u:r:adbd:s0 - -# adbd on at boot in emulator -on property:ro.kernel.qemu=1 - start adbd - -service lmkd /system/bin/lmkd - class core - critical - socket lmkd seqpacket 0660 system system - -service servicemanager /system/bin/servicemanager - class core - user system - group system - critical - onrestart restart healthd - onrestart restart zygote - onrestart restart media - onrestart restart surfaceflinger - onrestart restart drm - -service vold /system/bin/vold - class core - socket vold stream 0660 root mount - ioprio be 2 - -service netd /system/bin/netd - class main - socket netd stream 0660 root system - socket dnsproxyd stream 0660 root inet - socket mdns stream 0660 root system - socket fwmarkd stream 0660 root inet - -service debuggerd /system/bin/debuggerd - class main - -service debuggerd64 /system/bin/debuggerd64 - class main - -#service ril-daemon /system/bin/rild -# class main -# socket rild stream 660 root radio -# socket rild-debug stream 660 radio system -# user root -# group radio cache inet misc audio sdcard_rw qcom_diag log - -service surfaceflinger /system/bin/surfaceflinger - class core - user system - group graphics drmrpc - onrestart restart zygote - -service drm /system/bin/drmserver - class main - user drm - group drm system inet drmrpc - -service media /system/bin/mediaserver - class main - user media - group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc mediadrm qcom_diag - ioprio rt 4 - -# One shot invocation to deal with encrypted volume. -service defaultcrypto /system/bin/vdc --wait cryptfs mountdefaultencrypted - disabled - oneshot - # vold will set vold.decrypt to trigger_restart_framework (default - # encryption) or trigger_restart_min_framework (other encryption) - -# One shot invocation to encrypt unencrypted volumes -service encrypt /system/bin/vdc --wait cryptfs enablecrypto inplace default - disabled - oneshot - # vold will set vold.decrypt to trigger_restart_framework (default - # encryption) - -service bootanim /system/bin/bootanimation - class core - user graphics - group graphics audio - disabled - oneshot - -service installd /system/bin/installd - class main - socket installd stream 600 system system - -service flash_recovery /system/bin/install-recovery.sh - class main - seclabel u:r:install_recovery:s0 - oneshot - disabled - -# update recovery if enabled -on property:persist.sys.recovery_update=true - start flash_recovery - -service racoon /system/bin/racoon - class main - socket racoon stream 600 system system - # IKE uses UDP port 500. Racoon will setuid to vpn after binding the port. - group vpn net_admin inet - disabled - oneshot - -service mtpd /system/bin/mtpd - class main - socket mtpd stream 600 system system - user vpn - group vpn net_admin inet net_raw - disabled - oneshot - -service keystore /system/bin/keystore /data/misc/keystore - class main - user keystore - group keystore drmrpc - -service dumpstate /system/bin/dumpstate -s - class main - socket dumpstate stream 0660 shell log - disabled - oneshot - -service mdnsd /system/bin/mdnsd - class main - user mdnsr - group inet net_raw - socket mdnsd stream 0660 mdnsr inet - disabled - oneshot - -service pre-recovery /system/bin/uncrypt - class main - disabled - oneshot \ No newline at end of file diff --git a/ramdisk/lpm.rc b/ramdisk/lpm.rc deleted file mode 100644 index f6418c7..0000000 --- a/ramdisk/lpm.rc +++ /dev/null @@ -1,82 +0,0 @@ -on early-init - start ueventd - - 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 EXTERNAL_STORAGE /sdcard - - symlink /system/etc /etc - - mkdir /sdcard - mkdir /preload - mkdir /system - mkdir /data - mkdir /cache - mkdir /efs - mkdir /tmp - mkdir /dbdata - mkdir /mnt 0775 root root - #mount /tmp /tmp tmpfs - - mount ext4 /dev/block/mmcblk0p17 /system ro wait noatime - exec sfsck /dev/block/mmcblk0p19 ext4 - mount ext4 /dev/block/mmcblk0p19 /data wait nosuid nodev noatime discard,noauto_da_alloc,journal_async_commit - - mkdir /data/log 0777 - - chmod 0666 /dev/log/radio - chmod 0666 /dev/log/main - chmod 0666 /dev/log/event - -# write /sys/class/sec/switch/usb_sel PDA - -# CPU Frequency Governor - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive - -# EHCI runtime enable for LPA - write /sys/devices/platform/s5p-ehci/power/control auto - - ifup lo - hostname localhost - domainname localdomain - - class_start charger - class_start default - -service debuggerd /system/bin/debuggerd - - service ueventd /sbin/ueventd - critical - -#service console /bin/sh -service console /system/bin/sh - console - -service playlpm /system/bin/playlpm - user root - -service immvibed /system/bin/immvibed - oneshot - -service lpmkey /system/bin/lpmkey - user root - -service battery_charger /charger - class charger - seclabel u:r:healthd:s0 - -# adbd is controlled by the persist.service.adb.enable system property -service adbd /sbin/adbd - disabled - -# adbd on at boot in emulator -on property:ro.kernel.qemu=1 - start adbd - -on property:persist.service.adb.enable=1 - start adbd - -on property:persist.service.adb.enable=0 - stop adbd \ No newline at end of file diff --git a/ramdisk/twrp.fstab.hawaii_ss_kylepro b/ramdisk/twrp.fstab.hawaii_ss_kylepro index f370274..e61e2cb 100644 --- a/ramdisk/twrp.fstab.hawaii_ss_kylepro +++ b/ramdisk/twrp.fstab.hawaii_ss_kylepro @@ -1,9 +1,8 @@ -/boot emmc /dev/block/platform/sdhci.1/by-name/KERNEL -/system ext4 /dev/block/platform/sdhci.1/by-name/system -/data ext4 /dev/block/platform/sdhci.1/by-name/userdata length=-16384 -/cache ext4 /dev/block/platform/sdhci.1/by-name/CSC -/recovery emmc /dev/block/platform/sdhci.1/by-name/RECOVERY -/modem emmc /dev/block/platform/sdhci.1/by-name/modem flags=display="Baseband";backup=1 -/efs ext4 /dev/block/platform/sdhci.1/by-name/efs flags=display="EFS";backup=1 -/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable -/preload ext4 /dev/block/platform/sdhci.1/by-name/HIDDEN flags=display="Preload";wipeingui;backup=1 +/boot emmc /dev/block/platform/sdhci.1/by-name/KERNEL +/system ext4 /dev/block/platform/sdhci.1/by-name/system +/data ext4 /dev/block/platform/sdhci.1/by-name/userdata length=-16384 +/cache ext4 /dev/block/platform/sdhci.1/by-name/CSC +/recovery emmc /dev/block/platform/sdhci.1/by-name/RECOVERY +/modem emmc /dev/block/platform/sdhci.1/by-name/modem flags=display="Baseband";backup=1 +/efs ext4 /dev/block/platform/sdhci.1/by-name/efs flags=display="EFS";backup=1 +/external_sd vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="Micro SDcard";storage;wipeingui;removable diff --git a/ramdisk/ueventd.hawaii_ss_kylepro.rc b/ramdisk/ueventd.hawaii_ss_kylepro.rc index a8e27c2..ecfecd1 100644 --- a/ramdisk/ueventd.hawaii_ss_kylepro.rc +++ b/ramdisk/ueventd.hawaii_ss_kylepro.rc @@ -1,72 +1,46 @@ - -/dev/pvrsrvkm 0666 system system -/dev/graphics/fb0 0666 system graphics -/dev/video0 0660 system camera -/dev/video1 0660 system camera -/dev/video2 0660 system camera -/dev/s3c-jpg 0660 system camera -/dev/s3c-mem 0660 system system -/dev/s3c-mfc 0660 system graphics - -/dev/modem_ctl 0660 radio radio -/dev/modem_fmt 0660 radio radio -/dev/modem_rfs 0660 radio radio -/dev/s3c2410_serial3 0660 radio radio -/dev/block/mtdblock5 0660 radio radio -/dev/mtd/mtd5ro 0660 radio radio - -# for GPS -/dev/s3c2410_serial1 0600 gps gps - -# for Camera -/dev/bcm_unicam 0660 system camera -/dev/bcm_isp 0660 system camera -/dev/i2c-0 0660 system camera -/dev/i2c-1 0660 system camera -/dev/i2c-2 0660 system camera - -# for MM memory -/dev/ion 0666 system graphics - -#for V3D -/dev/v3d 0666 system graphics -/dev/pmem 0660 system graphics - -#for VCE -/dev/vce 0660 system graphics - -# sensors -/dev/mpu 0666 system system -/dev/mpuirq 0666 system system -/dev/timerirq 0666 system system -/dev/ami_sensor 0666 system system - -# for Hawaii -/dev/mm_v3d 0666 system graphics -/dev/mm_isp 0660 system camera -/dev/bcm_isp2 0660 system camera -/dev/mm_isp2 0666 system camera -/dev/bcm_jpeg 0660 system camera -/dev/mm_interlock 0666 system graphics -/dev/mm_h264 0660 media media -/dev/h264_ol 0660 media media - -# for h/w codec -/dev/brcm_h264 0660 media media - -#Permission for NV partition -/dev/block/mmcblk0p1 0770 radio system +# For graphic +/dev/graphics/fb0 0666 system graphics +/dev/video0 0660 system camera +/dev/video1 0660 system camera + +# For Camera +/dev/bcm_unicam 0660 system camera +/dev/bcm_isp 0660 system camera +/dev/i2c-0 0660 system camera +/dev/i2c-1 0660 system camera +/dev/i2c-2 0660 system camera + +# For MM memory +/dev/ion 0666 system graphics + +# For V3D +/dev/pmem 0660 system graphics + +# For VCE +/dev/vce 0660 system graphics + +# For Hawaii +/dev/mm_v3d 0666 system graphics +/dev/mm_isp 0660 system camera +/dev/bcm_isp 0660 system camera +/dev/mm_isp 0666 system camera +/dev/mm_interlock 0666 system graphics +/dev/mm_h264 0660 media media +/dev/h264_ol 0660 media media + +# For h/w codec +/dev/brcm_h264 0660 media media + +# Permission for NV partition +/dev/block/mmcblk0p1 0770 radio system # SYSTEM Status -/dev/block/mmcblk0p11 0660 system root +/dev/block/mmcblk0p11 0660 system root -# for RIL to be able to open Kernel RPC drivers -/dev/bcm_rpc 0660 radio radio -/dev/bcm_irpc 0660 radio radio -/dev/bcm_atc 0660 shell system +# For RIL to be able to open Kernel RPC drivers +/dev/bcm_irpc 0660 radio radio -# SEC User Dump -# /dev/sec_user_dump 0660 system shell -/dev/mem 0660 system root -/dev/ttyGS0 0660 system system -/dev/snd/controlC0 0660 system audio \ No newline at end of file +# Misc +/dev/mem 0660 system root +/dev/ttyGS0 0660 system system +/dev/snd/controlC0 0660 system audio \ No newline at end of file diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index fb4d614..80535d7 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -1,51 +1,33 @@ -/dev/bcm_isp u:object_r:camera_device:s0 -/dev/mm_isp u:object_r:camera_device:s0 -/dev/vce u:object_r:gpu_device:s0 -/dev/mm_h264 u:object_r:video_device:s0 -/dev/h264_ol u:object_r:video_device:s0 -/dev/brcm_h264 u:object_r:video_device:s0 -/dev/mm_v3d u:object_r:gpu_device:s0 -/dev/mm_interlock u:object_r:gpu_device:s0 -/dev/bcm_voip_chrdev u:object_r:audio_device:s0 -/dev/bcm_security u:object_r:radio_device:s0 -/dev/v3d u:object_r:gpu_device:s0 -/dev/pmem u:object_r:gpu_device:s0 -/dev/bralloc_mem u:object_r:gpu_device:s0 -/dev/graphics/fb0 u:object_r:gpu_device:s0 -/dev/modem_ctl u:object_r:radio_device:s0 -/dev/modem_fmt u:object_r:radio_device:s0 -/dev/modem_rfs u:object_r:radio_device:s0 -/dev/s3c2410_serial3 u:object_r:radio_device:s0 -/dev/s3c2410_serial1 u:object_r:gps_device:s0 -/dev/bcm_unicam u:object_r:camera_device:s0 -/dev/i2c-[0-9] u:object_r:camera_device:s0 -/dev/bcm_isp2 u:object_r:camera_device:s0 -/dev/mm_isp2 u:object_r:camera_device:s0 -/dev/bcm_jpeg u:object_r:camera_device:s0 -/dev/bcm_rpc u:object_r:radio_device:s0 -/dev/bcm_irpc u:object_r:radio_device:s0 +/dev/bcm_isp u:object_r:camera_device:s0 +/dev/mm_isp u:object_r:camera_device:s0 +/dev/vce u:object_r:gpu_device:s0 +/dev/mm_h264 u:object_r:video_device:s0 +/dev/h264_ol u:object_r:video_device:s0 +/dev/brcm_h264 u:object_r:video_device:s0 +/dev/mm_v3d u:object_r:gpu_device:s0 +/dev/mm_interlock u:object_r:gpu_device:s0 +/dev/bcm_voip_chrdev u:object_r:audio_device:s0 +/dev/bcm_security u:object_r:radio_device:s0 +/dev/pmem u:object_r:gpu_device:s0 +/dev/graphics/fb0 u:object_r:gpu_device:s0 +/dev/i2c-[0-8] u:object_r:camera_device:s0 +/dev/bcm_irpc u:object_r:radio_device:s0 -/efs/bluetooth/bt_addr u:object_r:bluetooth_efs_file:s0 -/sys/devices/platform/bcmbt-rfkill.1/rfkill/rfkill0/state -- u:object_r:sysfs_bluetooth_writable:s0 -/sys/devices/platform/bcmbt-rfkill.1/rfkill/rfkill0/type -- u:object_r:sysfs_bluetooth_writable:s0 +/efs/bluetooth/bt_addr u:object_r:bluetooth_efs_file:s0 +/sys/devices/platform/bcmbt-rfkill/rfkill/rfkill0/state -- u:object_r:sysfs_bluetooth_writable:s0 +/sys/devices/platform/bcmbt-rfkill/rfkill/rfkill0/type -- u:object_r:sysfs_bluetooth_writable:s0 -/dev/ttyS0 u:object_r:hci_attach_dev:s0 -/dev/ttyS1 u:object_r:gps_device:s0 -#/dev/ttyS2 u:object_r:gps_device:s0 -/dev/bcm_gps u:object_r:gps_device:s0 +/dev/ttyS0 u:object_r:hci_attach_dev:s0 +/dev/ttyS1 u:object_r:gps_device:s0 +#/dev/ttyS2 u:object_r:gps_device:s0 +/dev/bcm_gps u:object_r:gps_device:s0 -/dev/bcm_log u:object_r:radio_device:s0 -/dev/block/mmcblk0p1 u:object_r:radio_device:s0 - -/dev/socket/rild1 u:object_r:rild_socket:s0 - -/sys/devices/platform/mdnie/mdnie/mdnie/cabc -- u:object_r:sysfs_writable:s0 +/dev/bcm_log u:object_r:radio_device:s0 +/dev/block/mmcblk0p1 u:object_r:radio_device:s0 # /system files -/system/bin/geomagneticd u:object_r:geomagneticd_exec:s0 -/system/bin/immvibed u:object_r:immvibed_exec:s0 -/system/bin/macloader u:object_r:macloader_exec:s0 -/system/bin/tvserver u:object_r:tvserver_exec:s0 -/system/bin/bkmgrd u:object_r:bkmgrd_exec:s0 -/system/bin/vclmk u:object_r:vclmk_exec:s0 -/system/bin/glgps u:object_r:gpsd_exec:s0 +/system/bin/geomagneticd u:object_r:geomagneticd_exec:s0 +/system/bin/immvibed u:object_r:immvibed_exec:s0 +/system/bin/macloader u:object_r:macloader_exec:s0 +/system/bin/bkmgrd u:object_r:bkmgrd_exec:s0 +/system/bin/glgps u:object_r:gpsd_exec:s0 diff --git a/sepolicy/init.te b/sepolicy/init.te index fdd83bc..93764bf 100644 --- a/sepolicy/init.te +++ b/sepolicy/init.te @@ -1,7 +1,7 @@ -# chmod in init.capri_ss_baffin.rc (for bkmgrd) +# chmod in init.hawaii_ss_kylepro.rc (for bkmgrd) allow init block_device:blk_file setattr; allow init radio_device:blk_file setattr; # insmod allow init self:capability sys_module; # TODO: want sys_ptrace too -allow init kernel:security setenforce; \ No newline at end of file +allow init kernel:security setenforce; diff --git a/sepolicy/service_contexts b/sepolicy/service_contexts deleted file mode 100644 index ddb8a10..0000000 --- a/sepolicy/service_contexts +++ /dev/null @@ -1 +0,0 @@ -broadcom.tvservice u:object_r:system_server_service:s0 diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te index fda6c37..b11ec86 100644 --- a/sepolicy/system_server.te +++ b/sepolicy/system_server.te @@ -1,4 +1,4 @@ -# Access /sys/devices/platform/mdnie/mdnie/mdnie/cabc +# Not sure why allow system_server sysfs_writable:file rw_file_perms; # Access /efs/wifi/.mac.info diff --git a/sepolicy/tvserver.te b/sepolicy/tvserver.te deleted file mode 100644 index 81b6c69..0000000 --- a/sepolicy/tvserver.te +++ /dev/null @@ -1,8 +0,0 @@ -type tvserver, domain; -type tvserver_exec, file_type, exec_type; - -init_daemon_domain(tvserver) -binder_use(tvserver) - -allow tvserver gpu_device:chr_file rw_file_perms; -allow tvserver system_server_service:service_manager add; diff --git a/sepolicy/vclmk.te b/sepolicy/vclmk.te deleted file mode 100644 index 8aa163d..0000000 --- a/sepolicy/vclmk.te +++ /dev/null @@ -1,14 +0,0 @@ -type vclmk, domain; -type vclmk_exec, file_type, exec_type; - -init_daemon_domain(vclmk) - -allow vclmk gpu_device:chr_file rw_file_perms; -allow vclmk video_device:chr_file rw_file_perms; - -# Access app data in /proc/pid -allow vclmk domain:dir r_dir_perms; -allow vclmk domain:file r_file_perms; - -# Kill apps -allow vclmk appdomain:process { sigkill sigstop signal }; diff --git a/system.prop b/system.prop index 6e07dde..bf30867 100644 --- a/system.prop +++ b/system.prop @@ -16,12 +16,11 @@ ro.lcd_min_brightness=10 ro.product.multi_touch_enabled=true ro.product.max_num_touch=2 -net.streaming.rtsp.uaprof=http://wap.samsungmobile.com/uaprof/ +net.streaming.rtsp.uaprof=http://wap.samsungmobile.com/uaprof/GT-S7580.xml ro.opengles.version=131072 debug.hwui.render_dirty_regions=false brcm.graphics.async_errors=false -brcm.hwc.no-hdmi-trans=1 #adative video encoding video.enc.h264.adaptive_quality=1 @@ -32,4 +31,3 @@ video.enc.h264.timing_thr2=145 ro.ril.hsxpa=1 ro.ril.gprsclass=10 -ro.com.google.gmsversion=4.2_r4 \ No newline at end of file diff --git a/vendorsetup.sh b/vendorsetup.sh index 405318e..5e62d9d 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -1,3 +1,3 @@ for i in eng userdebug user; do - add_lunch_combo cm_kylepro-${i} + add_lunch_combo cm_kylepro-${i} done