1 import /init.bluetooth.rc
2 import /init.superuser.rc
5 write /proc/sys/kernel/ctrl-alt-del 1
7 write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
9 export force_s3tc_enable true
10 export EGL_LOG_LEVEL info
11 # export EGL_DRIVERS egl_dri2
14 symlink /sdcard /mnt/sdcard
15 symlink /sdcard /storage/sdcard0
18 mount_all /fstab.${ro.hardware}
21 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
24 mkdir /data/misc/wifi 0770 wifi wifi
25 mkdir /data/misc/wifi/sockets 0770 wifi wifi
26 mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
27 mkdir /data/misc/dhcp 0770 dhcp dhcp
28 mkdir /data/system 0775 system system
30 # Set indication (checked by vold) that we have finished this action
31 setprop vold.post_fs_data_done 1
34 setprop ro.radio.use-ppp yes
35 setprop status.battery.state Slow
36 setprop status.battery.level 5
37 setprop status.battery.level_raw 50
38 setprop status.battery.level_scale 9
39 setprop wifi.interface "wlan0"
40 setprop wlan.driver.status "ok"
42 # merge from system.prop
43 setprop ro.config.sync yes
44 setprop app.setupwizard.disable 0
45 setprop ro.alarm.volume.adjustable true
46 setprop ro.simulated.phone false
47 # disable red frame boarder in eng build
48 setprop persist.sys.strictmode.visual 0
49 setprop persist.sys.strictmode.disable 1
50 # workaround for h.265 slowness
51 setprop sys.media.vdec.drop 0
53 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
55 -O/data/misc/wifi/sockets \
56 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
57 # we will start as root and wpa_supplicant will switch to user wifi
58 # after setting up the capabilities required for WEXT
60 # group wifi inet keystore
62 socket wpa_wlan0 dgram 660 wifi wifi
65 service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
70 service iprenew_wlan0 /system/bin/dhcpcd -n
75 service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
80 service iprenew_eth0 /system/bin/dhcpcd -n
85 service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
90 service iprenew_bt-pan /system/bin/dhcpcd -n
95 service nativebridge /system/bin/enable_nativebridge
100 service powerbtnd /system/bin/powerbtnd
103 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
106 service btattach /system/bin/btattach -Pbcm
111 service wacom-input /system/bin/wacom-input
115 service tablet-mode /system/bin/tablet-mode
119 on property:init.svc.wpa_supplicant=stopped
122 on property:system_init.startsurfaceflinger=0
123 # disable cursor blinking
124 write /dev/tty0 "
\e[?17;0;0c"
128 on property:sys.boot_completed=1
129 write /proc/sys/kernel/ctrl-alt-del 0
130 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
132 on property:init.svc.bluetoothd=running
133 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
135 on property:init.svc.bluetoothd=stopped
136 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
138 on property:net.dns1=*
139 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
141 on property:debug.logcat=1
144 on property:persist.sys.nativebridge=1
145 mkdir /data/arm 0775 system system
148 on property:persist.sys.nativebridge=0
151 on property:debug.egl.hw=0
152 setprop ro.kernel.qemu 1