Can one use adb or adb shell commands to get attached emulator/device OS info, i.e. API version?
Using adb shell In general information about the device and the installed Android Operating System can be find using the getprop sub-command.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With