修复dump失败后仍提示成功

pull/10/head
Milk 4 years ago
parent f4fec1dd71
commit 59fc59ed87
  1. 4
      Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java

@ -216,6 +216,10 @@ public class BActivityThread extends IBActivityThread.Stub {
VMCore.dumpDex(classLoader, packageName);
} finally {
mAppConfig = null;
File dir = new File(result.dir);
if (!dir.exists() || dir.listFiles().length == 0) {
result.dumpError("not file");
}
BlackBoxCore.getBDumpManager().noticeMonitor(result);
BlackBoxCore.get().uninstallPackage(packageName);
}

Loading…
Cancel
Save