1 import /init.superuser.rc
4 mount debugfs debugfs /sys/kernel/debug
5 chmod 755 /sys/kernel/debug
6 write /proc/sys/kernel/ctrl-alt-del 1
8 write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
10 export force_s3tc_enable true
11 # export EGL_LOG_LEVEL info
12 # export EGL_DRIVERS egl_dri2
15 mkdir /mnt/shell/emulated 0700 shell shell
16 mkdir /storage/emulated 0555 root root
17 mkdir /mnt/media_rw/usb0 0700 media_rw media_rw
18 mkdir /storage/usb0 0700 root root
19 mkdir /mnt/media_rw/usb1 0700 media_rw media_rw
20 mkdir /storage/usb1 0700 root root
21 mkdir /mnt/media_rw/usb2 0700 media_rw media_rw
22 mkdir /storage/usb2 0700 root root
23 mkdir /mnt/media_rw/usb3 0700 media_rw media_rw
24 mkdir /storage/usb3 0700 root root
25 mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
26 mkdir /storage/sdcard1 0700 root root
28 export EXTERNAL_STORAGE /storage/emulated/legacy
29 export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
30 export EMULATED_STORAGE_TARGET /storage/emulated
31 export SECONDARY_STORAGE /storage/usb0:/storage/usb1:/storage/usb2:/storage/usb3:/storage/sdcard1
33 # Support legacy paths
34 symlink /storage/emulated/legacy /sdcard
35 symlink /storage/emulated/legacy /mnt/sdcard
36 symlink /storage/emulated/legacy /storage/sdcard0
37 symlink /mnt/shell/emulated/0 /storage/emulated/legacy
39 # Backward compatibility
40 symlink system/lib /lib
43 setprop ro.product.manufacturer $[/sys/class/dmi/id/sys_vendor]
44 setprop ro.product.model $[/sys/class/dmi/id/product_name]
46 exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
51 mkdir /data/media 0770 media_rw media_rw
53 mkdir /data/misc/wifi 0770 wifi wifi
54 mkdir /data/misc/wifi/sockets 0770 wifi wifi
55 mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
56 mkdir /data/misc/dhcp 0770 dhcp dhcp
57 mkdir /data/system 0775 system system
59 # Set indication (checked by vold) that we have finished this action
60 setprop vold.post_fs_data_done 1
66 setprop ro.radio.use-ppp yes
67 setprop ro.radio.noril no
68 setprop status.battery.state Slow
69 setprop status.battery.level 5
70 setprop status.battery.level_raw 50
71 setprop status.battery.level_scale 9
73 # merge from system.prop
74 setprop ro.config.sync yes
75 setprop app.setupwizard.disable 0
76 setprop ro.alarm.volume.adjustable true
77 setprop ro.simulated.phone false
78 # disable red frame boarder in eng build
79 setprop persist.sys.strictmode.visual 0
80 setprop persist.sys.strictmode.disable 1
81 # workaround for h.265 slowness
82 setprop sys.media.vdec.drop 0
85 setprop ro.crypto.fuse_sdcard true
86 # manually start class late_start since we don't use mount_all
88 class_start late_start
90 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
93 -O/data/misc/wifi/sockets \
94 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
95 # we will start as root and wpa_supplicant will switch to user wifi
96 # after setting up the capabilities required for WEXT
98 # group wifi inet keystore
100 socket wpa_wlan0 dgram 660 wifi wifi
103 service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
108 service iprenew_wlan0 /system/bin/dhcpcd -n
113 service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
118 service iprenew_eth0 /system/bin/dhcpcd -n
123 service enable_houdini /system/bin/enable_houdini
127 service powerbtnd /system/bin/powerbtnd
130 service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
133 service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
137 service fuse_usb0 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usb0 /storage/usb0
141 service fuse_usb1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usb1 /storage/usb1
145 service fuse_usb2 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usb2 /storage/usb2
149 service fuse_usb3 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usb3 /storage/usb3
153 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
156 service wacom-input /system/bin/wacom-input
160 service tablet-mode /system/bin/tablet-mode
164 on property:init.svc.wpa_supplicant=stopped
167 on property:system_init.startsurfaceflinger=0
168 # disable cursor blinking
169 write /dev/tty0 "
\e[?17;0;0c"
173 on property:sys.boot_completed=1
174 write /proc/sys/kernel/ctrl-alt-del 0
175 exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
177 on property:net.dns1=*
178 exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
180 on property:debug.logcat=1