Get Android OS version of device connected via ADB

kiruwka picture kiruwka · Apr 30, 2015 · Viewed 94.9k times · Source

Can one use adb or adb shell commands to get attached emulator/device OS info, i.e. API version?

Answer

Mattia Maestrini picture Mattia Maestrini · Apr 30, 2015

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