Skip to content

Commit

Permalink
Enable eSE2 and ctsmode settings
Browse files Browse the repository at this point in the history
turn on st33spi when persist.vendor.se.ese2.mode is set to ctsmode

Bug: 193417907
Test: VtsHalSecureElementV1_2TargetTest,
      VtsHalSecureElementV1_1TargetTest,
      VtsHalSecureElementV1_0TargetTest,
      CtsOmapiTestCases
Change-Id: I38d9d4c44bb5fd59e2f709b3046f74c1b2483eea
  • Loading branch information
George Chang committed Sep 30, 2021
1 parent 4f3a268 commit c84c460
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions conf/init.raviole.rc
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ on post-fs-data

on property:ro.revision=PROTO1.0
setprop persist.fingerprint.ghbm true

# SecureElement eSE2 cts mode
on property:persist.vendor.se.ese2.mode=ctsmode
write /sys/class/st33spi/st33spi/st33spi_state 33
6 changes: 4 additions & 2 deletions device-oriole.mk
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ PRODUCT_PACKAGES += \

# SecureElement
PRODUCT_PACKAGES += \
[email protected]
[email protected] \
[email protected]

PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf

DEVICE_MANIFEST_FILE += \
device/google/raviole/nfc/manifest_nfc.xml \
Expand Down
7 changes: 5 additions & 2 deletions device-raven.mk
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,20 @@ PRODUCT_PACKAGES += \

# SecureElement
PRODUCT_PACKAGES += \
[email protected]
[email protected] \
[email protected]

PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf

DEVICE_MANIFEST_FILE += \
device/google/raviole/nfc/manifest_nfc.xml \
device/google/raviole/nfc/manifest_se.xml


# Vibrator HAL
PRODUCT_PRODUCT_PROPERTIES +=\
ro.vendor.vibrator.hal.long.frequency.shift=15
Expand Down
1 change: 1 addition & 0 deletions nfc/manifest_se.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
<name>android.hardware.secure_element</name>
<transport>hwbinder</transport>
<fqname>@1.2::ISecureElement/eSE1</fqname>
<fqname>@1.2::ISecureElement/eSE2</fqname>
</hal>
</manifest>

0 comments on commit c84c460

Please sign in to comment.