OSDN Git Service

Send USER_UNLOCKED broadcasts before PRE_BOOT.
authorJeff Sharkey <jsharkey@android.com>
Mon, 11 Apr 2016 18:13:06 +0000 (12:13 -0600)
committerJeff Sharkey <jsharkey@android.com>
Mon, 11 Apr 2016 18:13:08 +0000 (12:13 -0600)
commit155e5d6de7059198b21f3f220fbff7bf0baf306c
tree5a298bbab0e3fcc0c15e649963881fe0dea6f199
parent27b5d2e2f992d4f3c3984fa73f1fb861b4c456c5
Send USER_UNLOCKED broadcasts before PRE_BOOT.

Apps handling the PRE_BOOT_COMPLETED broadcast expect the user to be
fully unlocked and working.  Most system internals are using the
SystemServer interface, and we dispatch the unlocked event through
them before starting the PRE_BOOT process.

However, there are still some system internals that haven't been
converted to SystemServer, so we need to also send USER_UNLOCKED
for them to pick up before starting PRE_BOOT work.

Bug: 28086245
Change-Id: Ie847b463ea55a6dddcc49d243ef8fb308e5179a7
services/core/java/com/android/server/am/UserController.java