Waydroid: Difference between revisions

From NixOS Wiki
imported>Fedx
Add waydroid to the wiki
 
imported>Fedx
No edit summary
Line 13: Line 13:
     waydroid. enable = true;
     waydroid. enable = true;
     lxc.enable = true;
     lxc.enable = true;
    lxd.enable = true;
   };
   };
}
}
Line 24: Line 25:
# Fetch WayDroid images.  
# Fetch WayDroid images.  
sudo waydroid init
sudo waydroid init
#start the WayDroid LXC container
sudo waydroid container start
# Start WayDroid session
# Start WayDroid session
waydroid session start
waydroid session start

Revision as of 18:52, 21 March 2022

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.

/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