Waydroid: Difference between revisions
imported>Hypnosis2839 m →Troubleshooting: clean up formatting |
imported>IgorM m Pretty console snippets |
||
Line 17: | Line 17: | ||
After rebuilding and switching, finish the WayDroid install in your shell. | After rebuilding and switching, finish the WayDroid install in your shell. | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
Fetch WayDroid images. | |||
You can add the parameters "-s GAPPS -f" to have GApps support. | |||
sudo waydroid init | $ sudo waydroid init | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 29: | Line 29: | ||
Start the container | Start the container | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
Start the WayDroid LXC container | |||
sudo systemctl start | $ sudo systemctl start waydroid-container | ||
You'll know it worked by checking the journal You should see "Started Waydroid Container". | |||
$ sudo journalctl -u waydroid-container | |||
waydroid session start | |||
Start WayDroid session | |||
You'll know it is finished when you see the message "Android with user 0 is ready". | |||
$ waydroid session start | |||
</syntaxhighlight> | </syntaxhighlight> | ||
General usage | General usage | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
Start Android UI | |||
waydroid show-full-ui | $ waydroid show-full-ui | ||
waydroid app list | List Android apps | ||
$ waydroid app list | |||
waydroid app launch <application name> | |||
Start an Android app | |||
waydroid app install </path/to/app.apk> | $ waydroid app launch <application name> | ||
sudo waydroid shell | Install an Android app | ||
$ waydroid app install </path/to/app.apk> | |||
waydroid prop set persist.waydroid.width 608 | |||
Enter the LXC shell | |||
$ sudo waydroid shell | |||
Overrides the full-ui width | |||
$ waydroid prop set persist.waydroid.width 608 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 63: | Line 69: | ||
Use following command to upgrade Android (LineageOS) to a newer version if available | Use following command to upgrade Android (LineageOS) to a newer version if available | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
sudo waydroid upgrade | $ sudo waydroid upgrade | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 72: | Line 78: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
Stop Waydroid container | |||
sudo systemctl stop waydroid-container | $ sudo systemctl stop waydroid-container | ||
Removing images and user data | |||
sudo rm -r /var/lib/waydroid/* ~/.local/share/waydroid | $sudo rm -r /var/lib/waydroid/* ~/.local/share/waydroid | ||
</syntaxhighlight> | </syntaxhighlight> | ||