|
73 | 73 | import static android.os.UserManager.DISALLOW_SHARING_ADMIN_CONFIGURED_WIFI; |
74 | 74 | import static android.os.UserManager.DISALLOW_SMS; |
75 | 75 | import static android.os.UserManager.DISALLOW_SYSTEM_ERROR_DIALOGS; |
| 76 | +import static android.os.UserManager.DISALLOW_ULTRA_WIDEBAND_RADIO; |
76 | 77 | import static android.os.UserManager.DISALLOW_UNIFIED_PASSWORD; |
77 | 78 | import static android.os.UserManager.DISALLOW_UNINSTALL_APPS; |
78 | 79 | import static android.os.UserManager.DISALLOW_UNMUTE_MICROPHONE; |
@@ -215,6 +216,7 @@ public UserRestriction(String key, int titleResId, String permission) { |
215 | 216 | new UserRestriction(DISALLOW_CONFIG_DEFAULT_APPS, R.string.disallow_config_default_apps), |
216 | 217 | new UserRestriction( |
217 | 218 | 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), |
218 | 220 | }; |
219 | 221 |
|
220 | 222 | /** |
@@ -250,6 +252,7 @@ public UserRestriction(String key, int titleResId, String permission) { |
250 | 252 | DISALLOW_ADD_WIFI_CONFIG, |
251 | 253 | DISALLOW_CELLULAR_2G, |
252 | 254 | DISALLOW_CONFIG_DEFAULT_APPS, |
| 255 | + DISALLOW_ULTRA_WIDEBAND_RADIO, |
253 | 256 | }; |
254 | 257 |
|
255 | 258 | /** Setting these user restrictions only have effect on primary users. */ |
@@ -278,6 +281,7 @@ public UserRestriction(String key, int titleResId, String permission) { |
278 | 281 | DISALLOW_USB_FILE_TRANSFER, |
279 | 282 | DISALLOW_AIRPLANE_MODE, |
280 | 283 | DISALLOW_CONFIG_PRIVATE_DNS, |
| 284 | + DISALLOW_ULTRA_WIDEBAND_RADIO, |
281 | 285 | }; |
282 | 286 |
|
283 | 287 | /** 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) { |
357 | 361 | }; |
358 | 362 |
|
359 | 363 | 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, |
361 | 365 | }; |
362 | 366 |
|
363 | 367 | public static UserRestriction getRestriction(String restrictionKey) { |
|
0 commit comments