Android (via Waydroid)
Introductions
A container-based approach to boot a full Android system on comet running Wayland based desktop environments.
This tutorial focuses on bringing Waydroid support to the Mecha Comet, it ensures compatibility, performance, and hardware acceleration, allowing users to run Android applications alongside their Linux workflow.
The Waydroid environment includes a minimal, customized Android system image based on LineageOS, currently using Android 11.
The purpose of this setup is to install and configure Waydroid for Android System.
Prerequisites
- You need sudo privileges to execute the commands.
- Ensure Mecha Comet is connected to wireless and have internet access.
Kernel flags modifications
CONFIG_PSI=y
CONFIG_MEMCG=y
CONFIG_MEMCG_SWAP=y
CONFIG_MEMCG_KMEM=y
Install pre-requisites and Add the official repository
sudo apt install curl ca-certificates -y
curl -s https://repo.waydro.id | sudo bash
If the script fails to detect your distribution while adding repository, you can provide a valid option by appending -s bookworm
And in a new terminal tab, start the waydroid session (without sudo ):
waydroid session start
After that starts and you see "Android with user 0 is ready", it is safe to launch an app from the applications menu, or Launch Waydroid In Full-Screen Mode:
(This can be run while Waydroid is running, or used to start it in full-screen mode)
Launch Waydroid In Full-Screen Mode
waydroid show-full-ui
Install and Run Android Applications
You can install Android applications with:
waydroid app install xyz.apk
This completes the setup for running Waydroid on Mecha Comet.