diff options
| author | 2023-05-11 22:09:46 -0700 | |
|---|---|---|
| committer | 2023-05-11 22:29:23 -0700 | |
| commit | efc4125964bd58542e231e956f86d475fa2f6d65 (patch) | |
| tree | 4c7d117fdc32e57d8a62aa477e176376484a6782 /libs/input/SpriteController.cpp | |
| parent | 325a4e206ca6f2abb670273cb4b3b42b577c94ff (diff) | |
Limit the background FGS start with foreground only permission
Since Android R, background-started FGS can't access the mic/camera
even if the user has granted "while-in-use" permission, so does for
the foreground location permission. Now, if the app tries to start
a FGS from the background with the type mic/camera/location,
the start would be denied, since they can't access those sensors
from that FGS anyway, it makes no sense to start such a FGS.
If the app has the background location permission and tries to
start FGS from the background, this is still allowed.
Bug: 280936347
Test: atest CtsAppFgsTestCases
Change-Id: I56865b4f9e9c317c968a6cbfced5b3b4cdccda79
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions