[aapt package management] aapt query the minimum supported Android version of Apk

When installing in the TV box DSvideo_TV.apk, the box version was reported to be too low (the 16-year-old box is relatively old), so I want to check DSvideo_TV.apkthe minimum supported Android version, so as to update the box accordingly.

1. How to get the minimum Android version supported by APK?

The first thing that comes to mind is the Android SDK aapt(Android Asset Packaging Tool)Android资源打包工具.

  • aapt工具路径:
    aapt in the computer is 存储路径(mac)as follows:
    /Users/xiaxl/Library/Android/sdk/build-tools/33.0.0/aapt
  • aapt查看apk信息
// apk包信息输出到文件
aapt list -a /Users/xiaxl/Downloads/AndroidTV-DSvideo.apk >/Users/xiaxl/Downloads/apkinfo.txt

aapt view apk information

2. View the minimum Android version supported by the APK

0x15Converted to decimal 21, that is, the minimum supported SDK version is 21, corresponding toAndroid 5.0

View the minimum Android version supported by the APK in the apkinfo.txt file:
View the minimum Android version supported by the APK in the apkinfo.txt file

Correspondence between sdk version and Android version:
Correspondence between sdk version and Android version

Guess you like

Origin blog.csdn.net/aiwusheng/article/details/128013113