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

Commit 79bea304 authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am 46c95dfc: am b450505c: am a7a9327b: am 5474f085: am 9fc157a4: Merge...

am 46c95dfc: am b450505c: am a7a9327b: am 5474f085: am 9fc157a4: Merge "FLAG_PRIVILEGED disappears if privileged app is updated and rebooted"

* commit '46c95dfc':
  FLAG_PRIVILEGED disappears if privileged app is updated and rebooted
parents bdf8db08 46c95dfc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3663,6 +3663,12 @@ public class PackageManagerService extends IPackageManager.Stub {
            // An updated system app will not have the PARSE_IS_SYSTEM flag set
            // initially
            parseFlags |= PackageParser.PARSE_IS_SYSTEM;

            // An updated privileged app will not have the PARSE_IS_PRIVILEGED
            // flag set initially
            if ((updatedPkg.pkgFlags & ApplicationInfo.FLAG_PRIVILEGED) != 0) {
                parseFlags |= PackageParser.PARSE_IS_PRIVILEGED;
            }
        }
        // Verify certificates against what was last scanned
        if (!collectCertificatesLI(pp, ps, pkg, scanFile, parseFlags)) {