This fixes kernel panic on find7 when disabling MTP before flashing zips.

Change-Id: Id11a0fb1a88424d9dd70190c313781607bad3bb8
This commit is contained in:
bigbiff
2014-12-11 18:48:08 -05:00
parent b38de7e2f4
commit d5c6069287
+1
View File
@@ -1948,6 +1948,7 @@ bool TWPartitionManager::Disable_MTP(void) {
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;