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

Commit 308cafe8 authored by Kholoud Mohamed's avatar Kholoud Mohamed
Browse files

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
parent 76b105c2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();
+1 −0
Original line number Diff line number Diff line
@@ -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();