-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Disable the requestLegacyExternalStorage
attribute when there are no storage permissions
#47954
Disable the requestLegacyExternalStorage
attribute when there are no storage permissions
#47954
Conversation
platform/android/export/export.cpp
Outdated
@@ -768,6 +768,10 @@ class EditorExportPlatformAndroid : public EditorExportPlatform { | |||
return OK; | |||
} | |||
|
|||
bool _has_storage_permission(const Vector<String> &permissions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool _has_storage_permission(const Vector<String> &permissions) { | |
bool _has_storage_permission(const Vector<String> &p_permissions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@@ -275,13 +275,16 @@ String _get_activity_tag(const Ref<EditorExportPreset> &p_preset) { | |||
return manifest_activity_text; | |||
} | |||
|
|||
String _get_application_tag(const Ref<EditorExportPreset> &p_preset) { | |||
String _get_application_tag(const Ref<EditorExportPreset> &p_preset, bool has_storage_permission) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String _get_application_tag(const Ref<EditorExportPreset> &p_preset, bool has_storage_permission) { | |
String _get_application_tag(const Ref<EditorExportPreset> &p_preset, bool p_has_storage_permission) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
…o storage permissions.
2b2edc1
to
bc68872
Compare
Thanks! |
with 3.2.3, Would adding android:requestLegacyExternalStorage="false" to the android manifest under android/build in the app change anything? |
@anisc You can add |
@m4gr3d thank you so much for returning to me. |
Hello @anisc, I have the same problem. |
You can use Godot 3.3 and you won't need to add any workaround to the manifest: https://godotengine.org/article/godot-3-3-has-arrived |
@besyuser As @akien-mga said i'm using godot 3.3 published the game but the warning is not gone on the console, so at this point I'm just waiting and crossing my fingers. |
Thank you guys! Yesterday I published a version with the android manifest change. And today I published another one using Godot 3.3 |
Fixes #47910