Getting Android SDK version of a device from command line

前端 未结 4 1245
抹茶落季
抹茶落季 2021-02-02 15:00

I\'m planning to build an automated system for deploying an Android build to various devices, in order to make development for multiple platforms a bit more comfortable. Is ther

4条回答
  •  迷失自我
    2021-02-02 15:19

    adb shell getprop ro.build.version.sdk
    

    Note @Tim: this works even on phones without grep support on all host OS :-). (i.e. on old phones where toolbox does not support grep you you need to have busybox on your phone).

提交回复
热议问题