summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Hui Yu <huiyu@google.com> 2022-05-07 21:43:23 -0700
committer Hui Yu <huiyu@google.com> 2022-05-17 20:16:31 +0000
commitb21cc11dd74ceb2da100bd243c33392d4dc2cb7d (patch)
tree36a1dde7a5fb705bb9c7d1fd21c92ccdbc7d541e /libs/androidfw/ResourceTimer.cpp
parente6b1e10c9603809c251374627c0e103615f6954e (diff)
Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions.
This is to stop spoofed packageName to pretend to be allowListed packageName so it can bypass the BG-FGS restriction. This applies to both BG-FGS while-in-use restriction and BG-FGS-start restriction since these two restrictions are related. Bug: 216695100 Bug: 215003903 Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testSpoofPackageName Change-Id: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89 Merged-In: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions