How can I get programmatically get the version code or version name of my apk from the AndroidManifest.xml file after downloading it and without installing it.
At the moment, this can be done as follows
$ANDROID_HOME/build-tools/28.0.3/aapt dump badging //.apk
In General, it will be:
$ANDROID_HOME/build-tools//aapt dump badging //.apk