adb shell 获取手机系统版本
$ getprop
[ro.build.version.release]: [7.1.2]
[ro.build.version.sdk]: [25]
脚本写法
version_release=$(getprop ro.build.version.release)
echo $version_release # 7.1.2
version_sdk=$(getprop ro.build.version.sdk)
echo $version_sdk # 25
网友评论