Enable read/write access to st33spi_state for euiccpixel_app

Bug: 231522746
Test: Confirm F10 can read/write st33spi_state
Change-Id: I5fe60a3d5eca6c8af443f66e46c97bfeb4bbc742
This commit is contained in:
Lily Lin 2022-06-13 20:11:47 +08:00
parent 6e4792cd43
commit 8b93bbadd7

View file

@ -107,6 +107,11 @@ on init && property:ro.bootmode=factory
on property:persist.vendor.se.ese2.mode=ctsmode on property:persist.vendor.se.ese2.mode=ctsmode
write /sys/class/st33spi/st33spi/st33spi_state 33 write /sys/class/st33spi/st33spi/st33spi_state 33
# Allow secure_element group to read / write ST33 SPI state
on post-fs-data
chown secure_element secure_element /sys/class/st33spi/st33spi/st33spi_state
chmod 0660 /sys/class/st33spi/st33spi/st33spi_state
# charger driver exposes now finer grain control, map demo mode to those properties # charger driver exposes now finer grain control, map demo mode to those properties
# NOTE: demo mode can only be exit wiping data (which reset the persist properties) # NOTE: demo mode can only be exit wiping data (which reset the persist properties)
on property:sys.retaildemo.enabled=1 on property:sys.retaildemo.enabled=1