Getting Android SDK version of a device from command line

前端 未结 4 1244
抹茶落季
抹茶落季 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:20

    you can use this command:

    adb shell grep ro.build.version.sdk= system/build.prop
    

    It will output something like this:

    ro.build.version.sdk=10
    

提交回复
热议问题