[incfs] Notify IncrementalService about system startup later
It needs system to be ready to bind to services, which is much later in the boot process Bug: 151241369 Test: boot up Android, make sure no error messages from IncrementalService trying to bind a DataLoader when the OS can't bind services yet Change-Id: Ibcef3f405965ee07c5b8adbb41f068be734bde9e
This commit is contained in:
@@ -2174,12 +2174,6 @@ public final class SystemServer {
|
||||
mPackageManagerService.systemReady();
|
||||
t.traceEnd();
|
||||
|
||||
if (mIncrementalServiceHandle != 0) {
|
||||
t.traceBegin("MakeIncrementalServiceReady");
|
||||
setIncrementalServiceSystemReady(mIncrementalServiceHandle);
|
||||
t.traceEnd();
|
||||
}
|
||||
|
||||
t.traceBegin("MakeDisplayManagerServiceReady");
|
||||
try {
|
||||
// TODO: use boot phase and communicate these flags some other way
|
||||
@@ -2449,6 +2443,12 @@ public final class SystemServer {
|
||||
reportWtf("Notifying incident daemon running", e);
|
||||
}
|
||||
t.traceEnd();
|
||||
|
||||
if (mIncrementalServiceHandle != 0) {
|
||||
t.traceBegin("MakeIncrementalServiceReady");
|
||||
setIncrementalServiceSystemReady(mIncrementalServiceHandle);
|
||||
t.traceEnd();
|
||||
}
|
||||
}, t);
|
||||
|
||||
t.traceEnd(); // startOtherServices
|
||||
|
||||
Reference in New Issue
Block a user