Skip to content

Commit

Permalink
Merge "[framework] Remove boot complete marker" into qt-qpr1-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Calin Juravle authored and Android (Google) Code Review committed Mar 18, 2020
2 parents f9d3758 + d9cb95d commit e6dddc9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@
import com.android.server.firewall.IntentFirewall;
import com.android.server.job.JobSchedulerInternal;
import com.android.server.pm.Installer;
import com.android.server.pm.Installer.InstallerException;
import com.android.server.uri.GrantUri;
import com.android.server.uri.UriGrantsManagerInternal;
import com.android.server.utils.PriorityDump;
Expand All @@ -364,8 +363,6 @@
import com.android.server.wm.WindowManagerService;
import com.android.server.wm.WindowProcessController;

import dalvik.system.VMRuntime;

import libcore.util.EmptyArray;

import java.io.File;
Expand Down Expand Up @@ -5205,26 +5202,6 @@ final void finishBooting() {
mCallFinishBooting = false;
}

ArraySet<String> completedIsas = new ArraySet<String>();
for (String abi : Build.SUPPORTED_ABIS) {
ZYGOTE_PROCESS.establishZygoteConnectionForAbi(abi);
final String instructionSet = VMRuntime.getInstructionSet(abi);
if (!completedIsas.contains(instructionSet)) {
try {
mInstaller.markBootComplete(VMRuntime.getInstructionSet(abi));
} catch (InstallerException e) {
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);
}
}

IntentFilter pkgFilter = new IntentFilter();
pkgFilter.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART);
pkgFilter.addDataScheme("package");
Expand Down
10 changes: 0 additions & 10 deletions services/core/java/com/android/server/pm/Installer.java
Original file line number Diff line number Diff line change
Expand Up @@ -431,16 +431,6 @@ public void destroyUserData(String uuid, int userId, int flags) throws Installer
}
}

public void markBootComplete(String instructionSet) throws InstallerException {
assertValidInstructionSet(instructionSet);
if (!checkBeforeRemote()) return;
try {
mInstalld.markBootComplete(instructionSet);
} catch (Exception e) {
throw InstallerException.from(e);
}
}

public void freeCache(String uuid, long targetFreeBytes, long cacheReservedBytes, int flags)
throws InstallerException {
if (!checkBeforeRemote()) return;
Expand Down

0 comments on commit e6dddc9

Please sign in to comment.