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

Commit b2ae4b3a authored by Irem Uguz's avatar Irem Uguz Committed by Android (Google) Code Review
Browse files

Merge "Revert "Add flag checks for DPM API calls"" into main

parents 0aea9808 26c97275
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -24,10 +24,6 @@ android_library {
    srcs: ["src/**/*.java"],
    resource_dirs: ["res"],

    static_libs: [
        "device_policy_aconfig_flags_java_export",
    ],

    libs: [
        "androidx.annotation_annotation",
    ],
+2 −5
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.settingslib;

import android.app.admin.DevicePolicyManager;
import android.app.admin.EnforcingAdmin;
import android.app.admin.flags.Flags;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
@@ -129,10 +128,8 @@ public class RestrictedLockUtils {
        if (admin != null) {
            // Although EXTRA_ENFORCING_ADMIN contains all info from other extras, we keep them
            // to provide backward compatibility.
            if (Flags.enforcingAdminExtraEnabled()) {
            intent.putExtra(DevicePolicyManager.EXTRA_ENFORCING_ADMIN, admin);
            }
            if (Flags.enforcingAdminGetComponentNameEnabled() && admin.getComponentName() != null) {
            if (admin.getComponentName() != null) {
                intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, admin.getComponentName());
            }
            intent.putExtra(Intent.EXTRA_USER, admin.getUserHandle());