From 59fc59ed8789a1ef9e8fea34bb3da84e608c3d97 Mon Sep 17 00:00:00 2001 From: Milk <1871357815@qq.com> Date: Wed, 26 May 2021 13:11:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddump=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=90=8E=E4=BB=8D=E6=8F=90=E7=A4=BA=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/top/niunaijun/blackbox/app/BActivityThread.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java b/Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java index d2f9aea..41dd6ea 100644 --- a/Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java +++ b/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); }