From 5aeb3d71197bf67131dabe2118b942f6e69dff4e Mon Sep 17 00:00:00 2001 From: RGIB Date: Wed, 6 Apr 2016 21:59:56 +0200 Subject: n5100 : rename rc file Change-Id: Ic6b6f27ec1da4a1ae8ea5721c47a30e4afffa307 --- n5100.mk | 6 +- rootdir/init.smdk4x12.rc | 560 ----------------------------------------------- rootdir/init.target.rc | 213 ++++++++++++++++++ 3 files changed, 215 insertions(+), 564 deletions(-) delete mode 100755 rootdir/init.smdk4x12.rc create mode 100755 rootdir/init.target.rc diff --git a/n5100.mk b/n5100.mk index a10c5af..3921258 100755 --- a/n5100.mk +++ b/n5100.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2013 The CyanogenMod Project +# Copyright (C) 2016 The CyanogenMod Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay # Init files PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/rootdir/init.smdk4x12.rc:root/init.smdk4x12.rc + $(LOCAL_PATH)/rootdir/init.target.rc:root/init.target.rc # Packages PRODUCT_PACKAGES += \ @@ -43,6 +43,4 @@ PRODUCT_COPY_FILES += \ # Include common makefile $(call inherit-product, device/samsung/kona-common/kona-common.mk) - $(call inherit-product, vendor/samsung/n5100/n5100-vendor.mk) - diff --git a/rootdir/init.smdk4x12.rc b/rootdir/init.smdk4x12.rc deleted file mode 100755 index 425ea4f..0000000 --- a/rootdir/init.smdk4x12.rc +++ /dev/null @@ -1,560 +0,0 @@ -import init.smdk4x12.usb.rc - -on init - export LD_SHIM_LIBS /system/lib/libril.so|libsamsung_symbols.so:/system/bin/gpsd|libsamsung_symbols.so - - # Vibetonz - export VIBE_PIPE_PATH /dev/pipes - mkdir /dev/pipes 0771 shell shell - -on post-fs-data -# for AT distributor - chown system radio /sys/module/cpuidle_exynos4/parameters/enable_mask - chmod 0664 /sys/module/cpuidle_exynos4/parameters/enable_mask - -# data/log - mkdir /data/log 0775 system log - chown system log /data/log - chmod 0775 /data/log - chmod 0775 /data/anr - -# create data/gps for GPS demon - chown root system /dev/ttySAC1 - chmod 0660 /dev/ttySAC1 - chown root system /sys/class/sec/gps/GPS_PWR_EN/value - chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value - chown root system /sys/class/sec/gps/GPS_nRST/value - chmod 0664 /sys/class/sec/gps/GPS_nRST/value - mkdir /data/gps 771 system system - chown system system /data/gps - - mkdir /data/misc/radio 0775 radio system - chmod 0775 /data/misc/radio - mkdir /efs/imei 0775 radio system - - mkdir /data/local/audio 0775 media audio - chown media audio /data/local/audio - -# HDCP 2.x - mkdir /data/system/hdcp2 0775 system system - -# h2k permission - chmod 0644 /efs/redata.bin - chmod 0644 /efs/h2k.dat - -# Camera firmware - mkdir /data/cfw 0775 system system - chown system media /data/cfw/SlimISP_GK.bin - chmod 0775 /data/cfw/SlimISP_GK.bin - chown system media /data/cfw/SlimISP_ZK.bin - chmod 0775 /data/cfw/SlimISP_ZK.bin - -# Camera - chown system radio /sys/class/camera/rear/rear_camfw - chown system radio /sys/class/camera/rear/rear_camtype - chown system radio /sys/class/camera/rear/rear_flash - chmod 0666 /sys/class/camera/flash/rear_flash - chown system radio /sys/class/camera/rear/isp_core - chown system radio /sys/class/camera/front/front_camfw - chown system radio /sys/class/camera/front/front_camtype - chown system radio /sys/class/camera/flash/rear_flash - 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 - - symlink /dev/block/mmcblk0p4 /dev/block/param - -# Permissions for bluetooth - setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" - chown bluetooth bluetooth ro.bt.bdaddr_path - chown bluetooth bluetooth /dev/ttySAC0 - chmod 0600 /dev/ttySAC0 - chmod 0660 /sys/class/rfkill/rfkill0/state - chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state - chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type - -# Vibrator - chmod 0660 /dev/tspdrv - chown root shell /dev/tspdrv - chmod 0660 /sys/class/timed_output/vibrator/pwm_value - chown system system /sys/class/timed_output/vibrator/pwm_value - -# KeyDisabler - chown system system /sys/class/sec/sec_touchkey/keypad_enable - -# serial keyboard port - chown root system /dev/ttySAC3 - chmod 0660 /dev/ttySAC3 - -# for datarouter - chown system system /dev/dun - chown system system /dev/ttyGS0 - chown system system /dev/ttyGS1 - chown system system /dev/ttyGS2 - chown system system /dev/ttyGS3 - -# NFC - setprop ro.nfc.port "I2C" - chmod 0600 /dev/pn544 - chown nfc nfc /dev/pn544 - -# Permissions for LCD - chown system radio /sys/class/lcd/panel/lcd_type - chown system system /sys/class/backlight/panel/auto_brightness - -# 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 - -# 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 radio system /sys/power/state - chown radio system /sys/power/wake_lock - chown radio system /sys/power/wake_unlock - chown radio system /sys/power/cpufreq_table - chown radio system /sys/power/cpufreq_max_limit - chown radio system /sys/power/cpufreq_min_limit - chown radio system /sys/power/mali_lock - chown radio system /sys/class/power_supply/battery/siop_activated - chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock - chown radio system /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock - chown radio system /sys/devices/system/cpu/busfreq/curr_freq - chown radio system /sys/module/mali/parameters/mali_dvfs_control - chown system radio /sys/bus/platform/devices/s5p-tmu/lot_id - chmod 0660 /sys/power/state - chmod 0660 /sys/power/wake_lock - chmod 0660 /sys/power/wake_unlock - chmod 0660 /sys/power/cpufreq_table - chmod 0660 /sys/power/cpufreq_max_limit - chmod 0660 /sys/power/cpufreq_min_limit - chmod 0660 /sys/power/mali_lock - chmod 0660 /sys/class/power_supply/battery/siop_activated - chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/max_cpu_lock - chmod 0660 /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_lock - chmod 0660 /sys/devices/system/cpu/busfreq/curr_freq - chmod 0660 /sys/module/mali/parameters/mali_dvfs_control - chmod 0664 /sys/bus/platform/devices/s5p-tmu/lot_id - 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/backlight/panel/brightness - chown system system /sys/class/leds/button-backlight/brightness - chown system system /sys/class/sec/sec_touchkey/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/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 - -# Audio (Earjack) - chown system radio /sys/class/audio/earjack/select_jack - chown system radio /sys/class/audio/earjack/key_state - chown system radio /sys/class/audio/earjack/state - chown media system /sys/class/audio/earjack/reselect_jack - -# Battery node - chown system radio /sys/class/power_supply/battery/batt_charging_source - chown system radio /sys/class/power_supply/battery/batt_error_test - chown system radio /sys/class/power_supply/battery/batt_lp_charging - chown system radio /sys/class/power_supply/battery/batt_read_adj_soc - chown system radio /sys/class/power_supply/battery/batt_read_raw_soc - chown system radio /sys/class/power_supply/battery/batt_reset_soc - chown system radio /sys/class/power_supply/battery/batt_slate_mode - chown system radio /sys/class/power_supply/battery/batt_temp_adc - chown system radio /sys/class/power_supply/battery/batt_temp_adc_aver - chown system radio /sys/class/power_supply/battery/batt_temp_adc_cal - chown system radio /sys/class/power_supply/battery/batt_temp_aver - chown system radio /sys/class/power_supply/battery/batt_type - chown system radio /sys/class/power_supply/battery/batt_vf_adc - chown system radio /sys/class/power_supply/battery/batt_vfocv - 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/charging_enabled - 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 - chown system radio /sys/class/power_supply/battery/wc_status - chown system radio /sys/class/power_supply/battery/wpc_pin_state - -# 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 - -# Thermistor node - chown radio system /sys/devices/platform/sec-thermistor/temp_adc - chown radio system /sys/devices/platform/sec-thermistor/temperature - -# Permissions for touch - chown system radio /sys/class/sec/tsp/cmd - -# Permissions for Touchkey - chown system radio /sys/class/sec/sec_touchkey/enable_disable - chown system radio /sys/class/sec/sec_touchkey/touchkey_brightness - chown system radio /sys/class/sec/sec_touchkey/touchkey_menu - chown system radio /sys/class/sec/sec_touchkey/touchkey_back - chown system radio /sys/class/sec/sec_touchkey/touch_update - chown system radio /sys/class/sec/sec_touchkey/touch_version - chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_panel - chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_phone - chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update_status - chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update - chown system radio /sys/class/sec/sec_touchkey/touch_sensitivity - chown system radio /sys/class/sec/sec_touchkey/touchkey_threshold - chown system system /sys/devices/virtual/sec/sec_touchkey/brightness - -# 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 - -# Switch Device - chown system system /sys/class/sec/switch/uart_sel - chown system system /sys/class/sec/switch/usb_sel - chown system system /sys/class/sec/switch/otg_test - chown system radio /sys/class/sec/switch/adc - -# IPC sysfs - chown radio radio /sys/devices/virtual/misc/multipdp/waketime - symlink /dev/block/mmcblk0p7 /dev/mbin0 - -# -# Input Events - chown system input /sys/class/input/input2/enable - chown system input /sys/class/input/input2/poll_delay - chown system input /sys/class/input/input3/enable - chown system input /sys/class/input/input3/poll_delay - chown system input /sys/class/input/input4/enable - chown system input /sys/class/input/input4/poll_delay - chown system input /sys/class/input/input5/enable - chown system input /sys/class/input/input5/poll_delay - chown system input /sys/class/input/input6/enable - chown system input /sys/class/input/input6/poll_delay - chown system input /sys/class/input/input7/enable - chown system input /sys/class/input/input7/poll_delay - chown system input /sys/class/input/input8/enable - chown system input /sys/class/input/input8/poll_delay - chown system input /sys/class/input/input9/enable - chown system input /sys/class/input/input9/poll_delay - 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 -# Accelerometer_sensor - chown system radio /dev/accelerometer - chown system radio /sys/class/sensors/accelerometer_sensor - chown system radio /sys/class/sensors/accelerometer_sensor/raw_data - chown system radio /sys/class/sensors/accelerometer_sensor/calibration - chown system radio /sys/class/sensors/accelerometer_sensor/reactive_alert - chown system radio /sys/class/sensors/accelerometer_sensor/vendor - chown system radio /sys/class/sensors/accelerometer_sensor/name -# Proximity_sensor - chown system radio /sys/class/sensors/proximity_sensor/state - chown system radio /sys/class/sensors/proximity_sensor/prox_avg - chown system radio /sys/class/sensors/proximity_sensor/prox_cal - chown system radio /sys/class/sensors/proximity_sensor/vendor - chown system radio /sys/class/sensors/proximity_sensor/name - chown system radio /sys/class/sensors/proximity_sensor/prox_thresh -# Light_sensor - chown system radio /sys/class/sensors/light_sensor/lux - chown system radio /sys/class/sensors/light_sensor/raw_data - chown system radio /sys/class/sensors/light_sensor/vendor - chown system radio /sys/class/sensors/light_sensor/name -# Magnetic_sensor - chmod 0777 /dev/i2c-10 - chown system radio /sys/class/sensors/magnetic_sensor/raw_data - chown system radio /sys/class/sensors/magnetic_sensor/vendor - chown system radio /sys/class/sensors/magnetic_sensor/name - 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 - -# NFC - setprop ro.nfc.port "I2C" - chmod 0600 /dev/pn544 - chown nfc nfc /dev/pn544 - -# 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 - -# Permissions for backlight - chown system system /sys/class/backlight/panel/brightness - -# for wifi - mkdir /data/misc/wifi/sockets 0770 wifi wifi - mkdir /data/misc/dhcp 0775 dhcp dhcp - chown dhcp dhcp /data/misc/dhcp - -# for TRP/TIS - write /data/.psm.info 1 - chown system root /data/.psm.info - chmod 0660 /data/.psm.info - - # Set indication (checked by vold) that we have finished this action - setprop vold.post_fs_data_done 1 - -on boot - mount debugfs /sys/kernel/debug /sys/kernel/debug - - setprop ro.build.product smdk4x12 - setprop ro.product.device smdk4x12 - setprop wifi.interface wlan0 - -# fake some battery state - setprop status.battery.state Slow - setprop status.battery.level 5 - setprop status.battery.level_raw 50 - setprop status.battery.level_scale 9 - -# wifi display - write /proc/sys/net/core/wmem_max 262144 - - # Set permission for Widevine DRM temporarily - chmod 0777 /dev/s5p-smem - rm /data/app/tlcd_sock - - # make param block device link for SysScope - symlink /dev/block/mmcblk0p7 /dev/block/param - -# touchscreen - chown radio system /sys/class/sec/tsp/cmd - chown media_rw media_rw /sys/class/sec/tsp/set_jitter - -# epen - chown radio system /sys/class/sec/sec_epen/epen_firm_update - chown radio system /sys/class/sec/sec_epen/epen_checksum - chown radio system /sys/class/sec/sec_epen/epen_checksum_result - chown radio system /sys/class/sec/sec_epen/epen_reset - chown system system /sys/class/sec/sec_epen/epen_saving_mode - chmod 660 /sys/class/sec/sec_epen/epen_saving_mode - -# wakeup keys - chown radio system /sys/class/sec/sec_key/wakeup_keys - write /sys/class/sec/sec_key/wakeup_keys 116,172 - -# serial keyboard daemon -service sec_keyboard /system/bin/sec_keyboard /dev/ttySAC3 - class late_start - disabled - group system - -# 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/block/mmcblk0/queue/scheduler cfq - write /sys/power/cpufreq_min_limit -1 -# SISO-ANDR_PERF :: END - -on property:ro.uart_debug=0 - start sec_keyboard - -service at_distributor /system/bin/at_distributor - class main - user root - group radio log - seclabel u:r:at_distributor:s0 - -service charger /sbin/healthd -c - class charger - critical - seclabel u:r:healthd:s0 - -service p2p_supplicant /system/bin/wpa_supplicant \ - -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ - -I/system/etc/wifi/wpa_supplicant.conf \ - -O/data/misc/wifi/sockets -N \ - -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin \ - -I/system/etc/wifi/wpa_supplicant.conf \ - -puse_p2p_group_interface=1 \ - -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 - class main - socket wpa_wlan0 dgram 660 wifi wifi - disabled - oneshot - -service wpa_supplicant /system/bin/wpa_supplicant \ - -Dnl80211 -iwlan0 -e/data/misc/wifi/entropy.bin \ - -c/data/misc/wifi/wpa_supplicant.conf \ - -I/system/etc/wifi/wpa_supplicant.conf \ - -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 - class main - socket wpa_wlan0 dgram 660 wifi wifi - disabled - oneshot - -service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL - class main - disabled - oneshot - -service dhcpcd_p2p /system/bin/dhcpcd -aABKL - class main - disabled - oneshot - -service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL - class main - disabled - oneshot - -service iprenew_wlan0 /system/bin/dhcpcd -n - class main - disabled - oneshot - -service iprenew_p2p /system/bin/dhcpcd -n - class main - disabled - oneshot - -service iprenew_bt-pan /system/bin/dhcpcd -n - class main - disabled - oneshot - -service gpsd /system/bin/gpsd -c /system/etc/gps.xml - class main - socket gps seqpacket 0660 gps system - user gps - group system inet sdcard_rw - ioprio be 0 - seclabel u:r:gpsd:s0 - -service macloader /system/bin/macloader - class main - oneshot - seclabel u:r:macloader:s0 - -service cpboot-daemon /sbin/cbd -d -p7 - class main - user root - group system radio cache inet misc audio sdcard_rw log sdcard_r - seclabel u:r:cpboot-daemon: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 - -on property:init.svc.macloader=stopped - chown system root /data/.cid.info - chmod 0664 /data/.cid.info - chown system root /data/.rev - chmod 0660 /data/.rev -# end of wifi - -service SMD-daemon /system/bin/smdexe - class main - user root - group system radio inet net_raw - seclabel u:r:SMD-daemon:s0 - -service DR-daemon /system/bin/ddexe - class main - user root - group system radio inet net_raw - seclabel u:r:DR-daemon:s0 diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc new file mode 100755 index 0000000..3f911cc --- /dev/null +++ b/rootdir/init.target.rc @@ -0,0 +1,213 @@ +on init + + export LD_SHIM_LIBS /system/lib/libril.so|libsamsung_symbols.so:/system/bin/gpsd|libsamsung_symbols.so + + # Vibetonz + export VIBE_PIPE_PATH /dev/pipes + mkdir /dev/pipes 0771 shell shell + +on post-fs-data + +# for AT distributor + chown system radio /sys/module/cpuidle_exynos4/parameters/enable_mask + chmod 0664 /sys/module/cpuidle_exynos4/parameters/enable_mask + + 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 + + symlink /dev/block/mmcblk0p4 /dev/block/param + +# KeyDisabler + chown system system /sys/class/sec/sec_touchkey/keypad_enable + +# for datarouter + chown system system /dev/dun + chown system system /dev/ttyGS0 + chown system system /dev/ttyGS1 + chown system system /dev/ttyGS2 + chown system system /dev/ttyGS3 + +# 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 radio radio /sys/devices/virtual/misc/multipdp/waketime + symlink /dev/block/mmcblk0p7 /dev/mbin0 + +# +# 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 + +on boot + + # make param block device link for SysScope + symlink /dev/block/mmcblk0p7 /dev/block/param + +# epen + chown system system /sys/class/sec/sec_epen/epen_saving_mode + chmod 660 /sys/class/sec/sec_epen/epen_saving_mode + +on property:init.svc.macloader=stopped + chown system root /data/.cid.info + chmod 0664 /data/.cid.info + chown system root /data/.rev + chmod 0660 /data/.rev + +# 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/block/mmcblk0/queue/scheduler cfq + write /sys/power/cpufreq_min_limit -1 +# SISO-ANDR_PERF :: END + +service at_distributor /system/bin/at_distributor + class main + user root + group radio log + seclabel u:r:at_distributor:s0 + +service gpsd /system/bin/gpsd -c /system/etc/gps.xml + class main + socket gps seqpacket 0660 gps system + user gps + group system inet sdcard_rw + ioprio be 0 + seclabel u:r:gpsd:s0 + +service cpboot-daemon /sbin/cbd -d -p7 + class main + user root + group system radio cache inet misc audio sdcard_rw log sdcard_r + seclabel u:r:cpboot-daemon: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 + +service SMD-daemon /system/bin/smdexe + class main + user root + group system radio inet net_raw + seclabel u:r:SMD-daemon:s0 + +service DR-daemon /system/bin/ddexe + class main + user root + group system radio inet net_raw + seclabel u:r:DR-daemon:s0 \ No newline at end of file -- cgit v1.1