1 import /init.superuser.rc
4 write /proc/sys/kernel/ctrl-alt-del 1
6 write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
8 export force_s3tc_enable true
9 export EGL_LOG_LEVEL info
10 # export EGL_DRIVERS egl_dri2
13 symlink /sdcard /mnt/sdcard
14 symlink /sdcard /storage/sdcard0
17 mount_all /fstab.${ro.hardware}
20 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
23 mkdir /data/misc/wifi 0770 wifi wifi
24 mkdir /data/misc/wifi/sockets 0770 wifi wifi
25 mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
26 mkdir /data/misc/dhcp 0770 dhcp dhcp
27 mkdir /data/system 0775 system system
29 # Set indication (checked by vold) that we have finished this action
30 setprop vold.post_fs_data_done 1
33 setprop ro.radio.use-ppp yes
34 setprop status.battery.state Slow
35 setprop status.battery.level 5
36 setprop status.battery.level_raw 50
37 setprop status.battery.level_scale 9
39 # merge from system.prop
40 setprop ro.config.sync yes
41 setprop app.setupwizard.disable 0
42 setprop ro.alarm.volume.adjustable true
43 setprop ro.simulated.phone false
44 # disable red frame boarder in eng build
45 setprop persist.sys.strictmode.visual 0
46 setprop persist.sys.strictmode.disable 1
47 # workaround for h.265 slowness
48 setprop sys.media.vdec.drop 0
50 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
52 -O/data/misc/wifi/sockets \
53 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
54 # we will start as root and wpa_supplicant will switch to user wifi
55 # after setting up the capabilities required for WEXT
57 # group wifi inet keystore
59 socket wpa_wlan0 dgram 660 wifi wifi
62 service nativebridge /system/bin/enable_nativebridge
67 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
70 service btattach /system/bin/btattach
75 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
80 service wacom-input /system/bin/wacom-input
84 service tablet-mode /system/bin/tablet-mode
88 on property:system_init.startsurfaceflinger=0
89 # disable cursor blinking
90 write /dev/tty0 "
\e[?17;0;0c"
94 on property:sys.boot_completed=1
95 write /proc/sys/kernel/ctrl-alt-del 0
96 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
98 on property:net.dns1=*
99 exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
101 on property:debug.logcat=1
104 on property:persist.sys.nativebridge=1
105 mkdir /data/arm 0775 system system
108 on property:persist.sys.nativebridge=0
111 on property:debug.egl.hw=0
112 setprop ro.kernel.qemu 1