Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

DOMException: The transfer was cancelled. on Pixels + Android 10 - and a possible fix #11

Open
andreban opened this issue Mar 18, 2020 · 0 comments

Comments

@andreban
Copy link

I've tested the sample here on a Pixel 2, 3 and 4, all of them with Android 10.

On those devices with Android 10, once connected, any call to device.transferIn or device.transferOut causes the transfer to fail with DOMException: The transfer was cancelled.

Removing the call to selectAlternateInterface here does seem to fix the issue.

I don't have great knowledge on the USB protocol, so would like to check before making a Pull Request to remove that call, as my guess is that it's probably there for a reason.

I have tested the code after removing that link on Android 9 + Nexus6P, and things seem to continue working as expected.

MrArtemSid added a commit to MrArtemSid/IP_Project that referenced this issue Apr 8, 2023
According to webadb/webadb.js#11

Tested and confirmed working on:
- Xiaomi Poco F1 (Lineage OS 20, Android 13)
- Xiaomi Redmi 4X (Lineage OS 20, Android 13)
- Huawei Honor 9X (Stock, Android 10)
MrArtemSid added a commit to MrArtemSid/IP_Project that referenced this issue Apr 8, 2023
According to webadb/webadb.js#11

Tested and confirmed working on:
- Xiaomi Poco F1 (Lineage OS 20, Android 13)
- Xiaomi Redmi 4X (Lineage OS 20, Android 13)
- Huawei Honor 9X (Stock, Android 10)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant