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
This commit is contained in:
Jack Yu 2021-09-28 20:01:17 +08:00
parent f7a480d824
commit a7eb5e649c
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}