1# Cloudripper specific init.rc 2import /vendor/etc/init/hw/init.gs201.rc 3 4on init 5 # NFC streset tool name 6 setprop persist.vendor.nfc.streset libstreset21 7 setprop persist.vendor.se.streset libstreset21 8 9# When ro.build.flavor=factory_ravenclaw-userdebug, add vendor/bin/factory to default path 10on init && property:ro.build.flavor=factory_ravenclaw-userdebug 11 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 12 13on early-boot 14 # Wait for insmod_sh to finish all common modules 15 wait_for_prop vendor.common.modules.ready 1 16 start insmod_sh_ravenclaw 17 18service insmod_sh_ravenclaw /vendor/bin/insmod.sh /vendor/etc/init.insmod.ravenclaw.cfg 19 class main 20 user root 21 group root system 22 disabled 23 oneshot 24 25on boot && property:ro.build.flavor=factory_ravenclaw-userdebug 26 # FTM log folder 27 mkdir /data/ftmlog 0775 system system 28 29 # Audio test folder 30 mkdir /data/AudioTest 0775 system system 31 32on property:vendor.mfgapi.touchpanel.permission=1 33 chmod 0600 /sys/devices/virtual/sec/tsp/cmd 34 chown system system /sys/devices/virtual/sec/tsp/cmd 35 36# Fingerprint 37on post-fs-data 38 chown system system /dev/goodix_fp 39 exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g6.app 40 41# WiFi 42on post-fs-data 43 setprop wifi.direct.interface p2p-dev-wlan0 44 setprop wifi.aware.interface aware_nmi0 45 46