Expose forceUpdateUserSetupComplete as a TestAPI

This is needed to allow the new DPM#provisionFullyManagedDevice
API to work from CTS tests.

Bug: 175392542
Test: N/A
Change-Id: I79a18ef97deab1aa36b3f3d68e8f74b72794aab5
This commit is contained in:
Kholoud Mohamed
2020-12-15 16:10:03 +00:00
parent 76b105c20a
commit 308cafe88e
2 changed files with 2 additions and 0 deletions

View File

@@ -371,6 +371,7 @@ package android.app {
package android.app.admin {
public class DevicePolicyManager {
method public void forceUpdateUserSetupComplete();
method public long getLastBugReportRequestTime();
method public long getLastNetworkLogRetrievalTime();
method public long getLastSecurityLogRetrievalTime();

View File

@@ -11134,6 +11134,7 @@ public class DevicePolicyManager {
* {@code android.Manifest.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS} or the caller is
* not {@link UserHandle#SYSTEM_USER}
*/
@TestApi
public void forceUpdateUserSetupComplete() {
try {
mService.forceUpdateUserSetupComplete();