summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Achim Thesmann <achim@google.com> 2024-07-12 21:02:53 +0000
committer Achim Thesmann <achim@google.com> 2024-07-17 17:45:15 +0000
commit8f5f7f89af1fd2259646189df6d28a4d665fd54f (patch)
tree44a875a003b5c4fa711a7564f496e75e1bf034f2 /libs/androidfw/StringPool.cpp
parent3afcb7c0fdefba546da875f3f56b3b9a27fe1a8c (diff)
Introduce new enum values for BAL mode
Two new flag values that in the long term should replace MODE_BACKGROUND_ACTIVITY_START_ALLOWED. MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS - allow activity starts at any time - either based on permission or based on visibility. This includes BAL permissions granted by the now deprecated setPendingIntentBackgroundActivityLaunchAllowed method. MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS - allows activity starts only based on visibility. This is a much safer option for apps sending PendingIntents, since this typically means the user is interacting with that app to trigger the start. Test: atest BackgroundActivityLaunchTest BackgroundActivityStartContriller*Test Flag: com.android.window.flags.bal_additional_start_modes Bug: 352182359 Change-Id: I84500ccf585bc50a29e96e7a0232474102382987
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions