Merge pull request #39 from codestuding/master
修复宿主 APK 的 SO 文件为空导致 libsandhook.so 拷贝失败的问题。
This commit is contained in:
commit
f8607dc0c6
|
|
@ -51,9 +51,11 @@ public class SoAndDexCopyTask implements Runnable {
|
||||||
private void copySoFile() {
|
private void copySoFile() {
|
||||||
for (String libPath : APK_LIB_PATH_ARRAY) {
|
for (String libPath : APK_LIB_PATH_ARRAY) {
|
||||||
String apkSoFullPath = fullLibPath(libPath);
|
String apkSoFullPath = fullLibPath(libPath);
|
||||||
if(new File(apkSoFullPath).exists()) {
|
File apkSoFullPathFile= new File(apkSoFullPath);
|
||||||
copyLibFile(apkSoFullPath, SO_FILE_PATH_MAP.get(libPath));
|
if (!apkSoFullPathFile.exists()){
|
||||||
|
apkSoFullPathFile.mkdirs();
|
||||||
}
|
}
|
||||||
|
copyLibFile(apkSoFullPath, SO_FILE_PATH_MAP.get(libPath));
|
||||||
}
|
}
|
||||||
// copy xposed modules into the lib path
|
// copy xposed modules into the lib path
|
||||||
if (xposedModuleArray != null && xposedModuleArray.length > 0) {
|
if (xposedModuleArray != null && xposedModuleArray.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue