summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRubin Xu <rubinxu@google.com>2020-01-30 11:39:24 +0000
committerRubin Xu <rubinxu@google.com>2020-03-18 12:20:55 +0000
commit6c113b6d0753cb22e26c246091562358b6a25cbb (patch)
treeb25e4a0208cdcf1c57bbb18188bfd691d72421d5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parente90c86363540103a9dc81047610ea97324574ec6 (diff)
Do not crash if attempt to launch app from locked profile
Handle the case of a locked profile with unified challenge as a first-class state: attempts to open work apps in this state will result in a confirm credential operation, instead of letting the app launch directly which will result in crashes. Test: atest ActivityStartInterceptorTest Test: 1. Turn off a work profile with unified challenge. 2. Manually turn on profile (without unlocking), run adb shell am broadcast -a com.android.server.pm.DISABLE_QUIET_MODE_AFTER_UNLOCK \ --ei android.intent.extra.USER_ID 10 3. Attempt to launch a work app. Bug: 72178550 Bug: 138560482 Change-Id: I85f796fe3edeb3c1d6c0dd6d2143d2f44ac22ea7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions