I am writing an app for my Pixel that calls a binary that needs root to run effectively. I am currently running an eng build that I build from aosp with root access (lunch aosp_saifish-eng). I am able to run my binary in root shell through adb. However, when I try to kick it off from an app that I wrote in Android Studio, I get a permission denied error. I am calling for root using this code:
Process rootProcess = Runtime.getRuntime().exec("su");
Is there a way for an app to use su without the help of a root management app like SuperSU? Perhaps my understanding of root is lacking. I would appreciate any help or direction as to where to go to learn more about why this is not working.
Hey, someone please help me out. I recently used a service to root my Samsung galaxy s7 edge. Everything seems to have worked out properly, they used supersu, Odin, flashfire, and maybe some other stuff...Okay, so here's where I messed up. I couldn't log back into my snap account once I had logged out. I did some amount of research and found out that Android phones that have been rooted get the same error message I received. Oh no! It looks like your log in temporarily failed... Anyway, I also found out that some people can hide the root from apps. I downloaded "Hide my root" from the app store, which I had watched an individual use to successfully log back into snap. I followed the simple directions, but the process of hiding the root never finished. I had to restart, and since then seemingly nothing really has root access anymore, and furthermore I still can't log back into Snapchat. I have uninstalled "Hide my root" but Supersu still says "SU binary occupied"... Now I don't know what to do. Root Checker still says I'm rooted, but like I said, everything stills seems to have lost root access. I really need some help here folks. Life is hard now.