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 11 again: permission denied while receiving files on the phone #734
Comments
Hi, two questions ahead please.
|
the device is not rooted. all permissions are granted. (incl. all filesystem access) |
Ok, thanks for the follow up. I could try it again on the emulator during a future dev session. But no promise I could solve this, because the last emulator tests worked (as I posted on the Syncthing Forum a while ago). Unfortunately, I have no physical Android 11 device here to test a manufacturer specific implementation if it works. |
I think, I have some new data: some new files added to B are showing up on A. but the old ones don't. ok, further experiments done: I guess this ticket isn't app-related after all. shall I close it? |
Hm yeah, thanks anyways for the follow up. For a moment, I thought about database reset but better avoid this if you have another way to revive sync again without data loss. If the permission handling has to be improved, that's related to SyncthingNative, you could then head for forum.syncthing.net to get tips and tricks from users or file a bug. |
solution is found, problem is solved: tl;dr |
Thanks! |
Could a better error message be added [without days of significant effort]? |
The wrapper displays what the SyncthingNative gives him via RestApi / EventsApi. I think a better error message should be emitted by the native, so Android and PC users can see it and not only users of this wrapper. |
By the way, file names containing pipe characters ( |
@oliver Don't use special chars and feel safe :-) |
Is there a way to solve this other than avoiding using special chars as I already heavily use them, and I am kinda of forced to with syncing Node libraries, I have many issues related this this syncing between my phone(S20U) and my laptop(MBP). Some of the examples are |
Well, this is not a Syncthing but a filesystem issue. If you're able to use a filesystem or mount point that supports special characters it might be okay, but its not officially supported by Android and any root tricks and modifications go beyond this project. |
Exact same problem here with "operation not permitted" on tmp files that contains date and time information (eg foobar_2020-12-24T04:59:06.ext). It would be nice if syncthing was able to account for operating system limitation w.r.t filenames, in particular ':' and '|' on Android 11. This was already suggested in #1734. |
Introduction: If you have issues with this fork, feel free to post them. I'll look into them if a good reproducer or log is provided.
Description of the issue
I'm using the version linked here because of the reasons described in the other bug report:
#704 (comment)
things are working good, syncthing keeps shoveling my pictures off the phone to the private storage.
I shared another directory that should be kept in sync over many devices, data goes to and fro this time.
but file will not roll in. directories are created though.
Reproducer
have a folder X on device B (any) share it with device A (Android 11, oneplus 8 in my case).
put a new file in X on B.
wait for it to show up on A
A gets permission denied.
actual error message from the web gui on the phone:
syncing: opening temp file: open /storage/emulated/0/Bunny Squad Common/Murmeltier/.syncthing.murmel_2020-12-24T04:59:06.mp3.tmp: operation not permitted
Notice: the directory was created, the file was not. unix permissions seem to be in order: 660/770, root:everybody
GF's oneplus 8, kept on android 10 does not show this problem.
Version Information
Device platform info
Android Log
this should be the relevant part:
The text was updated successfully, but these errors were encountered: