Cts fail cause by Setting config_disable_all_allmessages true
Follow the <Android S GMS Requirements-Mainline Updates> document,
setting "config_disable_all_all_messages" to true on the tablet to
disable the cell broadcast function will cause Disallow config
cell broadcasts test fail under com.android.cts.ver
.DeviceOwnerPositiveTestActivity.java#POLICY_TRANSPARENCY
bug: 208179476
test: android-cts-verifier-12_r1-linux_x86-arm
Change-Id: I4947399cb95fcfecec42ca3497418d28150166d1
Merged-In: I4947399cb95fcfecec42ca3497418d28150166d1
(cherry picked from commit 7a4058526ac51914485a475de415f126de0637b6)
diff --git a/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/UserRestrictions.java b/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/UserRestrictions.java
index 26cfe57..f027c9a 100644
--- a/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/UserRestrictions.java
+++ b/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/UserRestrictions.java
@@ -290,6 +290,10 @@
return (hasSettingsActivity(context, Settings.ACTION_DISPLAY_SETTINGS)
&& !pm.hasSystemFeature(PackageManager.FEATURE_WATCH));
case UserManager.DISALLOW_CONFIG_CELL_BROADCASTS:
+ if (context.getResources().getBoolean(context.getResources()
+ .getIdentifier("config_disable_all_cb_messages", "bool", "android"))) {
+ return false;
+ }
final TelephonyManager tm =
context.getSystemService(TelephonyManager.class);
if (!tm.isSmsCapable()) {