panhongwei / AndroidMethodHook

android art hook like Sophix
281 stars 76 forks source link

在8.0设备下不能正常work(Pixel 8.0.0) #2

Closed Wood-Wang closed 7 years ago

Wood-Wang commented 7 years ago

09-28 18:23:05.175 4412-4412/? I/zygote: Late-enabling -Xcheck:jni 09-28 18:23:05.409 4412-4412/com.panda.hook.andhook D/panda: java.lang.ClassNotFoundException: java.lang.reflect.AbstractMethod at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:453) at java.lang.Class.forName(Class.java:378) at com.panda.hook.javahook.HookUtil.compute(HookUtil.java:219) at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.doLoad(Runtime.java:1099) at java.lang.Runtime.loadLibrary0(Runtime.java:1014) at java.lang.System.loadLibrary(System.java:1657) at com.panda.hook.javahook.HookUtil.(HookUtil.java:26) at com.panda.hook.javahook.HookUtil.sign(HookUtil.java:291) at com.panda.hook.javahook.HookManager.beginHook(HookManager.java:52) at com.panda.hook.javahook.HookManager.addNeedsMethod(HookManager.java:162) at com.panda.hook.javahook.HookManager.startHooks(HookManager.java:153) at com.panda.hook.andhook.APP.attachBaseContext(APP.java:67) at android.app.Application.attach(Application.java:189) at android.app.Instrumentation.newApplication(Instrumentation.java:1102) at android.app.Instrumentation.newApplication(Instrumentation.java:1086) at android.app.LoadedApk.makeApplication(LoadedApk.java:965) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5765) at android.app.ActivityThread.-wrap1(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) Caused by: java.lang.ClassNotFoundException: Didn't find class "java.lang.reflect.AbstractMethod" on path: DexPathList[[zip file "/data/app/com.panda.hook.andhook-zx5UcuYpD6N2vzfb3SQgbw==/base.apk"],nativeLibraryDirectories=[/data/app/com.panda.hook.andhook-zx5UcuYpD6N2vzfb3SQgbw==/lib/arm, /data/app/com.panda.hook.andhook-zx5UcuYpD6N2vzfb3SQgbw==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at java.lang.Class.classForName(Native Method)  at java.lang.Class.forName(Class.java:453)  at java.lang.Class.forName(Class.java:378)  at com.panda.hook.javahook.HookUtil.compute(HookUtil.java:219)  at java.lang.Runtime.nativeLoad(Native Method)  at java.lang.Runtime.doLoad(Runtime.java:1099)  at java.lang.Runtime.loadLibrary0(Runtime.java:1014)  at java.lang.System.loadLibrary(System.java:1657)  at com.panda.hook.javahook.HookUtil.(HookUtil.java:26)  at com.panda.hook.javahook.HookUtil.sign(HookUtil.java:291)  at com.panda.hook.javahook.HookManager.beginHook(HookManager.java:52)  at com.panda.hook.javahook.HookManager.addNeedsMethod(HookManager.java:162)  at com.panda.hook.javahook.HookManager.startHooks(HookManager.java:153)  at com.panda.hook.andhook.APP.attachBaseContext(APP.java:67)  at android.app.Application.attach(Application.java:189)  at android.app.Instrumentation.newApplication(Instrumentation.java:1102)  at android.app.Instrumentation.newApplication(Instrumentation.java:1086)  at android.app.LoadedApk.makeApplication(LoadedApk.java:965)  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5765)  at android.app.ActivityThread.-wrap1(Unknown Source:0)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)  at android.os.Handler.dispatchMessage(Handler.java:105)  at android.os.Looper.loop(Looper.java:164)  at android.app.ActivityThread.main(ActivityThread.java:6541)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)  09-28 18:23:05.409 4412-4412/com.panda.hook.andhook D/panda: size offset=0 09-28 18:23:05.496 4412-4412/com.panda.hook.andhook W/zygote: Skipping duplicate class check due to unrecognized classloader 09-28 18:23:05.502 4412-4412/com.panda.hook.andhook E/panda: java.lang.NoSuchMethodException: getSignature [] at java.lang.Class.getMethod(Class.java:2068) at java.lang.Class.getDeclaredMethod(Class.java:2047) at com.panda.hook.javahook.HookManager.beginHook(HookManager.java:110) at com.panda.hook.javahook.HookManager.addNeedsMethod(HookManager.java:162) at com.panda.hook.javahook.HookManager.startHooks(HookManager.java:153) at com.panda.hook.andhook.APP.attachBaseContext(APP.java:67) at android.app.Application.attach(Application.java:189) at android.app.Instrumentation.newApplication(Instrumentation.java:1102) at android.app.Instrumentation.newApplication(Instrumentation.java:1086) at android.app.LoadedApk.makeApplication(LoadedApk.java:965) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5765) at android.app.ActivityThread.-wrap1(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6541) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 09-28 18:23:05.525 4412-4417/com.panda.hook.andhook I/zygote: Do partial code cache collection, code=30KB, data=25KB 09-28 18:23:05.525 4412-4417/com.panda.hook.andhook I/zygote: After code cache collection, code=30KB, data=25KB 09-28 18:23:05.525 4412-4417/com.panda.hook.andhook I/zygote: Increasing code cache capacity to 128KB 09-28 18:23:05.615 4412-4412/com.panda.hook.andhook D/panda: res=null 09-28 18:23:05.615 4412-4412/com.panda.hook.andhook D/panda: res=null 09-28 18:23:05.615 4412-4412/com.panda.hook.andhook D/panda: before reflect 09-28 18:23:05.615 4412-4412/com.panda.hook.andhook D/panda: after reflect 09-28 18:23:05.615 4412-4412/com.panda.hook.andhook D/panda: after invoke 09-28 18:23:05.645 4412-4452/com.panda.hook.andhook D/OpenGLRenderer: HWUI GL Pipeline 09-28 18:23:05.683 4412-4452/com.panda.hook.andhook I/Adreno: QUALCOMM build : 7142022, Ib5823dd10c Build Date : 06/23/17 OpenGL ES Shader Compiler Version: EV031.18.00.00 Local Branch : O11A Remote Branch : Remote Branch : Reconstruct Branch : 09-28 18:23:05.691 4412-4452/com.panda.hook.andhook I/Adreno: PFP: 0x005ff087, ME: 0x005ff063 09-28 18:23:05.695 4412-4452/com.panda.hook.andhook I/OpenGLRenderer: Initialized EGL, version 1.4 09-28 18:23:05.695 4412-4452/com.panda.hook.andhook D/OpenGLRenderer: Swap behavior 2