forked from CyanogenMod/android_device_lge_p350
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.pecan.rc
120 lines (97 loc) · 3.25 KB
/
init.pecan.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
on boot-pause
exec sbin/chargerlogo
on boot
mkdir /data/amit 0777 ami304d ami304d
chmod 0666 /data/amit/AMI306_Config.ini
mkdir /data/radio 0770 radio radio
## LGE's bluetooth stuff
# bluetooth permissions
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /dev/ttyHS0
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
write /sys/class/rfkill/rfkill0/state 0
# +++ BRCM +++
# Make sure the property critical to Bluetooth functionality to be reserved by creating while booting up.
setprop service.brcm.bt.srv_active 0
setprop service.brcm.bt.hcid_active 0
setprop sys.settings_secure_version 0
# --- BRCM ---
### End of LGE bluetooth
## ERS
mkdir /data/data/com.lge.ers
mkdir /data/data/com.lge.ers/android
mkdir /data/data/com.lge.ers/kernel
mkdir /data/data/com.lge.ers/arm9
chmod 0777 /data/data/com.lge.ers/android
chmod 0777 /data/data/com.lge.ers/kernel
chmod 0777 /data/data/com.lge.ers/arm9
## VIBRATOR
chmod 0666 /sys/class/timed_output/vibrator/amp
## SENSOR
chown system system /dev/ami304
chmod 0666 dev/ami304
chown system system /dev/ami304daemon
chmod 0666 dev/ami304daemon
chown system system /dev/ami304hal
chmod 0666 dev/ami304hal
mkdir /data/amit 0770 ami304d ami304d
chown system system /dev/KR3DH
chmod 0666 /dev/KR3DH
chown system system /dev/KR3DM
chmod 0666 /dev/KR3DM
## PROXIMITY SENSOR
chmod 0666 /sys/bus/i2c/drivers/proximity_gp2ap/4-0044/enable
# WIFI
mkdir /data/misc/wifi/sockets 0770 wifi wifi
setprop wifi.supplicant_scan_interval 20
setprop wifi.interface wlan0
mkdir /data/misc/dhcp 0777 system system
service qmuxd /system/bin/qmuxd
user radio
group radio
service ami304d /system/bin/ami304d
user compass
group system
service hciattach /system/bin/sh /system/bin/init.qcom.bt.sh
user bluetooth
group bluetooth net_bt_admin
disabled
# Collect ramconsole data
copy /proc/last_kmsg /data/dontpanic/last_kmsg
chown root log /data/dontpanic/last_kmsg
chmod 0640 /data/dontpanic/last_kmsg
# LGE_CHANGE_S [email protected] 2010-07-14
# create logging directory
mkdir /data/logger 0771 system system
# LGE_CHANGE_E [email protected] 2010-07-14
on property:init.svc.hcid=running
write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
service dhcpcd_wlan0 /system/bin/dhcpcd -BKA wlan0
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n wlan0
disabled
oneshot
service setapversion /system/bin/lgapversion
disabled
oneshot
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd_wlan0
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
socket wpa_wlan0 dgram 660 wifi wifi
group system wifi inet
disabled
oneshot
service cnd /system/bin/cnd
socket cnd stream 660 root radio
socket cne stream 660 root radio
on property:dev.bootcomplete=1
exec /system/bin/hwaddrs
on property:gsm.current.phone-type=1
start setapversion
on property:gsm.version.baseband=V07u-000-000-MAR-23-2009
start setapversion