Here you can find the source of runSuCommandNoScriptWrapper(Context context, String command)
public static int runSuCommandNoScriptWrapper(Context context, String command) throws IOException, InterruptedException
//package com.java2s; import java.io.IOException; import android.content.Context; public class Main { public static int runSuCommandNoScriptWrapper(Context context, String command) throws IOException, InterruptedException { String[] args = new String[] { "su", "-c", command }; Process proc = Runtime.getRuntime().exec(args); return proc.waitFor(); }// ww w . ja v a 2 s. c om }