Davide Depau

Results 206 comments of Davide Depau

So, if this doesn't work, I think our last options are: - access [`UsbDeviceConnection.resetDevice()`](https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/hardware/usb/UsbDeviceConnection.java#274) using reflection (it should do a port reset unless I'm missing something) - open the USB...

> thanks a lot for testing. Well that is too bad :/ I will implement the first option, we can still think about the second one. We can also only...

BTW I'm going to implement the ioctl thing and see if it works.

Ah damn I reimplemented it in the meantime :/ I'll pull your changes and test it again.

Nope :( ``` D/UsbMassStorageDevice: setup device I/UsbMassStorageDevice: MAX LUN 0 D/ScsiBlockDevice: inquiry response: ScsiInquiryResponse [peripheralQualifier=0, peripheralDeviceType=0, removableMedia=false, spcVersion=6, responseDataFormat=2] I/ScsiBlockDevice: Block size: 512 Last block address: 31735807 E/ScsiBlockDevice: error transferring...

I tested the code in that thread on my computer on a USB drive. (Here's my adapted code) ```c #include #include #include #include #include #include #include #include int main(int argc,...

I'm noticing that, for whatever reason, I'm getting almost always successfully writes while back then I would only be able to write ~500MB before it would show the issue. Anyway...

It works! The sequence reset -> close -> open seems to do it. I was able to reset the device multiple times while it was writing, libaums would handle it...

I'm currently not able to root it for whatever reason I'm not aware of. I'll try it again on QEMU and see if I'm able to reproduce it there. If...

Alright, it looks like trying over and over to reset the device works some times, I saw it resume writing after one or two attempts. In one test it halted...