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

Commit 279d0184 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Remove debug/redundant logs

These logs are redundant as the BAL code indicates the use of the SAW
exemption.

Test: atest BackgroundActivityLaunchTest
Bug: 385184344
Flag: EXEMPT log only
Change-Id: I7aac27c9a85ab2a5f0838ba59d9a900e5645c398
parent aabbec67
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -1091,11 +1091,6 @@ public class BackgroundActivityStartController {
        // don't abort if the callingUid has SYSTEM_ALERT_WINDOW permission
        if (mService.hasSystemAlertWindowPermission(state.mCallingUid, state.mCallingPid,
                state.mCallingPackage)) {
            Slog.w(
                    TAG,
                    "Background activity start for "
                            + state.mCallingPackage
                            + " allowed because SYSTEM_ALERT_WINDOW permission is granted.");
            return new BalVerdict(BAL_ALLOW_SAW_PERMISSION,
                    /*background*/ true, "SYSTEM_ALERT_WINDOW permission is granted");
        }
@@ -1167,18 +1162,9 @@ public class BackgroundActivityStartController {
        }

        // don't abort if the realCallingUid has SYSTEM_ALERT_WINDOW permission
        Slog.i(TAG, "hasSystemAlertWindowPermission(" + state.mRealCallingUid + ", "
                + state.mRealCallingPid + ", " + state.mRealCallingPackage + ") "
                + balStartModeToString(
                state.mCheckedOptions.getPendingIntentBackgroundActivityStartMode()));
        if (allowAlways
                && mService.hasSystemAlertWindowPermission(state.mRealCallingUid,
                state.mRealCallingPid, state.mRealCallingPackage)) {
            Slog.w(
                    TAG,
                    "Background activity start for "
                            + state.mRealCallingPackage
                            + " allowed because SYSTEM_ALERT_WINDOW permission is granted.");
            return new BalVerdict(BAL_ALLOW_SAW_PERMISSION,
                    /*background*/ true, "SYSTEM_ALERT_WINDOW permission is granted");
        }