Linux – Need some help with Terminal Emulator (Android app) commands. (Similar to Linux commands)

androidlinuxrootshellterminal

I'm trying to follow this tutorial to install Mobile Defense as a system application on my Motorola Droid. I want to use Terminal Emulator and the commands are basically the same. The only two commands I don't know how to do on the Terminal Emulator is "adb shell" (to open up a remote shell – is this necessary?) and "adb push" in the Android Debug Bridge. How can I do this in the Terminal Emulator? If you're not familiar with Terminal Emulator, it is my understanding that it uses basic Linux Command Line commands.

I tried rsh for abd shell, and that didn't work. And another user on here told me cp would replace adb push, but Terminal Emulator didn't recognize it.

Best Answer

The adb commands are meant to be run from the host machine that your phone is connected to via USB. The adb utility is installed with the Android SDK on your development machine.

The "adb shell" command, when run from your host machine, will open a shell that connects you to your Android device. It seems like you are trying to run the shell directly on your Droid. That may work fine for the commands in Steps 4-6 of the Mobile Defense tutorial, but I'm not sure.

There may also be a way to do the adb push directly on your phone. I'm not sure about that either but maybe someobody else will have an authoritative answer. In the end, it is probably just easier to install the Android SDK to gain access to the adb tool. The author of the tutorial assumes that you do have access to the adb tool somehow.

Related Question