blob: d69ab684edcee16658825849652f170bfbc8f5de (
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
|
import /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
import /vendor/etc/init/hw/init.ram.rc
import /vendor/etc/init/hw/init.storage.rc
import /vendor/etc/init/hw/init.cali.rc
import /vendor/etc/init/hw/init.factorytest.rc
on init
# wait_for_prop vendor.all.modules.ready 1
start watchdogd
chmod 0660 /sys/power/wakeup_count
on post-fs-data
setprop vold.post_fs_data_done 1
# restorecon for stune
restorecon /dev/stune
# setprop debug.sf.latch_unsignaled 1
# Set watchdog timer to 30 seconds and pet it every 10 seconds to get a 20 second margin
service watchdogd /system/bin/watchdogd 10 30
class core
oneshot
seclabel u:r:watchdogd:s0
on early-boot
# Wait for insmod_sh to finish all modules
# wait_for_prop vendor.all.modules.ready 1
on boot
#UNISOC: Support aging test charging limit function
chown system system /sys/class/power_supply/battery/charger.0/stop_charge
chmod 0664 /sys/class/power_supply/battery/charger.0/stop_charge
on early-init
mkdir /dev/input 0755 root root
on early-init
start insmod-sh
service insmod-sh /vendor/bin/init.insmod.sh /vendor/lib/modules/init.insmod.cfg ${ro.bootmode}
class main
user root
group root system
disabled
oneshot
on post-fs-data
mkdir /data/vendor/focaltech 0760 system system
restorecon /data/vendor/focaltech
mkdir /data/vendor/cdfinger 0760 system system
restorecon /data/vendor/cdfinger
#service fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service
# "class hal" causes a race condition on some devices due to files created
# in /data. As a workaround, postpone startup until later in boot once
# /data is mounted.
# class late_start
# user system
# group system input
|