Skip to content

[root] Add Full Device Storage Access #60

Closed

Description

@magic-ian

Description of the issue

I would like to be able to synchronize contents in /Android/data across devices, however it appears Syncthing must request MANAGE_EXTERNAL_STORAGE to be able to do this? I'm not completely sure, but other apps like Termux appear to have access (option to use rsync instead)

Steps to reproduce

  1. Create Folder

  2. Select Directory

  3. Attempt to navigate to /Android/data or /Android/obb or other restricted storage space

App version

v2.x

App install source - see wiki for details on release channels

GitHub or F-Droid release build

Android version

11

ROM vendor

Agnostic

Device manufacturer

Agnostic

Device model

Agnostic

Device platform info (optional)

Android 5.0+

Android log (logcat)

Activity

  1. researchxxl commented on Dec 13, 2025

    @researchxxl
    Owner

    hi
    the app already uses manage_external_storage but androids folder selector restricts browsing to the location as outlined in their docs
    ways to circumvent are not yet implemented
    you could try to enter the path manual in the web ui which may work for some android derivates

  2. MichaelZ4714 commented on Dec 21, 2025

    @MichaelZ4714

    I think there are two possibilities. The best one has unfortunately just been removed: using root to access folders. The second one is not really one: go back using pre-Android 4.4. At that time Storage Access Framework was introduced with limiting access.

  3. bege10 commented on Dec 29, 2025

    @bege10

    @researchxxl @nel0x Please, restore root access. It is vital for syncing app data in Android/data. In my opinion it is not the issue of the respective apps but of a synching app to manage access to these folders. I was using Syncthing-Fork this way for a long time and suddenly I am left alone without this option.

  4. researchxxl commented on Dec 29, 2025

    @researchxxl
    Owner

    @bege10 answered you on the forum ;))

  5. researchxxl commented on Dec 29, 2025

    @researchxxl
    Owner

    @nel0x quote from the forum

    I mean if we put in the work to maintain it would there be any reason to not include it in the ‘main’ flavour - thus not diverge in a GPlay-specific capability? Generally I can take this feature under my umbrella, but I don’t use a rooted device myself too, so this feature would be on a ‘best effort’ basis …
    

    if you take care of the expected low amount of tickets on best effort i agree on this.. in case you hit problems users need to proactively help you testing but thats okay imo for what they get in return

    bringing the root feature back involves partly revert of #39 and the following tasks

    • replace eu.chainfire.libsuperuser.Shell by something maintained.. its last release was of feb 5, 2022 which i think is not security wise to rely on into all future
    • runShellCommandGetOutput optionally could get a better named argument then true or false for su declaration
    • minor update to the wiki instructions on which users should take caution
  6. MichaelZ4714 commented on Dec 30, 2025

    @MichaelZ4714
    • replace eu.chainfire.libsuperuser.Shell by something maintained..

    I think https://github.com/topjohnwu/libsu could be a good library.

  7. MichaelZ4714 commented on Dec 30, 2025

    @MichaelZ4714

    users need to proactively help you testing

    @nel0x
    I am willing to support.

  8. researchxxl commented on Dec 30, 2025

    @researchxxl
    Owner
    • replace eu.chainfire.libsuperuser.Shell by something maintained..

    I think https://github.com/topjohnwu/libsu could be a good library.

    that might also solve the difficulties on wrong permissions on config and cert files of syncthing using remote fs access instead

  9. Bsd-us commented on Jan 3, 2026

    @Bsd-us

    I was planning on using root access on Android 10 as it has very poor support for sd cards
    after looking for a while for where it was I saw it disappeared
    I can be a tester for this feature if needed I hope we can bring this back

  10. changed the title [-]Full Device Storage Access[/-] [+][root] Add Full Device Storage Access[/+] on Jan 10, 2026
  11. linked a pull request that will close this issuefeat(root): refactor root access #107on Jan 10, 2026
  12. researchxxl commented on Feb 15, 2026

    @researchxxl
    Owner

    if this feature gets implemented can non root shizuku users use this too?

    no they cant provide what a root binary needs

  13. owen-the-kid commented on Feb 15, 2026

    @owen-the-kid

    if this feature gets implemented can non root shizuku users use this too?

    no they cant provide what a root binary needs

    also not for android/data or android/obb?

  14. MichaelZ4714 commented on Feb 15, 2026

    @MichaelZ4714

    if this feature gets implemented can non root shizuku users use this too?

    no they cant provide what a root binary needs

    also not for android/data or android/obb?

    No. Those two folders are protected by SELinux context. On very old versions of Android it could work.

  15. 11 remaining items

  16. Damglador commented on May 17, 2026

    @Damglador

    It would be also nice to expose copyOwnershipFromParent in the GUI as without it running Syncthing as root on data folders of apps may break they permissions.

  17. zukigay commented on May 31, 2026

    @zukigay
  18. nivranaitsirhc commented on Jun 28, 2026

    @nivranaitsirhc

    Hey everyone, please help me understand your use cases with root, so i can do some testing.

    Basically sync anything in the Android /data or any partition mounted e.g. for external sd not mounted by android normal mounting.

  19. rowanfuchs commented on Jun 28, 2026

    @rowanfuchs
  20. Repository owner deleted a comment from f-l-ip on Jul 22, 2026
  21. Repository owner deleted a comment from catsgomoo on Jul 22, 2026
  22. github-actions commented on Jul 22, 2026

    @github-actions
    Contributor

    🤖 This issue has been automatically locked because it was closed.

  23. locked and limited conversation to collaborators on Jul 22, 2026
  24. Repository owner deleted a comment from whatobiplays on Sep 30, 2026
  25. Repository owner deleted a comment from owen-the-kid on Sep 30, 2026
  26. Repository owner deleted a comment from MichaelZ4714 on Sep 30, 2026
  27. Repository owner deleted a comment from rowanfuchs on Sep 30, 2026
  28. Repository owner deleted a comment from owen-the-kid on Sep 30, 2026
  29. Repository owner deleted a comment from normanre on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions