From 62a9f6e3d99b9b00cebeb4488c71256288df3f9b Mon Sep 17 00:00:00 2001 From: TestDPC Date: Fri, 15 Mar 2024 11:56:13 +0100 Subject: [PATCH] No public description PiperOrigin-RevId: 616078108 --- .../java/com/afwsamples/testdpc/policy/UserRestriction.java | 6 +++++- src/main/res/values/strings.xml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/afwsamples/testdpc/policy/UserRestriction.java b/src/main/java/com/afwsamples/testdpc/policy/UserRestriction.java index b9a36105..45f2b706 100644 --- a/src/main/java/com/afwsamples/testdpc/policy/UserRestriction.java +++ b/src/main/java/com/afwsamples/testdpc/policy/UserRestriction.java @@ -73,6 +73,7 @@ import static android.os.UserManager.DISALLOW_SHARING_ADMIN_CONFIGURED_WIFI; import static android.os.UserManager.DISALLOW_SMS; import static android.os.UserManager.DISALLOW_SYSTEM_ERROR_DIALOGS; +import static android.os.UserManager.DISALLOW_ULTRA_WIDEBAND_RADIO; import static android.os.UserManager.DISALLOW_UNIFIED_PASSWORD; import static android.os.UserManager.DISALLOW_UNINSTALL_APPS; import static android.os.UserManager.DISALLOW_UNMUTE_MICROPHONE; @@ -215,6 +216,7 @@ public UserRestriction(String key, int titleResId, String permission) { new UserRestriction(DISALLOW_CONFIG_DEFAULT_APPS, R.string.disallow_config_default_apps), new UserRestriction( DISALLOW_CONFIG_LOCALE, R.string.disallow_config_locale, MANAGE_DEVICE_POLICY_LOCALE), + new UserRestriction(DISALLOW_ULTRA_WIDEBAND_RADIO, R.string.disallow_ultra_wideband_radio), }; /** @@ -250,6 +252,7 @@ public UserRestriction(String key, int titleResId, String permission) { DISALLOW_ADD_WIFI_CONFIG, DISALLOW_CELLULAR_2G, DISALLOW_CONFIG_DEFAULT_APPS, + DISALLOW_ULTRA_WIDEBAND_RADIO, }; /** Setting these user restrictions only have effect on primary users. */ @@ -278,6 +281,7 @@ public UserRestriction(String key, int titleResId, String permission) { DISALLOW_USB_FILE_TRANSFER, DISALLOW_AIRPLANE_MODE, DISALLOW_CONFIG_PRIVATE_DNS, + DISALLOW_ULTRA_WIDEBAND_RADIO, }; /** User restrictions that cannot be set by profile owners. Applied to all users. */ @@ -357,7 +361,7 @@ public UserRestriction(String key, int titleResId, String permission) { }; public static String[] UDC_PLUS_RESTRICTIONS = { - DISALLOW_CELLULAR_2G, DISALLOW_CONFIG_DEFAULT_APPS, + DISALLOW_CELLULAR_2G, DISALLOW_CONFIG_DEFAULT_APPS, DISALLOW_ULTRA_WIDEBAND_RADIO, }; public static UserRestriction getRestriction(String restrictionKey) { diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 1e7cbf84..7a99e436 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -530,6 +530,7 @@ Disallow Cellular 2G Disallow config default apps Disallow config locale + Disallow ultra wideband radio Operation not allowed