我正在尝试使用aapt和python子进程获取APK的版本名称,如何访问此信息?
这是我的代码:
import subprocess
sdk_aapt_path = "/Users/hng7/Library/Android/sdk/build-tools/28.0.3/aapt"
file="./Downloads/com.facebook.katana.apk"
subproc_two = subprocess.Popen([sdk_aapt_path,"dump","badging",file, "|", "grep"
,"versionName"], stdout=subprocess.PIPE)
print(subproc_two)