ads

Affichage des articles dont le libellé est ReplaceMethod. Afficher tous les articles
Affichage des articles dont le libellé est ReplaceMethod. Afficher tous les articles

vendredi 28 août 2015

ReplaceMethod and XposedHelpers#ClassNotFoundError



Hi guys, could anyone tell me why this "simple" replacement keeps throwing ClassNotFoundErrror.
I have decompiled the Dialer.apk and i can see clearly that the class is there.


Code:


        public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
                        if (!"com.android.dialer".equals(lpparam.packageName)) {
                                return;
                        }
                        findAndHookMethod("com.android.dialer.calllog.DefaultVoicemailNotifier", lpparam.classLoader,
                                        "updateNotification", Uri.class,
                                        new XC_MethodReplacement() {
                                                @Override
                                                protected Object replaceHookedMethod(MethodHookParam param)
                                                                throws Throwable {
                                                        XposedBridge.log("replaced");
                                                        return null;
                                                }
                                        });
                                       
                }


Thanks