forked from CyanogenMod/android_device_samsung_tass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.gt-s5570.rc
executable file
·228 lines (186 loc) · 7.07 KB
/
init.gt-s5570.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
on init
# insmod fsr modules
insmod /lib/modules/fsr.ko
insmod /lib/modules/fsr_stl.ko
insmod /lib/modules/rfs_glue.ko
insmod /lib/modules/rfs_fat.ko
insmod /lib/modules/sec_param.ko
on fs
# Mount partitions
mount ext4 /dev/block/stl12 /system
mount rfs /dev/stl12 /system ro check=no
mount ext4 /dev/block/stl13 /data nosuid nodev
mount rfs /dev/stl13 /data ro check=no
mount ext4 /dev/block/stl14 /cache nosuid nodev
mount rfs /dev/stl14 /cache nosuid nodev check=no
# cpufreq configurations
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245760
#write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 500000
write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
write /sys/devices/system/cpu/cpufreq/ondemand/down_threshold 30
on boot
setprop net.tcp.buffersize.default 4096,87380,196608,4096,16384,110208
setprop net.tcp.buffersize.wifi 4095,87380,393216,4096,16384,110208
setprop ro.bt.bdaddr_path "/data/.nvmac_bt.info"
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
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 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/kernel/mm/ksm/run
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chmod 0666 /dev/graphics/fb0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
# Create the directories used by the Wireless subsystem
mkdir /data/misc 01771 system misc
mkdir /data/misc/wifi 0770 system wifi
mkdir /data/misc/wifi/sockets
chown system wifi /data/misc/wifi/sockets
chmod 770 /data/misc/wifi/sockets
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
mkdir /data/system 0775 system system
# create data/gps for GPS daemon
mkdir /data/gps 771 gps system
chown gps system /data/gps
chown system system /sys/devices/platform/lcdc_s6d04h0a_qvga.0/lcd_power
chmod 0666 /sys/devices/platform/lcdc_s6d04h0a_qvga.0/lcd_power
chown system system /sys/devices/platform/msm_sdcc.1/detect_change
chown system system /sys/devices/platform/msm_sdcc.2/detect_change
chown system system /sys/devices/platform/msm_sdcc.3/detect_change
chown system system /sys/devices/platform/msm_sdcc.4/detect_change
chown system radio /sys/devices/platform/msm-battery/power_supply/battery/talk_gsm
chown system radio /sys/devices/platform/msm-battery/power_supply/battery/talk_wcdma
chown system system /sys/module/g_android/parameters/product_id
# Sensor
mkdir /data/misc/radio 0770 radio radio
mkdir /data/misc/sensors 0777 system misc
chown root system /dev/mmc31xx
chown root system /dev/bma_accel
chown root system /dev/kr3dm_accel
chown root system /dev/ecompass_ctrl
chown root system /dev/proximity
chown root system /dev/ledflash
chown fm_radio fm_radio /dev/radio0
chown system radio /sys/devices/virtual/accelerometer/accelerometer/calibrate
chmod 0664 /dev/radio0
chmod 0660 /dev/mmc31xx
chmod 0660 /dev/bma_accel
chmod 0660 /dev/kr3dm_accel
chmod 0660 /dev/ecompass_ctrl
chmod 0660 /dev/proximity
chmod 0660 /data/misc/sensors/ecs_nvm
chmod 0660 /data/misc/sensors/accel_offset
chmod 0664 /sys/devices/virtual/accelerometer/accelerometer/calibrate
chmod 0664 /sys/class/input/input3/enable
chmod 0660 /sys/class/input/input3/poll_delay
chmod 0664 /sys/class/usb_composite/rndis/enable
chown system radio /sys/devices/virtual/touch/firmware/firmware
chmod 0664 /sys/devices/virtual/touch/firmware/firmware
chown system radio /sys/devices/virtual/touch/firmware/firmware_ret
# +++++++++++++++++++++++++++++++++++++++++++
# for silent reset
chown system system /proc/dump_enable
chown system system /proc/silent
# for multi csc
chown radio radio /proc/LinuStoreIII/efs_info
chmod 0664 /proc/LinuStoreIII/efs_info
# for protecting key string
chown radio radio /proc/LinuStoreIII/keystr
chmod 0664 /proc/LinuStoreIII/keystr
# for ril_prop
chown radio radio /proc/LinuStoreIII/ril_prop
chmod 0664 /proc/LinuStoreIII/ril_prop
#Provide the access to hostapd.conf only to root and group
chmod 0660 /data/hostapd/hostapd.conf
service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --baudrate 3000000 --patchram /system/bin/BCM2049C0_003.001.031.0088.0094.hcd /dev/ttyHS0
user bluetooth
group bluetooth net_bt_admin
disabled
oneshot
service qmuxd /system/bin/qmuxd
service dhcp-service /system/bin/netcfg wlan0 dhcp
oneshot
on property:dev.bootcomplete=1
stop dhcp-service
start dhcp-service
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
service wpa_supplicant /system/bin/wpa_supplicant -Dawext -W -w -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
group wifi inet
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service wlan_mac /system/bin/wlan_mac
user system
group system net_raw net_admin inet
oneshot
service wlan_tool /system/bin/wlan_tool
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -BKL
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
disabled
oneshot
service bdaddr_read /system/bin/bdaddr_read
user root
disabled
oneshot
on property:init.svc.bootanim=running
start bdaddr_read
service hostapd /system/bin/hostapd /data/misc/wifi/hostapd.conf
socket hostapd_athap0 dgram 660 wifi wifi
group wifi inet
oneshot
disabled
service gps-daemon /system/bin/gpsd
user system
group system inet
service memsicd /system/bin/memsicd
user system
group system
oneshot
service setup_fs /system/bin/setup_fs /dev/block/stl13 /dev/block/stl14
user root
group root
oneshot
disabled
service toggleshutter /system/bin/toggleshutter
user root
group root
oneshot
on property:ro.camera.sound.disabled=0
start toggleshutter
on property:ro.camera.sound.disabled=1
start toggleshutter
on property:persist.sys.camera-mute=0
start toggleshutter
on property:persist.sys.camera-mute=1
start toggleshutter
# From init.gt-i5500.rc by subpsyke
service get_macaddrs /system/bin/get_macaddrs
user root
oneshot
disabled
on property:init.svc.ril-daemon=running
start get_macaddrs
# bugreport is triggered by holding down the KEY_VOLUMEUP and KEY_HOME keycodes
service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
disabled
oneshot
keycodes 115 102
# reboot is triggered by holding down the KEY_VOLUMEDOWN and KEY_POWER keycodes
service reboot_key /system/bin/reboot
user system
oneshot
keycodes 114 107
disabled