OSDN Git Service

Don't send HOME intent twice when booting from non-system user.
authorFelipe Leme <felipeal@google.com>
Thu, 22 Aug 2019 23:32:21 +0000 (16:32 -0700)
committerFelipe Leme <felipeal@google.com>
Mon, 26 Aug 2019 18:49:42 +0000 (11:49 -0700)
commit06397516751abc91475b9efd177d48d999f06879
tree31d01510995e923f03c49424ebfb7729800d5daa
parent712fc079a0b7cd28fd03155bac06732e0a5dc897
Don't send HOME intent twice when booting from non-system user.

When Automotive boots, CarServiceHelperService "restarts" the system user in the background, so it
can be unlocked. Consequently, some boot tasks will be executed twice (triggered from
UserController.startUser() and ActivityManager.systemReady()).

Test: manual verification
Bug: 139502237

Merged-In: Idd8beedf1ea034b47b9756b91404c5a043965c23
Change-Id: Idd8beedf1ea034b47b9756b91404c5a043965c23
services/core/java/com/android/server/am/ActivityManagerService.java