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

标签 android shell adb

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

最佳答案

要获取 Android 版本,您可以使用:

adb shell getprop ro.build.version.release 

获取 API 级别:

adb shell getprop ro.build.version.sdk 

您可以使用此命令查看所有可用属性:

adb shell getprop

关于android - 获取通过 ADB 连接的设备的 Android 操作系统版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29968096/

相关文章:

android - 工具栏不显示溢出菜单

linux - 语法错误: operand expected (error token is “+” ) (i coudn't resolve this problem with the other thread)

java - 如何将数组从脚本传递到 main(args[])

ADB 设备在一台计算机上不显示我的设备,但在虚拟计算机上显示

android - 设置wifi ssid,里面有一个空格

android - startForeground() 不显示我的通知

java - 使用 objectify 时有什么区别?

linux - shell/bash 编码中的 `&` 和 `#` 是什么意思?请解码 Bash 脚本行

android - 无法从 Eclipse 上传文件到设备

android - 无法获取未知属性 'file'