From 8b93bbadd7c173a78518184a109c5b54c1eb2e2f Mon Sep 17 00:00:00 2001 From: Lily Lin Date: Mon, 13 Jun 2022 20:11:47 +0800 Subject: [PATCH] Enable read/write access to st33spi_state for euiccpixel_app Bug: 231522746 Test: Confirm F10 can read/write st33spi_state Change-Id: I5fe60a3d5eca6c8af443f66e46c97bfeb4bbc742 --- conf/init.felix.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/init.felix.rc b/conf/init.felix.rc index 73e41af..f95b6a3 100644 --- a/conf/init.felix.rc +++ b/conf/init.felix.rc @@ -107,6 +107,11 @@ on init && property:ro.bootmode=factory on property:persist.vendor.se.ese2.mode=ctsmode 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 # NOTE: demo mode can only be exit wiping data (which reset the persist properties) on property:sys.retaildemo.enabled=1