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
63 socket wpa_wlan0 dgram 660 wifi wifi
67 service nativebridge /system/bin/enable_nativebridge
71 seclabel u:r:zygote:s0
73 service logcat /system/bin/logcat -b all -v threadtime -f /data/log.txt
76 service btattach /system/bin/btattach
80 seclabel u:r:bluetooth:s0
82 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
86 seclabel u:r:bluetooth:s0
88 service wacom-input /system/bin/wacom-input
91 seclabel u:r:inputflinger:s0
93 service tablet-mode /system/bin/tablet-mode
96 seclabel u:r:inputflinger:s0
98 service ctrl-alt-del /system/bin/input keyevent --longpress POWER
104 on property:system_init.startsurfaceflinger=0
105 # disable cursor blinking
106 write /dev/tty0 "
\e[?17;0;0c"
110 on property:sys.boot_completed=1
111 write /proc/sys/kernel/ctrl-alt-del 0
112 exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
114 on property:net.dns1=*
115 exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
117 on property:debug.logcat=1
120 on property:persist.sys.nativebridge=1
123 on property:persist.sys.nativebridge=0