Open aqiuzzt opened 6 years ago
重编sdk之后,集成到项目中,运行会崩溃。log: java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: expected non-null method java_vm_ext.cc:504] in call to FromReflectedMethod java_vm_ext.cc:504] from void com.kunpeng.pit.HookMain.findAndBackupAndHook(java.lang.Class, java.lang.String, java.lang.String, boolean, java.lang.reflect.Method, java.lang.reflect.Method, java.lang.reflect.Method) java_vm_ext.cc:504] "main" prio=7 tid=1 Runnable java_vm_ext.cc:504] | group="main" sCount=0 dsCount=0 flags=0 obj=0x731d8d70 self=0xe8390000 java_vm_ext.cc:504] | sysTid=26300 nice=-4 cgrp=default sched=0/0 handle=0xe86ba4a8 java_vm_ext.cc:504] | state=R schedstat=( 0 0 0 ) utm=190 stm=23 core=5 HZ=100 java_vm_ext.cc:504] | stack=0xff0aa000-0xff0ac000 stackSize=8MB java_vm_ext.cc:504] | held mutexes= "mutator lock"(shared held) java_vm_ext.cc:504] native: #00 pc 002c5ab7 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+130) java_vm_ext.cc:504] native: #01 pc 00359a6f /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+202) 07-04 11:10:46.022 26300-26300/com.duowan.mobile A/zygote: java_vm_ext.cc:504] native: #02 pc 00355ec5 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+36) java_vm_ext.cc:504] native: #03 pc 002306f1 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+736) java_vm_ext.cc:504] native: #04 pc 00230ae7 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9va_list+58) java_vm_ext.cc:504] native: #05 pc 000d3237 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46) java_vm_ext.cc:504] native: #06 pc 000d373f /system/lib/libart.so (_ZN3art11ScopedCheck20CheckReflectedMethodERNS_18ScopedObjectAccessEP8_jobject+154) java_vm_ext.cc:504] native: #07 pc 000be875 /system/lib/libart.so (_ZN3art8CheckJNI19FromReflectedMethodEP7_JNIEnvP8_jobject+464) java_vm_ext.cc:504] native: #08 pc 000011cc /data/app/com.duowan.mobile-yPcshY0M8YK4e3xE5fe52A==/lib/arm/libyhook.so (Java_com_kunpeng_pit_HookMain_findAndBackupAndHook+528) java_vm_ext.cc:504] native: #09 pc 00002567 /data/app/com.duowan.mobile-yPcshY0M8YK4e3xE5fe52A==/oat/arm/base.odex (Java_com_kunpeng_pit_HookMain_findAndBackupAndHook__Ljava_lang_Class_2Ljava_lang_String_2Ljava_lang_String_2ZLjava_lang_reflect_Method_2Ljava_lang_reflect_Method_2Ljava_lang_reflect_Method_2+246) java_vm_ext.cc:504] at com.kunpeng.pit.HookMain.findAndBackupAndHook(Native method) java_vm_ext.cc:504] at com.kunpeng.pit.HookMain.aoy(HookMain.java:75) java_vm_ext.cc:504] at com.kunpeng.pit.HookMain.aox(HookMain.java:57)
sdk不能混淆,请注意看说明
重编sdk之后,集成到项目中,运行会崩溃。log: java_vm_ext.cc:504] JNI DETECTED ERROR IN APPLICATION: expected non-null method java_vm_ext.cc:504] in call to FromReflectedMethod java_vm_ext.cc:504] from void com.kunpeng.pit.HookMain.findAndBackupAndHook(java.lang.Class, java.lang.String, java.lang.String, boolean, java.lang.reflect.Method, java.lang.reflect.Method, java.lang.reflect.Method) java_vm_ext.cc:504] "main" prio=7 tid=1 Runnable java_vm_ext.cc:504] | group="main" sCount=0 dsCount=0 flags=0 obj=0x731d8d70 self=0xe8390000 java_vm_ext.cc:504] | sysTid=26300 nice=-4 cgrp=default sched=0/0 handle=0xe86ba4a8 java_vm_ext.cc:504] | state=R schedstat=( 0 0 0 ) utm=190 stm=23 core=5 HZ=100 java_vm_ext.cc:504] | stack=0xff0aa000-0xff0ac000 stackSize=8MB java_vm_ext.cc:504] | held mutexes= "mutator lock"(shared held) java_vm_ext.cc:504] native: #00 pc 002c5ab7 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+130) java_vm_ext.cc:504] native: #01 pc 00359a6f /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+202) 07-04 11:10:46.022 26300-26300/com.duowan.mobile A/zygote: java_vm_ext.cc:504] native: #02 pc 00355ec5 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+36) java_vm_ext.cc:504] native: #03 pc 002306f1 /system/lib/libart.so (ZN3art9JavaVMExt8JniAbortEPKcS2+736) java_vm_ext.cc:504] native: #04 pc 00230ae7 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9va_list+58) java_vm_ext.cc:504] native: #05 pc 000d3237 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+46) java_vm_ext.cc:504] native: #06 pc 000d373f /system/lib/libart.so (_ZN3art11ScopedCheck20CheckReflectedMethodERNS_18ScopedObjectAccessEP8_jobject+154) java_vm_ext.cc:504] native: #07 pc 000be875 /system/lib/libart.so (_ZN3art8CheckJNI19FromReflectedMethodEP7_JNIEnvP8_jobject+464) java_vm_ext.cc:504] native: #08 pc 000011cc /data/app/com.duowan.mobile-yPcshY0M8YK4e3xE5fe52A==/lib/arm/libyhook.so (Java_com_kunpeng_pit_HookMain_findAndBackupAndHook+528) java_vm_ext.cc:504] native: #09 pc 00002567 /data/app/com.duowan.mobile-yPcshY0M8YK4e3xE5fe52A==/oat/arm/base.odex (Java_com_kunpeng_pit_HookMain_findAndBackupAndHook__Ljava_lang_Class_2Ljava_lang_String_2Ljava_lang_String_2ZLjava_lang_reflect_Method_2Ljava_lang_reflect_Method_2Ljava_lang_reflect_Method_2+246) java_vm_ext.cc:504] at com.kunpeng.pit.HookMain.findAndBackupAndHook(Native method) java_vm_ext.cc:504] at com.kunpeng.pit.HookMain.aoy(HookMain.java:75) java_vm_ext.cc:504] at com.kunpeng.pit.HookMain.aox(HookMain.java:57)