aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbrissen <sbrissen@hotmail.com>2014-03-26 15:54:22 -0400
committersbrissen <sbrissen@hotmail.com>2014-03-26 15:55:56 -0400
commit890a72ba7422627862000d306afb6f08b8f75e1f (patch)
tree3fd46a4934b119fafde9caa2aeb979730c2cb0e8
parent55dc9d89cf355f2fd7e83a1d64a76428369e8e9e (diff)
downloaddevice_samsung_n5110-890a72ba7422627862000d306afb6f08b8f75e1f.zip
device_samsung_n5110-890a72ba7422627862000d306afb6f08b8f75e1f.tar.gz
device_samsung_n5110-890a72ba7422627862000d306afb6f08b8f75e1f.tar.bz2
n5110: add keydisabler permissions
Change-Id: I879086901723be3cd94f5c1cb825f271ea154714
-rwxr-xr-xrootdir/init.smdk4x12.rc18
1 files changed, 13 insertions, 5 deletions
diff --git a/rootdir/init.smdk4x12.rc b/rootdir/init.smdk4x12.rc
index 23552fb..6fd0910 100755
--- a/rootdir/init.smdk4x12.rc
+++ b/rootdir/init.smdk4x12.rc
@@ -7,10 +7,12 @@ on init
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage 0550 system sdcard_r
mkdir /storage/emulated 0555 root root
- mkdir /storage/sdcard1 0775 system system
- mkdir /storage/usbdisk0 0775 system system
- mkdir /mnt/media_rw/sdcard1 0775 system system
- mkdir /mnt/media_rw/usbdisk0 0775 system system
+ mkdir /storage/sdcard0 0700 root root
+ mkdir /storage/sdcard1 0700 root root
+ mkdir /storage/usbdisk0 0700 root root
+ mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
+ mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
+ mkdir /mnt/media_rw/usbdisk0 0700 media_rw media_rw
export EXTERNAL_STORAGE /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1:/storage/usbdisk0
@@ -54,6 +56,9 @@ on post-fs-data
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
+
# for AT distributor
chown system radio /sys/module/cpuidle_exynos4/parameters/enable_mask
chmod 0664 /sys/module/cpuidle_exynos4/parameters/enable_mask
@@ -123,6 +128,9 @@ on post-fs-data
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
@@ -486,7 +494,7 @@ service at_distributor /system/bin/at_distributor
# 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 /data/media /mnt/shell/emulated 1023 1023
+service sdcard /system/bin/sdcard -u 1023 -g 1023 /data/media /mnt/shell/emulated
class late_start
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard1 /storage/sdcard1