Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc297b9f authored by Yanting Yang's avatar Yanting Yang
Browse files

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
parent f6eab0c9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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