block-root-check
4 views
2f9ef73a...
Description
a simple code to block root checking function
How to Use
Download the script and run it with Frida CLI:
Download ScriptThen run with Frida:
frida -U -f YOUR_PACKAGE_NAME -l block-root-check.js
Replace YOUR_PACKAGE_NAME with the target app's package name.
Source Code
JavaScript
Java.perform(function () {
var cls = Java.use("o.applyHelperParams$cancelAll");
var overload = cls['_$$a'].overload('android.content.Context', 'long', 'long');
var orig = overload.implementation;
// replace with our hook
overload.implementation = function (context, j1, j2) {
console.log("[HOOK] _$$a called - context:", context, "j1:", j1, "j2:", j2);
//return orig.apply(this, arguments);
};
console.log("[+] Hook installed for _$$a");
});
Comments