获取通过 ADB 连接的设备的 Android 操作系统版本

可以使用 adbadb shell命令获得附加的模拟器/设备操作系统信息,即 API 版本?

140589 次浏览

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

For all properties:

adb shell getprop

I know , you already got the correct solution , & here is my solution only for additional information.

You will get every details by cat ing the /system/build.prop file like

adb shell cat /system/build.prop

Here is collection of adb commands