[RESTRICT AUTOMERGE] Wait for user to be unlocked before setting up the admin app.

When during in-setup wizard work profile provisioning the
device is restarted, we launch the admin app right away.
In that case the work profile hasn't been started yet,
so we need to wait for the USER_UNLOCKED broadcast.

Test: manual
Bug: 172322502
Change-Id: Ib414a045059f36d5b2e55b388e7ca4e5e2266695
(cherry picked from commit e2e7db03f6629a049d7f9a255b1238182b104435)
2 files changed
tree: aa86595e1f791e508996c83ef1a4fc90ebcdec96
  1. res/
  2. src/
  3. tests/
  4. tools/
  5. Android.mk
  6. AndroidManifest.xml
  7. CleanSpec.mk