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

Commit 3e46d7e1 authored by Winson's avatar Winson
Browse files

Revert "Ignores protected broadcasts if not priv-app"

Revert of I5bd2bf3bd7c38fd9cc563a02b24bc569495d79ed

For now, allow all system apps to declare protected
broadcasts. This will be cleaned up in a future change.

Bug: 158570769

Change-Id: I54d236c0a6daaa934bd64a3bd05e2654e0e868fe
parent 26dfdc58
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11729,6 +11729,8 @@ public class PackageManagerService extends IPackageManager.Stub
            }
        } else {
            parsedPackage
                    // Non system apps cannot mark any broadcast as protected
                    .clearProtectedBroadcasts()
                    // non system apps can't be flagged as core
                    .setCoreApp(false)
                    // clear flags not applicable to regular apps
@@ -11740,7 +11742,6 @@ public class PackageManagerService extends IPackageManager.Stub
        }
        if ((scanFlags & SCAN_AS_PRIVILEGED) == 0) {
            parsedPackage
                    .clearProtectedBroadcasts()
                    .markNotActivitiesAsNotExportedIfSingleUser();
        }