I'm struggling with how I can manage updating an APK in a non App-Store deployment model.
Up until recently I was able to use the AndroidManifest.xml decompress method found Here. I'm not sure if it's the new Gradle 4.1, or Android Studio 3, but this no longer is able to parse the XML.
My scenario is that I want to know the versionName and versionCode of the APK without having to download it and inspect it on the device. Our deployment model is such that the app will check the local server each time it starts to see if there is an updated version, and prompt the user to update if there is a newer version to update to. Without the ability to read the AndroidManifest I struggle with how to do this.
I have looked into using aapt.exe I could do something like described Here, but based on my research Here, I can't re-distribute the single exe in my installer. And I don't really want to install the entire SDK on a production server.
Is there another official means of inspecting this that I'm missing?