Add device tangorpro

based on two sources:
1. 52e030ecef8a2debcd0a7cebb0b2cddc50e8e4e6
(ChangeId: Ieba6a75fe45595592c61dc5ad4e0c723adccaf35)
2. 3164f3d31b1197f305d968027f2e6f18663f1382
(ChangeId: Ic517f1cd5462f3653de3742834ec251362e7849d)

No-Typo-Check: based on above commit

Bug: 220073297
Change-Id: I244f73dc8485045e1bc4605a2701a1e4d32139b0
This commit is contained in:
Roger Liao 2022-03-08 12:03:21 +08:00
parent 4ae33650d8
commit dd5f546264
69 changed files with 149136 additions and 0 deletions

View file

@ -0,0 +1,9 @@
import /init.recovery.${ro.board.platform}.rc
# DELETE ME USB BRINGUP b/188672439. Delete the following two lines after
# USB is brought up completely.
on property:sys.usb.state=fastboot
write /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess 1
on property:sys.usb.state=adb
write /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess 1

43
conf/init.tangorpro.rc Normal file
View file

@ -0,0 +1,43 @@
# Tangorpro 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_tangorpro-userdebug, add vendor/bin/factory to default path
on init && property:ro.build.flavor=factory_tangorpro-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_tangorpro
service insmod_sh_tangorpro /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.tangorpro.cfg
class main
user root
group root system
disabled
oneshot
on boot && property:ro.build.flavor=factory_tangorpro-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
# Wifi
on property:sys.boot_completed=1
write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1