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

Commit 5834c7cf authored by Sanal Buvaev's avatar Sanal Buvaev
Browse files

Set ObserverInternal mitigation to zero when it's not present

Bug: 337066430
Test: m
Change-Id: I62bff4704f32a5c84bdded6ec2e543a9a34cedcf
parent c9615168
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())) {