File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
app/src/main/java/com/samsung/microbit/ui/activity Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1474,6 +1474,15 @@ private void startDFUFlash() {
1474
1474
.setKeepBond (true )
1475
1475
.setForeground (true )
1476
1476
.setZip ( getCachePathAppZip ());
1477
+
1478
+ // https://github.com/microbit-foundation/microbit-android/issues/82
1479
+ // ? if ( Build.HARDWARE.equals("ums512_1h10")) {
1480
+ if ( Build .MANUFACTURER .toLowerCase ().contains ("lenovo" )
1481
+ && Build .DEVICE .toLowerCase ().contains ("tb328" )) {
1482
+ // Tested with Lenovo M10 TB328FU with Android 12 - returns mtu 247, but DFU fails
1483
+ starter .disableMtuRequest (); // faster than setMtu(23), which also works
1484
+ }
1485
+
1477
1486
final DfuServiceController controller = starter .start (this , DfuService .class );
1478
1487
} else {
1479
1488
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
You can’t perform that action at this time.
0 commit comments