软件基于Android的配件在Windows配件、软件、Android、Windows

2023-09-04 09:48:47 作者:℡现实只供娱乐≈

我想打开我的电脑变成一个Android配件使用我的应用程序。因此,而不是一个专门的硬件,这将只是电脑,将手机切换到辅助模式,从而启动与主机的硬件相关的部分手机的Java应用程序,并创建一个沟通渠道。

I would like to turn my computer into an Android accessory using my application. So instead of a specialized hardware this will be just PC that will switch the phone into accessory mode, thus launching some Java app on the phone associated with the host hardware and create a communication channel.

我已经找到了样品code (加上一些Java的Andr​​oid应用程序),这样做在Linux上使用libusb的。它的工作原理是开放使用标准的VID和PID的手机。然后它发送href="http://developer.android.com/guide/topics/usb/adk.html#start">命令打开的附件模式一个