I ve got a problem, executing su with parameters (containing blank space?!). My Command.java looks like this:
public class Command { Process process; public
I think the way to pass arguments to the su command would be to use a string array:
su
Runtime.getRuntime().exec(new String[]{"su","-c", "ls /data/data/"});