最終更新:2015-06-23 (火) 17:58:42 (3223d)
UsbDeviceConnection.claimInterface
Top / UsbDeviceConnection.claimInterface
Claims exclusive access to a UsbInterface?.
public boolean claimInterface (UsbInterface intf, boolean force)
パラメータ
intf the interface to claim force true to disconnect kernel driver if necessary
ネイティブ
- usb_device_claim_interface
- http://tools.oesf.biz/android-5.0.1_r1.0/xref/frameworks/base/core/jni/android_hardware_UsbDeviceConnection.cpp#android_hardware_UsbDeviceConnection_claim_interface
処理
- usb_device_claim_interface - ioctl(USBDEVFS_CLAIMINTERFACE)
- if busy// ビジーだったらdisconnect kernel driver and try again