Merge "UsbDeviceManager: Check PTP FileDescriptor properly" am: a0a67862aa
am: 353543639f
Change-Id: Iefce26ffbfe22f56fe47a807ba5ed52e6f072d00
This commit is contained in:
@@ -279,8 +279,8 @@ public class UsbDeviceManager implements ActivityManagerInternal.ScreenObserver
|
||||
}
|
||||
mControlFds.put(UsbManager.FUNCTION_MTP, mtpFd);
|
||||
FileDescriptor ptpFd = nativeOpenControl(UsbManager.USB_FUNCTION_PTP);
|
||||
if (mtpFd == null) {
|
||||
Slog.e(TAG, "Failed to open control for mtp");
|
||||
if (ptpFd == null) {
|
||||
Slog.e(TAG, "Failed to open control for ptp");
|
||||
}
|
||||
mControlFds.put(UsbManager.FUNCTION_PTP, ptpFd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user