New issue
Advanced search Search tips

Issue 692861 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Cannot select USB device configuration on Android

Project Member Reported by reillyg@chromium.org, Feb 16 2017

Issue description

Chrome Version: 58.0.3012.4
OS: Android 7

What steps will reproduce the problem?
(1) Open https://webusb.github.io/arduino/demos/rgb/
(2) Tap "Connect" and select the device.

What is the expected result?
Connection should be established.

What happens instead?
App is unable to select a configuration.

This issues is based on a report from https://github.com/webusb/arduino/issues/22.

 
Project Member

Comment 1 by bugdroid1@chromium.org, Feb 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3ab86ccb569cff38b362457b7a12762dc9cbab82

commit 3ab86ccb569cff38b362457b7a12762dc9cbab82
Author: reillyg <reillyg@chromium.org>
Date: Thu Feb 16 19:38:22 2017

Assume the 1st USB device configuration has been selected on Android.

Linux will almost always select the first configuration and this avoids
apps issuing a SetConfiguration request which may fail if the system
thinks the device is busy.

A better option is to look into whether I can read the currently
selected configuration out of sysfs on Android but that is a much larger
patch so this is a good stop-gap measure.

BUG= 692861 

Review-Url: https://codereview.chromium.org/2700713002
Cr-Commit-Position: refs/heads/master@{#451054}

[modify] https://crrev.com/3ab86ccb569cff38b362457b7a12762dc9cbab82/device/usb/usb_device_android.cc

Status: Fixed (was: Started)

Sign in to add a comment