diff options
| author | 2023-02-02 21:38:55 +0000 | |
|---|---|---|
| committer | 2023-02-02 21:38:55 +0000 | |
| commit | 0d3018e914330abc97001c13f69a11c623dd3269 (patch) | |
| tree | eace7af1b9fd20f0a9dc7948891a8d6717d62523 | |
| parent | 9fd3a0f2c40f3cd606bcb6ed013ff7fe82a7deee (diff) | |
| parent | bcf29f093ea30de396bfadb2fb9d10dd173ecb62 (diff) | |
Merge "PersistentDataBlockService waits for MainUser"
| -rw-r--r-- | services/core/java/com/android/server/PersistentDataBlockService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/PersistentDataBlockService.java b/services/core/java/com/android/server/PersistentDataBlockService.java index 5eb0db1f3454..6fd6afed49b9 100644 --- a/services/core/java/com/android/server/PersistentDataBlockService.java +++ b/services/core/java/com/android/server/PersistentDataBlockService.java @@ -182,7 +182,6 @@ public class PersistentDataBlockService extends SystemService { public void onStart() { // Do init on a separate thread, will join in PHASE_ACTIVITY_MANAGER_READY SystemServerInitThreadPool.submit(() -> { - mAllowedUid = getAllowedUid(); enforceChecksumValidity(); formatIfOemUnlockEnabled(); publishBinderService(Context.PERSISTENT_DATA_BLOCK_SERVICE, mService); @@ -202,6 +201,8 @@ public class PersistentDataBlockService extends SystemService { Thread.currentThread().interrupt(); throw new IllegalStateException("Service " + TAG + " init interrupted", e); } + // The user responsible for FRP should exist by now. + mAllowedUid = getAllowedUid(); LocalServices.addService(PersistentDataBlockManagerInternal.class, mInternalService); } super.onBootPhase(phase); |