diff options
-rwxr-xr-x | n5100.mk | 12 | ||||
-rwxr-xr-x | rootdir/init.target.rc | 249 | ||||
-rwxr-xr-x | system.prop | 12 |
3 files changed, 1 insertions, 272 deletions
@@ -18,19 +18,9 @@ LOCAL_PATH := device/samsung/n5100 DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay -# Init files -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/rootdir/init.target.rc:root/init.target.rc - # RIL PRODUCT_PROPERTY_OVERRIDES += \ - ro.telephony.ril_class=SamsungExynos4RIL \ - ro.telephony.call_ring.multiple=false \ - ro.telephony.call_ring.delay=3000 - -PRODUCT_PACKAGES += \ - libxml2 \ - libprotobuf-cpp-full + ro.telephony.ril_class=SamsungExynos4RIL # These are the hardware-specific features PRODUCT_COPY_FILES += \ diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc deleted file mode 100755 index ac758f9..0000000 --- a/rootdir/init.target.rc +++ /dev/null @@ -1,249 +0,0 @@ -############################ -on init -############################ - - export LD_SHIM_LIBS /system/lib/libsec-ril.so|libsamsung_symbols.so - - mkdir /vendor/etc/ 0771 system system - - # Vibetonz - export VIBE_PIPE_PATH /dev/pipes - mkdir /dev/pipes 0771 shell shell - -# macloader - - rm /data/.cid.info - - chown system system /efs/wifi/.mac.cob - chown system system /efs/wifi/.mac.info - - chmod 0666 /efs/wifi/.mac.cob - chmod 0666 /efs/wifi/.mac.info - - copy /efs/wifi/.mac.cob /efs/wifi/.mac.info - - start macloader - -############################ -on post-fs-data -############################ - -# 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 - mkdir /data/system 0771 system system - chown system system /data/system - mkdir /data/system/gps 0771 system system - chown system system /data/system/gps - mkdir /vendor/etc 0771 system system - chown system system /vendor/etc - rm /data/system/gps/gps_started - rm /data/system/gps/glonass_started - rm /data/system/gps/beidou_started - rm /data/system/gps/smd_started - rm /data/system/gps/sv_cno.info - -# bluetooth - write /efs/bluetooth/bt_addr 0 - -# Waketime fot fast dormancy - chown system radio /sys/devices/platform/mdm_hsic_pm0/waketime - chmod 0660 /sys/devices/platform/mdm_hsic_pm0/waketime - -# audio - mkdir /data/local/audio 0775 media audio - chown media audio /data/local/audio - -# Camera - chown radio system /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode - chmod 0660 /sys/devices/platform/samsung-pd.5/s3c-fimc.2/range_mode - -# KeyDisabler - chown system system /sys/class/sec/sec_touchkey/keypad_enable - -# 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 - chown system system /sys/class/mdnie/mdnie/negative - chown system system /sys/class/mdnie/mdnie/ebook - chown system system /sys/class/mdnie/mdnie/accessibility - chown system media_rw /sys/class/mdnie/mdnie/cabc - write /sys/class/mdnie/mdnie/scenario 0 - write /sys/class/mdnie/mdnie/mode 0 - -# Permissions for Touchkey - chown system radio /sys/class/sec/sec_touchkey/touchkey_dummy_btn1 - chown system radio /sys/class/sec/sec_touchkey/touchkey_dummy_btn3 - chown system radio /sys/class/sec/sec_touchkey/touchkey_dummy_btn5 - chown system radio /sys/class/sec/sec_touchkey/extra_button_event - chown system radio /sys/class/sec/sec_touchkey/touchkey_button_all - chown system radio /sys/class/sec/sec_touchkey/touchkey_threshold - chmod 0660 /sys/class/sec/sec_touchkey/extra_button_event - -# Permissions for Hall IC - chown system radio /sys/class/sec/sec_key/hall_detect - -# Battery node - chown system radio /sys/class/power_supply/battery/batt_error_test - chown system radio /sys/class/power_supply/battery/batt_slate_mode - chown system radio /sys/class/power_supply/battery/batt_temp_adc_cal - chown system radio /sys/class/power_supply/battery/batt_vf_adc - chown system radio /sys/class/power_supply/battery/batt_vol_adc - chown system radio /sys/class/power_supply/battery/batt_vol_adc_aver - chown system radio /sys/class/power_supply/battery/batt_vol_adc_cal - chown system radio /sys/class/power_supply/battery/batt_vol_aver - chown system radio /sys/class/power_supply/battery/factory_mode - chown system radio /sys/class/power_supply/battery/siop_activated - chown system radio /sys/class/power_supply/battery/siop_level - chown system radio /sys/class/power_supply/battery/update - -# CTIA event - chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/call - chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/video - chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/music - chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/browser - chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/hotspot - chown sdcard_rw sdcard_rw /sys/class/power_supply/battery/camera - chown system radio /sys/class/power_supply/battery/talk_wcdma - chown system radio /sys/class/power_supply/battery/talk_gsm - chown system radio /sys/class/power_supply/battery/call - chown system radio /sys/class/power_supply/battery/data_call - chown gps radio /sys/class/power_supply/battery/gps - chown system radio /sys/class/power_supply/battery/wifi - chown system radio /sys/class/power_supply/battery/lte - -# Permissions for gpio_keys - chown radio system /sys/class/sec/sec_key/wakeup_keys - write /sys/class/sec/sec_key/wakeup_keys 116,172,544 - -# IPC sysfs - chown system system /sys/devices/virtual/misc/multipdp/waketime - -# Input Events - chown system input /sys/class/input/input2/delay - chown system input /sys/class/input/input3/delay - chown system input /sys/class/input/input4/delay - chown system input /sys/class/input/input5/delay - chown system input /sys/class/input/input6/delay - chown system input /sys/class/input/input6/delay - chown system input /sys/class/input/input7/delay - chown system input /sys/class/input/input8/delay - chown system input /sys/class/input/input9/delay - -# Magnetic_sensor - chmod 0777 /dev/i2c-10 - chown compass input /sys/class/input/input6/offsets - chown compass input /sys/class/input/input6/dynamic_matrix - chown system input /sys/class/input/input6/threshold - chown system input /sys/class/input/input6/distortion - chown system input /sys/class/input/input6/shape - write /sys/class/input/input6/distortion "350 50 15" - write /sys/class/input/input6/static_matrix "10602 -980 25 -830 10470 -188 2753 1005 9019" - write /sys/class/input/input6/ellipsoid_mode "1" - - chown system input /sys/class/input/input6/filter_enable - chown system input /sys/class/input/input6/filter_len - chown system input /sys/class/input/input6/data - chown system input /sys/class/input/input6/status - chown system input /sys/class/input/input6/wake - chown system input /sys/class/input/input6/position - -# Magnetic_sensor - chown compass input /sys/class/input/input5/offsets - chown compass input /sys/class/input/input5/dynamic_matrix - chown system input /sys/class/input/input5/threshold - chown system input /sys/class/input/input5/distortion - chown system input /sys/class/input/input5/shape - write /sys/class/input/input5/distortion "350 50 15" - write /sys/class/input/input5/static_matrix "10602 -980 25 -830 10470 -188 2753 1005 9019" - write /sys/class/input/input5/ellipsoid_mode "1" - - chown system input /sys/class/input/input5/filter_enable - chown system input /sys/class/input/input5/filter_len - chown system input /sys/class/input/input5/data - chown system input /sys/class/input/input5/status - chown system input /sys/class/input/input5/wake - chown system input /sys/class/input/input5/position - -# Vibetonz - chmod 0660 /dev/tspdrv - chown root shell /dev/tspdrv - -# IR_LED - chown system system /sys/class/sec/sec_ir/ir_send - chown system system /sys/class/sec/sec_ir/ir_send_result - -# for wifi - mkdir /data/misc/wifi/sockets 0770 wifi wifi - -# geomagneticd - write /data/system/yas.cfg 0 - write /data/system/yas-backup.cfg 0 - - restorecon /data/system/yas.cfg - restorecon /data/system/yas-backup.cfg - restorecon_recursive /data/system/gps - restorecon_recursive /efs - -############################ -on boot -############################ - -# epen - chown system system /sys/class/sec/sec_epen/epen_saving_mode - chmod 660 /sys/class/sec/sec_epen/epen_saving_mode - -# SISO-ANDR_PERF :: START Changing scheduler to cfq and reseting cpu min freq to -1 after boot complete -on property:sys.boot_completed=1 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq - write /sys/block/mmcblk0/queue/scheduler cfq - write /sys/power/cpufreq_min_limit -1 -# SISO-ANDR_PERF :: END - - chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table - chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock - chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock - chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock - chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/cpucore_table - chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock - chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/min_cpu_lock - chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock - - # To prevent out of order acknowledgements from making - # connection tracking to treat them as not belonging to - # the connection they belong to. - # Otherwise, a weird issue happens in which some long - # connections on high-throughput links get dropped when - # an ack packet comes out of order - write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 - -############################ -############################ - -service cpboot-daemon /system/bin/cbd -d -t xmm6262 -p 7 - class main - user root - group radio cache inet misc audio sdcard_rw log sdcard_r - seclabel u:r:cpboot-daemon:s0 - -service gpsd /system/bin/gpsd -c /system/etc/gps.xml - class main - user gps - group system inet net_raw - ioprio be 0 - seclabel u:r:gpsd:s0 - -service orientationd /system/bin/orientationd - class main - user compass - group input - seclabel u:r:orientationd:s0 - -service geomagneticd /system/bin/geomagneticd - class main - user compass - group system input - seclabel u:r:geomagneticd:s0 diff --git a/system.prop b/system.prop deleted file mode 100755 index 553db57..0000000 --- a/system.prop +++ /dev/null @@ -1,12 +0,0 @@ -# -# system.prop for n5100 -# - -rild.libpath=/system/lib/libsec-ril.so -rild.libargs=-d /dev/ttyS0 -ro.lcd_min_brightness=20 -ro.sf.hwrotation=270 -ro.sf.lcd_density=213 -ro.hdcp2.rx=tz -ro.ril.hsxpa=1 -ro.ril.gprsclass=10 |