diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-12-29 16:44:05 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2014-12-29 17:01:41 +0100 |
commit | abb5c4ead09e0e08e1d006fc76e7627df45c0281 (patch) | |
tree | d6419f12d5926aa3c884b4fb629077a66f5342e9 /mtp | |
parent | gui: fix DEVICE_RESOLUTION warnings in Android.mk (diff) | |
download | android_bootable_recovery-abb5c4ead09e0e08e1d006fc76e7627df45c0281.tar android_bootable_recovery-abb5c4ead09e0e08e1d006fc76e7627df45c0281.tar.gz android_bootable_recovery-abb5c4ead09e0e08e1d006fc76e7627df45c0281.tar.bz2 android_bootable_recovery-abb5c4ead09e0e08e1d006fc76e7627df45c0281.tar.lz android_bootable_recovery-abb5c4ead09e0e08e1d006fc76e7627df45c0281.tar.xz android_bootable_recovery-abb5c4ead09e0e08e1d006fc76e7627df45c0281.tar.zst android_bootable_recovery-abb5c4ead09e0e08e1d006fc76e7627df45c0281.zip |
Diffstat (limited to 'mtp')
-rwxr-xr-x | mtp/mtp_MtpServer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mtp/mtp_MtpServer.cpp b/mtp/mtp_MtpServer.cpp index 96a1e9453..b53d07a8f 100755 --- a/mtp/mtp_MtpServer.cpp +++ b/mtp/mtp_MtpServer.cpp @@ -56,6 +56,11 @@ int twmtp_MtpServer::setup() { usePtp = false; MyMtpDatabase* mtpdb = new MyMtpDatabase(); + /* Sleep for a bit before we open the MTP USB device because some + * devices are not ready due to the kernel not responding to our + * sysfs requests right away. + */ + usleep(800000); #ifdef USB_MTP_DEVICE #define STRINGIFY(x) #x #define EXPAND(x) STRINGIFY(x) |