1# Whitefin specific init.rc
2import /vendor/etc/init/hw/init.gs101.rc
3
4on init
5    # NFC streset tool name
6    setprop persist.vendor.nfc.streset libstreset21
7    setprop persist.vendor.se.streset libstreset21
8
9on init && property:ro.build.flavor=factory_whitefin-userdebug
10    import /vendor/etc/init/hw/init.factory.rc
11
12on early-boot
13    # Wait for insmod_sh to finish all common modules
14    wait_for_prop vendor.common.modules.ready 1
15    start insmod_sh_whitefin
16
17service insmod_sh_whitefin /vendor/bin/insmod.sh /vendor/etc/init.insmod.whitefin.cfg
18    class main
19    user root
20    group root system
21    disabled
22    oneshot
23
24on fs
25    # Fingerprint
26    chown system system /dev/goodix_fp
27
28# charger driver exposes now finer grain control, map demo mode to those properties
29# NOTE: demo mode can only be exit wiping data (which reset the persist properties)
30on property:sys.retaildemo.enabled=1
31    setprop persist.vendor.charge.stop.level 35
32    setprop persist.vendor.charge.start.level 30
33