Delphi有時候無法連接調試一些手機,解決方案:
1.安裝Google USB Driver
2.通過設備管理器查看手機或平板USB的VID,PID
3.修改你的電腦上的android_winusb.inf,將第2步找到的VID,PID加到inf中。
例如:
;Samsung Galaxy S3 %SingleAdbInterface% = USB_Install, USB\VID_04E8&PID_6860 %CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&MI_03
詳細請看:
http://delphi.org/2014/01/custom-android-adb-usb/
http://www.cnblogs.com/hezihang/p/5076606.html
Delphi在Android下實現BroadcastReceiver功能(舉例在Delphi下獲取USB外設拔插消息)
http://www.cnblogs.com/hezihang/p/3978434.html
Delphi Android USB Interface with the G2
http://www.cnblogs.com/hezihang/p/3678157.html
Delphi Android USB聲明文件
http://www.cnblogs.com/hezihang/p/3976880.html