Search code examples
androidshelladb

Get Android OS version of device connected via ADB


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