-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathinit.gt-s5570.rc
executable file
·151 lines (125 loc) · 5.38 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
on init
# insmod fsr modules
insmod /lib/modules/fsr.ko
insmod /lib/modules/fsr_stl.ko
insmod /lib/modules/sec_param.ko
mount ext4 /dev/block/stl12 /system wait nosuid nodev noatime nodiratime noauto_da_alloc
mount rfs /dev/stl12 /system ro check=no
mount ext4 /dev/block/stl13 /data wait nosuid nodev noatime nodiratime noauto_da_alloc
mount rfs /dev/stl12 /system ro check=no
mount ext4 /dev/block/stl14 /cache wait nosuid nodev noatime nodiratime noauto_da_alloc
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
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 /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /dev/ttyHS0
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
setprop ro.bt.bdaddr_path "/data/misc/bluetoothd/bt_addr"
# 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
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 dhcpcd_wlan0 /system/bin/dhcpcd -BKL
disabled
oneshot
service hostapd /system/bin/hostapd -dddd /data/hostapd/hostapd.conf
user root
group root
oneshot
disabled
service gps-daemon /system/bin/gpsd
user system
group system inet
service memsicd /system/bin/memsicd
user system
group system
oneshot