码迷,mamicode.com
首页 > 数据库 > 详细

ADB enhanced Putty (replacement for "adb shell" co

时间:2015-04-08 23:32:45      阅读:438      评论:0      收藏:0      [点我收藏+]

标签:

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

Screenshot:
技术分享

ADB enhanced Putty (replacement for "adb shell" co

标签:

原文地址:http://my.oschina.net/u/265368/blog/397558

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!