Skip to main content
neowofetch of my PC with Minecraft: Bedrock Edition in the background
Minecraft: Bedrock Edition running on my PC

Minecraft: Bedrock Edition on Waydroid

A guide to running Minecraft: Bedrock Edition on Linux with Waydroid

Published: • Last edited:

Introduction

Minecraft: Bedrock Edition is Microsoft’s cross-platform version of the game. With the introduction of the Better Together Update it allowed players to play together regardless of platform through Xbox. Bedrock boasts its cross-play support for Windows, Xbox, Nintendo Switch, PlayStation, and mobile. However, macOS and Linux support are notably absent from Bedrock. While I am not aware of a workaround for macOS you can play Bedrock on Linux using Waydroid. This solution runs fairly well and works with cross-play because it’s just special Android.

Prerequisites

The following things are required to play Bedrock through this method:

Installation

Before setting up Waydroid there are some distribution specific steps you must follow.

Arch Linux

You will need an AUR helper or know how to manually install AUR packages. This page assumes you are using paru. You either need the binder_linux DKMS modules or the Linux Zen kernel.

binder_linux

To install the binder_linux DKMS modules install the binder_linux-dkms package from the AUR:

paru -S binder_linux-dkms

Linux Zen

To install the Linux Zen kernel run the following command:

sudo pacman -S linux-zen linux-zen-headers

You will also need to change your system to boot with Zen.

Waydroid AUR

You can then install Waydroid from the AUR:

paru -S waydroid

Debian/Ubuntu

Install Waydroid from the offficial repository:

curl https://repo.waydro.id | sudo bash
sudo apt install waydroid

Fedora

Install the Waydroid package:

sudo dnf install waydroid

NixOS

In /etc/nixos/configuration.nix or in your flake add the following and rebuild:

virtualisation.waydroid.enable = true;

Other

View the install instructions for your distribution.

Waydroid Setup

First you need to enable and start the waydroid-container service:

sudo systemctl enable --now waydroid-container

Once the container has started you can initialize Waydroid with Google apps:

sudo waydroid init -s GAPPS

To install apps from Google Play you must “certify” your Waydroid installation:

waydroid session start
sudo waydroid shell
ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = "android_id";"

Copy the ID from the command output and enter it on the Google Device registration page. Then restart the waydroid-container service:

sudo systemctl restart waydroid-container

Configure Waydroid

Waydroid has a few settings you can configure from the command line. The one you will most likely want to set is the resolution, especially if you use fractional scaling. Waydroid currently doesn’t appear to properly support fractional scaling so you will need to account for that when setting the resolution. To calculate the scaled resolution divide your display’s resolution by the scaling factor, for 1920×1080 at 150% that’s 1920 / 1.5 = 1280 and 1080 / 1.5 = 720. To set the resolution to 1280×720 run:

waydroid prop set persist.waydroid.width "1280"
waydroid prop set persist.waydroid.height "720"

After changing any properties you need to restart waydroid-container:

sudo systemctl restart waydroid-container

Some extra settings you might want to change in Android’s System Settings are:

Play Minecraft

Open Waydroid’s full system UI and navigate to the Google Play Store. Sign in with your Google account if you aren’t already. Search for and download Minecraft.

You should be able to launch Minecraft from your desktop environment’s application launcher or from the Waydroid full system UI. Some caveats to this solution are that render distance is limited to 32 chunks and you can’t enable RTX even if you get it working on NVIDIA. Keyboard and mouse work out of the box and you may be able to pass through a controller but I couldn’t get it to work in my limited testing.

This video shows Minecraft: Bedrock Edition running with 32 chunks through Waydroid on NixOS (the video is much older than the page header) with river.