1# Blueport specific init.rc
2
3# When ro.vendor.factory=1, add vendor/bin/factory to default path
4on init && property:ro.vendor.factory=1
5    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
6    import /vendor/etc/init/hw/init.factory.rc
7
8on init
9    # register/nvmem dump
10    chown system system /sys/bus/nvmem/devices/8-00500/nvmem
11    # NFC streset tool name
12    setprop persist.vendor.nfc.streset libstreset21
13    setprop persist.vendor.se.streset libstreset21
14
15on early-boot
16    # Wait for insmod_sh to finish all common modules
17    wait_for_prop vendor.common.modules.ready 1
18    start insmod_sh_blueport
19
20service insmod_sh_blueport /vendor/bin/insmod.sh /vendor/etc/init.insmod.${ro.hardware}.cfg
21    class main
22    user root
23    group root system
24    disabled
25    oneshot
26
27on boot && property:ro.vendor.factory=1
28    # FTM log folder
29    mkdir /data/ftmlog 0775 system system
30
31    # Audio test folder
32    mkdir /data/AudioTest 0775 system system
33