Skip to content

Commit

Permalink
Merge pull request WindySha#39 from codestuding/master
Browse files Browse the repository at this point in the history
修复宿主 APK 的 SO 文件为空导致 libsandhook.so 拷贝失败的问题。
  • Loading branch information
WindySha authored Sep 29, 2019
2 parents 82a8d6a + 44643ed commit f8607dc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ public void run() {
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) {
Expand Down

0 comments on commit f8607dc

Please sign in to comment.