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

Commit c928e9fa authored by Greg Plesur's avatar Greg Plesur Committed by android-build-merger
Browse files

Don't check device_provisioned on Wear devices in...

Don't check device_provisioned on Wear devices in setDeviceOwnerSystemPropertyLocked() am: c7b18342 am: b6323817
am: f206de95

Change-Id: Ic1f2bd765ecc3eb7239923147a93fc4afa6eb70c
parents 7a563663 f206de95
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1887,7 +1887,10 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {

    private void setDeviceOwnerSystemPropertyLocked() {
        // Device owner may still be provisioned, do not set the read-only system property yet.
        if (mInjector.settingsGlobalGetInt(Settings.Global.DEVICE_PROVISIONED, 0) == 0) {
        // Wear devices don't set device_provisioned until the device is paired, so allow
        // device_owner property to be set without that.
        if (!mIsWatch
                && mInjector.settingsGlobalGetInt(Settings.Global.DEVICE_PROVISIONED, 0) == 0) {
            return;
        }
        // Still at the first stage of CryptKeeper double bounce, mOwners.hasDeviceOwner is