nata-kit/src/main/java/com/nata/ShellKit.java
/**
     * Run shell command starting with 'adb shell'
     *
     * @param cmd command string array to execute
     * @return  Any Output
     */
Run shell command starting with 'adb shell'
@param cmd command string array to execute
@return  Any Output
Run shell command starting with ' adb shell ' @param cmd command string array to execute @return Any Output
public static String adbShell(String... cmd) {
        ArrayList<String> cmds = new ArrayList<>();
        cmds.add("adb");
        cmds.add("shell");
        for (String part:cmd
                ) {
            cmds.add(part) ;
        }
        return command(cmds);
    }
public static String adbShell ( String ... cmd ) { ArrayList < String > cmds = new ArrayList < > ( ) ; cmds . add ( "adb" ) ; cmds . add ( "shell" ) ; for ( String part : cmd ) { cmds . add ( part ) ; } return command ( cmds ) ; }
Run shell command starting with 'adb shell'
 @param cmd command string array to execute
 @return  Any Output
Run shell command starting with ' adb shell ' @param cmd command string array to execute @return Any Output