This fixes kernel panic on find7 when disabling MTP before flashing zips.
Change-Id: Id11a0fb1a88424d9dd70190c313781607bad3bb8
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 975d557..1ae1456 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1948,6 +1948,7 @@
string productstr = product;
TWFunc::write_file("/sys/class/android_usb/android0/idVendor", vendorstr);
TWFunc::write_file("/sys/class/android_usb/android0/idProduct", productstr);
+ usleep(2000);
if (mtppid) {
LOGINFO("Disabling MTP\n");
int status;