From a7eb5e649c2e532cb0b7ac90ee039a356b02e02d Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Tue, 28 Sep 2021 20:01:17 +0800 Subject: [PATCH] Fix work profile applications do not receive event transaction data Extend the API to be able to check NFC event permission based on userId. Update API naming. Bug: 192994529 Bug: 201235792 Test: manually with CtsVerifier Change-Id: I5dbf3af6f10063f47cf570ba3148d0ef9eb7a4e1 --- .../current/android/se/omapi/ISecureElementService.aidl | 2 +- omapi/aidl/android/se/omapi/ISecureElementService.aidl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/omapi/aidl/aidl_api/android.se.omapi/current/android/se/omapi/ISecureElementService.aidl b/omapi/aidl/aidl_api/android.se.omapi/current/android/se/omapi/ISecureElementService.aidl index ae6346278691..0c8e431d18a1 100644 --- a/omapi/aidl/aidl_api/android.se.omapi/current/android/se/omapi/ISecureElementService.aidl +++ b/omapi/aidl/aidl_api/android.se.omapi/current/android/se/omapi/ISecureElementService.aidl @@ -41,5 +41,5 @@ package android.se.omapi; interface ISecureElementService { String[] getReaders(); android.se.omapi.ISecureElementReader getReader(in String reader); - boolean[] isNFCEventAllowed(in String reader, in byte[] aid, in String[] packageNames); + boolean[] isNfcEventAllowed(in String reader, in byte[] aid, in String[] packageNames, in int userId); } diff --git a/omapi/aidl/android/se/omapi/ISecureElementService.aidl b/omapi/aidl/android/se/omapi/ISecureElementService.aidl index 61ae4816de82..13707ec22b5c 100644 --- a/omapi/aidl/android/se/omapi/ISecureElementService.aidl +++ b/omapi/aidl/android/se/omapi/ISecureElementService.aidl @@ -52,7 +52,7 @@ interface ISecureElementService { * Checks if the application defined by the package name is allowed to * receive NFC transaction events for the defined AID. */ - boolean[] isNFCEventAllowed(in String reader, in byte[] aid, - in String[] packageNames); + boolean[] isNfcEventAllowed(in String reader, in byte[] aid, + in String[] packageNames, in int userId); }