Skip to content

Need clarification/further instruction on creating a shared folder #79

Open

Description

@rexendevar

I've created a bind mount per the instructions on the docs page. Now what? My android files don't appear in linux and my linux files don't appear in android. How do I resolve the permissions problem? I've run chmod 777 and it did nothing. I also attempted to add the Linux user and the Waydroid fake user to a group but it failed because the waydroid user (uid 10136 on my machine) doesn't actually exist. Now what?

Activity

  1. rexendevar commented on Nov 24, 2024

    @rexendevar
    Author

    I've tried manually changing the ownership of the files and even that didn't work. I'm utterly clueless.

  2. Ashbd9 commented on Jan 5, 2025

    @Ashbd9

    I assume you ran sudo mount --bind ~/Downloads ~/.local/share/waydroid/data/media/0/Download.

    sudo does not preserve your environment by default, and ~ replaces with /root.

    Tell sudo to preserve your environment (maybe by running it as sudo -E), or try running sudo mount --bind /home/**<username>**/Downloads /home/**<username>**/.local/share/waydroid/data/media/0/Download.

  3. rexendevar commented on Jan 5, 2025

    @rexendevar
    Author

    This is not true - tested by running sudo ls ~/Documents and seeing my own user documents appear. The bind mount works just fine via this command. My problems are entirely permissions-related.

    After much troubleshooting and research, I discovered that the theoretical solution involves matching the UID and GID of the Waydroid user to that of the Linux host user using lxc.idmap if I remember correctly. Unfortunately this requires the kernel to have been built using some option or module or whatever which enables this, and my kernel wasn't. This means it is IMPOSSIBLE to create a functional shared folder on my system.

  4. rexendevar commented on Jan 5, 2025

    @rexendevar
    Author

    If any maintainers read this, I want it known that this is a frankly unbelievable omission. The documentation page for this problem is only half complete and it is arguably the less useful half.

  5. Ashbd9 commented on Jan 6, 2025

    @Ashbd9

    You are correct. ~ is replaced by the shell with the current user home dir before any command runs.

  6. Ashbd9 commented on Jan 6, 2025

    @Ashbd9

    I have been able to create a shared folder on my system, although I have noticed that the mount --bind command has to be run while the waydroid session is running.
    It also has to be repeated everytime the waydroid session is restarted.

  7. rexendevar commented on Jan 6, 2025

    @rexendevar
    Author
  8. Ashbd9 commented on Jan 7, 2025

    @Ashbd9

    True. It should be in the docs. I found it myself through trial and error.

  9. wh-ge commented on Feb 4, 2026

    @wh-ge

    Useful link:
    An alternate way to share files between Waydroid and linux. · waydroid/waydroid · Discussion #2150

    With „sudo echo …“ there comes a permission error in Ubuntu. Therefore I used instead:
    sudo groupadd -g 1023 waydroid
    sudo usermod -aG waydroid 'your username'

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions