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
Loading
Please register or sign in to comment