How can I run Linux commands on an Android device?

前端 未结 6 1926
既然无缘
既然无缘 2020-12-15 10:44

On some Android devices, in the ADB shell, I can only run echo, cd, ls. When I run:

tar -cvf //mnt/sdcard/BackUp1669/a         


        
6条回答
  •  不知归路
    2020-12-15 10:50

    As far as i know, the only way to run shell commands is:

    Process proc = Runtime.getRuntime().exec("your command");
    

提交回复
热议问题