On some Android devices, in the ADB shell, I can only run echo, cd, ls. When I run:
echo
cd
ls
tar -cvf //mnt/sdcard/BackUp1669/a
As far as i know, the only way to run shell commands is:
Process proc = Runtime.getRuntime().exec("your command");