XposedBridge icon indicating copy to clipboard operation
XposedBridge copied to clipboard

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

Open bluesky139 opened this issue 7 years ago • 0 comments

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

bluesky139 avatar Nov 12 '17 07:11 bluesky139