OSDN Git Service

alsa: add driver state file for chtnau8824
[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     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
28     chown wifi wifi /data/misc/wifi/wpa_supplicant.conf
29
30     # Set indication (checked by vold) that we have finished this action
31     setprop vold.post_fs_data_done 1
32
33 on boot
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
40     # merge from system.prop
41     setprop ro.config.sync yes
42     setprop app.setupwizard.disable 0
43     setprop ro.alarm.volume.adjustable true
44     setprop ro.simulated.phone false
45     # disable red frame boarder in eng build
46     setprop persist.sys.strictmode.visual 0
47     setprop persist.sys.strictmode.disable 1
48     # workaround for h.265 slowness
49     setprop sys.media.vdec.drop 0
50
51 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
52     -iwlan0 -Dnl80211 \
53     -O/data/misc/wifi/sockets \
54     -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
55     #   we will start as root and wpa_supplicant will switch to user wifi
56     #   after setting up the capabilities required for WEXT
57     #   user wifi
58     #   group wifi inet keystore
59     class main
60     socket wpa_wlan0 dgram 660 wifi wifi
61     disabled
62
63 service nativebridge /system/bin/enable_nativebridge
64     class main
65     disabled
66     oneshot
67     seclabel u:r:zygote:s0
68
69 service logcat /system/bin/logcat -b all -v threadtime -f /data/log.txt
70     class debug
71
72 service btattach /system/bin/btattach
73     class main
74     disabled
75     oneshot
76     seclabel u:r:bluetooth:s0
77
78 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
79     class main
80     disabled
81     oneshot
82     seclabel u:r:bluetooth:s0
83
84 service wacom-input /system/bin/wacom-input
85     disabled
86     oneshot
87     seclabel u:r:inputflinger:s0
88
89 service tablet-mode /system/bin/tablet-mode
90     disabled
91     oneshot
92     seclabel u:r:inputflinger:s0
93
94 service ctrl-alt-del /system/bin/input keyevent --longpress POWER
95     disabled
96     oneshot
97     keycodes 97 100 111
98     seclabel u:r:init:s0
99
100 on property:system_init.startsurfaceflinger=0
101     # disable cursor blinking
102     write /dev/tty0 "\e[?17;0;0c"
103     start surfaceflinger
104     stop console
105
106 on property:sys.boot_completed=1
107     write /proc/sys/kernel/ctrl-alt-del 0
108     exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
109
110 on property:net.dns1=*
111     exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
112
113 on property:debug.logcat=1
114     class_start debug
115
116 on property:persist.sys.nativebridge=1
117     start nativebridge
118
119 on property:persist.sys.nativebridge=0
120     stop nativebridge