
Are you eager to run your favorite Android applications seamlessly on your Linux desktop? Look no further than Waydroid! This innovative tool employs a container-based architecture, allowing for the execution of Android apps with performance that closely matches native capabilities while deeply integrating them into your Linux environment. This guide provides a comprehensive overview of using Waydroid on your Linux system.
Understanding Waydroid
Waydroid represents a sophisticated container-based solution, capable of booting a full Android operating system on your Linux machine. Unlike traditional emulators that consume substantial resources, Waydroid operates Android apps natively with the help of Linux Containers (LXC).This results in a lightweight and efficient experience where applications integrate directly into your desktop environment.
Compatible with a variety of Linux distributions and CPU architectures, Waydroid harnesses Android’s Mesa technology for enhanced graphics performance. This ensures that your apps run smoothly by granting the container access to the host system’s GPU.
Installation Process for Waydroid
Before diving into the installation, ensure your system is running a Wayland session (specifically for Ubuntu 22.04 and later).You can verify this by opening a terminal and executing the following command:
echo $XDG_SESSION_TYPE

Ensure that your system is updated and contains the required prerequisites like curl:
sudo apt update && sudo apt install curl ca-certificates -y
Next, add the Waydroid official repository:
curl -s https://repo.waydro.id | sudo bash

If automatic detection fails, specify your version manually. For example, you can use -s jammy
for Ubuntu 22.04.
Finally, execute the following command to install Waydroid:
sudo apt install waydroid -y
Once the installation is successful, you can find Waydroid in your Applications menu.

For Fedora users, installation is accomplished with the DNF package manager:
sudo dnf install waydroid
Configuring Waydroid
Upon your initial launch of Waydroid, a setup window may prompt you to download an Android image. This image serves as the Android system that operates within the container. You can select a Vanilla image (without Google services) or a GAPPS image (with Google Play Services).
Choose GAPPS if you wish to access the Google Play Store for application installation. After you select the desired image, click Download and wait for the download to complete.

Once the download is complete, click Done, and Waydroid will automatically launch. If it does not, relaunch it manually from your applications menu. A virtual Android environment will appear after a brief wait.

Initially, the device is not registered, so if you aim to use the Google Play Store, you need to register it. Open your terminal and run:
sudo waydroid shell
While in the Waydroid shell, execute the following command to obtain your Android ID:
ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/dataANDROID_TZDATA_ROOT=/apex/com.android.tzdataANDROID_I18N_ROOT=/apex/com.android.i18n sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"

This command will return a numeric string – be sure to copy it.
Then, navigate to the Google Uncertified Device Registration page, paste your Android ID, complete the verification, and click Register.

Finally, either close and reopen Waydroid or execute the following sequence:
waydroid session stop && waydroid session start
Now your device is registered, and you’re ready to download and use Android applications, including those available in the Google Play Store.
Installing Android Apps through Waydroid
If you opted for the GAPPS image during the setup process, launching the Google Play Store is straightforward. Simply sign in with your Google account, and you can install applications just like you would on an Android device.

Uninstalling an app follows the same steps as on your Android device; just click Uninstall to remove any unwanted applications.

This makes app management as convenient as it is on a mobile device.
If you prefer not to use the Google Play Store, you also have the option to manually install apps using APK files or explore alternative app stores like F-Droid, known for its emphasis on lightweight and privacy-focused applications.
To install an APK, first download it from a trusted source. Navigate to the folder containing the APK in your terminal and execute:
waydroid app install your_app.apk
Substitute your_app.apk
with the actual name of the APK file. The installation should complete in a matter of seconds.
Conclusion
Waydroid is a compelling choice for running Android applications on Linux. However, there are alternative methods available as well, including conventional Android emulators, virtual machines, or utilizing Android Studio to create a personal Android Virtual Device (AVD).
Leave a Reply ▼