Skip to content

GPLAY: Google revoked "all files access" permission #14409

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

Open
tobiasKaminsky opened this issue Jan 14, 2025 · 107 comments
Open

GPLAY: Google revoked "all files access" permission #14409

tobiasKaminsky opened this issue Jan 14, 2025 · 107 comments
Labels
hotspot: device storage Storage (on-device) related. Permissions, paths, inconsistencies, etc. overview

Comments

@tobiasKaminsky
Copy link
Member

Hello,

this is a meta ticket to explain current state.
Google revoked our "all files access" permission.

This means that

  • auto upload only works with photos and videos
  • custom auto upload folder can also only upload media files
  • a new "location" permission is needed to upload photos with geolocation information

We are trying to convince Google to let us use the permission again.

With upcoming 3.30.8 (we released RC1 today), we try to make this more easy understandable to users.

You can use F-Droid (https://f-droid.org/en/packages/com.nextcloud.client/) as there the permission is still working.

@Frank1967
Copy link

Thanks Tobias for all the work you do on this topic. Much appreciated!

@rclough
Copy link

rclough commented Jan 15, 2025

Wanted to add that I'm experiencing issues related to this as described in #14379 which I saw is likely to be merged/linked here.

Some time in December, my auto-uploads stopped as it seems permissions (including photos/videos) was revoked. Last night, I manually added the photos/videos permission back. New files are auto-uploaded, but any of my photos/videos that were created between then and now are not being detected for upload.

If there is any option to manually sync a folder to remedy this, please let me know.

EDIT: It's also worth noting that when I opened the auto-uploads management UI, the photos/videos permission pop up froze the app, and I was unable to use it - I had to go into my android settings and add the permission manually

@drumstick77
Copy link

Thanks @tobiasKaminsky for your effort on this. I know that your hands are tight with google released the rule for removing permission but this function in particular is what's so good about nextcloud as it automatically create free space on mobile devices. I'm missing this feature sorely and hope that it can be re-instated with the new version.

@zyphlar
Copy link

zyphlar commented Jan 15, 2025

@drumstick77 in the meantime I uninstalled Nextcloud, installed 3.30.5 via Obtainium, and disabled auto updates in Google Play. I had to re-set-up my auto upload folders and manually upload/delete stuff that got missed, but at least it works how I want it.

@major-mayer
Copy link

Some time in December, my auto-uploads stopped as it seems permissions (including photos/videos) was revoked. Last night, I manually added the photos/videos permission back. New files are auto-uploaded, but any of my photos/videos that were created between then and now are not being detected for upload.

If there is any option to manually sync a folder to remedy this, please let me know.

I am also experiencing that problem that new images get automatically uploaded since I re-granted the auto upload permissions, but existing ones doesn't, even tho I enabled the "upload existing files setting".

Also I am getting this "changes to auto upload" notification dozens of times.
It would be enough if there was one notification that the user can confirm to have read imo.

@mrmipo
Copy link

mrmipo commented Jan 20, 2025

Hi

I as many I have issue with auto upload and do some testing. What I see if I do clean install of application (from google store beta version or manually install apk from git hab) and enabe auto upload all working fine untill I remove one photo and after that auto upload stop woring and need to onece again start from scrach. You can reproduce that issue:

  1. install app
  2. connect to nextcloud
  3. enabe auto upload
  4. make photo (upload working)
  5. delete at least 1 photo
  6. make photo (upload not working)

I do this on Samsung Galaxy Z Fold 6.

Can somone check if has same ?

@jacksbox
Copy link

jacksbox commented Jan 21, 2025

I use two devices which sync to nextcloud (both use the Google Play Version).

Client Version 3.30.7 and 3.30.8
Pixel 4a
Vanilla Android 13

Client Version 3.30.7
OxygenOS 13 (Android 13)

Both devices stopped syncing after the 17.12.2024.

I updated the permissions for Fotos&Videos and the Devices startet to sync again, but they only sync files starting with the day I granted the permissions. All files between 17.12.2024 and the day I granted the permissions are not picked up.
Interesting: It is day specific - new files which were created prior to the granting of the permissions, but were created on the same day, are picked for upload.

Additionally: None of the deivces gives me the option to grant full file access the nextcloud. Only access to Fotos & Videos can be granted.

UPDATE: the update to 3.30.8 does not change this. Files created between 17.12.2024 and the date of the permission grant are not picked up.
Is there any workaround for now - can I just manually upload this pictures or will this cause any issues?

@major-mayer
Copy link

Hi

I as many I have issue with auto upload and do some testing. What I see if I do clean install of application (from google store beta version or manually install apk from git hab) and enabe auto upload all working fine untill I remove one photo and after that auto upload stop woring and need to onece again start from scrach. You can reproduce that issue:

1. install app

2. connect to nextcloud

3. enabe auto upload

4. make photo (upload working)

5. delete at least 1 photo

6. make photo (upload not working)

I do this on Samsung Galaxy Z Fold 6.

Can somone check if has same ?

I cannot confirm that on my Poco F3 running Nextcloud 3.30.8.
After the app re-requested permissions, it uploads new images just fine, even when you delete one from your local gallery.

@st3iny
Copy link
Member

st3iny commented Jan 22, 2025

I got a modal inside the app today which explained the situation. Automatically uploading new files works again. However, existing files that were missed since December had to be uploaded manually.

EDIT: Google Play user here

@tobiasKaminsky
Copy link
Member Author

Thanks for confirming, @st3iny

@lieblinger
Copy link

Initially, the app asked me for permissions, which I granted completely. Afterward, newly created photos taken with the camera were successfully uploaded. However, a few minutes later, the auto-upload stopped working again.

Details:
Google Play version 3.30.8
Device: Samsung Galaxy S22 Ultra

@fugue69
Copy link

fugue69 commented Jan 22, 2025

Exact same situation as lieblinger. Granted the permissions asked for as allow always, it then successfully uploaded one photo, and now it won't upload anything anymore. Tried revoking, re-enabling permissions. Force stop, clearing cache, disabling/enabling auto upload... it won't detect new photos/videos on my device. The upload queue is empty (it does see the photos in settings -> autoupload, however... just won't queue them.

Details:
Google Play version 3.30.8
Device: Samsung Galaxy S22 Ultra

@Heisenberg2018
Copy link

Heisenberg2018 commented Jan 23, 2025

I can't even upload things to my next cloud myself without auto upload because I can no longer see them in the next cloud app.

For example, if I have an MP3 on my phone and I open the next Cloud app and want to load this MP3 into the next Cloud, I can't see the file.

Why is Google sabotaging the app? Do they want to force you to use their own cloud services?

@mrmipo
Copy link

mrmipo commented Jan 24, 2025

Hi

I once again remove app. Then I delete DICM folder on phone. After that i install app from google store and connect to my nextcloud. And at the end do some photo and configure auto upload on detected new folder (DICM/Camera).

Now looks like all working fine new photo are automaticly uploaded even if I delete some of them on phone. The only things is that upload take random time ... Sometetimes it's few minutes sometime hour or two ... but finly auto upload working for me. Need to test if all photo will be uploaded (in december there was issue that not all photo was uploaded)

Client version: 3.30.8 (google version)
phone: Samsung Galaxy Z Fold 6
android: 14 (with security patch from January)
Nextcloud version: 30.0.5.1 AIO

@copywizard
Copy link

Same problem here no matter what I do items won't upload at all when I make a picture it does not upload and does also not upload already existing pictures and other items. It's only the auto upload feature because manual uploads still work without problems.

Google pixel 7 pro
Android 15
App version 3.30.8

@smooth-baking-powder
Copy link

Do anyone have news or a notification of Google for this change? I don't find anything about it.

Its not good for customers, who use the cloud in company and need other files than media for upload.

The switch to fdroid or optanium is in company's no good option, if you use a device management or similar.

@fugue69
Copy link

fugue69 commented Jan 24, 2025

I have something to add.

I was doing those tests 2 days ago (see above). Took a picture, a video, put it on charge (the condition to upload), and unlike in the past nothing appeared in the queue (Uploads). Like mentioned above, this after I cleared the cached, revoked and granted the permission, and disabled/enabled autoupload to those folder. When it didn't work (I gave it about half an hour), I was set to wait for any news in the future.

Yesterday, I left it on the charger all day. Around 8pm, grabbed it off the charger, took a couple of pictures and returned it to the charger overnight. This morning, I read some of these comments and I figured Id manually upload... where low and behold was surprised that they had been uploaded (along with my test pictures from two days ago). Took a test picture and video and put on the charger; those were added to the queue within a minute. So I don't know if by changing the permission or clearing the cache or something -- it had to iterate a ton of old photos... but it eventually started working. Wanted to share!

Details:
Google Play version 3.30.8
Device: Samsung Galaxy S22 Ultra

@Nanganator
Copy link

Similar to everyone else. Auto-Upload stopped working sometime in December. I noticed in mid January and granted the permission again and new photos/videos after that moment would auto upload but photos/videos taken between when it stopped working and when I granted permissions again would not upload.

An uninstall of the app and re-install fixed it for me. What I noticed was different upon re-install of the app was more granularity in the photos and videos permissions. Previously in settings I only had "Always allow", "Ask every time" and "Don't allow". But upon re-installing I was prompted for the permissions again and it showed that I could select specifically which photos and videos Nextcloud could access (or all photos and videos which is what I chose). Now in the settings the "Always allow" permission is "Always allow all". My guess is that even though I'd re-enabled the permission, for some reason, the photos taken during the broken permission period still had broken permissions. But I had no way of changing that in settings.

@mieseprem
Copy link

Because I really want my backups auto-uploaded again (I'm desperate) , I gave another app a try FolderSync.

Now I am even more confused. With FolderSync it is no problem to grant the necessary permissions and autoupload (or on schedule) non media files. What is the difference between them and this app? Why are they allowed to access the data, and you don't?

Is it maybe because they just 'tag' their app as File Manager and you don't? To be honest, I have no clue how Android apps are created and if such tags exist or not. But I wanted to let you know that there exists at least one app that somehow managed this challenge.

@Heisenberg2018
Copy link

Heisenberg2018 commented Jan 27, 2025

Very interesting information, so if nextcloud doesn't get it right in the next few days then I'll probably have to switch too.

I also find it unacceptable whoever is to blame for the fact that such serious errors occur with a data backup app that data has been missing during upload since December.

What's even worse is that there is no quick solution.

Who knows how many people who aren't so technically savvy have not even heard of the problem.

And the fact that the data could possibly be manipulated, e.g. GPS data could be deleted from photos, is also unacceptable.

Can Next Cloud please present a solution roadmap?

@bbernhard
Copy link

Very interesting information, so if nextcloud doesn't get it right in the next few days then I'll probably have to switch too.

I also find it unacceptable whoever is to blame for the fact that such serious errors occur with a data backup app that data has been missing during upload since December.

What's even worse is that there is no quick solution.

Who knows how many people who aren't so technically savvy have not even heard of the problem.

And the fact that the data could possibly be manipulated, e.g. GPS data could be deleted from photos, is also unacceptable.

Can Next Cloud please present a solution roadmap?

I totally get that you are mad. I am also not happy, that the sync stopped working. But please don't forget that this is an open source project, which is (largely) maintained by people who are volunteering their free (!) time to provide you software for free. I am sure they are doing their best to get the whole thing working again - but dealing with 3rd party changes is sometimes really hard and time consuming. So, give them some love and treat them with respect. They don't owe you anything. It's free software, you can always fork it and improve it yourself :)

@SKB-CGN
Copy link

SKB-CGN commented Apr 23, 2025

Still no progress here, i guess?
I dont know, why nobody is doing anything on this here, as this is one of the core functionality of NC.

EDIT: Strange is, after upgrading Nextcloud to a version >30 now uploads my pdf files inside the download folder on my Google Pixel.
I will have a further look into it, when scanning the next document.

@bklebel
Copy link

bklebel commented Apr 26, 2025

I don't know what I should think about this - I am also using the app mega (link to GPlay) which also just shows the permission for "Photos and videos", "always allow all", just as the GPlay nextcloud app version 3.31.1 currently installed.
They have two-way sync and backup sync functions, which work fine, syncing files with arbitrary name endings (e.g. .gpx).

Does google give them a different kind of access/permissions? There are some things, I really want to be synced only to my self-hosted (next)cloud instance at home, and not some cloud provider, however much privacy they claim.
So, please stay on it!

@emgee-909
Copy link

emgee-909 commented Apr 27, 2025

I don't know what I should think about this - I am also using the app mega (link to GPlay) which also just shows the permission for "Photos and videos", "always allow all", just as the GPlay nextcloud app version 3.31.1 currently installed. They have two-way sync and backup sync functions, which work fine, syncing files with arbitrary name endings (e.g. .gpx).

Does google give them a different kind of access/permissions? There are some things, I really want to be synced only to my self-hosted (next)cloud instance at home, and not some cloud provider, however much privacy they claim. So, please stay on it!

I'm curious too as to why Mega can sync files and NC can't. Maybe it's down to the way files are stored on NC and Mega? In case of Mega, their cloud space users pay for to access and in case of NC user's cloud (home server or any other server set by user).

Either Google has strange policy regarding how apps handle files on people's phone or NC wants to make money and try push people into paying for the stuff. That's my wild loose theory. It would be nice if the developers of Nextcloud made an effort to clarify this issue clearly.

@oceanBT
Copy link

oceanBT commented Apr 27, 2025

I use 1.31.1 from fdroid on pixel 8 (stock android).
I have no problems with auto uploads: pictures from DCIM and signal backups from backups/signal uploads as expected. And picture also with Geo location.

@bklebel
Copy link

bklebel commented Apr 28, 2025

I'm curious too as to why Mega can sync files and NC can't. Maybe it's down to the way files are stored on NC and Mega? In case of Mega, their cloud space users pay for to access and in case of NC user's cloud (home server or any other server set by user).

That would be one point of mine, is it just due to the permission?

Either Google has strange policy regarding how apps handle files on people's phone or NC wants to make money and try push people into paying for the stuff. That's my wild loose theory. It would be nice if the developers of Nextcloud made an effort to clarify this issue clearly.

I would rather suspect that google has strange policies, than that NC developers want you to pay for anything, being the issue here. After all, this is NC's official android app, so even if you were to pay for a hosted enterprise server, your users would still use this app, and no other app, in which things were to magically work better than in the free version.

My post here should just point out, that there are (specific) other apps which work in such a way as google seems to prevent for NC, and possibly provide more arguments for a discussion with google - if that would at all be necessary. Also, I want to encourage to continuously press google...

The case I have right now involves phones of family members, who are not necessarily tech-savvy enough to open their phones to sideloading of apps, so FDroid is no option for me at the moment.

@DaLiV
Copy link

DaLiV commented Apr 28, 2025

Still not possible select for backup folders on external sd cards ... only internal memory

@unf0rg0tt3n
Copy link

@bklebel, I'm using F-droid but the auto upload isn't working for me anymore. March worked great, april stopped working. It's really inconvenient because if I lost my phone there was at least 2 weeks of photos missing of my child.

@wwebers
Copy link

wwebers commented Apr 28, 2025

I'm curious too as to why Mega can sync files and NC can't. Maybe it's down to the way files are stored on NC and Mega? In case of Mega, their cloud space users pay for to access and in case of NC user's cloud (home server or any other server set by user).

That would be one point of mine, is it just due to the permission?

Either Google has strange policy regarding how apps handle files on people's phone or NC wants to make money and try push people into paying for the stuff. That's my wild loose theory. It would be nice if the developers of Nextcloud made an effort to clarify this issue clearly.

I would rather suspect that google has strange policies, than that NC developers want you to pay for anything, being the issue here. After all, this is NC's official android app, so even if you were to pay for a hosted enterprise server, your users would still use this app, and no other app, in which things were to magically work better than in the free version.

My post here should just point out, that there are (specific) other apps which work in such a way as google seems to prevent for NC, and possibly provide more arguments for a discussion with google - if that would at all be necessary. Also, I want to encourage to continuously press google...

The case I have right now involves phones of family members, who are not necessarily tech-savvy enough to open their phones to sideloading of apps, so FDroid is no option for me at the moment.

If it is NC: Is the iPhone client free of sync problems? I just wonder which part I shall ditch, NC or Google 😎

@axheli
Copy link

axheli commented May 4, 2025

My only question is how others are able to do this. I use Immich as my secondary photo location and have no issues. So, I wonder why Nextcloud cannot do this, but others can. How are they doing it, and why is it allowed for them but not Nextcloud? Immich is open source, too.

@smooth-baking-powder
Copy link

Hey, is there any Update? We cant still autoupload non-media Files with Play store, Fdroid or Obtanium (direct github) Version.

@dengste
Copy link

dengste commented May 13, 2025

In your official response at https://nextcloud.com/blog/nextcloud-android-file-upload-issue-google you are saying "SAF cannot be used, as it is for sharing/exposing our files to other apps, so the reviewer clearly misunderstood our app workflow.". I'm confused by that, because at least from the documentation, it is possible to get full access to (public) directories from other apps, see

https://developer.android.com/training/data-storage/shared/documents-files#grant-access-directory

It clearly says: "Your app can then access any file in the selected directory and any of its sub-directories."

So why can SAF not be used?

@soc
Copy link

soc commented May 13, 2025

@wwebers
Copy link

wwebers commented May 13, 2025

@dengste Try reading https://developer.android.com/training/data-storage/shared/documents-files#document-tree-access-restrictions.

Well, they do not deny access to other directories than those stated in that documention:

  • SD card
  • root
  • Download

and individual files under these directories:

  • Android/data
  • Android/obb

Every other directory should be fine, right?

@dengste
Copy link

dengste commented May 13, 2025

Every other directory should be fine, right?

Basically, yes. The main complaint currently is that non-media files cannot be auto-uploaded. SAF would fix that as long as this data is not in the restricted folders, which for most users should be the case. /Android/data is not meant to contain data that can be shared between applications.

Yes, you cannot give access to root partitions. This is by design, users need to explicitly chose directories (but only once, the app will keep that permission).

So to me, these restrictions look pretty sensible.

@bubbleguuum
Copy link

bubbleguuum commented May 14, 2025

Android developer here.
The SAF can definitely be used as a workaround. You just have to let the user pick the root folder(s) he wants to backup.
Sure the root of storage and the Downloads folder cannot be picked, but that's a minor inconvenience.
Once a folder has been given access by the user via the SAF folder picker, an app can crawl that folder recursively all it wants.
It can absolutely be done with the SAF.
Most apps in fact do not need the "All files access" permission while many developers think they do.
Using the SAF is ubiquitous, no complication or problematic special permission required from Google to use it.

@wwebers
Copy link

wwebers commented May 14, 2025 via email

@AndyScherzinger
Copy link
Member

Hi folks,

It's true some of our functionality can be rebuilt if we rewrite this functionality with SAF - even though it makes the user experience a bit worse. We have a file manager/document management app, which fits the use case for the full permission. There are some functions that are popular with some users like syncing a whole SD card, the download folder or the data of specific apps (in Android/data - some users use our app in a way as backup) that are just not possible with SAF. We get the security concerns from Google, but Box has this permission, so do quite some others, so our preferred solution is to re-gain the permission rather than bring back part of the functionality.

The good news is that this morning Google got back to us and told us that on resubmission we will regain the permission we need and our users regain all functionality within a few days.

@wwebers
Copy link

wwebers commented May 15, 2025 via email

@jospoortvliet
Copy link
Member

So, what you say is that the decision on who is trustworthy and who is not
lays in the hand of Google alone?
How do you handle the situation that Google is not trustworthy anymore?
Your approach couples the Nextcloud app tighter to Google as needed. I'm
talking about an exit strategy here, which became more relevant for EU
companies than ever. And the Nextcloud app would be quite unattractive for
companies with such kind of dependency.

Well, it's their app store, people use it - their choice - that is not something we can control or fix. Of course people can (and perhaps should) move to FDroid or other app stores, and there this problem did not occur.

@wwebers
Copy link

wwebers commented May 15, 2025

I know, I just wanted to highlight this perspective as well. Of course it is their baby and their decision.

@lckarssen
Copy link

The good news is that this morning Google got back to us and told us that on resubmission we will regain the permission we need and our users regain all functionality within a few days.

So your blog post helped in getting the right attention 😁.

@jospoortvliet
Copy link
Member

The good news is that this morning Google got back to us and told us that on resubmission we will regain the permission we need and our users regain all functionality within a few days.

So your blog post helped in getting the right attention 😁.

Yes, indeed, they did refer in their reply to 'the obvious reason' they reached out. Well, all good of course. And we appreciate the input you all gave here - this might help us, in the future, do better. Perhaps the API's will be extended or changed again, and change is constant in the Android ecosystem. So the large amount of feedback here in this item (100+ comments, 40+ people) is really encouraging to me - it shows many people care, and it's the power of us all together that make things better.

So I want to, again, thank everyone for their input. And the wider community - as well as press and everyone who commented everywhere, as that noise was obviously the reason we got the permission back.

We'll update the blogpost shortly as well ;-)

@tobiasKaminsky
Copy link
Member Author

tobiasKaminsky commented May 20, 2025

3.31.2 with permission back was released today 🎉

@livelace
Copy link

livelace commented May 20, 2025

btw, don't see 3.31.2 on: github, google play, f-droid

UP. Available on Google Play.
UP2. Automatic upload for call recordings works, but not immediately, like 20-30 minutes delay.
UP3. Yep, second call - 30 minutes delay. I'm done.

@mieseprem
Copy link

Hello,

During the whole 'you've been Googled' phase, I never removed the Google Play version of the app. Meanwhile 3.31.2 has landed on my device, but unfortunately I don't see any of the fixed stuff. Neither automatic non-media files upload, nor manual ones (files are not shown). Is there any step that I'm missing to get full functionality Back?

@tcg71
Copy link

tcg71 commented May 22, 2025

I had the same problem on the one device I left in PlayStore Version. Maybe I'd tried to reinstall PlayStore version when the trouble started, so the previous active permission to access all files may be lost on this.
You may add the permission to access all files manualy (settings -> apps -> "3 dots" -> special access -> access all files -> set nextcloud to enabled), then it should work again. In my case only files created after enabling this setting again where uploaded, so older files may be moved in to the folder to trigger the upload,

@mieseprem
Copy link

Thanks, that configuration was what was missing. Now its working again.

@Snamhdaen
Copy link

Snamhdaen commented May 22, 2025

Thanks for your persistence and glad that you managed to regain the file permissions.

I wonder whether this will have any impact on #14810 . I started to notice this behaviour at the same time the permission trouble began. On the other hand the f-droid version showed the identical behaviour, so I guess this is unrelated? Still annoying, though, because it makes the upload inherently unreliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot: device storage Storage (on-device) related. Permissions, paths, inconsistencies, etc. overview
Projects
None yet
Development

No branches or pull requests