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

Commit c050494b authored by Sanal Buvaev's avatar Sanal Buvaev Committed by Gerrit Code Review
Browse files

Merge "Set ObserverInternal mitigation to zero when it's not present" into main

parents 7e855b12 5834c7cf
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1396,7 +1396,14 @@ public class PackageWatchdog {
            int innerDepth = parser.getDepth();
            try {
                if (Flags.recoverabilityDetection()) {
                    observerMitigationCount = parser.getAttributeInt(null, ATTR_MITIGATION_COUNT);
                    try {
                        observerMitigationCount =
                                parser.getAttributeInt(null, ATTR_MITIGATION_COUNT);
                    } catch (XmlPullParserException e) {
                        Slog.i(
                            TAG,
                            "ObserverInternal mitigation count was not present.");
                    }
                }
                while (XmlUtils.nextElementWithin(parser, innerDepth)) {
                    if (TAG_PACKAGE.equals(parser.getName())) {