Skip to content

Commit e4a8a4a

Browse files
Improve getting device info for Android
In order to get information about Android devices, CLI's calling `adb shell cat /system/build.prop` and parsing the result. For new emulators and devices, the file does not contain all information that we need. We can get it by using `adb shell getprop`. As I'm not sure if this command will work on all devices, I've try-catched the code and call the old code for backwards compatibility. Fix the regex that parses the result to work with both commands. Also fix bug in list devices command that pushes undefined to cli-table and causes exception there. Pass empty strings instead.
1 parent b97eb0a commit e4a8a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0 commit comments

Comments
 (0)