[core] Compatible with applications with 32-bit native libraries only (#786)
if the target application with 32-bit native libraries only, we don't need 64-bit nativepath included Co-authored-by: CallMESuper <zj7859256@gmail.com>
This commit is contained in:
parent
21f9aedce6
commit
64c89d7fa7
|
|
@ -369,8 +369,15 @@ public final class XposedInit {
|
||||||
|
|
||||||
// module can load it's own so
|
// module can load it's own so
|
||||||
StringBuilder nativePath = new StringBuilder();
|
StringBuilder nativePath = new StringBuilder();
|
||||||
for (String i : Build.SUPPORTED_ABIS) {
|
// Compatible with applications with 32-bit native libraries only
|
||||||
nativePath.append(apk).append("!/lib/").append(i).append(File.pathSeparator);
|
if (android.os.Process.is64Bit()) {
|
||||||
|
for (String i : Build.SUPPORTED_64_BIT_ABIS) {
|
||||||
|
nativePath.append(apk).append("!/lib/").append(i).append(File.pathSeparator);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (String i : Build.SUPPORTED_32_BIT_ABIS) {
|
||||||
|
nativePath.append(apk).append("!/lib/").append(i).append(File.pathSeparator);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Log.d(TAG, "Allowed native path" + nativePath.toString());
|
// Log.d(TAG, "Allowed native path" + nativePath.toString());
|
||||||
ClassLoader initLoader = XposedInit.class.getClassLoader();
|
ClassLoader initLoader = XposedInit.class.getClassLoader();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue