concept device shell in category android

appears as: device shell
Android in Practice

This is an excerpt from Manning's book Android in Practice.

Once ADB knows which device it’s targeting, you can trigger various commands to interact with it, such as copying files from and to it, installing and removing application packages, rebooting the device, or opening a command shell on it. To see a full list of available commands and their options, run adb without any arguments. It’s worth noting that most commands you can directly pass to ADB are shortcuts to commands that you’d otherwise run on the device’s command shell. For instance, the adb install command is a shortcut to the device’s package manager command pm, and hence is equivalent to running adb shell pm install. For that reason, we’ll now take a closer look at how to use the device shell directly.