通过无线开发基于Android的设备 [英] Developing on android-based device via wireless
问题描述
将Android应用程序直接开发到设备上的一种已知方法是使用usb连接器并使用eclipse安装驱动程序。因此,是否有一种已知的方法来执行此无线?
One known way to develop your android application directly onto the device is using the usb connector and install the driver using eclipse. As such, is there a known way to do this wireless?
编辑:
理想情况下,这不应该需要rooted设备。
Ideally this shouldn't require rooted device.
推荐答案
更新:现在支持最近的SDK。在无线使用下查看 here 。
UPDATE: This is now natively supported with recent SDKs. Look here under "Wireless Usage".
简而言之:
- 通过USB连接到您的设备
- 输入adb tcpip 5555
- 拔下您的设备
- 在系统设置中查找设备的IP
- 输入adb connect [ip address]:5555
- 就是这样!
- Connect to your device via USB
- Enter "adb tcpip 5555"
- Unplug your device
- Look up your device's IP in the system settings
- Enter "adb connect [ip address]:5555"
- That's it!
为了记录,这里是旧版本的答案:
For the record, here is the old version of the answer:
安装无线ADB应用程序。这里的详细信息: http://www.androidcentral.com/android-quick-app -adb-wireless
Install the wireless ADB app. Details here: http://www.androidcentral.com/android-quick-app-adb-wireless
编辑:好的,那个需要root。如果你没有根,那将会变得更麻烦。在我的头顶,这是你可以做的:
Okay, that one requires root. If you don't have root, it's going to be a bit more cumbersome. Off the top of my head, here's what you can do:
- 使用任何无线传输方式(蓝牙或FTP,有很多
- 使用文件管理器(例如OI文件管理器)导航到文件并打开它
如果您使用FTP,则可以通过命令行自动执行步骤1(至少在基于Unix的系统上,很可能通过蓝牙)。
Step 1 can be automated through the command line if you're using FTP (and, at least on Unix-based systems, most likely via Bluetooth as well).
步骤2,嗯,不能简单的轻松。但是您可以编写一个安装程序应用程序,只需在手机上的APK文件上执行一个ACTION_VIEW。
Step 2, well, cannot be simplified THAT easily. But you could write an installer app that simply does an ACTION_VIEW on the APK file on your phone.
显然,这将通过程序包安装程序,所以你将确认安装过程和一切。但是,它是无线的:)
Obviously, this will go through the package installer, so you'll have to confirm the installation process and everything. But hey, it's wireless :)
(附注:Android上有几个telnetd和sshd解决方案,但是没有一个可以找到非root用户的手机你可以得到一个telnet / ssh连接,你可以使这个过程更舒适。)
(Side note: There are several telnetd and sshd solutions on Android, but none that I could find are for non-rooted phones. If you can get a telnet/ssh connection going, you may be able to make this process more comfortable.)
这篇关于通过无线开发基于Android的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!