OSDN Git Service

move to binderized composer@2.1-service HAL (r-x86)
[android-x86/device-generic-common.git] / init.x86.rc
1 import /init.superuser.rc
2
3 on early-init
4     write /proc/sys/kernel/ctrl-alt-del 1
5
6     write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
7
8     export force_s3tc_enable true
9     export EGL_LOG_LEVEL info
10 #   export EGL_DRIVERS egl_dri2
11
12     exec u:r:init:s0 -- /sbin/modprobe sdcardfs
13
14 on init
15
16 on fs
17     mount_all /fstab.${ro.hardware}
18
19 on post-fs
20     exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
21
22 on post-fs-data
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
28
29     mkdir /data/system 0775 system system
30     chown wifi wifi /data/misc/wifi/wpa_supplicant.conf
31
32     # Set indication (checked by vold) that we have finished this action
33     setprop vold.post_fs_data_done 1
34
35 on boot
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
41
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
52
53 service wpa_supplicant /vendor/bin/hw/wpa_supplicant -dd \
54     -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 \
55     -g@android:wpa_wlan0
56     #   we will start as root and wpa_supplicant will switch to user wifi
57     #   after setting up the capabilities required for WEXT
58     #   user wifi
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
64     class main
65     socket wpa_wlan0 dgram 660 wifi wifi
66     disabled
67     oneshot
68
69 service nativebridge /system/bin/enable_nativebridge
70     class main
71     disabled
72     oneshot
73     seclabel u:r:zygote:s0
74
75 service logcat /system/bin/logcat -b all -v threadtime -f /data/log.txt
76     class debug
77
78 service btattach /system/bin/btattach
79     class main
80     disabled
81     oneshot
82     seclabel u:r:bluetooth:s0
83
84 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
85     class main
86     disabled
87     oneshot
88     seclabel u:r:bluetooth:s0
89
90 service wacom-input /system/bin/wacom-input
91     disabled
92     oneshot
93     seclabel u:r:inputflinger:s0
94
95 service tablet-mode /system/bin/tablet-mode
96     disabled
97     oneshot
98     seclabel u:r:inputflinger:s0
99
100 service ctrl-alt-del /system/bin/input keyevent --longpress POWER
101     disabled
102     oneshot
103     keycodes 97 100 111
104     seclabel u:r:init:s0
105
106 on property:system_init.startsurfaceflinger=0
107     # disable cursor blinking
108     write /dev/tty0 "\e[?17;0;0c"
109     start surfaceflinger
110     stop console
111
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
115
116 on property:net.dns1=*
117     exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
118
119 on property:debug.logcat=1
120     class_start debug
121
122 on property:persist.sys.nativebridge=1
123     start nativebridge
124
125 on property:persist.sys.nativebridge=0
126     stop nativebridge