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

Commit 76b5a7fe authored by Makoto Onuki's avatar Makoto Onuki Committed by Automerger Merge Worker
Browse files

Merge "Enhance media temp-allowlist logging" into tm-dev am: e8f7dc02 am:...

Merge "Enhance media temp-allowlist logging" into tm-dev am: e8f7dc02 am: 0b904a5a am: 4a7d624a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18820312



Change-Id: I1a1104373f58c6aa38722b7b05a2bf0d7fad9d2f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 891b98c6 4a7d624a
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -563,14 +563,16 @@ public class MediaSessionService extends SystemService implements Monitor {
        try {
            enforcePackageName(callingPackage, callingUid);
            if (targetUid != callingUid) {
                Log.d(TAG, "tempAllowlistTargetPkgIfPossible callingPackage:"
                        + callingPackage + " targetPackage:" + targetPackage
                        + " reason:" + reason);
                boolean canAllowWhileInUse = mActivityManagerLocal
                        .canAllowWhileInUsePermissionInFgs(callingPid, callingUid, callingPackage);
                boolean canStartFgs = canAllowWhileInUse
                        || mActivityManagerLocal.canStartForegroundService(callingPid, callingUid,
                        callingPackage);
                Log.i(TAG, "tempAllowlistTargetPkgIfPossible callingPackage:"
                        + callingPackage + " targetPackage:" + targetPackage
                        + " reason:" + reason
                        + (canAllowWhileInUse ? " [WIU]" : "")
                        + (canStartFgs ? " [FGS]" : ""));
                if (canAllowWhileInUse) {
                    mActivityManagerLocal.tempAllowWhileInUsePermissionInFgs(targetUid,
                            MediaSessionDeviceConfig