2aa4ba2268
based on panther 0e0ae4dd4045e00dd50826d5c411351d47949d92 No-Typo-Check: based on above commit Bug: 202250383 Change-Id: I7dbcba9fc0644cf8e547c59b14a544701adc484b
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
# Lynx specific init.rc
|
|
import /vendor/etc/init/hw/init.gs201.rc
|
|
|
|
on init
|
|
# NFC streset tool name
|
|
setprop persist.vendor.nfc.streset libstreset21
|
|
setprop persist.vendor.se.streset libstreset21
|
|
|
|
# When ro.build.flavor=factory_lynx-userdebug, add vendor/bin/factory to default path
|
|
on init && property:ro.build.flavor=factory_lynx-userdebug
|
|
export PATH /product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:/vendor/bin/factory
|
|
|
|
on early-boot
|
|
# Wait for insmod_sh to finish all common modules
|
|
wait_for_prop vendor.common.modules.ready 1
|
|
start insmod_sh_lynx
|
|
|
|
service insmod_sh_lynx /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.lynx.cfg
|
|
class main
|
|
user root
|
|
group root system
|
|
disabled
|
|
oneshot
|
|
|
|
on boot && property:ro.build.flavor=factory_lynx-userdebug
|
|
# FTM log folder
|
|
mkdir /data/ftmlog 0775 system system
|
|
|
|
# Audio test folder
|
|
mkdir /data/AudioTest 0775 system system
|
|
|
|
on property:vendor.mfgapi.touchpanel.permission=1
|
|
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
|
chown system system /sys/devices/virtual/sec/tsp/cmd
|
|
|
|
# Fingerprint
|
|
on post-fs-data
|
|
chown system system /dev/goodix_fp
|
|
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g7.app
|