Friday, May 27, 2016

Hook my own lib

I'm having some difficulty on hooking a lib created by me (.jar)
Apparently Xposed can't see the lib's package.

I'm using this code to see the packages hooked by the xposed and to hook my class:

Code:

    public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
        Log.v("LogModule", lpparam.packageName);
        findAndHookMethod("com.example.ClassTest", lpparam.classLoader, "lock", new XC_MethodHook() {
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable{
                Log.v("LogModule", "Hooked");
                Log.v("LogModule", param.thisObject.toString());
            }
        });

is there any issue in hooking an .jar class?

Thks ;)


from xda-developers http://ift.tt/20LuqDy
via IFTTT

No comments:

Post a Comment