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
12 exec u:r:init:s0 -- /sbin/modprobe sdcardfs
17 mount_all /fstab.${ro.hardware}
20 exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
23 # Create the directories used by the Wireless subsystem
24 mkdir /data/vendor/wifi 0771 wifi wifi
25 mkdir /data/vendor/wifi/wpa 0770 wifi wifi
26 mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
27 mkdir /data/misc/dhcp 0770 dhcp dhcp
29 mkdir /data/system 0775 system system
30 chown wifi wifi /data/misc/wifi/wpa_supplicant.conf
32 # Set indication (checked by vold) that we have finished this action
33 setprop vold.post_fs_data_done 1
36 setprop ro.radio.use-ppp yes
37 setprop status.battery.state Slow
38 setprop status.battery.level 5
39 setprop status.battery.level_raw 50
40 setprop status.battery.level_scale 9
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 /vendor/bin/hw/wpa_supplicant -dd \
54 -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 \
56 # we will start as root and wpa_supplicant will switch to user wifi
57 # after setting up the capabilities required for WEXT
59 # group wifi inet keystore
60 interface android.hardware.wifi.supplicant@1.0::ISupplicant default
61 interface android.hardware.wifi.supplicant@1.1::ISupplicant default
62 interface android.hardware.wifi.supplicant@1.2::ISupplicant default
63 interface android.hardware.wifi.supplicant@1.3::ISupplicant default
65 socket wpa_wlan0 dgram 660 wifi wifi
69 service nativebridge /system/bin/enable_nativebridge
73 seclabel u:r:zygote:s0
75 service logcat /system/bin/logcat -b all -v threadtime -f /data/log.txt
78 service btattach /system/bin/btattach
82 seclabel u:r:bluetooth:s0
84 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
88 seclabel u:r:bluetooth:s0
90 service wacom-input /system/bin/wacom-input
93 seclabel u:r:inputflinger:s0
95 service tablet-mode /system/bin/tablet-mode
98 seclabel u:r:inputflinger:s0
100 service ctrl-alt-del /system/bin/input keyevent --longpress POWER
106 on property:system_init.startsurfaceflinger=0
107 # disable cursor blinking
108 write /dev/tty0 "
\e[?17;0;0c"
112 on property:sys.boot_completed=1
113 write /proc/sys/kernel/ctrl-alt-del 0
114 exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
116 on property:net.dns1=*
117 exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
119 on property:debug.logcat=1
122 on property:persist.sys.nativebridge=1
125 on property:persist.sys.nativebridge=0