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.
Kotlin:
var ver: String = packageManager.getPackageInfo(packageName, 0).versionName