Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7eb5e64 authored by Jack Yu's avatar Jack Yu
Browse files

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
parent f7a480d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+2 −2
Original line number Diff line number Diff line
@@ -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);

}