My app needs to request SU access (on rooted devices) and the only examples out there say to do this:
Process p = null;
p = Runtime.getRuntime().exec("su");
That's fine, but how do I associate that p process with what I want to do next? For example how do I use that process to open a database so that the attempt to open the database happens with root permissions?