summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author huiyu <huiyu@google.com> 2022-04-27 17:00:01 -0700
committer Hui Yu <huiyu@google.com> 2022-04-29 13:03:58 -0700
commit5b2b012f5567542c94abd9a67fe118f5c91bc9e6 (patch)
treea115c7ed04b8a1a1e8cc801f07fd823b1f3b4cd2 /libs/androidfw/StringPool.cpp
parent38b22faf8918f8aa63f206b2bb56878b67ffbc40 (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions