-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdbHelper.GetDevices fails if device name contains a white space #27
Comments
I will be updating the code to be the above. This way each value will be under the same restriction. This will work until someone decides they want a product name with a colon in it. |
System would be more stable spliting the regex into sections like the following. This ensures as long as the serial number and state are present the object can be created. Adb allows the product / model / device fields to be present or not so this handles those cases. The only thing need is to update missing info on a state change if it becomes available.
|
Original Bug on CodePlex
The Visual Studio emulator registers as a device with a space in its device name; the following data is passed to CreateDeviceFromAdbData:
The current regex doesn't allow white space and throws an ArgumentException with message Invalid device list data.
The fix appears to be to update the RE_DEVICELIST_INFO to allow for whitespaces but not for the colon : in the product name section of the device list.
The text was updated successfully, but these errors were encountered: