Comments (12)
As you see, I grant full access and even before to open a ticket I cancel it, granted again and upload few files via app. Somehow it is not working for me. May be Samsung update caused this, because before December everything was fine.
Yes those are the "normal" permissions that that app requests when you install it.
You need to additionally turn on:
Settings-->Apps-->Special App access (at the bottom)-->All Files Access-->Nextcloud-->Turn on "Allow access to manage all files"
Although on Samsung the navigation is probably different. When you get to the right setting it will look similar to:
from android.
To "fix" (er work around) this on a Pixel 8 Pro running Android 14 do the following:
Settings-->Apps-->Special App access (at the bottom)-->All Files Access-->Nextcloud-->Turn on "Allow access to manage all files"
...in addition to the standard "App Permissions" being set correctly.
I have verified on my phone the sha256sum are the same:
Pixel 8-->Nextcloud App-->InstantUpload-->NextCloud 28.0.5-->Nextcloud Ubuntu File Sync-->sha256sum on local file system
...vs...
Pixel 8-->MTP USB 3 connection-->sha256sum over the MTP mount
I believe Android is "cleaning" your private data before it gives it to any app...unless the app has "Special App access" which is not in the normal "App Permissions"
One example:
ZZZZZ@i5BRIX:~$ sha256sum ~/Nextcloud/InstantUpload/Camera/PXL_20240516_152713497.jpg
3b25ea8365bbb327ed7ba3c25dac78af3ea6fc6deb305b0bac10f616c02cd8c4 /home/ZZZZZ/Nextcloud/InstantUpload/Camera/PXL_20240516_152713497.jpg
ZZZZZ@i5BRIX:~$ sha256sum "/run/user/1000/gvfs/mtp:host=Google_Pixel_8_Pro_39080DLJG000NX/Internal shared storage/DCIM/Camera/PXL_20240516_152713497.jpg"
3b25ea8365bbb327ed7ba3c25dac78af3ea6fc6deb305b0bac10f616c02cd8c4 /run/user/1000/gvfs/mtp:host=Google_Pixel_8_Pro_39080DLJG000NX/Internal shared storage/DCIM/Camera/PXL_20240516_152713497.jpg
ZZZZZ@i5BRIX:~$
from android.
What do the ten files that matched have in common?
Were they created after the permission change?
Put another way, now that access is granted, if you take a new photo does it also differ or is it a match?
from android.
What do the ten files that matched have in common?
Were they created after the permission change?
Put another way, now that access is granted, if you take a new photo does it also differ or is it a match?
I'm not the original poster, but my guess is that the 10 matching files had no metadata to start...like a TXT file, or Android doesn't know how to strip the metadata for those type files.
In my experiments just now....
All new photo's (after make the settings change "Special App access-->All Files Access") all new files come through the WHOLE pipeline with matching sha256sum.
Old Files:
(After deleting the copy of all the files on my NextCloud Server) On my phone, if I reconfigure the "Auto upload" to "Also upload existing files" and it goes to town, the newly uploaded, old photo's, have their exif data (it wasn't stripped this time). In other words, the files on the phone were not touched by anything, including the Android Nextcloud App.
My Guess: the normal (many versions) old Android API call to get files will now strip all the files of meta data before the file is given to the calling app...probably even MS Word Doc's, etc...unless that Android app has "Special App access-->All Files Access"
from android.
My Guess: the normal (many versions) old Android API call to get files will now stripping all the files of meta data before the file is given to the calling app...probably even MS Word Doc's...unless that Android app has "Special App access (at the bottom)-->All Files Access"
No need for guessing. That's expected behavior. Location data for media files is not provided to the Nextcloud Android client unless that permission is granted interactively by the user. That's how Android OS works (these days):
https://developer.android.com/training/data-storage/shared/media#media-location-permission
To "fix" (er work around) this on a Pixel 8 Pro running Android 14 do the following:
Settings-->Apps-->Special App access (at the bottom)-->All Files Access-->Nextcloud-->Turn on "Allow access to manage all files"
The original reporter has already done this from what I can tell. :-)
Also, this isn't a workaround. This is precisely why the client asks for those permissions from the user at installation time. They also have the option of choosing the lesser one (which doesn't provide location data to Nextcloud).
In any case, I'm interested in the reporter's response rather than guessing what the situation is with those ten files. :-)
from android.
My Guess: the normal (many versions) old Android API call to get files will now stripping all the files of meta data before the file is given to the calling app...probably even MS Word Doc's...unless that Android app has "Special App access (at the bottom)-->All Files Access"
No need for guessing. That's expected behavior. Location data for media files is not provided to the Nextcloud Android client unless that permission is granted interactively by the user. That's how Android OS works (these days):
https://developer.android.com/training/data-storage/shared/media#media-location-permission
To "fix" (er work around) this on a Pixel 8 Pro running Android 14 do the following:
Settings-->Apps-->Special App access (at the bottom)-->All Files Access-->Nextcloud-->Turn on "Allow access to manage all files"This isn't a workaround. This is precisely why the client asks for those permissions from the user at installation time. They also have the option of choosing the lesser one (which doesn't provide location data to Nextcloud).
In any case, I'm interested in the reporter's response rather than guessing what the situation is with those ten files. :-)
Agreed. It's expected behavior, but what's unexpected is that the app doesn't request these permissions during install. It does ask for the normal permissions.
It feels like a heavy lift for a normal user because the permissions required are not under the normal app permissions.
They're under special permissions would you have to go digging for in your system settings after you install the app.
from android.
As you see, I grant full access and even before to open a ticket I cancel it, granted again and upload few files via app. Somehow it is not working for me. May be Samsung update caused this, because before December everything was fine.
from android.
Agreed. It's expected behavior, but what's unexpected is that the app doesn't request these permissions during install. It does ask for the normal permissions.
It feels like a heavy lift for a normal user because the permissions required are not under the normal app permissions.
I would agree it would be heavy lifting, but we do request it at install time. :-)
I just uninstalled and reinstalled:
Selecting the right most option brings up the expected screen:
Which can either be turned on or not:
from android.
@GAS85 Don't want to lose your thread:
What is the nature of the ten files that passed the SHA checks? Were they newer media than all the others? Did the originals already lack location data? Etc. I'm trying to figure out why some of your media were okay. It might help determine why your other media are not okay.
from android.
Agreed. It's expected behavior, but what's unexpected is that the app doesn't request these permissions during install. It does ask for the normal permissions.
It feels like a heavy lift for a normal user because the permissions required are not under the normal app permissions.I would agree it would be heavy lifting, but we do request it at install time. :-)
I just uninstalled and reinstalled:
Selecting the right most option brings up the expected screen:
Which can either be turned on or not:
You're exactly right. I hadn't reinstalled in a long time....I guess there is an odd corner case when this happens. Probably not something the app can fix.
For whatever reason I ended up in this state...and had to hunt down this odd additional setting, when an uninstall/reinstall would have solved it.
Thanks for the clarification.
from android.
@GAS85 Don't want to lose your thread:
What is the nature of the ten files that passed the SHA checks? Were they newer media than all the others? Did the originals already lack location data? Etc. I'm trying to figure out why some of your media were okay. It might help determine why your other media are not okay.
I double check and they enter do not have location tag, or were uploaded via web UI.
from android.
You need to additionally turn on:
Settings-->Apps-->Special App access (at the bottom)-->All Files Access-->Nextcloud-->Turn on "Allow access to manage all files"
Wow, that was not easy to find. Seem now files uploaded with the same sha, so no modifications to exif.
Totally agree that this must be highlighted to user. I didn't get this prompt after install the app.
from android.
Related Issues (20)
- Crash report on notifications
- Link sharing error
- [Bug]: Upload picture can not be seen HOT 5
- 1 HOT 1
- App from F-Droid crashes after start on Android 6 HOT 2
- error
- NC android client doesn't update filename HOT 5
- Android client menus aren't displayed after selecting a folder
- Crash when click Open with...
- Only pictures are enabled but videos also auto-synced
- 3.29 Auto upload of large videos fail with "connection error" HOT 1
- Add Clear files locally option to the side menu, make possible to view the largest files
- Suggest to overwrite image files after modifications
- Remove Outdated Dependencies and kapt Annotation Processor HOT 3
- Re-order and group drawer items? HOT 1
- Trashed photo are uploaded
- Ability to deactivate sync for a file or folder
- login loop after new media folder was found on device HOT 1
- Java Exception
- Crash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android.