diff options
| author | 2022-10-31 15:32:16 -0700 | |
|---|---|---|
| committer | 2023-01-13 21:39:25 +0000 | |
| commit | 0d1ba2e8435c2310af6966984fd9ab5eb2fda3ad (patch) | |
| tree | 841513f5dea3efffaa5d68130279d3efa88b2e26 /libs/androidfw/ConfigDescription.cpp | |
| parent | 622f76b7257faf6053bfb97835738f87016c1e92 (diff) | |
Prepare to restrict PI sender BAL privileges.
This prepares for a behavior change for an app that
- sends a PendingIntent created by another app
- does not explicitly set a value for `isPendingIntentBackgroundActivityLaunchAllowed`
Details about this change:
- We had to separate the state for BGFGS and BAL in the boolean used to
represent both, while doing that we incorporated the token too,
creating a new object BSP.
- The BackgroundStartPrivileges class now wraps the originatingToken and
explicitly states the granted permissions.
- This BackgroundStartPrivileges object is passed through and is used to
determine the correct permissions. This can probably be extended to
handle while-in-use permissions as a separate case later too.
- The ComponentOptions API adds a new getter for apps to check on the
validity of the `isPendingIntentBackgroundActivityLaunchAllowed`
property.
Test: atest ActivityStarterTests BackgroundActivityLaunchTest
Change-Id: I467812f316de36edd5b36483a67db04fbd620735
Bug: 244637991
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions