且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android设备和PC之间通过USB双向数据传输(Mac或Windows)

更新时间:2022-11-06 22:32:23

您***的选择可能是文件的亚行推/拉(假设这是要转移的)。您的Windows端应用程序将有亚洲开发银行和AdbWinApi.dll作为资产和OSX版本将拥有的Mac OS ADB二进制...
有明显的缺点,如必须有在设备上启用开发人员选项,并从Android SDK中的主机上的pre-现有副本可能干扰(通常不太可能,但可能的!)

Your best bet is probably ADB push/pull of files (assuming that's what you want to transfer). Your Windows-side application would have adb and AdbWinApi.dll as assets, and the OSX version would have the Mac OS ADB binary... There are obvious downsides such as having to have Developer options enabled on the device, and possible interference from a pre-existing copy of the Android SDK on the host machine (typically very unlikely, but possible!)

更先进:根据环境的不同,你甚至会想看看从省略不必要的功能源构建自己的亚行版本

More advanced: Depending on the environment, you may even want to look into building your own version of ADB from source with unnecessary features omitted.