From 44643ed6547407c37ee7137913bded5ec8290b01 Mon Sep 17 00:00:00 2001 From: cxcx <888888@qq.com> Date: Thu, 5 Sep 2019 22:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=BF=E4=B8=BB=20APK=20?= =?UTF-8?q?=E7=9A=84=20SO=20=E6=96=87=E4=BB=B6=E4=B8=BA=E7=A9=BA=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=20libsandhook.so=20=E6=8B=B7=E8=B4=9D=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/storm/wind/xpatch/task/SoAndDexCopyTask.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xpatch/src/main/java/com/storm/wind/xpatch/task/SoAndDexCopyTask.java b/xpatch/src/main/java/com/storm/wind/xpatch/task/SoAndDexCopyTask.java index fbfeddf..6b3f031 100644 --- a/xpatch/src/main/java/com/storm/wind/xpatch/task/SoAndDexCopyTask.java +++ b/xpatch/src/main/java/com/storm/wind/xpatch/task/SoAndDexCopyTask.java @@ -51,9 +51,11 @@ public class SoAndDexCopyTask implements Runnable { private void copySoFile() { for (String libPath : APK_LIB_PATH_ARRAY) { String apkSoFullPath = fullLibPath(libPath); - if(new File(apkSoFullPath).exists()) { - copyLibFile(apkSoFullPath, SO_FILE_PATH_MAP.get(libPath)); + File apkSoFullPathFile= new File(apkSoFullPath); + if (!apkSoFullPathFile.exists()){ + apkSoFullPathFile.mkdirs(); } + copyLibFile(apkSoFullPath, SO_FILE_PATH_MAP.get(libPath)); } // copy xposed modules into the lib path if (xposedModuleArray != null && xposedModuleArray.length > 0) {