# Setting up a shared folder

User @wachidadinugroho has worked out the details on how to setup a shared folder to be used between Waydroid and your host filesystem.

Setting up a shared folder will allow the user to copy/paste files from the host and they appear inside waydroid/android.\
\
`sudo mount --bind <source> ~/.local/share/waydroid/data/media/0/<target>`

Then verify that the target folder exists:

`sudo ls ~/.local/share/waydroid/data/media/0/`\
\
**Examples:**

```
 sudo mount --bind ~/Documents ~/.local/share/waydroid/data/media/0/Documents 
 sudo mount --bind ~/Downloads ~/.local/share/waydroid/data/media/0/Download 
 sudo mount --bind ~/Music ~/.local/share/waydroid/data/media/0/Music 
 sudo mount --bind ~/Pictures ~/.local/share/waydroid/data/media/0/Pictures 
 sudo mount --bind ~/Videos ~/.local/share/waydroid/data/media/0/Movies
```

You can also make your own custom mount point to cater to your needs.

## Mount the internal storage

Alternatively you can directly mount the internal storage to a target folder on your host, using bindfs to set your user as the owners of all mounted files (original owner permissions are preserved in the source folder).

```
sudo mkdir /mnt/waydroid
sudo bindfs --mirror=$(id -u) ~/.local/share/waydroid/data/media/0 /mnt/waydroid
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.waydro.id/faq/setting-up-a-shared-folder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
