Recently Google started rejecting APK files generated by the Godot Game Engine. APK is the file format for bundled Android applications for deployment to the app store, so this is obviously a pretty serious problem for Godot developers with games on Android. Thankfully a Godot user created a tool that fixes APK files, making them compatible once again.
Details of using the new tool:
The things you will need are:
- Your original APK
- A valid android keystore
The tool takes several command-line options:
- -j /path/to/jarsigner
- -k /path/to/keystore
- -p keystore password
- -a key alias
You should be able to recover these settings from the Android export settings of the original game project from the Godot editor.
An example run of the program looks like this:
./godotapkfixer -k ~/tmp/and/debug.keystore -p android -a androiddebugkey GOLTORUS.apk
This is assuming that ‘jarsigner’ exists in $PATH, or on Windows if the Android studio is installed. If this is not the case the tool can be ran like this:
godotapkfixer.exe -j "C:Program FilesJavajdk1.8.0_171binjarsigner.exe" -k "debug store.keystore" -p android -a androiddebugkey GOLTORUS.apk
When using jarsigner from the JDK for instance.
After the program has finished you will find an
apkname_fixed.apkin the same directory as the original APK. This APK should now be good to upload back onto the Play store.