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

Commit bce1e820 authored by Houston Hoffman's avatar Houston Hoffman
Browse files

NFC-EXTRA: isSecureElementEnabled for NFC

Need ability to check if secure element is enabled.

Change-Id: Iad401b81df0e9490d110dad753c644b7acccf501
parent 4ce17650
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,4 +30,5 @@ interface INfcAdapterExtras {
    void setCardEmulationRoute(in String pkg, int route);
    void authenticate(in String pkg, in byte[] token);
    String getDriverName(in String pkg);
    boolean isSeEnabled(in String pkg, int sEID);
}
+9 −0
Original line number Diff line number Diff line
@@ -251,4 +251,13 @@ public final class NfcAdapterExtras {
            return "";
        }
    }

    public boolean isSeEnabled(int sEID) {
        try {
            return sService.isSeEnabled(mPackageName, sEID);
        } catch (RemoteException e) {
            attemptDeadServiceRecovery(e);
            return false;
        }
    }
}