Add hidden KeyProtection API to specify SID

Allows the caller to specify which SID the given key
should be bound to, overriding the default rule of
binding to the current root/fingerprint SID.

This is a prerequsite for introducing synthetic password
based authentication flow.

Test: cts-tradefed run cts -m CtsKeystoreTestCases
Bug: 33126414
Change-Id: Ide03c0f4fd33ecca7a169ea763c3d4d0b173d1dd
This commit is contained in:
Rubin Xu
2017-01-30 23:39:12 +00:00
parent 451911ea3a
commit 59ced28f0f
6 changed files with 80 additions and 15 deletions

View File

@@ -29,6 +29,8 @@ import android.service.gatekeeper.IGateKeeperService;
*/
public abstract class GateKeeper {
public static final long INVALID_SECURE_USER_ID = 0;
private GateKeeper() {}
public static IGateKeeperService getService() {