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

Commit 6b3a2449 authored by Sanal Buvaev's avatar Sanal Buvaev
Browse files

Disabling RescueParty flag resets

Test: m
Bug: 310236690

Merged-In: I84bd4c421dd1ca3a0f63a2d86f740a49209212be
Change-Id: I2e93dc66f2a83f2c3fa647c27c510045f4a06bc3
parent 1a57ec33
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -382,6 +382,14 @@ public class RescueParty {

    private static void executeRescueLevelInternal(Context context, int level, @Nullable
            String failedPackage) throws Exception {

        if (level <= LEVEL_RESET_SETTINGS_TRUSTED_DEFAULTS) {
            // Disabling flag resets on master branch for trunk stable launch.
            // TODO(b/287618292): Re-enable them after the trunk stable is launched and we
            // figured out a way to reset flags without interfering with trunk development.
            return;
        }

        FrameworkStatsLog.write(FrameworkStatsLog.RESCUE_PARTY_RESET_REPORTED, level);
        // Try our best to reset all settings possible, and once finished
        // rethrow any exception that we encountered