Issue
Can one use adb
or adb shell
commands to get attached emulator/device OS info, i.e. API version?
Solution
To get Android version you can use:
adb shell getprop ro.build.version.release
To get API level:
adb shell getprop ro.build.version.sdk
You can see all available properties with this command:
adb shell getprop
Answered By - Mattia Maestrini Answer Checked By - Dawn Plyler (WPSolving Volunteer)