Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Android 8.1 Oreo to run applications on Linux

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install Android 8.1 Oreo on Linux to run applications. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

Install Android x86 8.1 Oreo on Linux Prepare Environment

First, let's download the android x86 8.1 Oreo system image. You can download it from this page by simply clicking the "View" button under the "android-x86_64-8.1-r1.iso" file.

We will use QEMU to run android x86 on our Linux system. QEMU is a very good simulator software, it is also free and open source, and is available in all major Linux distribution repositories.

Installing QEMU on Ubuntu/Linux Mint/Debian:

sudo apt-get install qemu qemu-kvm libvirt-bin

Installing QEMU on Fedora:

sudo dnf install qemu qemu-kvm

For other distributions, just search for the "qemu" and "qemu-kvm" packages and install them.

After you install QEMU, we'll need to run the following command to create the android.img file, which acts like some kind of disk space allocated to Android. All Android files and systems will be located in this image file:

qemu-img create -f qcow2 android.img 15G

What we mean here is that we want to allocate a maximum of 15GB of disk space for this Android, but you can change it to any size you want (make sure it's at least larger than 5 GB).

Now, for the first time to boot up and run this Android, run:

sudo qemu-system-x86_64 -m 2048 -boot d -enable-kvm -smp 3 -net nic -net user -hda android.img -cdrom /home/mhsabbagh/android-x86_64-8.1-r1.iso

Replace/home/mhsabbagh/android-x86_64-8.1-r1.iso with the path to the file you downloaded from the android x86 website. For an explanation of the other options we are using here, you can refer to this article.

After you run the above command, the Android system will launch:

Install Android 8.1 Oreo on Linux To Run Apps & Games 40 android 8.1 oreo on linux

mounting system

From this window, select "Advanced options", which will lead to the following menu, where you should select "Auto_installation" as follows:

Install Android 8.1 Oreo on Linux To Run Apps & Games 42 android 8.1 oreo on linux

After this, the installer will tell you if you want to continue, select "Yes":

Install Android 8.1 Oreo on Linux To Run Apps & Games 44 android 8.1 oreo on linux

Next, the installer will proceed without your instructions:

Install Android 8.1 Oreo on Linux To Run Apps & Games 46 android 8.1 oreo on linux

Finally, you will receive this message, which indicates that you have successfully installed Android 8.1:

Install Android 8.1 Oreo on Linux To Run Apps & Games 48 android 8.1 oreo on linux

Close the QEMU window.

Launching and using Android 8.1 Oreo

Now that Android is fully installed in your android.img file, you should use the following QEMU command to launch it instead of the previous command:

sudo qemu-system-x86_64 -m 2048 -boot d -enable-kvm -smp 3 -net nic -net user -hda android.img

Note that all we have done is remove the-cdrom option and its arguments. This is telling QEMU that we no longer want to boot from the ISO file we downloaded, but instead boot from Android with this installation.

You can now see the Android startup menu:

Install Android 8.1 Oreo on Linux To Run Apps & Games 50 android 8.1 oreo on linux

You will then enter the first preparation wizard, select your language and continue:

Install Android 8.1 Oreo on Linux To Run Apps & Games 52 android 8.1 oreo on linux

From here, select the "Set up as new" option:

Install Android 8.1 Oreo on Linux To Run Apps & Games 54 android 8.1 oreo on linux

Android will then ask if you want to log in to your current Google account. This step is optional, but it's important so you can use the Google Play Store later:

Install Android 8.1 Oreo on Linux To Run Apps & Games 56 android 8.1 oreo on linux

You will then need to accept the terms:

Install Android 8.1 Oreo on Linux To Run Apps & Games 58 android 8.1 oreo on linux

Now you can choose your current time zone:

Install Android 8.1 Oreo on Linux To Run Apps & Games 60 android 8.1 oreo on linux

The system will ask you if you want to start some data collection features. If I were you, I would simply close them all, like this:

Install Android 8.1 Oreo on Linux To Run Apps & Games 62 android 8.1 oreo on linux

Finally, you'll have two launch types to choose from, and I suggest you choose the Launcher3 option and make it the default:

Install Android 8.1 Oreo on Linux To Run Apps & Games 64 android 8.1 oreo on linux

Then, you will see the Android Home screen fully working:

Install Android 8.1 Oreo on Linux To Run Apps & Games 66 android 8.1 oreo on linux

From now on, you can do whatever you want; you can use the built-in Android app, or you can browse your system settings to adjust to your preferences. You can change the look and feel of your system, or you can run Chrome like the example:

Install Android 8.1 Oreo on Linux To Run Apps & Games 68 android 8.1 oreo on linux

You can start installing apps from Google Play Store, like WhatsApp and other apps, for your own use:

Install Android 8.1 Oreo on Linux To Run Apps & Games 70 android 8.1 oreo on linux

You can now do whatever you want with your system. Congratulations!

How to easily run Android 8.1 Oreo in the future

We don't want to always have to open terminal windows and write those long QEMU commands to run Android, instead we want to run it with a single click when we need it.

To do this, we will create a new file named android.desktop under/usr/share/applications using the following command:

sudo nano /usr/share/applications/android.desktop

and paste the following into it (right-click and paste):

[Desktop Entry]Name=Android 8.1Comment=Run Android 8.1 Oreo on Linux using QEMUIcon=phoneExec=bash -c 'pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY qemu-system-x86_64 -m 2048 -boot d -enable-kvm -smp 3 -net nic -net user -hda /home/mhsabbagh/android.img'Terminal=falseType=ApplicationStartupNotify=trueCategories=GTK;

Again, you must replace/home/mhsabbagh/android.img with the local mirror path on your system. Then save the file (Ctrl+X, then Y, then Enter).

Note that we need to use pkexec to run QEMU with root privileges, because since newer versions, regular users are not allowed to access KVM technology via libvirt; that's why it will ask you for the root password every time.

Now, you will see the Android icon in the app menu, you can simply click on it anytime you want to use Android, and the QEMU app will launch:

Thank you for reading! About "How to install Android 8.1 Oreo on Linux to run applications" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report