开发者

C#: Android phone control

开发者 https://www.devze.com 2023-01-13 13:18 出处:网络
Would it be possible to control/interface with an Android phone through USB in a开发者_C百科 WinForm application? Is there any library for that, without using any original Android tool (ADB, fastboot)

Would it be possible to control/interface with an Android phone through USB in a开发者_C百科 WinForm application? Is there any library for that, without using any original Android tool (ADB, fastboot)?


Try Managed Android Debug Bridge.

It's in C# and says:

This is a Managed port of the Android Debug Bridge to allow communication from .NET applications to Android devices. This wraps the same methods that the ddms uses to directly communicate with ADB. This gives more flexibility to the developer then launching an adb process and executing one of its build in commands.


The only USB support in Android is for adb and USB mass storage. Neither let you talk to on-device applications. Both let you access files on the SD card. adb may provide additional features, but you cannot access "installed apps, contacts, messages". None of this is designed to work from C#, though you can call out to the adb command-line executable if you wish.

A network-based protocol would be easiest, for a subset of your goals. A Bluetooth protocol may be doable for the same subset.

0

精彩评论

暂无评论...
验证码 换一张
取 消