|
61 | 61 | import static android.os.UserManager.DISALLOW_WIFI_DIRECT; |
62 | 62 | import static android.os.UserManager.DISALLOW_WIFI_TETHERING; |
63 | 63 | import static android.os.UserManager.ENSURE_VERIFY_APPS; |
| 64 | +import static android.os.UserManager.DISALLOW_CONFIG_DEFAULT_APPS; |
64 | 65 |
|
65 | 66 | // TODO(b/258509336): uncomment and remove the placeholder static string once |
66 | 67 | // an SDK drops in google3 that contains the new user restriction. |
@@ -152,6 +153,7 @@ public UserRestriction(String key, int titleResId) { |
152 | 153 | new UserRestriction(DISALLOW_WIFI_DIRECT, R.string.disallow_wifi_direct), |
153 | 154 | new UserRestriction(DISALLOW_ADD_WIFI_CONFIG, R.string.disallow_add_wifi_config), |
154 | 155 | new UserRestriction(DISALLOW_CELLULAR_2G, R.string.disallow_cellular_2g), |
| 156 | + new UserRestriction(DISALLOW_CONFIG_DEFAULT_APPS, R.string.disallow_config_default_apps), |
155 | 157 | }; |
156 | 158 |
|
157 | 159 | /** |
@@ -186,6 +188,7 @@ public UserRestriction(String key, int titleResId) { |
186 | 188 | new UserRestriction(DISALLOW_WIFI_DIRECT, R.string.disallow_wifi_direct), |
187 | 189 | new UserRestriction(DISALLOW_ADD_WIFI_CONFIG, R.string.disallow_add_wifi_config), |
188 | 190 | new UserRestriction(DISALLOW_CELLULAR_2G, R.string.disallow_cellular_2g), |
| 191 | + new UserRestriction(DISALLOW_CONFIG_DEFAULT_APPS, R.string.disallow_config_default_apps), |
189 | 192 | }; |
190 | 193 |
|
191 | 194 | /** Setting these user restrictions only have effect on primary users. */ |
@@ -292,6 +295,6 @@ public UserRestriction(String key, int titleResId) { |
292 | 295 | }; |
293 | 296 |
|
294 | 297 | public static String[] UDC_PLUS_RESTRICTIONS = { |
295 | | - DISALLOW_CELLULAR_2G, |
| 298 | + DISALLOW_CELLULAR_2G, DISALLOW_CONFIG_DEFAULT_APPS, |
296 | 299 | }; |
297 | 300 | } |
0 commit comments