HOW TO PUTTY IN TO ANDROID DEVICE VIA USB
##########################################

Note: Using Samsung S4, its rooted (but should work without root)

First make sure you:
USB debuggin is enabled
Plug in Phone via USB

ADB
####

Open CMD or CONEMU window to where you have a working adb.exe file (its where you install the android sdk tools, in the sdk\platform-tools folder)

Run this (Without the >):
> adb start-server

If successful it should say daemon started successfully on port 5037.
If not there is no use continuing, get that to work by googling your problem

PUTTY ADB
###########

So we are using this method, which requires this putty download (its a fork off putty that allows adb connections)

http://forum.xda-developers.com/showthread.php?t=803225
https://github.com/downloads/sztupy/adbputty/putty.exe

Open Putty.exe (from their link, not your regular putty – dont worry it doesnt interfere with your putty)

Configure it like so

Connection Type: Adb

Host Name: transport-usb

Port: 5037

The default port is 5037, its that port that you see is opened when we ran adb start-server

Then you should connect right in, change to root with “su” (if your rooted it will work)

TO END CONNECTION: close out of process (and your su, root environment), then close out of putty (their adb putty thing), then close out adb server with this command: >adb kill-server and now its good to disconnect the USB cable

THEIR MANUAL
##############

We all know that running “adb shell” from the command line is pretty crap, and when using a latter busybox version which has coloring support it’s ultimately crap. One workaround was usually to start a telnet server on the phone, and use putty to connect to that telnet server. Actually there is a more easier way to do that which also works for non rooted phones.

Actually the Android Debug Bridge has a terminal connection feature (roughly speaking), which will be enabled after you connect to the adb server in “0006shell:” mode. You can actually use the putty to connect to this interface always, by setting the following things:
– Turn off line discipline in settings
– Use RAW mode to connect to localhost:5037
– Enter “0012transport-usb” (without quotes)
– Enter “0006shell:” (without quotes)

Now you’ve got a full fledged connection to your device. The main drawback is that it’s tedious to repeat the above all the time, so I’ve made some modifications to the putty binary that adds a new type of connection, called “Adb”

To use the enhanced putty:
– Select Adb from the connection type list
– Enter “transport-usb” in the host (or any other connection string, check the adb socket interface documentation if you need something else than connecting via usb)
– Enter 5037 as port, if it’s not already set there.
– Connect and enjoy (you might also save this connection, so next time you only have to double-click on the settings)

DL and source: http://github.com/sztupy/adbputty/downloads

Leave a Reply

Your email address will not be published. Required fields are marked *