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

Android editor not opening any project on devices with scoped storage #63981

Closed
Swarkin opened this issue Aug 5, 2022 · 8 comments · Fixed by #64421
Closed

Android editor not opening any project on devices with scoped storage #63981

Swarkin opened this issue Aug 5, 2022 · 8 comments · Fixed by #64421

Comments

@Swarkin
Copy link
Contributor

Swarkin commented Aug 5, 2022

Godot version

3.5 Android

System information

Samsung Galaxy S20 FE 5G
Android 12

Issue description

Clicking on "Edit" will not open the project, but instead open the default template.
Clicking play does run the project normally, but nothing shows up in the Editor.

Steps to reproduce

Click on 'Edit'

Minimal reproduction project

Any project

@Swarkin
Copy link
Contributor Author

Swarkin commented Aug 6, 2022

Update: It seems to be unable to read res:// folder at all
Screenshot_20220806-015834_Godot Editor

@Calinou
Copy link
Member

Calinou commented Aug 6, 2022

This sounds like a scoped storage-related regression.

@Calinou Calinou changed the title Android not opening any project Android editor not opening any project on devices with scoped storage Aug 6, 2022
@akien-mga akien-mga added this to the 3.6 milestone Aug 6, 2022
@Swarkin
Copy link
Contributor Author

Swarkin commented Aug 7, 2022

I have found a workaround (not a permanent fix tho);
Resetting the app's data allows me to view and edit a project normally once.
More details:
https://drive.google.com/file/d/17VnFaMENv-xXYkHsxdfF2Bac8dyjl-eL/view?usp=drivesdk

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 8, 2022

@Swarkin @AndyAnon14 The first time you open the Godot Android Editor, there should be a prompt asking for some storage related permissions. Did you provide access when requested?

@AndyAnon14
Copy link

Yes, when prompted to for file permissions, full permissions were given to Godot. My assumption is that the setting is not being saved, therefore when you exit the editor and go back into it, it does not show the project files. The indication that has prompted me to believe that is the case is that, in Settings, under Apps, when you look at the permissions for Godot, it shows that it does not have any permission other then full network access.

@francocurotto
Copy link

I have this exact same problem. I tested and it also occurs 3.5-rc8, but 3.5-rc7 works fine.

@Swarkin
Copy link
Contributor Author

Swarkin commented Aug 12, 2022

Sorry for the delayed reply.
@m4gr3d The app asked for the "All file access" permission (Not the usual "Files and media" permission tho)
Screenshot_20220813-005954_Settings
...which I've accepted.
Permissions tab shows nothing:
Screenshot_20220813-010019_Permission controller

@m4gr3d
Copy link
Contributor

m4gr3d commented Aug 15, 2022

I was able to reproduce the issue myself.. definitely a regression because I had tested that scenario before and it was working as expected.
I'll investigate what may be the cause of the issue.

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.

6 participants