Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AndroidManifest.xml can't change the default <activity> #78782

Closed
Abab-bk opened this issue Jun 28, 2023 · 3 comments · Fixed by #78958
Closed

AndroidManifest.xml can't change the default <activity> #78782

Abab-bk opened this issue Jun 28, 2023 · 3 comments · Fixed by #78958

Comments

@Abab-bk
Copy link

Abab-bk commented Jun 28, 2023

Godot version

Godot4.0.2 Stable

System information

Windows11, Inter i3-8100, RX580 2048SP, GLES2.

Issue description

I want to start my own Activity before .GodotApp starts because the Chinese app market requires users to read and agree to the privacy policy before applying for permissions.
When I checked "use_gradle_build" and modified the Activity corresponding to ".GodotApp" in android/build/AndroidManifest.xml, I removed the "intent-filter" from it and added it to my custom Activity. Then I built the app.
When I installed the app, two game icons appeared on my phone. I know this is because there are two "intent-filter" tags.

Steps to reproduce

  1. Open android/build/AndroidManifest.xml.
  2. removed the "intent-filter".
  3. added it to custom Activity.
  4. built the app.
  5. You will find that the previously deleted intent-filter in AndroidManifest.xml still exists, and two intent-filter exist at this time.

Minimal reproduction project

I had one, but it was too big after packing.

@Calinou
Copy link
Member

Calinou commented Jun 28, 2023

@Abab-bk
Copy link
Author

Abab-bk commented Jul 1, 2023

I found a temporary solution: just set the AndroidManifest.xml automatically generated by release/debug to read-only.

@Calinou
Copy link
Member

Calinou commented Jul 7, 2023

For reference, this is a duplicate of #76963.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants