1 import /init.bluetooth.rc
2 import /init.superuser.rc
5 mount debugfs debugfs /sys/kernel/debug
6 chmod 755 /sys/kernel/debug
7 write /proc/sys/kernel/ctrl-alt-del 1
9 write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
11 export force_s3tc_enable true
12 export EGL_LOG_LEVEL info
13 # export EGL_DRIVERS egl_dri2
16 symlink /sdcard /mnt/sdcard
17 symlink /sdcard /storage/sdcard0
19 # Backward compatibility
20 symlink system/lib /lib
22 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
25 mount_all /fstab.${ro.hardware}
30 mkdir /data/misc/wifi 0770 wifi wifi
31 mkdir /data/misc/wifi/sockets 0770 wifi wifi
32 mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
33 mkdir /data/misc/dhcp 0770 dhcp dhcp
34 mkdir /data/system 0775 system system
36 # Set indication (checked by vold) that we have finished this action
37 setprop vold.post_fs_data_done 1
43 setprop ro.radio.use-ppp yes
44 setprop ro.radio.noril no
45 setprop status.battery.state Slow
46 setprop status.battery.level 5
47 setprop status.battery.level_raw 50
48 setprop status.battery.level_scale 9
50 # merge from system.prop
51 setprop ro.config.sync yes
52 setprop app.setupwizard.disable 0
53 setprop ro.alarm.volume.adjustable true
54 setprop ro.simulated.phone false
55 # disable red frame boarder in eng build
56 setprop persist.sys.strictmode.visual 0
57 setprop persist.sys.strictmode.disable 1
58 # workaround for h.265 slowness
59 setprop sys.media.vdec.drop 0
61 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
63 -O/data/misc/wifi/sockets \
64 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
65 # we will start as root and wpa_supplicant will switch to user wifi
66 # after setting up the capabilities required for WEXT
68 # group wifi inet keystore
70 socket wpa_wlan0 dgram 660 wifi wifi
73 service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
78 service iprenew_wlan0 /system/bin/dhcpcd -n
83 service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
88 service iprenew_eth0 /system/bin/dhcpcd -n
93 service nativebridge /system/bin/enable_nativebridge
98 service powerbtnd /system/bin/powerbtnd
101 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
104 service wacom-input /system/bin/wacom-input
108 service tablet-mode /system/bin/tablet-mode
112 on property:init.svc.wpa_supplicant=stopped
115 on property:system_init.startsurfaceflinger=0
116 # disable cursor blinking
117 write /dev/tty0 "
\e[?17;0;0c"
121 on property:sys.boot_completed=1
122 write /proc/sys/kernel/ctrl-alt-del 0
123 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
125 on property:init.svc.bluetoothd=running
126 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
128 on property:init.svc.bluetoothd=stopped
129 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
131 on property:net.dns1=*
132 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
134 on property:debug.logcat=1
137 on property:persist.sys.nativebridge=1
140 on property:persist.sys.nativebridge=0
143 on property:debug.egl.hw=0
144 setprop ro.kernel.qemu 1