OSDN Git Service

Introduce getProfileSwitchingIcon/Label In CrossProfileApps
authorTony Mak <tonymak@google.com>
Wed, 29 Nov 2017 21:00:30 +0000 (21:00 +0000)
committerTony Mak <tonymak@google.com>
Fri, 1 Dec 2017 18:44:10 +0000 (18:44 +0000)
commit8246513dfc5556a76e7db8732d2213919cd27748
tree340be18b9f2e0901cfbc2d264cb1374d0a5b93e8
parent1a0e948f61e901cd22650f0ef7424e911b8af109
Introduce getProfileSwitchingIcon/Label In CrossProfileApps

Leave the resource retrieval part in client side to avoid passing
drawable across process boundary which should be bad for performance.

The verification part is done in client side, so in theory, apps can work
around the verification. That said, the strings and drawables
are not secret anyway, they are just a generic icon / label to represent
the user. Also, they can always retrieve them by using getDrawable
anyway.

BUG: 67765768
Test: bit FrameworksCoreTests:android.content.pm.crossprofile.CrossProfileAppsTest

Change-Id: I44a7ba17ecc81d0d366184b2d411caa7a82de3ef
api/current.txt
core/java/android/content/pm/crossprofile/CrossProfileApps.java
core/res/res/values/symbols.xml
core/tests/coretests/src/android/content/pm/crossprofile/CrossProfileAppsTest.java [new file with mode: 0644]