Skip to content

Commit e6dddc9

Browse files
Calin JuravleAndroid (Google) Code Review
authored andcommitted
Merge "[framework] Remove boot complete marker" into qt-qpr1-dev
2 parents f9d3758 + d9cb95d commit e6dddc9

2 files changed

Lines changed: 0 additions & 33 deletions

File tree

services/core/java/com/android/server/am/ActivityManagerService.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@
352352
import com.android.server.firewall.IntentFirewall;
353353
import com.android.server.job.JobSchedulerInternal;
354354
import com.android.server.pm.Installer;
355-
import com.android.server.pm.Installer.InstallerException;
356355
import com.android.server.uri.GrantUri;
357356
import com.android.server.uri.UriGrantsManagerInternal;
358357
import com.android.server.utils.PriorityDump;
@@ -364,8 +363,6 @@
364363
import com.android.server.wm.WindowManagerService;
365364
import com.android.server.wm.WindowProcessController;
366365

367-
import dalvik.system.VMRuntime;
368-
369366
import libcore.util.EmptyArray;
370367

371368
import java.io.File;
@@ -5205,26 +5202,6 @@ final void finishBooting() {
52055202
mCallFinishBooting = false;
52065203
}
52075204

5208-
ArraySet<String> completedIsas = new ArraySet<String>();
5209-
for (String abi : Build.SUPPORTED_ABIS) {
5210-
ZYGOTE_PROCESS.establishZygoteConnectionForAbi(abi);
5211-
final String instructionSet = VMRuntime.getInstructionSet(abi);
5212-
if (!completedIsas.contains(instructionSet)) {
5213-
try {
5214-
mInstaller.markBootComplete(VMRuntime.getInstructionSet(abi));
5215-
} catch (InstallerException e) {
5216-
if (!VMRuntime.didPruneDalvikCache()) {
5217-
// This is technically not the right filter, as different zygotes may
5218-
// have made different pruning decisions. But the log is best effort,
5219-
// anyways.
5220-
Slog.w(TAG, "Unable to mark boot complete for abi: " + abi + " (" +
5221-
e.getMessage() +")");
5222-
}
5223-
}
5224-
completedIsas.add(instructionSet);
5225-
}
5226-
}
5227-
52285205
IntentFilter pkgFilter = new IntentFilter();
52295206
pkgFilter.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART);
52305207
pkgFilter.addDataScheme("package");

services/core/java/com/android/server/pm/Installer.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -431,16 +431,6 @@ public void destroyUserData(String uuid, int userId, int flags) throws Installer
431431
}
432432
}
433433

434-
public void markBootComplete(String instructionSet) throws InstallerException {
435-
assertValidInstructionSet(instructionSet);
436-
if (!checkBeforeRemote()) return;
437-
try {
438-
mInstalld.markBootComplete(instructionSet);
439-
} catch (Exception e) {
440-
throw InstallerException.from(e);
441-
}
442-
}
443-
444434
public void freeCache(String uuid, long targetFreeBytes, long cacheReservedBytes, int flags)
445435
throws InstallerException {
446436
if (!checkBeforeRemote()) return;

0 commit comments

Comments
 (0)