Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Hook Activity.performCreate() in Chrome will cause other app crash if WebView is used #221

Open
bluesky139 opened this issue Nov 12, 2017 · 0 comments

Comments

@bluesky139
Copy link

Hook Activity.performCreate() in Chrome, and leave beforeHookedMethod empty:

if (lpparam.packageName.equals("com.android.chrome")) {
	Log.d("Xposed", "test xposed chrome.");
	XposedHelpers.findAndHookMethod(Activity.class, "performCreate", Bundle.class, new XC_MethodHook() {
		@Override
		protected void beforeHookedMethod(MethodHookParam param) throws Throwable {

		}
	});
}

Then, create WebView in normal app, WebView webView = new WebView(this);, it will crash.
Make sure Chrome is installed.

Xposed version is 88.2, Android version is 7.1.
Test project is attached.
WebViewCrash.zip

I can reproduce in Genymotion emulator and my Nexus 5.

Crash log is attached.
WebViewCrash.log

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

No branches or pull requests

1 participant