forked from dorimanx/initramfs3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.smdk4210.rc
executable file
·170 lines (139 loc) · 4.83 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
import init.smdk4210.usb.rc
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
# FIXME: permissions for tvout
chmod 0777 /dev/graphics/fb0
chmod 0777 /dev/graphics/fb10
chmod 0777 /dev/graphics/fb11
chown media graphics /sys/class/switch/hdmi
chmod 0777 /sys/class/switch/hdmi
# FIXME: permission for HDMI audio path
chown media audio /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext
chmod 0777 /sys/class/hdmi_audio/hdmi_audio/hdmi_audio_set_ext
on post-fs-data
# GPS
chown root system /dev/ttySAC1
chmod 0660 /dev/ttySAC1
chown root system /sys/class/sec/gps/GPS_PWR_EN/value
chmod 0664 /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_nRST/value
mkdir /data/gps 771 system system
chown system system /data/gps
# give system access to wpa_supplicant.conf for backup and restore
mkdir /data/misc/wifi 0774 wifi wifi
chmod 0770 /data/misc/wifi
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
mkdir /data/misc/wifi/sockets 0774 wifi wifi
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
on boot
chown system system /sys/class/backlight/pwm-backlight/brightness
chmod 0660 /sys/class/backlight/pwm-backlight/brightness
chown radio system /sys/devices/virtual/misc/melfas_touchkey/brightness
chmod 0660 /sys/devices/virtual/misc/melfas_touchkey/brightness
# MTP Device permission.
chmod 0660 /dev/usb_mtp_gadget
chown system system /dev/usb_mtp_gadget
# terminal mode
chmod 0660 /sys/class/android_usb/android0/terminal_version
chown system system /sys/class/android_usb/android0/terminal_version
# NFC
setprop ro.nfc.port "I2C"
chmod 0600 /dev/pn544
chown nfc nfc /dev/pn544
# setup for alsa snd device
chmod 0770 /dev/snd/pcmC0D0c
chmod 0770 /dev/snd/pcmC0D0p
chmod 0770 /dev/snd/controlC0
chmod 0770 /dev/snd/timer
chmod 0770 /dev/snd/hwC0D0
# panorama directory creation
mkdir /data/pxtmpdir 0775
chown system system /data/pxtmpdir
chmod 0775 /data/pxtmpdir
# Permissions for dvfs lock
chown system system /sys/power/cpufreq_max_limit
chown system system /sys/power/cpufreq_min_limit
chmod 0660 /sys/power/cpufreq_max_limit
chmod 0660 /sys/power/cpufreq_min_limit
chown system system /sys/power/gpu_lock
chmod 0660 /sys/power/gpu_lock
# Permisions for sensors
chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest
chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp
chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on
chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file
chown radio system /sys/devices/virtual/sec/gsensorcal/calibration
on boot
setprop ro.build.product GT-I9100
setprop ro.product.device GT-I9100
setprop ro.radio.noril yes
# permissions for NFC
setprop ro.nfc.port "I2C"
chmod 0600 /dev/pn544
chown nfc nfc /dev/pn544
# Permission for MHL
chown system radio /sys/class/mhl/test_result
# Device Encryption by B2B Security Lab.
setprop ro.crypto.keyfile.userdata /efs/metadata
# fake some battery state
setprop status.battery.state Slow
setprop status.battery.level 5
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
service notified_event /system/bin/notified_event
class main
user system
group system
socket notified_event stream 0660 root system
service tscald /system/bin/tscald /data/data/com.samsung.app.sec_tscal/cal.conf /sys/devices/platform/s3c64xx-ts/set_tscal
user root
group root
oneshot
service wpa_supplicant /system/bin/wpa_supplicant \
-Dnl80211 -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
# we will start as root and wpa_supplicant will switch to user wifi
# after setting up the capabilities required for WEXT
# user wifi
# group wifi inet keystore
class main
socket wpa_wlan0 dgram 0660 wifi wifi
disabled
oneshot
#for WiFi MFG(TestMode)
service mfgloader /system/bin/mfgloader
disabled
oneshot
service wlandutservice /system/bin/wlandutservice
user system
group wifi net_raw net_admin system inet
disabled
oneshot
service macloader /system/bin/macloader
oneshot
# end of wifi
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
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
# TVout
service TvoutService_C /system/bin/bintvoutservice
class main
user system
group graphics