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
This commit is contained in:
George Chang 2022-07-20 15:21:04 +08:00
parent bedc610607
commit ffc1fc5c5b

View file

@ -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