diff options
| author | 2023-05-10 11:08:14 +0100 | |
|---|---|---|
| committer | 2023-05-12 11:33:56 +0000 | |
| commit | a63a2f3e63a5bb53e56db2a98f7b1774ecb37a4c (patch) | |
| tree | 4e6184ed6b6dc548b29cb3560672150f072caafb | |
| parent | 613c8f4eb5cda99681c6bc6303603ece9b4131e7 (diff) | |
Remove flag, switch to work profile for sms dialog
Bug: 279558295
Test: atest android.devicepolicy.cts.telephony.WorkProfileTelephonyTest
Change-Id: Ie2e5c6b732909259d96b6c8dbe639e51a3406d02
| -rw-r--r-- | telephony/common/com/android/internal/telephony/util/TelephonyUtils.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/telephony/common/com/android/internal/telephony/util/TelephonyUtils.java b/telephony/common/com/android/internal/telephony/util/TelephonyUtils.java index f9b76f4907cf..9a8c9655375d 100644 --- a/telephony/common/com/android/internal/telephony/util/TelephonyUtils.java +++ b/telephony/common/com/android/internal/telephony/util/TelephonyUtils.java @@ -32,7 +32,6 @@ import android.os.RemoteException; import android.os.SystemProperties; import android.os.UserHandle; import android.os.UserManager; -import android.provider.DeviceConfig; import android.telephony.SubscriptionManager; import android.telephony.TelephonyFrameworkInitializer; import android.telephony.TelephonyManager; @@ -262,9 +261,6 @@ public final class TelephonyUtils { */ public static void showSwitchToManagedProfileDialogIfAppropriate(Context context, int subId, int callingUid, String callingPackage) { - if (!isSwitchToManagedProfileDialogFlagEnabled()) { - return; - } final long token = Binder.clearCallingIdentity(); try { UserHandle callingUserHandle = UserHandle.getUserHandleForUid(callingUid); @@ -302,11 +298,6 @@ public final class TelephonyUtils { } } - public static boolean isSwitchToManagedProfileDialogFlagEnabled() { - return DeviceConfig.getBoolean(DeviceConfig.NAMESPACE_DEVICE_POLICY_MANAGER, - "enable_switch_to_managed_profile_dialog", false); - } - private static boolean isUidForeground(Context context, int uid) { ActivityManager am = context.getSystemService(ActivityManager.class); boolean result = am != null && am.getUidImportance(uid) |