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

Commit 08af733f authored by Christopher Tate's avatar Christopher Tate
Browse files

Don't just log this warning; record the situation for posterity

When a previously 3rd-party permission declaration is superseded
by a new system-owned declaration, don't just log; leave a persistent
record of the fact for post-hoc recognition of what happened even
after reboots.

Change-Id: I816a5003f8f8ef2dfbdbfa36316c4bae5005dfbf
parent dfc73e9c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4997,8 +4997,9 @@ public class PackageManagerService extends IPackageManager.Stub {
                            // discard the previous declaration and consider the system's to be
                            // canonical.
                            if (isSystemApp(p.owner)) {
                                Slog.i(TAG, "New decl " + p.owner + " of permission  "
                                        + p.info.name + " is system");
                                String msg = "New decl " + p.owner + " of permission  "
                                        + p.info.name + " is system";
                                reportSettingsProblem(Log.WARN, msg);
                                bp.sourcePackage = null;
                            }
                        }