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

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

Merge "NFC: Support NFC Event Access Control"

parents b9d23ae9 45a8b96d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.nfc;

import android.os.Bundle;
import android.content.Intent;


/**
@@ -31,4 +32,5 @@ interface INfcAdapterExtras {
    void authenticate(in String pkg, in byte[] token);
    String getDriverName(in String pkg);
    boolean isSeEnabled(in String pkg, int sEID);
    void deliverSeIntent(in String pkg, in Intent seIntent);
}
+9 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.content.Context;
import android.nfc.INfcAdapterExtras;
import android.nfc.NfcAdapter;
import android.os.RemoteException;
import android.content.Intent;
import android.util.Log;

/**
@@ -260,4 +261,12 @@ public final class NfcAdapterExtras {
            return false;
        }
    }

    public void deliverSeIntent(Intent seIntent) {
        try {
            sService.deliverSeIntent(mPackageName, seIntent);
        } catch (RemoteException e) {
            attemptDeadServiceRecovery(e);
        }
    }
}