diff options
author | Taras Antoshchuk <tantoshchuk@google.com> | 2020-07-14 18:27:10 +0200 |
---|---|---|
committer | Taras Antoshchuk <tantoshchuk@google.com> | 2020-07-15 09:59:22 +0000 |
commit | 089b0bb4f96c55c5fc00fb4c5487ad6c65c1c403 (patch) | |
tree | 6a4ed507aa1c2d60fba6f505cca1a5550942f9e4 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 9c9434b30fec303c4c107897b5cf2ce485578f8f (diff) |
Use clean calling identity to clear preferred activities
In some cases we need to clear preferred activities for all users after
changing mimeGroups via PackageManager#setMimeGroup. This can result in
clearing preferred activities for non-current user. Which will cause
SecurityException if done without using clean calling identity.
Test: multiple users on device; atest CtsDynamicMimeHostTestCases
Bug: 161239297
Change-Id: I0a84702526ea5ab110aa44056d0407d106d079e3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions