Fixes APK flags.