OSDN Git Service

Don't try to launch broadcast receivers during boot
authorChristopher Tate <ctate@google.com>
Tue, 20 Jan 2015 22:29:22 +0000 (14:29 -0800)
committerChristopher Tate <ctate@google.com>
Tue, 20 Jan 2015 22:29:22 +0000 (14:29 -0800)
commit0721a9463099e94f37b6c48d0aceaa04161bbda0
tree10a8db819e6199f1b84fe14f6ca29e39b76cd557
parent7651dcb92193a5a970a2554e067ec14d6fcad802
Don't try to launch broadcast receivers during boot

It turns out that sysUI visibility / interactivity is racing with
boot, and it's possible in some circumstances for the user to start
the secure camera swipe gesture before formal boot-completed.  Make
sure we only send the camera-related broadcast to registered
receivers in that case, otherwise we'll implicitly be asking to
launch other apps before boot, which is forbidden.

Bug 19060618

Change-Id: I7fcf13b5af7b2edfbb4aac06ef04a0fde2c6a0f7
packages/SystemUI/src/com/android/systemui/statusbar/phone/SecureCameraLaunchManager.java