init: Delay trusty app loading until storage is ready

Wait for storageproxy to set the fs_ready property before trying to load
a trusty app. Trusty app loading requires storage and may behave badly
if storage is rebooted while loading the app.

Test: m
Bug: 258018785
Change-Id: Ib64167985c4d5aadf0dd5184c9741e133489f654
This commit is contained in:
Stephen Crane 2022-12-01 00:46:26 +00:00
parent 6b89898295
commit 0ca6773d8f

View file

@ -82,13 +82,13 @@ on post-fs-data
chown system system /sys/devices/platform/odm/odm:fp_fpc1020/irq
chown system system /sys/devices/platform/odm/odm:fp_fpc1020/wakeup_enable
on fs
on property:ro.vendor.trusty.storage.fs_ready=1
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/1540.app
# Permissions for hwcomposer
chown system system /sys/class/backlight/panel0-backlight/cabc_mode
# Castauth
on post-fs-data
on property:ro.vendor.trusty.storage.fs_ready=1
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/cast_auth.app
# Wifi