aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrootdir/init.smdk4x12.rc76
1 files changed, 50 insertions, 26 deletions
diff --git a/rootdir/init.smdk4x12.rc b/rootdir/init.smdk4x12.rc
index fbcc84e..47191ed 100755
--- a/rootdir/init.smdk4x12.rc
+++ b/rootdir/init.smdk4x12.rc
@@ -3,15 +3,26 @@ import init.bt.rc
on init
- mkdir /efs 0771 radio system
- mkdir /tombstones
- symlink /efs /factory
+ export LD_SHIM_LIBS /system/lib/libril.so|libsamsung_symbols.so:/system/bin/gpsd|libsamsung_symbols.so:/system/bin/at_distributor|libsamsung_symbols.so
+ chmod 0701 /mnt/media_rw
+ chown root root /mnt/media_rw
+ mkdir /storage 0550 system sdcard_r
+ 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
-# ko files for FM Radio
- #insmod /system/lib/modules/Si4709_driver.ko
+ export SECONDARY_STORAGE /storage/sdcard1:/storage/usbdisk0
-on init
+ symlink /storage/sdcard1 /extSdCard
+ symlink /storage/sdcard1 /mnt/extSdCard
+ symlink /storage/usbdisk0 /usbdisk0
+ symlink /storage/usbdisk0 /mnt/usbdisk0
+
+ mkdir /efs 0771 radio system
+ mkdir /tombstones
+ symlink /efs /factory
# Vibetonz
export VIBE_PIPE_PATH /dev/pipes
@@ -20,10 +31,15 @@ on init
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
# for AT distributor
chown system radio /sys/module/cpuidle_exynos4/parameters/enable_mask
@@ -236,13 +252,19 @@ on post-fs-data
chown system radio /sys/class/power_supply/battery/wpc_pin_state
# CTIA event
- 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
+ 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
@@ -447,19 +469,21 @@ on property:sys.boot_completed=1
on property:ro.uart_debug=0
start sec_keyboard
-# RILD
-service_redefine ril-daemon /system/bin/logwrapper /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 log sdcard_r
- onrestart restart cpboot-daemon
-
service at_distributor /system/bin/logwrapper /system/bin/at_distributor
class main
user root
- group radio lo
+ group radio log
+
+# 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 fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard1 /storage/sdcard1
+ class late_start
+ disabled
+
+service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/usbdisk0 /storage/usbdisk0
+ class late_start
+ disabled
service charger /sbin/healthd -c
class charger
@@ -544,14 +568,14 @@ service macloader /system/bin/macloader
service cpboot-daemon /system/bin/logwrapper /sbin/cbd -d
class main
user root
- group radio cache inet misc audio sdcard_rw log sdcard_r
+ group system radio cache inet misc audio sdcard_rw log sdcard_r
-service orientationd /system/bin/orientationd
+service orientationd /system/bin/orientationd
class main
user compass
group input
-service geomagneticd /system/bin/geomagneticd
+service geomagneticd /system/bin/geomagneticd
class main
user compass
group system input