Skip to content

Commit 62a9f6e

Browse files
jscott1989pfmaggi
authored andcommitted
No public description
PiperOrigin-RevId: 616078108
1 parent af909d5 commit 62a9f6e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/com/afwsamples/testdpc/policy/UserRestriction.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
import static android.os.UserManager.DISALLOW_SHARING_ADMIN_CONFIGURED_WIFI;
7474
import static android.os.UserManager.DISALLOW_SMS;
7575
import static android.os.UserManager.DISALLOW_SYSTEM_ERROR_DIALOGS;
76+
import static android.os.UserManager.DISALLOW_ULTRA_WIDEBAND_RADIO;
7677
import static android.os.UserManager.DISALLOW_UNIFIED_PASSWORD;
7778
import static android.os.UserManager.DISALLOW_UNINSTALL_APPS;
7879
import static android.os.UserManager.DISALLOW_UNMUTE_MICROPHONE;
@@ -215,6 +216,7 @@ public UserRestriction(String key, int titleResId, String permission) {
215216
new UserRestriction(DISALLOW_CONFIG_DEFAULT_APPS, R.string.disallow_config_default_apps),
216217
new UserRestriction(
217218
DISALLOW_CONFIG_LOCALE, R.string.disallow_config_locale, MANAGE_DEVICE_POLICY_LOCALE),
219+
new UserRestriction(DISALLOW_ULTRA_WIDEBAND_RADIO, R.string.disallow_ultra_wideband_radio),
218220
};
219221

220222
/**
@@ -250,6 +252,7 @@ public UserRestriction(String key, int titleResId, String permission) {
250252
DISALLOW_ADD_WIFI_CONFIG,
251253
DISALLOW_CELLULAR_2G,
252254
DISALLOW_CONFIG_DEFAULT_APPS,
255+
DISALLOW_ULTRA_WIDEBAND_RADIO,
253256
};
254257

255258
/** Setting these user restrictions only have effect on primary users. */
@@ -278,6 +281,7 @@ public UserRestriction(String key, int titleResId, String permission) {
278281
DISALLOW_USB_FILE_TRANSFER,
279282
DISALLOW_AIRPLANE_MODE,
280283
DISALLOW_CONFIG_PRIVATE_DNS,
284+
DISALLOW_ULTRA_WIDEBAND_RADIO,
281285
};
282286

283287
/** 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) {
357361
};
358362

359363
public static String[] UDC_PLUS_RESTRICTIONS = {
360-
DISALLOW_CELLULAR_2G, DISALLOW_CONFIG_DEFAULT_APPS,
364+
DISALLOW_CELLULAR_2G, DISALLOW_CONFIG_DEFAULT_APPS, DISALLOW_ULTRA_WIDEBAND_RADIO,
361365
};
362366

363367
public static UserRestriction getRestriction(String restrictionKey) {

src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@
530530
<string name="disallow_cellular_2g">Disallow Cellular 2G</string>
531531
<string name="disallow_config_default_apps">Disallow config default apps</string>
532532
<string name="disallow_config_locale">Disallow config locale</string>
533+
<string name="disallow_ultra_wideband_radio">Disallow ultra wideband radio</string>
533534
<string name="user_restriction_error_msg">Operation not allowed</string>
534535

535536
<!-- Strings for select app -->

0 commit comments

Comments
 (0)