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

Skip to content
Commit 5b2b012f authored by huiyu's avatar huiyu Committed by Hui Yu
Browse files

canStartForegroundServiceLocked() checks both UID and binding client UID.

1. Rename the overloaded version of shouldAllowFgsStartForegroundLocked() that only checks on
one callingUid to shouldAllowFgsStartForegroundNoBindingCheckLocked().
2. Rename the overloaded version of shouldAllowFgsStartForegroundLocked() that checks on
callingUid and also the binding clients' UIDs to shouldAllowFgsStartForegroundWithBindingCheckLocked().
3. canStartForegroundServiceLocked() calls shouldAllowFgsStartForegroundNoBindingCheckLocked() to check
on current uid first, if needed, then check on binding client's UID.

Bug: 230656827
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I015e8e425d2834b20b70c22f0d88342f2de00567
parent 38b22faf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment