-
Notifications
You must be signed in to change notification settings - Fork 15
/
init.smdk4210.rc
175 lines (138 loc) · 4.98 KB
/
init.smdk4210.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
import init.smdk4210.usb.rc
import init.smdk4210.gps.rc
on init
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /storage/sdcard1 0775 system system
mkdir /storage/usbdisk0 0775 system system
export EXTERNAL_STORAGE /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# for backwards compatibility
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /storage/sdcard1 /extSdCard
symlink /storage/sdcard1 /mnt/extSdCard
symlink /storage/usbdisk0 /usbdisk0
symlink /storage/usbdisk0 /mnt/usbdisk0
# Disable CFQ slice idle delay
write /sys/block/mmcblk0/queue/iosched/slice_idle 0
on fs
mkdir /efs 0771 radio system
mount_all /fstab.smdk4210
setprop ro.crypto.fuse_sdcard true
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
# gps
mkdir /data/gps 771 system system
chown root system /sys/devices/platform/s5pv210-uart.1/rts_cts_gate
chown root system /sys/class/sec/gps/GPS_PWR_EN/value
chown root system /sys/class/sec/gps/GPS_nRST/value
chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value
chmod 0664 /sys/class/sec/gps/GPS_nRST/value
# wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /efs/bluetooth 0775 radio system
mkdir /efs/wifi 0775 radio system
# bluetooth
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
chown bluetooth bluetooth ro.bt.bdaddr_path
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chmod 0660 /sys/class/rfkill/rfkill0/state
# lcd
chown system system /sys/class/backlight/panel/brightness
# mDNIe
chown system system /sys/class/mdnie/mdnie/mode
chown system system /sys/class/mdnie/mdnie/negative
chown system system /sys/class/mdnie/mdnie/outdoor
chown system system /sys/class/mdnie/mdnie/scenario
# uart_sel and usb_sel
chown system radio /sys/class/sec/sec_switch/uart_sel
chown system radio /sys/class/sec/sec_switch/usb_sel
# radio
chown system radio /sys/devices/platform/s5p-ehci/ehci_power
chown system radio /sys/devices/platform/s5p-ehci/ehci_runtime
# sensors
chown system system /sys/class/sensors/accelerometer_sensor/calibration
chmod 0664 /sys/class/sensors/accelerometer_sensor/calibration
# torch
chown system system /sys/devices/virtual/camera/rear/rear_flash
chmod 0666 /sys/devices/virtual/camera/rear/rear_flash
# vibrator
chown system system /sys/vibrator/pwm_val
# touchscreen
chown system system /sys/class/sec/sec_touchscreen/tsp_threshold
# device encryption
setprop vold.post_fs_data_done 1
on boot
mount debugfs /sys/kernel/debug /sys/kernel/debug
# Device Encryption by B2B Security Lab.
setprop ro.crypto.keyfile.userdata /efs/metadata
# wifi
service wpa_supplicant /system/bin/wpa_supplicant \
-Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
class main
group system wifi inet
socket wpa_wlan0 dgram 0660 wifi wifi
disabled
oneshot
service macloader /system/bin/macloader
class main
oneshot
# bluetooth
service bccmd /system/bin/bccmd -t bcsp -d /dev/ttySAC0 \
-b 115200 psload -r /system/etc/PSConfig_8811.psr
class main
group bluetooth net_bt_admin
disabled
oneshot
service hciattach /system/bin/hciattach -n \
-p /dev/ttySAC0 bcsp 3000000 flow
class main
user bluetooth
group bluetooth net_bt_admin
disabled
# dhcpcd
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_bnep0 /system/bin/dhcpcd -n
class main
disabled
oneshot
# serial keyboard daemon
service sec_keyboard /system/bin/sec_keyboard /dev/ttySAC2
class main
group system
# create virtual SD card at /mnt/shell/emulated, based on the /data/media directory
# daemon will drop to user/group system/media_rw after initializing
# underlying files in /data/media wil be created with user and group media_rw
service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
class late_start
# TVout
service TvoutService_C /system/bin/bintvoutservice
class main
user system
group graphics