diff options
author | RGIB <gibellini.roberto@gmail.com> | 2016-04-02 14:46:25 +0200 |
---|---|---|
committer | RGIB <gibellini.roberto@gmail.com> | 2016-04-02 14:46:52 +0200 |
commit | 5013e4bd03e6954e0754c44e529485b36a8f3df3 (patch) | |
tree | df2696aae8e7b1eeafc8dda83e8da672b85e8534 | |
parent | d7180da4d9d5a65339972f2fbba42ea2567f4290 (diff) | |
download | device_samsung_n5110-5013e4bd03e6954e0754c44e529485b36a8f3df3.zip device_samsung_n5110-5013e4bd03e6954e0754c44e529485b36a8f3df3.tar.gz device_samsung_n5110-5013e4bd03e6954e0754c44e529485b36a8f3df3.tar.bz2 |
n5110 : fix internal storage and add selinux labels
Change-Id: Id0d8f91f8ea3a385f68cc550f43497e2d63dac04
-rwxr-xr-x | rootdir/init.smdk4x12.rc | 125 |
1 files changed, 48 insertions, 77 deletions
diff --git a/rootdir/init.smdk4x12.rc b/rootdir/init.smdk4x12.rc index 8760833..0cd6a03 100755 --- a/rootdir/init.smdk4x12.rc +++ b/rootdir/init.smdk4x12.rc @@ -1,51 +1,29 @@ import init.smdk4x12.usb.rc -import init.bt.rc on init - chmod 0701 /mnt/media_rw - chown root root /mnt/media_rw - mkdir /mnt/shell/emulated 0700 shell shell - mkdir /storage 0550 system sdcard_r - mkdir /storage/emulated 0555 root root - mkdir /storage/sdcard 0700 root root - mkdir /storage/sdcard 0700 root root - mkdir /storage/usb 0700 root root - mkdir /mnt/media_rw/sdcard 0700 media_rw media_rw - mkdir /mnt/media_rw/sdcard 0700 media_rw media_rw - mkdir /mnt/media_rw/usb 0700 media_rw media_rw + + export LD_SHIM_LIBS /system/lib/libril.so|libsamsung_symbols.so:/system/bin/gpsd|libsamsung_symbols.so + + symlink /storage/sdcard1 /extSdCard + symlink /storage/sdcard1 /mnt/extSdCard + symlink /storage/usb /usb + symlink /storage/usb /mnt/usb + mkdir /efs 0771 radio system mkdir /tombstones symlink /efs /factory - -# ko files for FM Radio - #insmod /system/lib/modules/Si4709_driver.ko - -on init - # Vibetonz export VIBE_PIPE_PATH /dev/pipes mkdir /dev/pipes 0771 shell shell -on charger - # CPU Frequency Governor - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor pegasusq - - # EHCI runtime enable for LPA - write /sys/devices/platform/s5p-ehci/power/control auto - on fs mount_all /fstab.smdk4x12 - - setprop ro.crypto.fuse_sdcard true chown radio system /efs chmod 0771 /efs on post-fs-data - # we will remap this as /mnt/sdcard with the sdcard fuse tool - mkdir /data/media 0775 media_rw media_rw - chown media_rw media_rw /data/media # Set indication (checked by vold) that we have finished this action setprop vold.post_fs_data_done 1 @@ -53,7 +31,6 @@ 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 @@ -125,8 +102,8 @@ on post-fs-data chown system system /sys/class/sec/sec_touchkey/keypad_enable # serial keyboard port - chown root system /dev/ttySAC3 - chmod 0660 /dev/ttySAC3 + chown root system /dev/ttySAC3 + chmod 0660 /dev/ttySAC3 # for datarouter chown system system /dev/dun @@ -165,7 +142,7 @@ on post-fs-data chmod 0660 /sys/class/sec/sec_touchkey/extra_button_event # Permissions for Hall IC - chown system radio /sys/class/sec/sec_key/hall_detect + chown system radio /sys/class/sec/sec_key/hall_detect # Permissions for System Server and daemons. chown radio system /sys/android_power/state @@ -284,19 +261,19 @@ on post-fs-data 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 + 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 @@ -379,6 +356,7 @@ on post-fs-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 @@ -406,8 +384,8 @@ on post-fs-data 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 + 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 @@ -426,6 +404,7 @@ on post-fs-data setprop vold.post_fs_data_done 1 on boot + mount debugfs /sys/kernel/debug /sys/kernel/debug setprop ro.build.product smdk4x12 @@ -482,21 +461,8 @@ on property:ro.uart_debug=0 service at_distributor /system/bin/at_distributor class main user root - group radio lo - -# 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 wil be created with user and group media_rw (1023) -service sdcard /system/bin/sdcard -u 1023 -g 1023 /data/media /mnt/shell/emulated - class late_start - -service fuse_sdcard /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard /storage/sdcard - class late_start - disabled - -service fuse_usb /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/usb /storage/usb - class late_start - disabled + group radio log + seclabel u:r:at_distributor:s0 service charger /sbin/healthd -c class charger @@ -546,9 +512,9 @@ service dhcpcd_p2p /system/bin/dhcpcd -aABKL oneshot service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL - class main - disabled - oneshot + class main + disabled + oneshot service iprenew_wlan0 /system/bin/dhcpcd -n class main @@ -561,37 +527,35 @@ service iprenew_p2p /system/bin/dhcpcd -n oneshot service iprenew_bt-pan /system/bin/dhcpcd -n - class main - disabled - oneshot + class main + disabled + oneshot -service charger /sbin/healthd -c - class charger - critical - seclabel u:r:healthd:s0 - -# GPS 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 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 @@ -603,3 +567,10 @@ 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 |