WayDroid

From NixOS Wiki
Revision as of 18:52, 21 March 2022 by Fedx (talk | contribs)
Jump to: navigation, search

WayDroid is an application which uses LXC containers to run Android applications on a non-Android system.

Warning: WayDroid requires a Wayland desktop session and cannot be used on X11.

Install:

We will need to enable the WayDroid and LXC services.

Breeze-text-x-plain.png
/etc/nixos/configuration.nix
{ pkgs, ... }:
{
  virtualisation = {
    waydroid. enable = true;
    lxc.enable = true;
    lxd.enable = true;
  };
}


From here you will need to finish the WayDroid install in your shell.

# Rebuild NixOS config.
nixos-rebuild switch
# Fetch WayDroid images. 
sudo waydroid init
#start the WayDroid LXC container
sudo waydroid container start
# Start WayDroid session
waydroid session start

Usage

# Start Android UI
waydroid show-full-ui
# Start an Android app
waydroid app start <application name>
# Install an Android app
waydroid app install </path/to/app.apk>
# List Android apps
waydroid app list
# Enter the LXC shell
sudo waydroid shell

See Also:

Arch Wiki