diff options
author | Alex Kershaw <alexkershaw@google.com> | 2020-02-13 22:17:29 +0000 |
---|---|---|
committer | Alex Kershaw <alexkershaw@google.com> | 2020-02-19 14:01:23 +0000 |
commit | 3e3f4964a6ffa169196e3bf23da6c3ec1dd05149 (patch) | |
tree | 79273663be23baf033b0dedd25d1ef2e83188a81 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | d0f257ebb6be77d8f34751e42967e9b259429f8f (diff) |
Enforce the cross-profile intent check.
DocumentsUI currently hard-codes the IntentForwarderActivity class name.
It uses this to determine whether to show a 'switch to personal profile'
button. Essentially, it wants to know if the intent it received is a
cross-profile intent, so it asks package manager which intents can
resolve it and checks whether one of them is IntentForwarderActivity.
This is not CTS-enforced, so this CL ensures that it is. OEMs can remove
or rename IntentForwarderActivity as long as they update this API and
keep the corresponding CTS test passing.
Bug: 149568382
Bug: 136249261
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.ManagedProfileCrossProfileTest#testCrossProfileIntentFilters
Change-Id: I51916c13320420068987925ac979e59bef3b660d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions