For Android users, ADB (or Android Debug Bridge) is the wonder toy. Most of the modifications, hacks and changes to the Android operating environment rely on the use of this debug bridge. Although now many tools have matured enough to skip the command line interface in favor of a GUI, nothing still beats the power of a manual command input, and the manipulation that it brings. Hence the ADB still remains developers’ favorite.
If you’re working with Linux, that’s one thing, but since most people use Windows, running the ‘adb shell’ command from standard Windows command line interface results in frustration and a blatant interface. Normally, a workaround is established in the form of running a telnet server on the Android device and using Putty in Windows to connect to that telnet server. This again, is not a very easy solution.
Thanks for senior XDA member sztupy, there is an easier way. The ADB itself sports a kind of terminal connection feature, which Putty can connect to directly. To get this working, you need to do quite a handful of manual adjustments. sztupy has compiled a Putty binary with most of the settings pre-set. Hence this Putty binary will give you a new connection type, ‘adb’, as shown in the screenshot below.
Here’s how you can connect your Android device for adb shelll command with sztupy’s modified Putty. Please note that you still need to have ADB installed on your machine – this is not a replacement tool for that.
- Put your Android device in USB Debugging mode and connect it to PC via USB cable
- Download the modified Putty binary here (mirror) and run it
- Select ‘adb’ from connection type
- Enter ‘transport-usb’ (without quotes) in the ‘host’ field
- Enter 5037 as port (it should already be there, but enter manually if not)
That’s it. Hit the Open button to connect and enjoy adb shell command in a much better interface. You may want to save these connection settings in Putty for future connections.
For reference and more, check out the actual thread here on XDA forums.