OSDN Git Service

Allow direct-boot aware activity to show before profile is unlocked
authorRubin Xu <rubinxu@google.com>
Thu, 28 Jul 2016 13:34:26 +0000 (14:34 +0100)
committerRubin Xu <rubinxu@google.com>
Wed, 14 Sep 2016 10:59:56 +0000 (11:59 +0100)
commit89927b3cd96472c478a988d6c731cd09d412a043
tree80c665a66df43fbb2bfb0da6ae983574074f8b6d
parent4efd735a7605a88bcf0228de94d99a563b0f64d8
Allow direct-boot aware activity to show before profile is unlocked

Work profile challenge is shown by intercepting normal activity launching and
replacing it with the confirm credential activity. For direct boot aware
activities, they should be able to be displayed when the work profile is
still locked, so add a conditional in the activity intercepting logic to bypass
work challenge in this case.

Also launching work profile activities from notification is handled specially
in order to avoid dismissing the notification if the work challenge is canceled,
so add similar logic there to allow direct boot aware activity to go through.

Bug: 30296144
Change-Id: Ib6395271cee2d4781009bb08d50351d73824de0c
core/java/android/app/ActivityManagerNative.java
core/java/android/app/IActivityManager.java
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityStartInterceptor.java