Fix dexopt dump
Dexopt dump prints the status of primary oat file instead of secondary. We cannot get the secondary dex file status without an installd call so this CL just removes the status line. Bug: 65843255 Test: adb shell dumpsys package dexopt Change-Id: I76028704267eed68ba8c51f45ce8b54f403cc255
This commit is contained in:
@@ -438,16 +438,7 @@ public class PackageDexOptimizer {
|
||||
PackageDexUsage.DexUseInfo dexUseInfo = e.getValue();
|
||||
pw.println(dex);
|
||||
pw.increaseIndent();
|
||||
for (String isa : dexUseInfo.getLoaderIsas()) {
|
||||
String status = null;
|
||||
try {
|
||||
status = DexFile.getDexFileStatus(path, isa);
|
||||
} catch (IOException ioe) {
|
||||
status = "[Exception]: " + ioe.getMessage();
|
||||
}
|
||||
pw.println(isa + ": " + status);
|
||||
}
|
||||
|
||||
// TODO(calin): get the status of the oat file (needs installd call)
|
||||
pw.println("class loader context: " + dexUseInfo.getClassLoaderContext());
|
||||
if (dexUseInfo.isUsedByOtherApps()) {
|
||||
pw.println("used be other apps: " + dexUseInfo.getLoadingPackages());
|
||||
|
||||
Reference in New Issue
Block a user