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="bash">
<syntaxhighlight lang="console">
# Fetch WayDroid images.
Fetch WayDroid images.
# You can add the parameters "-s GAPPS -f" to have GApps support.
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="bash">
<syntaxhighlight lang="console">
# Start the WayDroid LXC container
Start the WayDroid LXC container
sudo systemctl start waydroid-container
$ 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


# Start WayDroid session
You'll know it worked by checking the journal You should see "Started Waydroid Container".
# You'll know it is finished when you see the message "Android with user 0 is ready".
$ 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="bash">
<syntaxhighlight lang="console">
# Start Android UI
Start Android UI
waydroid show-full-ui
$ waydroid show-full-ui
# List Android apps
 
waydroid app list
List Android apps
# Start an Android app
$ waydroid app list
waydroid app launch <application name>
 
# Install an Android app
Start an Android app
waydroid app install </path/to/app.apk>
$ waydroid app launch <application name>
# Enter the LXC shell
 
sudo waydroid shell
Install an Android app
# Overrides the full-ui width
$ 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="bash">
<syntaxhighlight lang="console">
sudo waydroid upgrade
$ sudo waydroid upgrade
</syntaxhighlight>
</syntaxhighlight>


Line 72: Line 78:




<syntaxhighlight lang="bash">
<syntaxhighlight lang="console">
# Stop Waydroid container
Stop Waydroid container
sudo systemctl stop waydroid-container
$ sudo systemctl stop waydroid-container


# Removing images and user data
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>