Closed pnill closed 6 years ago
Was able to correct this by tracing what getSettings was returning from the webview it turns out it doesn't reference a WebSettings object but rather something deeper which extends it.
So by hooking com.android.webview.chromium.ContentSettingsAdapter's setJavaScript method I was able to get the desired result.
Not sure what's going wrong here, I've added the following to hooks.json:
And have an apk with the following code: setContentView(R.layout.activity_main);
I never see the setJavaScriptEnabled show up in droidMon as being hooked and I also never get an error produced.
String logVerbose = "JavaScriptDebugging: " + n.getJavaScriptEnabled(); Log.v( "Security App Test",logVerbose);
Doing the following I can see that javascript has in-deed been enabled though.
Wondering if you can help correct this.