This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Enable remote debugging of Android WebViews at Runtime using Frida | |
*/ | |
Java.perform(function() { | |
Java.choose("android.webkit.WebView", { | |
"onMatch": function(o) { | |
try { | |
// Use a Runnable to invoke the setWebContentsDebuggingEnabled | |
// method in the same thread as the WebView | |
var Runnable = Java.use('java.lang.Runnable'); |