
When building APK instances from installed apps, the minSdkVersion and maxSdkVersion needs to be parsed directly from the APK's Android Manifest, since PackageManager does not provide a method to get it how we need it. Previously, the whole AndroidManifest.xml file was parsed entirely twice, once for minSdkVersion then for maxSdkVersion.