Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Android OS version of device connected via ADB [duplicate]

Tags:

android

shell

adb

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

like image 648
kiruwka Avatar asked Apr 30 '15 12:04

kiruwka


People also ask

How do I find my adb Android architecture?

Using adb shell In general information about the device and the installed Android Operating System can be find using the getprop sub-command.

What is adb shell Getprop?

This command is used to get properties of device such as Sim Operator, IEMI, Android version and more. adb shell getprop gsm.sim.operator.alpha. Gets information on the SIM operator adb shell getprop gsm.sim.operator.alpha.


1 Answers

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 
like image 98
Mattia Maestrini Avatar answered Oct 22 '22 05:10

Mattia Maestrini