在Windows下运行的亚行六 [英] Running vi in adb under Windows
问题描述
很偶然,我会想编辑一个文件,说/system/build.prop或/ etc /我的Android设备上的主机。我发现,这样做最简单的方法是:
Very occasionally, I will want to edit a file, say /system/build.prop or /etc/hosts on my Android device. I find that the easiest way to do it is:
c:\> adb shell
$ su
# vi /etc/hosts
这如果我使用Linux工作正常。但是,试图在borked六屏奇怪的字符使用Windows结果时,我的手机上运行的VI。我猜想这是因为 CMD
不支持ANSI控制字符。
This works fine if I'm using Linux. However, attempting to run vi on my phone when using Windows results in a borked vi screen with strange characters. I'm assuming this is because cmd
doesn't support ANSI control characters.
有什么办法来解决这个问题(例如,一个cmd替代方案,没有工作)?
Is there any way to fix this (e.g., a cmd alternative that does the job)?
推荐答案
您可以用 PuTTYTray 做到这一点。这是腻子的改进版本,它提供许多附加功能。其中一个特点是Android版的亚行的支持。要使用它:
You can do it with PuTTYTray. It's an improved version of PuTTY which features a number of additional features. One of such feature is Android adb support. To use it:
- 选择
亚行
为连接类型的 - 输入
-d
(单USB设备)或设备的序列号在主机的字段李的> - ???
- 盈利!!!
- Select
Adb
as Connection type - Enter
-d
(for single usb device) or device serial number in the host field - ???
- PROFIT!!!
这篇关于在Windows下运行的亚行六的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!