From 2433b9f6edc9e30d1cdc7b321ca6068e74d5c22f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 27 May 2018 12:52:22 +0530 Subject: [PATCH] Remove conflicting USB ids from generic android driver Apparently there are a bunch of generic clone devices that use this ROCKCHIP based firmware without changing the USB ids. Since there exist specialized drivers for prefer those to the generic driver. --- src/calibre/devices/android/driver.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/calibre/devices/android/driver.py b/src/calibre/devices/android/driver.py index aa73a47163..cb2dc14cb8 100644 --- a/src/calibre/devices/android/driver.py +++ b/src/calibre/devices/android/driver.py @@ -185,9 +185,6 @@ class ANDROID(USBMS): # Xperia 0x13d3 : {0x3304 : [0x0001, 0x0002]}, - # CREEL?? Also Nextbook and Wayteq - 0x5e3 : {0x726 : [0x222]}, - # ZTE 0x19d2 : {0x1353 : [0x226], 0x1351 : [0x227]}, @@ -435,10 +432,6 @@ class WEBOS(USBMS): cover2.save(data, 'JPEG') coverdata = data.getvalue() - with lopen(os.path.join(path, 'coverCache', filename + - '-small.jpg'), 'wb') as coverfile: + with lopen(os.path.join(path, 'coverCache', filename + '-small.jpg'), 'wb') as coverfile: coverfile.write(coverdata) fsync(coverfile) - - -