-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.gt540.rc
105 lines (98 loc) · 3.31 KB
/
init.gt540.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
# inherit qcom init
import init.qcom.rc
on fs
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt 0775 root system
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
on boot
chown system radio /dev/rtc1
chmod 0660 /dev/rtc1
chown system audio /dev/msm_preproc_ctl
chmod 0660 /dev/msm_preproc_ctl
chown system audio /dev/msm_pcm_dec
chmod 0660 /dev/msm_pcm_dec
chown root root /dev/system_bus_freq
chmod 0666 /dev/system_bus_freq
chown root root /dev/cpu_dma_latency
chmod 0666 /dev/cpu_dma_latency
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chmod 0666 /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chmod 0666 /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chmod 0660 /proc/bluetooth/sleep/proto
chown system system /sys/module/sco/parameters/disable_esco
chown bluetooth bluetooth /dev/ttyHS0
chmod 0666 /dev/ttyHS0
chmod 0666 /dev/msm_snd
mkdir /data/misc/hcid 0770 bluetooth bluetooth
chmod 0666 /sys/class/timed_output/vibrator/enable
chmod 0666 /sys/class/timed_output/vibrator/amp
chmod 0666 dev/akm8973_aot
chmod 0666 dev/bma150
mkdir /data/radio 0770 radio radio
chmod 0666 /dev/oncrpc/3000008c:00040000
chmod 0666 /dev/oncrpc/3000000e:00060000
chown system system /sys/class/backlight/rt9393/brightness
chown system system /sys/class/backlight/rt9393/max_brightness
chown 666 /sys/class/backlight/rt9393/max_brightness
chown 666 /sys/class/backlight/rt9393/actual_brightness
chown system graphics /dev/kgsl
chmod 0666 /dev/kgsl
chmod 0666 /dev/pmem
chown system audio /dev/msm_aac
chmod 0660 /dev/msm_aac
chown system audio /dev/msm_amrnb_in
chmod 0660 /dev/msm_amrnb_in
chown system audio /dev/msm_amrnb
chmod 0660 /dev/msm_amrnb
chown system audio /dev/msm_qcelp
chmod 0660 /dev/msm_qcelp
chown system audio /dev/msm_evrc
chmod 0660 /dev/msm_evrc
chown system audio /dev/msm_voicememo
chmod 0660 /dev/msm_voicememo
chown system graphics /dev/msm_rotator
chmod 0660 /dev/msm_rotator
chown system audio /dev/msm_preproc_ctl
chmod 0660 /dev/msm_preproc_ctl
chown system audio /dev/pmem_smipool
chmod 0660 /dev/pmem_smipool
chown system audio /dev/pmem_audio
chmod 0660 /dev/pmem_audio
chown system audio /dev/msm_amr_in
chmod 0660 /dev/msm_amr_in
chown system audio /dev/msm_amrwb
chmod 0660 /dev/msm_amrwb
chown system audio /dev/msm_vidc_reg
chmod 0660 /dev/msm_vidc_reg
chown system audio /dev/msm_vidc_dec
chmod 0660 /dev/msm_vidc_dec
chown system audio /dev/msm_vidc_enc
chmod 0660 /dev/msm_vidc_enc
chmod 0666 /dev/graphics/fb0
service qmuxd /system/bin/qmuxd
class main
user radio
group radio
on property:init.svc.hcid=running
write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
service btld /system/bin/logwrapper /system/bin/btld -lpm 1
class main
user root
group bluetooth net_bt_admin
disabled
oneshot
service hciattach /system/bin/brcm_patchram_plus --enable_hci --baudrate 3000000 --patchram /system/bin/BCM4325D1_004.002.004.0262.0270.hcd /dev/ttyHS0
class main
user bluetooth
group bluetooth net_bt_admin
disabled
service akmd2 /system/bin/akmd2
class main
user compass
group system