You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need clarification/further instruction on creating a shared folder #79
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?
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.
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.
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.
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.
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'
Activity
rexendevar commentedon Nov 24, 2024
I've tried manually changing the ownership of the files and even that didn't work. I'm utterly clueless.
Ashbd9 commentedon Jan 5, 2025
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 runningsudo mount --bind /home/**<username>**/Downloads /home/**<username>**/.local/share/waydroid/data/media/0/Download.rexendevar commentedon Jan 5, 2025
This is not true - tested by running
sudo ls ~/Documentsand 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.idmapif 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.rexendevar commentedon Jan 5, 2025
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.
Ashbd9 commentedon Jan 6, 2025
You are correct. ~ is replaced by the shell with the current user home dir before any command runs.
Ashbd9 commentedon Jan 6, 2025
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.
rexendevar commentedon Jan 6, 2025
Ashbd9 commentedon Jan 7, 2025
True. It should be in the docs. I found it myself through trial and error.
wh-ge commentedon Feb 4, 2026
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'