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

Commit b9d23ae9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "NFC-EXTRA: isSecureElementEnabled for NFC"

parents b274a612 bce1e820
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;
        }
    }
}