-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinit.gs702a.rc
executable file
·159 lines (134 loc) · 6.82 KB
/
init.gs702a.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
import init.modules.rc
import init.gs702a.usb.rc
import init.wifi.rc
import init.mt6620.rc
import init.eth0.rc
on early-init
# fixme: disable hotplug by now
write /sys/devices/system/cpu/autoplug/lock 1
# fixme: avoid suspend by now
#write /sys/power/wake_lock 1
# use legacy virtual memory layout for compatibility
write /proc/sys/vm/legacy_va_layout 1
export EXTERNAL_STORAGE /storage/sdcard0
export ASEC_STORAGE /storage/sdcard0
export FLASH_STORAGE /storage/sdcard0
export TFCARD_STORAGE /storage/sdcard1
export UHOST_STORAGE /storage/usbdisk
export MEDIA_STORAGE /storage/media
mkdir /storage/sdcard 0000 system system
mkdir /storage/sd-ext 0000 system system
mkdir /storage/uhost 0000 system system
mkdir /storage/media 0755 system system
# for backwards compatibility
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /mnt/sd-ext
symlink /storage/usbdrive /mnt/uhost
# insmod flash driver
insmod /lib/modules/blk1drv.ko
insmod /lib/modules/blk2drv.ko
# mount disks
mkdir /misc
wait /dev/block/actb
mount vfat /dev/block/actb /misc ro wait noatime nodiratime umask=0022
# display
insmod /misc/modules/atv5202_de.ko
insmod /misc/modules/atv5202_backlight.ko
insmod /misc/modules/atv5202_lcd.ko
insmod /misc/modules/atv5202_fb.ko
on fs
# mount disks
mount_all /fstab.gs702a
mount vfat /dev/block/actg /mnt/media ro noatime nodiratime umask=0022 utf8
mount vfat /dev/block/acth /vendor/app ro noatime nodiratime umask=0022 utf8
symlink /vendor/app/lib /vendor/lib
mount debugfs none /sys/kernel/debug
on post-fs-data
#
chmod 06755 /system/xbin/su
symlink /system/xbin/su /system/bin/su
on boot
chown system system /sys/class/backlight/act_pwm_backlight/brightness
chmod 0660 /sys/class/backlight/act_pwm_backlight/brightness
chown system system /sys/class/backlight/act_pwm_backlight/actual_brightness
chmod 0660 /sys/class/backlight/act_pwm_backlight/actual_brightness
chown system system /sys/class/backlight/act_pwm_backlight/auto_adjust
chmod 0660 /sys/class/backlight/act_pwm_backlight/auto_adjust
chown system system /sys/class/backlight/act_pwm_backlight/max_brightness
chmod 0660 /sys/class/backlight/act_pwm_backlight/max_brightness
chown system system /sys/class/backlight/act_pwm_backlight/min_brightness
chmod 0660 /sys/class/backlight/act_pwm_backlight/min_brightness
on boot
chown system system /sys/devices/virtual/input/input0/delay
chmod 0660 /sys/devices/virtual/input/input0/delay
chown system system /sys/devices/virtual/input/input0/enable
chmod 0660 /sys/devices/virtual/input/input0/enable
chown system system /sys/devices/virtual/input/input0/calibration_value
chmod 0660 /sys/devices/virtual/input/input0/calibration_value
chown system system /sys/devices/virtual/input/input0/calibration_reset
chmod 0660 /sys/devices/virtual/input/input0/calibration_reset
chown system system /sys/devices/virtual/input/input0/calibration_run
chmod 0660 /sys/devices/virtual/input/input0/calibration_run
chown system system /sys/devices/virtual/input/input1/delay
chmod 0660 /sys/devices/virtual/input/input1/delay
chown system system /sys/devices/virtual/input/input1/enable
chmod 0660 /sys/devices/virtual/input/input1/enable
chown system system /sys/devices/virtual/input/input1/calibration_value
chmod 0660 /sys/devices/virtual/input/input1/calibration_value
chown system system /sys/devices/virtual/input/input1/calibration_reset
chmod 0660 /sys/devices/virtual/input/input1/calibration_reset
chown system system /sys/devices/virtual/input/input1/calibration_run
chmod 0660 /sys/devices/virtual/input/input1/calibration_run
chown system system /sys/devices/virtual/input/input2/delay
chmod 0660 /sys/devices/virtual/input/input2/delay
chown system system /sys/devices/virtual/input/input2/enable
chmod 0660 /sys/devices/virtual/input/input2/enable
chown system system /sys/devices/virtual/input/input2/calibration_value
chmod 0660 /sys/devices/virtual/input/input2/calibration_value
chown system system /sys/devices/virtual/input/input2/calibration_reset
chmod 0660 /sys/devices/virtual/input/input2/calibration_reset
chown system system /sys/devices/virtual/input/input2/calibration_run
chmod 0660 /sys/devices/virtual/input/input2/calibration_run
chown system system /sys/devices/virtual/input/input3/delay
chmod 0660 /sys/devices/virtual/input/input3/delay
chown system system /sys/devices/virtual/input/input3/enable
chmod 0660 /sys/devices/virtual/input/input3/enable
chown system system /sys/devices/virtual/input/input3/calibration_value
chmod 0660 /sys/devices/virtual/input/input3/calibration_value
chown system system /sys/devices/virtual/input/input3/calibration_reset
chmod 0660 /sys/devices/virtual/input/input3/calibration_reset
chown system system /sys/devices/virtual/input/input3/calibration_run
chmod 0660 /sys/devices/virtual/input/input3/calibration_run
on boot
chown system system /sys/devices/system/cpu/autoplug/usr_lock
chmod 0660 /sys/devices/system/cpu/autoplug/usr_lock
chown system system /sys/devices/system/cpu/cpu1/online
chmod 0660 /sys/devices/system/cpu/cpu1/online
chown system system /sys/devices/system/cpu/cpu2/online
chmod 0660 /sys/devices/system/cpu/cpu2/online
chown system system /sys/devices/system/cpu/cpu3/online
chmod 0660 /sys/devices/system/cpu/cpu3/online
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# Set ant_status
write /data/data/ant_status on
chmod 0666 /data/data/ant_status
# GPU 2D/3D
chown media media /sys/devices/system/cpu/cpufreq/gpufreq/gpu2doutstanding
chmod 0660 /sys/devices/system/cpu/cpufreq/gpufreq/gpu2doutstanding
chown media media /sys/devices/system/cpu/cpufreq/gpufreq/gpu3doutstanding
chmod 0660 /sys/devices/system/cpu/cpufreq/gpufreq/gpu3doutstanding
on init
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/actions.jar
# Allow system service to execute quickboot cmd.
chown system system /quickboot.sh
# update system time from rtc
service hwclock_update /system/xbin/busybox hwclock -s
class core
oneshot
service batteryservice /charger
class charger
oneshot
on charger
# NOTE: class_start is moved to init.modules.rc