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

Commit e4bdb439 authored by Atneya Nair's avatar Atneya Nair
Browse files

[fgs] Add WIU ability to BFSL debug string

Helpful for debugging when a BFSL launched with WIU permitted in the
logcat.

Bug: trivial
Flag: EXEMPT logs_only
Test: compiles
Change-Id: I41287d64459a0d0fa0e72939c9506f61448c729c
parent 06ee0061
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -8302,8 +8302,6 @@ public final class ActiveServices {
        if ((allowWiu == REASON_DENIED) || (allowStart == REASON_DENIED)) {
            @ReasonCode final int allowWhileInUse = shouldAllowFgsWhileInUsePermissionLocked(
                    callingPackage, callingPid, callingUid, r.app, backgroundStartPrivileges);
            // We store them to compare the old and new while-in-use logics to each other.
            // (They're not used for any other purposes.)
            if (allowWiu == REASON_DENIED) {
                allowWiu = allowWhileInUse;
            }
@@ -8706,6 +8704,7 @@ public final class ActiveServices {
                                        + ",duration:" + tempAllowListReason.mDuration
                                        + ",callingUid:" + tempAllowListReason.mCallingUid))
                        + ">"
                        + "; allowWiu:" + allowWhileInUse
                        + "; targetSdkVersion:" + r.appInfo.targetSdkVersion
                        + "; callerTargetSdkVersion:" + callerTargetSdkVersion
                        + "; startForegroundCount:" + r.mStartForegroundCount