maoabc / nmmp

dex-vm used to protect the android classes.dex file
780 stars 269 forks source link

aar加固后在DEBUG模式下频繁输出这样的信息 #70

Open frankgogoland opened 1 year ago

frankgogoland commented 1 year ago

2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.503 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.504 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread 2022-06-12 14:59:32.504 26294-26409/www.lucent.com W/www.lucent.com: Attempt to remove non-JNI local reference, dumping thread

麻烦作者有空看看 env->DeleteLocalRef(javaObject) 删除了非jni层对象?

maoabc commented 1 year ago

这没头没尾的,vm的debug模式只能在处理少量方法时开启,不然光日志都能把应用搞崩溃

maoabc commented 1 year ago

vm debug模式每条指令都会输出,只能开发时或者加固少量类跟方法开启,不然大量日志都能把应用搞崩溃。如果单独测试某些代码兼容,使用nmmvm,仿照里面那些例子,单独进行单元测试。

frankgogoland commented 1 year ago

aar已经打包成release版本了,主版本是DEBUG版本。也就是说加固后如果把aar发给客户,在DEBUG模式下就一直大量输出信息

maoabc commented 1 year ago

这个就不清楚了,这个日志看不出什么。加固范围得好好选择,jni一些错误很复杂,大多数情况只能绕过

frankgogoland @.***> 于 2023年3月18日周六 16:42写道:

aar已经打包成release版本了,主版本是DEBUG版本。也就是说加固后如果把aar发给客户,在DEBUG模式下就一直大量输出信息

— Reply to this email directly, view it on GitHub https://github.com/maoabc/nmmp/issues/70#issuecomment-1474774816, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA27LV46AWAJPHM4DWTEQRDW4VYPBANCNFSM6AAAAAAV7KBDSQ . You are receiving this because you commented.Message ID: @.***>