| commit | 2e76230ede8e2b3bffe1731f3882fac7703ee95e | [log] [tgz] |
|---|---|---|
| author | Fabián Kozynski <kozynski@google.com> | Thu Mar 23 15:54:25 2023 -0400 |
| committer | Fabián Kozynski <kozynski@google.com> | Fri Mar 24 16:56:01 2023 -0400 |
| tree | 0559195c463e43fea1a03f4ffcbaf72edbb6b21a | |
| parent | c59bcce7ec045e629dbbc2c141d6b3bb48abbb42 [diff] |
Gate binding with `UserManager.isUserUnlocked` We cannot bind to not direct boot aware apps before that. So delay the binding until we receive `ACTION_USER_UNLOCKED` (or immediately if we are unlocked). Also, delay it to onBootComplete Fixes: 274467616 Test: manual `adb shell dumpsys activity services` after restart Test: atest ControlsStartableTest Change-Id: Ic2c7d1584300fa68c7d53dcea52650cfd83b677b