Robin Peng | 334022f | 2021-05-05 12:01:32 +0800 | [diff] [blame] | 1 | # Raven/Oriole specific init.rc |
| 2 | |
Robin Peng | 7cc6cca | 2021-05-06 20:09:29 +0800 | [diff] [blame^] | 3 | on init && property:ro.vendor.factory=1 |
Robin Peng | 334022f | 2021-05-05 12:01:32 +0800 | [diff] [blame] | 4 | import /vendor/etc/init/hw/init.factory.rc |
| 5 | |
| 6 | on early-boot |
| 7 | # Wait for insmod_sh to finish all common modules |
| 8 | wait_for_prop vendor.common.modules.ready 1 |
| 9 | start insmod_sh_raviole |
| 10 | |
| 11 | service insmod_sh_raviole /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.${ro.hardware}.cfg |
| 12 | class main |
| 13 | user root |
| 14 | group root system |
| 15 | disabled |
| 16 | oneshot |
| 17 | |
| 18 | on fs |
| 19 | # Fingerprint |
| 20 | chown system system /dev/goodix_fp |
| 21 | exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g6.app |
| 22 | |
| 23 | # LHBM |
| 24 | # FIXME(b/183223359): Only grant write access to SystemUI. |
| 25 | chmod 0666 /sys/class/drm/card0/card0-DSI-1/panel/backlight/panel0-backlight/local_hbm_mode |
| 26 | |
| 27 | # Start the twoshay touch service |
| 28 | start twoshay |
| 29 | |
| 30 | on property:ro.revision=PROTO1.0 |
| 31 | setprop persist.fingerprint.ghbm true |