summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Roos2017-04-12 15:03:04 -0500
committerAdrian Roos2017-04-18 15:50:52 -0500
commitcb4ed1bdb917cf608ce51aba882be9766e5a4b9c (patch)
tree80b85285ded97ddd10609f1f9dffbbc5e888fc43 /gatekeeperd/IGateKeeperService.h
parent7afd4cdf82018716c9696832afa86e76a82bc1ad (diff)
downloadplatform-system-core-cb4ed1bdb917cf608ce51aba882be9766e5a4b9c.tar.gz
platform-system-core-cb4ed1bdb917cf608ce51aba882be9766e5a4b9c.tar.xz
platform-system-core-cb4ed1bdb917cf608ce51aba882be9766e5a4b9c.zip
Credential FRP: keep gatekeeperd credentials after reset
Gatekeeperd now delays clearing all user credentials until the device setup is complete or we enroll a new credential (whichever comes first). Bug: 36814845 Test: Set lockscreen credential, "adb reboot-bootloader && fastboot -w", "adb shell am start -a android.app.action.CONFIRM_FRP_CREDENTIAL", verify that credential still works Change-Id: If2ad78ff5b80a6ddffd997be0949b03ed11797f4
Diffstat (limited to 'gatekeeperd/IGateKeeperService.h')
-rw-r--r--gatekeeperd/IGateKeeperService.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gatekeeperd/IGateKeeperService.h b/gatekeeperd/IGateKeeperService.h
index f070486cd..2816efc6a 100644
--- a/gatekeeperd/IGateKeeperService.h
+++ b/gatekeeperd/IGateKeeperService.h
@@ -33,6 +33,7 @@ public:
33 VERIFY_CHALLENGE = IBinder::FIRST_CALL_TRANSACTION + 2, 33 VERIFY_CHALLENGE = IBinder::FIRST_CALL_TRANSACTION + 2,
34 GET_SECURE_USER_ID = IBinder::FIRST_CALL_TRANSACTION + 3, 34 GET_SECURE_USER_ID = IBinder::FIRST_CALL_TRANSACTION + 3,
35 CLEAR_SECURE_USER_ID = IBinder::FIRST_CALL_TRANSACTION + 4, 35 CLEAR_SECURE_USER_ID = IBinder::FIRST_CALL_TRANSACTION + 4,
36 REPORT_DEVICE_SETUP_COMPLETE = IBinder::FIRST_CALL_TRANSACTION + 5,
36 }; 37 };
37 38
38 enum { 39 enum {
@@ -95,6 +96,12 @@ public:
95 * Clears the secure user ID associated with the user. 96 * Clears the secure user ID associated with the user.
96 */ 97 */
97 virtual void clearSecureUserId(uint32_t uid) = 0; 98 virtual void clearSecureUserId(uint32_t uid) = 0;
99
100 /**
101 * Notifies gatekeeper that device setup has been completed and any potentially still existing
102 * state from before a factory reset can be cleaned up (if it has not been already).
103 */
104 virtual void reportDeviceSetupComplete() = 0;
98}; 105};
99 106
100// ---------------------------------------------------------------------------- 107// ----------------------------------------------------------------------------