首页
社区
课程
招聘
hook 某app 报错如下 不知原因
发表于: 2020-4-25 12:03 5251

hook 某app 报错如下 不知原因

2020-4-25 12:03
5251
4-25 11:53:21.482 E/Xposed  ( 1962): ... 22 more
04-25 11:53:21.482 E/Xposed  ( 1962): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
04-25 11:53:21.702 I/Xposed  ( 2015): afterHookedMethod 函数返回值:
04-25 11:53:21.728 E/Xposed  ( 2015): de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: g.d0.d.a.j.q
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:71)
04-25 11:53:21.728 E/Xposed  ( 2015): at hook.hookgifmaker.handleLoadPackage(hookgifmaker.java:18)
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.IXposedHookLoadPackage$Wrapper.handleLoadPackage(IXposedHookLoadPackage.java:34)
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.callbacks.XC_LoadPackage.call(XC_LoadPackage.java:61)
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.callbacks.XCallback.callAll(XCallback.java:106)
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.XposedInit$2.beforeHookedMethod(XposedInit.java:134)
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:340)
04-25 11:53:21.728 E/Xposed  ( 2015): at android.app.ActivityThread.handleBindApplication(<Xposed>)
04-25 11:53:21.728 E/Xposed  ( 2015): at android.app.ActivityThread.access$1600(ActivityThread.java:153)
04-25 11:53:21.728 E/Xposed  ( 2015): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
04-25 11:53:21.728 E/Xposed  ( 2015): at android.os.Handler.dispatchMessage(Handler.java:102)
04-25 11:53:21.728 E/Xposed  ( 2015): at android.os.Looper.loop(Looper.java:148)
04-25 11:53:21.728 E/Xposed  ( 2015): at android.app.ActivityThread.main(ActivityThread.java:5459)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.reflect.Method.invoke(Native Method)
04-25 11:53:21.728 E/Xposed  ( 2015): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
04-25 11:53:21.728 E/Xposed  ( 2015): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)
04-25 11:53:21.728 E/Xposed  ( 2015): Caused by: java.lang.ClassNotFoundException: g.d0.d.a.j.q
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.Class.classForName(Native Method)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.Class.forName(Class.java:324)
04-25 11:53:21.728 E/Xposed  ( 2015): at external.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
04-25 11:53:21.728 E/Xposed  ( 2015): at de.robv.android.xposed.XposedHelpers.findClass(XposedHelpers.java:69)
04-25 11:53:21.728 E/Xposed  ( 2015): ... 16 more
04-25 11:53:21.728 E/Xposed  ( 2015): Caused by: java.lang.ClassNotFoundException: Didn't find class "g.d0.d.a.j.q" on path: DexPathList[[zip file "/system/framework/miuipushsdkshared.jar", zip file "/system/framework/miuistatssdkshared.jar", zip file "/system/framework/cloud-common.jar", zip file "/system/framework/android-support-v13.jar", zip file "/system/app/XiaomiServiceFramework/XiaomiServiceFramework.apk"],nativeLibraryDirectories=[/system/app/XiaomiServiceFramework/lib/arm64, /vendor/lib64, /system/lib64]]
04-25 11:53:21.728 E/Xposed  ( 2015): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
04-25 11:53:21.728 E/Xposed  ( 2015): ... 20 more
04-25 11:53:21.728 E/Xposed  ( 2015): Suppressed: java.lang.ClassNotFoundException: Didn't find class "g.d0.d.a.j.q" on path: DexPathList[[dex file "/data/dalvik-cache/xposed_XResourcesSuperClass.dex", dex file "/data/dalvik-cache/xposed_XTypedArraySuperClass.dex"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
04-25 11:53:21.728 E/Xposed  ( 2015): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
04-25 11:53:21.728 E/Xposed  ( 2015): ... 21 more
04-25 11:53:21.728 E/Xposed  ( 2015): Suppressed: java.lang.ClassNotFoundException: g.d0.d.a.j.q
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.Class.classForName(Native Method)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
04-25 11:53:21.728 E/Xposed  ( 2015): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
04-25 11:53:21.728 E/Xposed  ( 2015): ... 22 more
04-25 11:53:21.728 E/Xposed  ( 2015): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
04-25 11:53:21.895 I/Xposed  ( 2037): afterHookedMethod 函数返回值:
04-25 11:53:21.901 E/Xposed  ( 2037): de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: g.d0.d.a.j.q


package hook;

import android.util.Log;

import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage;


public class hookgifmaker implements IXposedHookLoadPackage {
    private final String PAGE_NAME = "com.smile.MainActivity";

    @Override
    public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
        XposedBridge.log("afterHookedMethod 函数返回值:");
        final Class<?> clazz = XposedHelpers.findClass("g.d0.d.a.j.q", lpparam.classLoader);

        if (!lpparam.packageName.equals(PAGE_NAME)) return;

        XposedHelpers.findAndHookMethod(clazz, "b", null, new XC_MethodHook() {

            @Override
            protected void afterHookedMethod(MethodHookParam param) throws Throwable {

                super.afterHookedMethod(param);

                XposedBridge.log("afterHookedMethod 函数返回值:" + param.getResult());
                Log.i("hook到的信息", "正在hook 请注意");
                Log.i("hook的结果为", String.valueOf(param.getResult()));

            }

        });

    }

}


[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

最后于 2020-4-25 12:03 被Erlösung编辑 ,原因:
收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 17
活跃值: (891)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
目测问题太简单没人会回答  是啥APP啊
2020-4-25 13:58
0
雪    币: 302
活跃值: (825)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
没有传入参数不是直接不写的么,为什么是null?
2020-4-25 21:02
0
雪    币: 0
活跃值: (353)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
天边之云 没有传入参数不是直接不写的么,为什么是null?
我写了个string.class 也没用
2020-4-25 23:24
0
雪    币: 0
活跃值: (353)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
快手sig3
2020-4-25 23:24
0
游客
登录 | 注册 方可回帖
返回
//