-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinit.gt-s5360.rc
97 lines (80 loc) · 2.6 KB
/
init.gt-s5360.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
on init
# Insert modules
# rfs drivers
insmod fsr.ko
insmod fsr_stl.ko
insmod rfs_glue.ko
insmod rfs_fat.ko
insmod sec_param.ko
insmod j4fs.ko
on fs
# Mount partitions
mount tmpfs tmpfs /tmp
mount rfs /dev/stl9 /system nosuid nodev check=no
mount ext4 /dev/stl9 /system rw noatime barrier=1
mount rfs /dev/stl11 /data nosuid nodev check=no
mount ext4 /dev/stl11 /data nosuid nodev noatime barrier=1
mount rfs /dev/stl10 /cache nosuid nodev
mount ext4 /dev/stl10 /cache nosuid nodev noatime barrier=1
mount j4fs /dev/stl6 /mnt/.lfs
on boot
# for bluetooth. change access rights as btld runs as bluetooth user
chown root bluetooth /dev/ttyS1
chmod 0660 /dev/ttyS1
chown root bluetooth /sys/class/rfkill/rfkill0
chown root bluetooth /sys/class/rfkill/rfkill0/state
chown root bluetooth /sys/class/rfkill/rfkill0/claim
chown root bluetooth /sys/class/rfkill/rfkill0/soft
chmod 0664 /sys/class/rfkill/rfkill0/state
chmod 0664 /sys/class/rfkill/rfkill0/claim
chmod 0664 /sys/class/rfkill/rfkill0/soft
chown root bluetooth /sys/class/sound/controlC0/FMDirectPlay
chmod 0664 /sys/class/sound/controlC0/FMDirectPlay
chown root net_bt_admin /sys/devices/system/cpu/cpufreq/bcm21553/dvfs
chmod 0664 /sys/devices/system/cpu/cpufreq/bcm21553/dvfs
setprop service.brcm.bt.pbap_mode btld
copy /system/etc/local.prop /data/local.prop
chown system bluetooth /data/local.prop
chmod 0660 /data/local.prop
# For sensors
mkdir /data/misc/sensors 0777 system misc
chmod 0666 /data/misc/sensors/ecs_nvm
chmod 0666 /data/misc/sensors/accel_offset
# WIFI
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/misc/wifi/hostapd 0770 wifi wifi
# DHCP
mkdir /data/misc/dhcp 0770 dhcp dhcp
setprop wifi.interface "eth0"
service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -ieth0 -c /data/misc/wifi/wpa_supplicant.conf
socket eth0 dgram 775 wifi wifi
disabled
oneshot
service dhcpcd /system/bin/dhcpcd -BKL eth0
disabled
oneshot
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
#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
# Kexec enable
service kexec /data/kexec.sh
oneshot
#usb_portd
service console /system/bin/usb_portd
console
user system
group vpn net_admin net_raw radio system log mount
oneshot
#start memsicd service
service memsicd /system/bin/memsicd
user system
group system
oneshot