summaryrefslogtreecommitdiffstats
path: root/gatekeeperd/IGateKeeperService.cpp
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2017-04-12 13:03:04 -0700
committerAdrian Roos <roosa@google.com>2017-04-18 20:50:52 +0000
commitcb4ed1bdb917cf608ce51aba882be9766e5a4b9c (patch)
tree80b85285ded97ddd10609f1f9dffbbc5e888fc43 /gatekeeperd/IGateKeeperService.cpp
parent7afd4cdf82018716c9696832afa86e76a82bc1ad (diff)
downloadsystem_core-cb4ed1bdb917cf608ce51aba882be9766e5a4b9c.tar.gz
system_core-cb4ed1bdb917cf608ce51aba882be9766e5a4b9c.tar.bz2
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.cpp')
-rw-r--r--gatekeeperd/IGateKeeperService.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gatekeeperd/IGateKeeperService.cpp b/gatekeeperd/IGateKeeperService.cpp
index 95fbfd10b..1c339f4c8 100644
--- a/gatekeeperd/IGateKeeperService.cpp
+++ b/gatekeeperd/IGateKeeperService.cpp
@@ -158,6 +158,12 @@ status_t BnGateKeeperService::onTransact(
reply->writeNoException();
return NO_ERROR;
}
+ case REPORT_DEVICE_SETUP_COMPLETE: {
+ CHECK_INTERFACE(IGateKeeperService, data, reply);
+ reportDeviceSetupComplete();
+ reply->writeNoException();
+ return NO_ERROR;
+ }
default:
return BBinder::onTransact(code, data, reply, flags);
}