On android there are two methods to run shell commands either using java or using jni.
I was wondering if it is more efficient to run shell commands on one or the other.
Java
runtime.exec("su");
Jni
system("su");
Though I did hear that Jni doesn't accept multiple commands which might be a setback.