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

Commit 8f75adc6 authored by Tucker Sylvestro's avatar Tucker Sylvestro Committed by android-build-merger
Browse files

Add the onDeviceOffBody API method to KeyStore

am: b32aae2a

Change-Id: Idbf7f1d505b1d446a3d648dcf1b0f334a629110a
parents 67c1ee6e b32aae2a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -76,4 +76,5 @@ interface IKeystoreService {
    int onUserAdded(int userId, int parentId);
    int onUserRemoved(int userId);
    int attestKey(String alias, in KeymasterArguments params, out KeymasterCertificateChain chain);
    int onDeviceOffBody();
}
+10 −0
Original line number Diff line number Diff line
@@ -626,6 +626,16 @@ public class KeyStore {
        }
    }

    /**
     * Notify keystore that the device went off-body.
     */
    public void onDeviceOffBody() {
        try {
            mBinder.onDeviceOffBody();
        } catch (RemoteException e) {
            Log.w(TAG, "Cannot connect to keystore", e);
        }
    }

    /**
     * Returns a {@link KeyStoreException} corresponding to the provided keystore/keymaster error