Waydroid: Difference between revisions
(No difference)
|
Revision as of 16:02, 12 September 2021
Consider using native Linux programs instead, see FAQ. |
Waydroid is the modern approach to run Android apps on Linux. It is similar to Anbox, but it works with wayland and is more performance efficient. As of writing, waydroid is available in Alpine Linux and postmarketOS edge, but it is in an experimental stage.
Installation
$ sudo apk add waydroid
Usage
After installation, the waydroid session is configured to start automatically on boot.
In order to run apps, the container needs to be started as well. (Apparently it should start automatically when running apps? Also it appears to take quite some time to start up.)
You can start the container and session as follows:
"Container" refers to the Android LXC container itself
$ sudo waydroid container start
"Session" refers to the Waydroid specific bits to integrate Android apps into your users environment (.desktop files etc)
$ waydroid session start
Use the following command to inspect the status of waydroid:
$ waydroid status
Session: RUNNING
Container: RUNNING
Vendor type: MAINLINE
Session user: user(10000)
Wayland display: wayland-0
Run the Android container in fullscreen:
$ waydroid show-full-ui
Run apps from the command-line:
$ waydroid app launch com.android.settings
See waydroid -h
for more information.
Related
- pmaports#1173 lets package it for postmarketOS
- pmaports!2497 main/linux-postmarketos-*: enable CONFIG_PSI (with side-by-side performance video)