1.Fix NullpointerException when source app has no access file system permission, 2.Fix an random crash,3.Add all so file if source apk has

This commit is contained in:
Windy 2019-04-02 01:34:46 +08:00
parent 30b75afb87
commit 129fda8243
4 changed files with 3 additions and 3 deletions

BIN
xpatch/src/main/assets/classes.dex Normal file → Executable file

Binary file not shown.

View File

@ -48,10 +48,10 @@ public class SoAndDexCopyTask implements Runnable {
// Try to find so file path in the apk, then copy so into it
boolean copySuccess = false;
for (String libPath : APK_LIB_PATH_ARRAY) {
copySuccess = copyLibFile(unzipApkFilePath + libPath.replace("/", File.separator),
boolean copied = copyLibFile(unzipApkFilePath + libPath.replace("/", File.separator),
SO_FILE_PATH_MAP.get(libPath), false);
if (copySuccess) {
break;
if (copied) {
copySuccess = true;
}
}