Framework: Restrict warning message

Only print the message of the cache wasn't pruned.

Bug: 26978865
Test: manual
Change-Id: I564ecddf6c8fafcc9699ec6bfbd622214edf79c8
This commit is contained in:
Andreas Gampe
2018-05-01 12:10:54 -07:00
parent 59e139a767
commit f13e473ee1

View File

@@ -7290,8 +7290,13 @@ public class ActivityManagerService extends IActivityManager.Stub
try {
mInstaller.markBootComplete(VMRuntime.getInstructionSet(abi));
} catch (InstallerException e) {
Slog.w(TAG, "Unable to mark boot complete for abi: " + abi + " (" +
e.getMessage() +")");
if (!VMRuntime.didPruneDalvikCache()) {
// This is technically not the right filter, as different zygotes may
// have made different pruning decisions. But the log is best effort,
// anyways.
Slog.w(TAG, "Unable to mark boot complete for abi: " + abi + " (" +
e.getMessage() +")");
}
}
completedIsas.add(instructionSet);
}