Remove wrapper for device policy manager
Bug: 76167422 Test: robotests Change-Id: I69dc7341cf1ff408bc24c2a062586cef25b7b918
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.settings.wifi;
|
||||
|
||||
import android.app.admin.DevicePolicyManager;
|
||||
import android.content.ComponentName;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
@@ -25,7 +26,6 @@ import android.net.wifi.WifiConfiguration;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.android.settings.wrapper.DevicePolicyManagerWrapper;
|
||||
import com.android.settingslib.wrapper.PackageManagerWrapper;
|
||||
|
||||
public class WifiUtils {
|
||||
@@ -69,7 +69,8 @@ public class WifiUtils {
|
||||
return false;
|
||||
}
|
||||
|
||||
final DevicePolicyManagerWrapper dpm = DevicePolicyManagerWrapper.from(context);
|
||||
final DevicePolicyManager dpm =
|
||||
(DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
|
||||
final PackageManagerWrapper pm = new PackageManagerWrapper(context.getPackageManager());
|
||||
|
||||
// Check if device has DPM capability. If it has and dpm is still null, then we
|
||||
|
Reference in New Issue
Block a user