Merge "Update default guest restrictions" into qt-dev
diff --git a/tests/carservice_unit_test/src/android/car/userlib/CarUserManagerHelperTest.java b/tests/carservice_unit_test/src/android/car/userlib/CarUserManagerHelperTest.java
index 288331c..993979a 100644
--- a/tests/carservice_unit_test/src/android/car/userlib/CarUserManagerHelperTest.java
+++ b/tests/carservice_unit_test/src/android/car/userlib/CarUserManagerHelperTest.java
@@ -665,7 +665,7 @@
 
     @Test
     public void testDefaultGuestRestrictions() {
-        int guestRestrictionsExpectedCount = 8;
+        int guestRestrictionsExpectedCount = 6;
 
         ArgumentCaptor<Bundle> bundleCaptor = ArgumentCaptor.forClass(Bundle.class);
         mCarUserManagerHelper.initDefaultGuestRestrictions();
@@ -677,8 +677,6 @@
         assertThat(guestRestrictions.getBoolean(UserManager.DISALLOW_FACTORY_RESET)).isTrue();
         assertThat(guestRestrictions.getBoolean(UserManager.DISALLOW_REMOVE_USER)).isTrue();
         assertThat(guestRestrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS)).isTrue();
-        assertThat(guestRestrictions.getBoolean(UserManager.DISALLOW_OUTGOING_CALLS)).isTrue();
-        assertThat(guestRestrictions.getBoolean(UserManager.DISALLOW_SMS)).isTrue();
         assertThat(guestRestrictions.getBoolean(UserManager.DISALLOW_INSTALL_APPS)).isTrue();
         assertThat(guestRestrictions.getBoolean(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES))
             .isTrue();
diff --git a/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java b/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java
index c86b091..cfd50cd 100644
--- a/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java
+++ b/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java
@@ -73,7 +73,8 @@
     );
 
     /**
-     * Additional optional set of restrictions for Non-Admin users.
+     * Additional optional set of restrictions for Non-Admin users. These are the restrictions
+     * configurable via Settings.
      */
     public static final Set<String> OPTIONAL_NON_ADMIN_RESTRICTIONS = Sets.newArraySet(
             UserManager.DISALLOW_ADD_USER,
@@ -90,8 +91,6 @@
             UserManager.DISALLOW_FACTORY_RESET,
             UserManager.DISALLOW_REMOVE_USER,
             UserManager.DISALLOW_MODIFY_ACCOUNTS,
-            UserManager.DISALLOW_OUTGOING_CALLS,
-            UserManager.DISALLOW_SMS,
             UserManager.DISALLOW_INSTALL_APPS,
             UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES,
             UserManager.DISALLOW_UNINSTALL_APPS