+1 vote

I am preparing my app for Google Play store. After uploading console with details about apk reports that only small, normal and xlarge screens are supported regardless what I check in android export options in Godot (even if I unchecked all the screen sizes). I also have the issue reported here - console says that 165 permissions will be requested.

Is that a problem? I want my app to support normal, large and xlarge screens. And I don't need any permission from users. Now it seems to me that users with large screens will not be able to download it. And further will all these permission be requested from users?

The figure bellow shows output of the console (sorry for Czech language). Anybody who has already released a game in Play Store has the same output from console?

I use Godot 2.0.

Details from Google Play developers console

in Engine by (675 points)

1 Answer

+1 vote
Best answer

The solution is to compile Android export template by yourself.

Steps:

  1. download the source of Godot (same version as you are using do develop the game)
  2. edit platform/android/AndroidManifest.xml.template.
  3. to change supported screen sizes find the passage
    <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="false" android:xlargeScreens="true"/>
    and change boolean tags according to your preferences (in my case false, true, true, true)
  4. to remove unwanted permissions find the passage after $$ADD_PERMISSION_CHUNKS$$ and remove the permissions you don't want (in my case I removed them all)
  5. compile Android export templates according to - Compiling for Android
  6. link the compiled templates (apk files) in Android export options in section Custom Package
  7. export to Android

If anyone interested I place android release template that does not support small screens and that does not request any permission to Github

by (675 points)

I've just done this after finally getting my build environment right. I did it so I could include "large" screen size (not sure why this is off by default?). I have a couple of questions though:

  1. The resulting release apk is 22,854 KB. This is about the same size as the debug. This results in my app's apk going from 7Mb to 22Mb. The APK name is java-release-unsigned.apk is this right? (There are 2 debug ones, java-debug.apk and java-debug-unaligned.apk). I notice the ones in the templates .tpz file are both 13MB.

  2. Wouldn't we zip this up into a .tpz file and re-import the whole file? Or is the above method just an alternative.

thanks

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.