forked from CyanogenMod/android_device_samsung_p5att
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.emmc.rc
257 lines (216 loc) · 9.49 KB
/
init.emmc.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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
on early-init
mkdir /storage 0050 system sdcard_r
mkdir /storage/sdcard0 0000 system system
mkdir /storage/sdcard1 0000 system system
# for backwards compatibility
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard1 /external_sd
symlink /storage/sdcard1 /mnt/external_sd
mkdir /mnt/usbdisk 0755 system system
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
# Vibetonz
export VIBE_PIPE_PATH /dev/pipes
mkdir /dev/pipes 0771 shell shell
on early-fs
mkdir /system
mkdir /data 0771 system system
mkdir /persist 0771 system system
mkdir /cache 0771 system cache
mkdir /config 0500 root root
mkdir /efs 0771 system system
# insmod the modules
# ko files for bthid
insmod /lib/modules/bthid.ko
on emmc-fs
# mount mmc partitions
mount_all /fstab.qcom
chown radio system /efs
chmod 0771 /efs
mkdir /efs/imei 0775
chown radio system /efs/imei
chown radio system /efs/imei/keystr
chmod 0775 /efs/imei
chmod 0775 /efs/imei/keystr
mkdir /efs/bluetooth
mkdir /efs/wifi
chown radio system /efs/bluetooth
chown radio system /efs/wifi
chmod 0775 /efs/bluetooth
chmod 0775 /efs/wifi
write /sys/block/mmcblk0/queue/iosched/front_merges 0
write /sys/block/mmcblk0/queue/iosched/read_expire 100
write /sys/block/mmcblk0/queue/iosched/write_expire 1000
mkdir /data/radio 0770 radio radio
mkdir /data/misc/radio 0775 radio system
mkdir /data/misc/sensors 0775 root root
write /data/system/sensors/settings 0
chmod 0664 /data/system/sensors/settings
#add sensor permission
chown system system /dev/accelerometer
chmod 0660 /dev/accelerometer
chown system system /dev/akm8975
chmod 0660 /dev/akm8975
chown system system /dev/k3g
chmod 0660 /dev/k3g
chown system input /sys/class/sensors/gyro_sensor/selftest_dps
chown system input /sys/class/sensors/accelerometer_sensor/calibration
# for parameter
chown system radio /dev/block/mmcblk0p12
chmod 0660 /dev/block/mmcblk0p12
# DLEVEL
chown system radio /sys/devices/platform/sec_debug_level
chmod 0664 /sys/devices/platform/sec_debug_level
chown system radio /sys/devices/virtual/misc/level/control
chmod 0664 /sys/devices/virtual/misc/level/control
# permission for qc modem silrent reset
chown radio system /sys/module/subsystem_restart/parameters/restart_level
# permission for fast dormacy for RIL
chown radio system /sys/devices/virtual/sec/sdio_al/waketime
# Vibetonz
chmod 0660 /dev/tspdrv
chown root shell /dev/tspdrv
#Added for MTP permission
chmod 0660 /dev/usb_mtp_gadget
chown system system /dev/usb_mtp_gadget
chown system system /sys/power/cpufreq_max_limit
chown system system /sys/power/cpufreq_min_limit
chown system system /sys/power/cpufreq_table
chmod 664 /sys/power/cpufreq_max_limit
chmod 664 /sys/power/cpufreq_min_limit
chmod 664 /sys/power/cpufreq_table
# Permissions for LCD
chown radio system /sys/class/lcd/panel/lcd_power
chown system media_rw /sys/class/lcd/panel/power_reduce
# Permissions for mDNIe
chown system media_rw /sys/class/mdnie/mdnie/scenario
chown system media_rw /sys/class/mdnie/mdnie/mode
chown system media_rw /sys/class/mdnie/mdnie/outdoor
chown radio system /sys/class/mdnie/mdnie/lcdtype
chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_sensitivity
chown radio system /sys/devices/virtual/misc/melfas_touchkey/enable_disable
chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_update
chown radio system /sys/devices/virtual/misc/melfas_touchkey/touch_version
chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_panel
chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_version_phone
chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update_status
chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_firm_update
chown radio system /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness
chown radio system /sys/devices/platform/android_usb/UsbMenuSel
chown radio system /sys/devices/platform/android_usb/tethering
chown radio system /sys/devices/platform/android_usb/ums
chown radio system /sys/devices/virtual/sec/switch/uart_sel
chown radio system /sys/devices/virtual/sec/switch/usb_sel
chown radio system /sys/devices/virtual/sec/switch/.usb_lock/enable
chown radio system /sys/devices/virtual/sec/switch/device_type
chown radio system /sys/devices/virtual/sec/switch/disable_vbus
chown radio system /sys/devices/virtual/sec/switch/usb_state
# allow system to modify cpufreq control files
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown root system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
# Define TCP buffer sizes for various networks
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
# setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.wifi 4095,131072,196608,4096,16384,110208
setprop net.tcp.buffersize.lte 4094,87380,2560000,4096,16384,1220608
setprop net.tcp.buffersize.umts 4094,87380,196608,4096,16384,110208
setprop net.tcp.buffersize.hspa 4094,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.hsupa 4094,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.hsdpa 4094,87380,704512,4096,16384,110208
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
setprop net.tcp.buffersize.evdo_b 4094,87380,262144,4096,16384,262144
# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
write /proc/sys/net/core/rmem_max 1220608
write /proc/sys/net/core/wmem_max 1220608
# Set this property so surfaceflinger is not started by system_init
setprop system_init.startsurfaceflinger 0
# Get MAC address from efs for COB type
copy /efs/imei/.nvmac.info /efs/wifi/.nvmac.info
chown system system /efs/wifi/.nvmac.info
chmod 0400 /efs/wifi/.nvmac.info
# klaatu tdmb ownership
chown system system /dev/tdmb
chmod 0660 /dev/tdmb
# create directory for DRM plug-ins
mkdir /data/drm 0774 drm drm
#SISO-PLAYREADY-CHANGES
# [ save OMA DB, when upgrading from GB to ICS
mkdir /data/system/databases 0771 system system
copy /data/data/com.sec.android.providers.drm/databases/drmdatabase.db /data/system/databases/drmdatabase.db
chown system system /data/system/databases/drmdatabase.db
chmod 0774 /data/system/databases/drmdatabase.db
# ]
#DRM directory creation
mkdir /system/etc/security/.drm 0775
chown root root /system/etc/security/.drm
chmod 0775 /system/etc/security/.drm
# Added for Playready DRM Support
mkdir /data/data/.drm 0775
chown drm system /data/data/.drm
chmod 0775 /data/data/.drm
mkdir /data/data/.drm/.playready 0775
chown drm system /data/data/.drm/.playready
chmod 0775 /data/data/.drm/.playready
#Added drm folder to copy drm plugins
mkdir /system/lib/drm 0775
chown root root /system/lib/drm
chmod 0775 /system/lib/drm
#SISO-PLAYREADY-CHANGES
# DivX DRM
mkdir /efs/.files 0775
mkdir /efs/.files/.dx1 0775
mkdir /efs/.files/.dm33 0775
mkdir /efs/.files/.mp301 0775
chown media system /efs/.files/.dx1
chown media system /efs/.files/.dm33
chown media system /efs/.files/.mp301
chmod 0775 /efs/.files/.dx1
chmod 0775 /efs/.files/.dm33
chmod 0775 /efs/.files/.mp301
# SKT PM PlayReady
mkdir /data/playready 0777 system system
chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file
chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file
chown system system /sys/class/android_usb/android0/f_rndis/ethaddr
chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr
#OTG Test
chown system radio /sys/class/host_notify/usb_otg/booster
chmod 0660 /sys/class/host_notify/usb_otg/booster
#Essential node for usbservice
mkdir /dev/bus/ 755 root root
mkdir /dev/bus/usb 755 root root
# create fota delta dir
mkdir /data/fota_test 0775 system log
chown system log /data/fota_test
chmod 0775 /data/fota_test
mkdir /cache/fota 0775 system cache
chmod 0775 /cache/fota
service ril-daemon /system/bin/rild
class main
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log
service secril-daemon /system/bin/sec-ril
class main
user root
group radio cache inet misc audio sdcard_rw qcom_diag log
# serial keyboard daemon
service sec_keyboard /system/bin/sec_keyboard /dev/ttyHSL0
class late_start
group system
# Vibetonz
service immvibed /system/bin/immvibed
class core
user shell
group shell
oneshot