From ffc1fc5c5b4f46692559ece010029760409f7606 Mon Sep 17 00:00:00 2001 From: George Chang Date: Wed, 20 Jul 2022 15:21:04 +0800 Subject: [PATCH] Enable eSE2 and ctsmode settings turn on st33spi when persist.vendor.se.ese2.mode is set to ctsmode Bug: 239657021 Bug: 239655807 Test: VtsHalSecureElementV1_2TargetTest, VtsHalSecureElementV1_1TargetTest, VtsHalSecureElementV1_0TargetTest, CtsOmapiTestCases Change-Id: Ifd96d96068f49d85879efdd3d11a7067f71ee907 --- conf/init.lynx.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/init.lynx.rc b/conf/init.lynx.rc index ddb8eb2..ae113fd 100644 --- a/conf/init.lynx.rc +++ b/conf/init.lynx.rc @@ -42,6 +42,10 @@ on post-fs-data chown system system /dev/goodix_fp exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g7.app +# SecureElement eSE2 cts mode +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