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

Commit 572612e1 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

Revert "Optional provisioning"

This reverts commit a9f4ccea6d0463345206a4306fdae9376932eb79.
parent f95e0695
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ import static android.os.BatteryManager.BATTERY_STATUS_FULL;
import static android.os.BatteryManager.BATTERY_STATUS_UNKNOWN;
import android.os.Handler;
import android.os.Message;
import android.os.SystemProperties;
import android.provider.Settings;
import android.provider.Telephony;
import static android.provider.Telephony.Intents.EXTRA_PLMN;
@@ -161,12 +160,8 @@ public class KeyguardUpdateMonitor {
            }
        };

        if (!SystemProperties.getBoolean("ro.requires_provisioning", false)) {
            mDeviceProvisioned = true;
        } else {
        mDeviceProvisioned = Settings.Secure.getInt(
                mContext.getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 0) != 0;
        }
     
        // Since device can't be un-provisioned, we only need to register a content observer
        // to update mDeviceProvisioned when we are...
+0 −3
Original line number Diff line number Diff line
@@ -350,9 +350,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    }

    boolean isDeviceProvisioned() {
        if (!SystemProperties.getBoolean("ro.requires_provisioning", false)) {
            return true;
        }
        return Settings.Secure.getInt(
                mContext.getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 0) != 0;
    }