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

Commit 8ed0c0d1 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Return correct result

When we find an exemption for another process of the caller app's UID we
need to return that exemption and not the verdict for the caller app.

Test: manual test / atest BackgroundActivityLaunchTest
Bug: 320758929
Change-Id: I838e6d1bd4c1a1b25e206af15075c04eedf93e51
parent ff26a560
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -997,7 +997,7 @@ public class BackgroundActivityStartController {
                        BalVerdict balAllowedForUid = proc.areBackgroundActivityStartsAllowed(
                                state.mAppSwitchState);
                        if (balAllowedForUid.allows()) {
                            return balAllowedForCaller.withProcessInfo("process", proc);
                            return balAllowedForUid.withProcessInfo("process", proc);
                        }
                    }
                }