blob: fdd0d7944e4309903f3edb8d3f7dbfc7b1fab3b6 (
plain)
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
|
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
on boot
chmod 0777 /jancar
chmod 0777 /dev/i2c-1
chmod 0777 /dev/i2c-2
chmod 0777 /dev/gpios_ioctl
chmod 0777 /data/update
chmod 0666 /sys/devices/soc/soc:touch@/gt9xx_props
chmod 0666 /sys/devices/soc/11006000.pwm/pwm_debug
chmod 0666 /sys/devices/soc/1000b000.pinctrl/mt_gpio
chmod 0666 /sys/devices/virtual/mtk-adc-cali/mtk-adc-cali/jancar_aux
chmod 0777 /system/bin/install_apk.sh
chmod 0777 /system/bin/copy_cmd.sh
chmod 0777 /system/bin/daemon_service
chmod 0666 /dev/ttyMT0
chown system system /dev/ttyMT0
chmod 0666 /dev/ttyMT3
chown system system /dev/ttyMT3
chmod 0777 /proc/mfi_encrypt
chmod 0666 /dev/input/event1
chmod 0666 /dev/input/event2
chmod 0777 /system/bin/adb-carnet
chmod 0777 /system/bin/timacarnet_init.sh
# jancar config
chown root system /jancar/config
chown root system /jancar/config/displayparams.json
chown root system /jancar/config/pointercal.xml
chown root system /jancar/config/touch_key.xml
chown root system /jancar/config/screen_voltage.json
chown root system /jancar/config/ivi-config.ini
chown root system /jancar/config/ivi-launcher.json
chown root system /jancar/config/ivi-settings.ini
chown root system /jancar/config/ivi-studykey.ini
chown root system /jancar/config/jac_config.json
chown root system /jancar/config/jac_settings.json
chown root system /sys/class/leds/lcd-backlight/
chown root system /sys/class/leds/lcd-backlight/min_brightness
chown root system /sys/class/leds/lcd-backlight/max_brightness
chown root system /jancar/config/ivi-customer.ini
chown root system /jancar/config/duraspeed.ini
chmod 0775 /jancar/config
chmod 0660 /jancar/config/touch_key.xml
chmod 0660 /jancar/config/displayparams.json
chmod 0660 /jancar/config/pointercal.xml
chmod 0660 /jancar/config/screen_voltage.json
chmod 0664 /jancar/config/ivi-config.ini
chmod 0664 /jancar/config/ivi-launcher.json
chmod 0664 /jancar/config/ivi-settings.ini
chmod 0664 /jancar/config/ivi-studykey.ini
chmod 0664 /jancar/config/jac_config.json
chmod 0664 /jancar/config/jac_settings.json
chmod 0666 /jancar/config/can_config.json
chmod 0660 /sys/class/leds/lcd-backlight/min_brightness
chmod 0660 /sys/class/leds/lcd-backlight/max_brightness
chmod 0664 /jancar/config/ivi-customer.ini
chmod 0664 /jancar/config/duraspeed.ini
chown root system /jancar/preupdate
chmod 0775 /jancar/preupdate
on post-fs-data
# TCPIP adbd for jancar
setprop service.adb.tcp.port 5555
on init
setprop service.adb.jancar.fororoot 0
setprop service.install.jancar.deamon 0
on property:sys.boot_completed=1
setenforce 0
mkdir /data/.android 0777 system system
export HOME /data
setprop service.timash.enable 1
setprop service.carnet.enable 1
setprop persist.bluetooth.atc.carplay enable
setprop sys.suding.speedplay.apk
setprop com.suding.speedplay.mode.support wa
setprop com.suding.speedplay.mode.spec wa-w-a
chmod 0660 /jancar/logo/logo0.bmp
chmod 0775 /jancar/logo
chmod 0660 /system/media/bootanimation.zip
chown root system /jancar/logo
chown root system /jancar/logo/logo0.bmp
chown root system /system/media/bootanimation.zip
chown root system /sys/hynitron_debug/hynfwupdate
chmod 0664 /sys/hynitron_debug/hynfwupdate
on property:service.adb.jancar.fororoot=1
restart adbd
service preinstall /system/bin/preinstall.sh
user root
group root
disabled
seclabel u:r:shell:s0
oneshot
service jaccopyfile /system/bin/jaccopyfile.sh
class core
user root
disabled
seclabel u:r:shell:s0
oneshot
on property:sys.boot_completed=1
start preinstall
on property:service.jancar.copyfile=1
start jaccopyfile
service timash /system/bin/timacarnet_init.sh
user root
group root
disabled
seclabel u:r:shell:s0
oneshot
on property:service.timash.enable=1
start timash
service carnet /system/bin/adb-carnet start-server
class core
user root
disabled
oneshot
seclabel u:r:adbd:s0
on property:service.carnet.enable=1
start carnet
on property:service.carnet.enable=0
stop carnet
service daemon_service /system/bin/daemon_service
class core
user root
disabled
oneshot
seclabel u:r:adbd:s0
on property:service.install.jancar.deamon=1
restart daemon_service
service sd_link /system/bin/sd-link.sh
user root
group root
disabled
seclabel u:r:shell:s0
oneshot
on property:sys.boot_completed=1
start sd_link
service dhcpcd_usb0 system/bin/dhcpcd -BK -dd
class main
user root
group net_admin net_raw
disabled
oneshot
|