Make “Reset app preferences” restricted by DISALLOW_APPS_CONTROL
When DISALLOW_APPS_CONTROL restriction is enabled, users should not be able to enable/disable apps, clear app caches and clear app data. “System >Reset options > Reset app preferences” can take the above actions which should be restricted by DISALLOW_APPS_CONTROL to fix the security vulnerability. Bug: 278559731 Test: Verify change by turning on/off DISALLOW_APPS_CONTROL with TestDPC. Change-Id: I387a95aa7f54fe04d5ed92372e43a88d5fe3e79a
This commit is contained in:
@@ -38,9 +38,10 @@
|
||||
settings:controller="com.android.settings.network.BluetoothWiFiResetPreferenceController" />
|
||||
|
||||
<!-- Reset app preferences -->
|
||||
<Preference
|
||||
<com.android.settingslib.RestrictedPreference
|
||||
android:key="reset_app_prefs"
|
||||
android:title="@string/reset_app_preferences" />
|
||||
android:title="@string/reset_app_preferences"
|
||||
settings:userRestriction="no_control_apps" />
|
||||
|
||||
<!-- Erase Euicc data -->
|
||||
<Preference
|
||||
|
Reference in New Issue
Block a user