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)
committerThe Android Automerger <android-build@google.com>
Tue, 20 Jan 2015 23:31:46 +0000 (15:31 -0800)
commit7ad4b34368c58dfdf4b817b2adea546df07587f7
treec7cf30110a61c9eff72c0bc978b3a6abf7a264fe
parenta373c6241116d9113ca2ae722fc8ad5226848f80
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