Giter VIP home page Giter VIP logo

Comments (12)

TippyTurtle avatar TippyTurtle commented on June 3, 2024 1

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:
Screenshot_20240516-133049

from android.

TippyTurtle avatar TippyTurtle commented on June 3, 2024

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.

joshtrichards avatar joshtrichards commented on June 3, 2024

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.

TippyTurtle avatar TippyTurtle commented on June 3, 2024

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.

joshtrichards avatar joshtrichards commented on June 3, 2024

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.

TippyTurtle avatar TippyTurtle commented on June 3, 2024

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.

Screenshot_20240516-133423

They're under special permissions would you have to go digging for in your system settings after you install the app.

Screenshot_20240516-133049

from android.

GAS85 avatar GAS85 commented on June 3, 2024

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.

joshtrichards avatar joshtrichards commented on June 3, 2024

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:

Screenshot_20240516-172952.png

Selecting the right most option brings up the expected screen:

Screenshot_20240516-173336.png

Which can either be turned on or not:

Screenshot_20240516-173338.png

from android.

joshtrichards avatar joshtrichards commented on June 3, 2024

@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.

TippyTurtle avatar TippyTurtle commented on June 3, 2024

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:

Screenshot_20240516-172952.png

Selecting the right most option brings up the expected screen:

Screenshot_20240516-173336.png

Which can either be turned on or not:

Screenshot_20240516-173338.png

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 avatar GAS85 commented on June 3, 2024

@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.

GAS85 avatar GAS85 commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.