I'm trying to bypass rootDetection in an android app using Frida.
I've found the class and method which is checking if the device is rooted or not and tried to change the return value of this method, but I'm getting a confusing error :
Error: Implementation for isDeviceRooted expected return value compatible with java.lang.Boolean
My script is simple :
var hook = Java.use("app.name.someClasses.RootUtils");
hook.isDeviceRooted.overload().implementation = function() {
return false;
}
I tried to googling but I don't understand what's the difference between Boolean(false) and false, it's just a wrapper and seriously what should I return here to be compatible with the main method return value?!