Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError getPackageInfo #71

Open
ghost opened this issue Jun 12, 2019 · 0 comments
Open

NoSuchMethodError getPackageInfo #71

ghost opened this issue Jun 12, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 12, 2019

Version: 3.6.2

  public static boolean hookPackageInfo(final Context ctx) throws Exception{		
	XposedHelpers.findAndHookMethod(PackageManager.class, "getPackageInfo", new XC_MethodHook() {
			protected void afterHookedMethod(MethodHookParam methodHookParam) throws Throwable {
				super.afterHookedMethod(methodHookParam);
			
				}});
	return true;
}

java.lang.NoSuchMethodError: android.content.pm.PackageManager#getPackageInfo()#exact at andhook.lib.xposed.XposedHelpers.findMethodExact(XposedHelpers.java:352) at andhook.lib.xposed.XposedHelpers.findAndHookMethod(XposedHelpers.java:184) at andhook.test.XSignHooks.hookPackageInfo(XSignHooks.java:24) at andhook.test.ui.MainActivity.onCreate(MainActivity.java:64) at android.app.Activity.performCreate(Activity.java:5966) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2408) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2517) at android.app.ActivityThread.access$800(ActivityThread.java:162) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:189) at android.app.ActivityThread.main(ActivityThread.java:5529) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:950) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:745) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants