commit | eb4e3d20da268a26cea68cb365ce7a26e384d351 | [log] [tgz] |
---|---|---|
author | Nate Myren <ntmyren@google.com> | Thu Feb 17 17:51:38 2022 -0800 |
committer | Nate Myren <ntmyren@google.com> | Mon Feb 28 08:23:19 2022 -0800 |
tree | 79fdc0f2b8a413b4af7a50e02a5a77120ae6adee | |
parent | 09076f0af2715438fd5ceeb052424f1ee0c936cf [diff] |
Restrict what activity launches show permission prompts Only show a permission prompt if the activity is a launcher, the calling app is the same as the opened intent app, or the isEligibleForLegacyPermissionPrompt ActivityOption is set. Also prevents the dialog from showing while the keyguard is locked. Test: atest NotificationPermissionTest Bug: 194833441 Fixes: 220891438 Change-Id: Ie5381af045d538a5b822bb1ccdf62b1dd916114f