forked from CyanogenMod/android_device_geeksphone_one
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.qcom.rc
executable file
·93 lines (76 loc) · 3.29 KB
/
init.qcom.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
on early-init
start hwprops
on boot
#+++AudiPCHuang@FIH, change virtual file for keyboard brightness controlling
#chown system system /sys/class/leds/keyboard-backlight/brightness
chown system system /sys/class/i2c-adapter/i2c-0/0-0040/brightness
#---AudiPCHuang@FIH
#+++ VincentYSChen @FIH
chown system system /sys/devices/platform/DIAG.0/qxdm2sd
#--- VincentYSChen @FIH
#+++ KennyLin @FIH
chmod 777 /sys/devices/platform/DIAG.0/qxdm2sd
#--- KennyLin @FIH
#+++AudiPCHuang@FIH, change virtual file for lcd brightness controlling
#chown system system /sys/class/leds/lcd-backlight/brightness
chown system system /sys/class/backlight/msmfb_bl0/brightness
#---AudiPCHuang@FIH
#+++AudiPCHuang@FIH, change virtual file for keyboard brightness controlling
#chown system system /sys/class/leds/button-backlight/brightness
chown system system /sys/class/i2c-adapter/i2c-0/0-0040/btn_brightness
#---AudiPCHuang@FIH
#+++AudiPCHuang@FIH, virtual file for controlling nLEDs blinking
chown system system /sys/class/i2c-adapter/i2c-0/0-0040/blink
#---AudiPCHuang@FIH
#+++AudiPCHuang@FIH, virtual file for controlling keypad controller power state
chown system system /sys/class/i2c-adapter/i2c-0/0-0040/power_state
#---AudiPCHuang@FIH
#+++AudiPCHuang@FIH, change virtual file for controlling the leds besides QWERTY keypad
chown system system /sys/class/i2c-adapter/i2c-0/0-0040/caps_fn_leds
#---AudiPCHuang@FIH
chown system system /sys/class/leds/white/brightness
chown system system /sys/class/leds/red/blink
chown system system /sys/class/leds/green/blink
chown system system /sys/class/leds/white/blink
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown system system /sys/module/sco/parameters/disable_esco
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chown wifi wifi /sys/class/rfkill/rfkill1/state
chmod 0660 /sys/class/rfkill/rfkill1/state
chown system system /sys/class/rfkill/rfkill0/type
chown system system /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /dev/ttyHS0
mkdir /data/system 0771 system system
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
# allow net_raw to have access to /dev/socket directory
chown root net_raw /dev/socket
chmod 0775 /dev/socket
service hwprops /sbin/hwprops
critical
disabled
oneshot
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
group wifi inet
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -B wlan0
disabled
oneshot
service hostapd /system/bin/logwrapper /system/bin/hostapd /data/misc/wifi/hostapd.conf
group wifi inet
socket wpa_athap0 dgram 660 wifi wifi
disabled
oneshot
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin system
disabled
oneshot