Is it possible to generate an Android export template without Google Play related libraries?

Godot Version

4.4 Stable

Question

I’m currently working on putting a game on F-Droid, but the automatic app scanning notes the produced APK contains 2 libraries related to the Google Play store licensing. Since these are non-free components F-Droid considers these “AntiFeatures” and warns against using them. As far as I can tell these are included in the template source that’s used by Godot. Is there any way to disable the inclusion of these?

Here is the merge request in question with the scan results: New app: com.inglogames.sigmadice (!20739) · Merge requests · F-Droid / Data · GitLab

If you want to modify the template you can do so via the godot source build.

I found a build command related to “store_release” that you may be able to set to false somewhere, but i think that also controls a release build version.

I would also probably tinker with the android studio project

I found this post on reddit

Thanks for the tip, unfortunately the “store_release” option doesn’t remove the licensing classes in the produced APK. This is true for release and debug builds. Modifying the source for the templates might be the only option here.

If anyone else is curious, the “store_release” option goes into the SCons command like this:
scons -j12 p=android target=template_release store_release=no arch=arm64 generate_apk=yes