mao

Results 199 comments of mao

倒没仔细区分dex版本差异,当时用了默认的。改成从原dex获得版本这个改动不错。最大问题还是没实现几个方法调用指令。

可能跟你ndk有关,我用这个版本都是正常的。

本来就跟之前那些藏原dex运行时替换application或者指令抽取不同,这是把指令虚拟化自己解释执行。区别可以找一下以前issue,有相关讨论。

这个日志看着不像加固导致的,有更完整的吗?android6以上有不主动设置不能压缩.so相关问题,你可以试试看是不是这个导致的

I upgraded dexlib2 to the latest version, but have not tested dex V40 V41.

The AndroidManifest.xml in .aab is a proto file, not an axml file. It is defined using .proto file. You can see the editAndroidManifest method in ProtoUtils.

Try using setAttribute(attrIdx, newAttr),maybe the attribute index cannot be changed。

我没在这些地方使用过,不过看你这个报错,它的搜索路径在base.apk里面,你可以尝试so不压缩然后使用页对齐(16K)。具体位置在https://github.com/maoabc/nmmp/issues/136#issuecomment-3056868294

那不清楚,报错内容是base.apk!/lib/这种路径下查找不到so,如果它按标准的安卓来加了android:extractNativeLibs="true"应该在/data/app/com.runmen-5x9Louq6v794XtQRntN0Cg==/lib/arm64-v8a下面查找so而不是base.apk中。

其他尝试就是改变System.loadLibaray调用位置,或者用System.load传递完整so文件路径。没装过这些框架,所以没法去适配。