diff options
author | Bookatz <bookatz@google.com> | 2019-06-04 09:14:42 -0700 |
---|---|---|
committer | Adam Bookatz <bookatz@google.com> | 2019-06-05 03:03:24 +0000 |
commit | 9313af68c210949b860ba5234e9da7104f0143c8 (patch) | |
tree | c40158ff866cf013654e75f31de41e67cc46aacc /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 2aa255a74656e448b28b1f258d25bed18f2d6396 (diff) |
loadUnbadgedItemIcon doesn't crash from getUserIcon
AppicationPackageManager.loadUnbadgedItemIcon would call
UserManager.getUserIcon if the icon was supposed to represent
switching to another the parent user (from a work profile).
However, that call requires extra permissions which may not be
available, which would cause a crash. The work profile doesn't
generally have permission to see the parent's icon, so rather
than showing the actual icon, a generic user icon is shown instead.
Bug: 134177607
Test: Manual confirmation: create a work profile and try to share a
picture (from Photos) to the personal profile.
Change-Id: Id79ca50b8e0a26593addbacf1a0ea709a2bc4da2
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions