pyler
pyler
findAndHookMethod("java.lang.Runtime", lpparam.classLoader, "loadLibrary", String.class, ClassLoader.class, new XC_MethodReplacement() { @Override protected Object replaceHookedMethod(MethodHookParam param) throws Throwable { String libname = (String) param.args[0]; ``` String soLibrary = "/data/lib" + libname + ".so";...
But when you do this and setprop wrap. (rootinspector package) "logwrapper /data/local/rootcloak-wrapper.sh", have you got any logs in logcat with lines "path %s mode %s"? I tested it on Genymotion...
I think RootCloakPlus lib can be easily ported https://github.com/devadvance/rootcloakplus/blob/master/jni/rootcloakplus.cy.cpp now.
rootcloak-wrapper.sh and librootcloak.so to /data/local... chmod them to 755. setproped. Then I launched root inspector and I was not able to see any logs. Nexus 7 2012 and Android 5.1...
execlp("ls", "ls", path, (char *)0); // check for path execlp("pm", "pm", "list", "packages", (char *)0); // check for packages, replace with "users" maybe? so I believe execlp should be "hooked"...
Oh, but now I get Error reading pid error on Genymotion: *1: http://pastebin.com/NusmhKJv "executing /data/local/rootcloak-wrapper.sh failed: No such file or directory" but I have it 130|root@vbox86p:/ # ls -ll /data/local...
Maybe because system API cant see "/data/local"?
https://android.googlesource.com/platform/frameworks/base/+/android-6.0.0_r3/cmds/pm/src/com/android/commands/pm/Pm.java#330 So, if RootCloaks hooks Android API to get Installed Apps, it should work without needing to touch execlp. Just check Binder.getCaller API to see if SHELL/ROOT UID and then...
https://github.com/devadvance/rootcloak/pull/69 Well, but I am still unable to make it working.. i used /data/local, /cache/, /tmp .. I chmoded everything to 777 for sure, lol. still nothinh. "executing /(location)/rootcloak-wrapper.sh failed:...
1|root@vbox86p:/data/local # ls librootcloak.so rootcloak-wrapper.sh tmp root@vbox86p:/data/local # `/data/local/rootcloak-wrapper.sh ls` (your command) /system/bin/sh: /data/local/rootcloak-wrapper.sh: No such file or directory ehmmmmm :D