Как запустить apk на linux
Перейти к содержимому

Как запустить apk на linux

  • автор:

How to run Android Apps in Linux without an Emulator

Run Android Apps on Linux

U sually, a standard android app is generated for a tablet PC or smartphone running on the Android OS. Still, this guide will explicitly show you how to set it up on your Linux machine without using an emulator.

Linux, on the other hand, is an open-source operating system. An operating system is software that directly interlinks and manages a system’s hardware and resources, such as storage, CPU, and memory. The OS sits or works as a bridge between apps and hardware and connects all your physical resources that do the work and your software.

How can you run Android games or apps on a Linux machine without an emulator? Because of the creativity and inventiveness of some dedicated Dev Ops, there are currently several ways to run Android apps on Linux. This post will focus on how we can do that without an emulator. Let’s get started.

How to run Android applications in Linux without an emulator

Way before Microsoft could bring native android support to Windows 11, Linux spoiled the party. Linux is built with a compatibility layer that enables users to run android apps on any Linux distro called WayDroid. The layer offers an enhanced performance than an optimized android emulator. Using it creates the impression like Android apps are natively running on the Linux machine. Enough of talk; let’s now put this into action.

Run apps in Linux without an emulator

Step 2: Screen redirection

This should redirect you to such a screen:

Click on install on the Waydroid page

Click on install on the Waydroid page

Step 3: Click install

Then click on install, as highlighted above. This should automatically scroll down to such a page:

it will scroll down

It will scroll down

You should locate a blue highlighted “docs ” link on the abovementioned page.

Step 4: Open in a new tab

Right-click on it and select the “open link in a new tab” as shown below:

open link in a new tab

Open the link in a new tab

Then scroll down to your PC’s distro type; in our case, we will scroll to Ubuntu/Debian and derivatives:

scroll to your preferred distro

Scroll to your preferred Distro

Step 5: Install prerequisites

Here, you must first install the Client URL, well known as (CURL). This command-line utility enables the transfer of data over several network protocols. It communicates with a web or app server by specifying a relevant URL and the data intended to be received or sent. Libcurl, a portable client-side URL transfer library, powers curl.

To do this, open up your terminal by hitting the “Ctrl+Alt+T” keyboard shortcut combinations. After that, run the following command:

install curl

Note: When asked if you want to proceed with the software installation, type “Y/y” and then press “Enter” on your keyboard. Alternatively, you can just hit the “Enter” button on your keyboard, and the installation should be underway.

Step 6: Export the distro command

Next, issue the following command based on your Linux distro. If you are using the latest Debian, select “bullseye,” and for Ubuntu users, use jammy for the Distro. In case you get a “Permission denied” error on the way, just run the “sudo su” command and then proceed with the commands:

export command

Step 7: Download WayDroid’s GPG key

After you are done with that, run the following-given command to help in downloading WayDroid’s GPG key on your Linux distro.

download gpg key

Download GPG key

Step 8: Upgrade the system cache repo

After that, you can run the following command in case there are packages in your system that need to be upgraded:

upgrade system

Step 9: Install WayDroid

In the end, you should be set to set up WayDroid on your Linux machine. To do this, run the command and press “Y/y”, and hit the “Enter” button whenever prompted to proceed:

install waydroid

And that should install WayDroid on our Linux system. Let us now focus on how we can start our WayDroid.

How to start WayDroid

Step 10: Start WayDroid services

Now that we are almost done. We need to fire up some WayDroid services before executing Android applications on our Linux PC without an emulator. Interestingly, there are a couple of ways to get this done. As per WayDroid’s official website, you can manually start the service by issuing the following command:

manually start the service

Manually start the service

At the tail end, run the following command, and WayDroid’s Graphical User Interface will open up on your Linux computer. You can now enjoy the Android applications on your Linux PC. By the way, you can also start WayDroid from the app drawer:

show ui

And WayDroid should comfortably run.

Alternatively, you can go to WayDroid’s home page and copy the highlighted command to your terminal:

use this command

Use this command

Or copy and paste the following command in your terminal as displayed here:

enable waydroid

Then click the “Activities” button on your desktop and search for WayDroid as shown below:

click on waydroid

Click on WayDroid

Clicking on the WayDroid icon should pop up the following window:

select android type

Select Android type

On the Android type, you can either select VANILLA or GAPPS. We suggest you choose GAPPS as it allows you to install Android apps later when using WayDroid.

Then click on “Download” as shown below:

click on download

Click on Download

This will take some time, depending on your Internet speed. Then click on the green highlighted button”Done”:

click on done

Then go and start the application by clicking on the “Activities” menu and selecting “Waydroid” as shown below:

click on waydroid

Click on WayDroid Again

And you should have your Android system up and running on your Linux software:

android system up and running

Android system up and running

Proceed and install Android apps on Linux and enjoy the near-native experience.

Let’s poke at this other approach to do what we have just looked at. Here we will be using Anbox.

How to run Android apps using Anbox

Anbox is software that puts the Android OS into a container, abstracts hardware access, and merges core system services into a GNU/Linux system. Each Android app will be integrated with your OS like any other native application. Anbox app is built on top of LXCv(Linux Containers) tech to segregate the system from the host; the system is from time to time updated with the current version of the Android open source project.

Now, let us see Anbox’s features.

    It is secure – Anbox places its Android apps into a tightly sealed box without direct access to hardware on your data.

Emulators vs. Anbox

A significant difference between Anbox and other emulators, for instance, Genymotion, is that while others need to run on an emulator that generates its system, with its virtual hardware, kernel, and more, Anbox, on the other hand, runs an android system using the same hardware, kernel and more to host without any emulation layer, permitting better integration with the host OS.

Installation of Android apps

While play store installation is generally possible, Anbox does not ship with what is installed since Google does not permit anyone to ship their apps on an uncertified device. The vendor did not sign an agreement with them. As such, you may be asking, why should I set up software that supports other applications but can’t install them? You can solve your problem if you have an Android Debug Bridge (ADB) set up on your system, and then you just need to do: $ adb install path/to/my-app.apk, And your software should be integrated with the host system. An ADB is a tool used to debug Android-based devices.

Let us now see how we can install Anbox on our Linux system.

How to install Anbox on a Linux system

Anbox is only distributed as a .snap app. DevOps selected this option because of its straightforward nature to distribute the software to users, regular and delta updates, easy and fast packaging, and other options. There is no plan to create a Flatpak by the Anbox team, but they accept contributors who would love to port it to Flatpak. Because Anbox is still not in the stable distribution list, it does not use proper confinement for snaps. As such, it is only possible to set up on dev mode, which is not a much secure mode to install as it disables confinement of apps installed, but this should be resolved in the coming days or months.

Here are the steps to follow up to set it on your system using snaps.

Issue the following command to install it:

install anbox

Or fetch the script using the following command:

fetch file

And that should do it!

Just click on “Activities,” then search for “Anbox,” and click on the icon to open it

open the anbox

Anbox up and running:

anbox up and running

Anbox is up and running

Final Thoughts

And that is how you cleanly set up and run Android apps on your Linux PC. The Linux version of the Distro you are using does not matter whether it is Debian, Ubuntu, or another distro. As mentioned earlier, the performance of Android apps is exceptional.

The above approaches have shown us that even if you don’t own an Android device, you can still run some apps or games, for instance, Gmail, Whatsapp, and many more. We hope this guide came in handy for you guys! And that is all from us. In case of any questions, please let us know in the comment section below.

Top Android Emulators to Run and Test Android Apps on Linux

Android is built on top of a heavily customized Linux kernel. So, running mobile apps on Linux makes sense using an Android emulator.

Maybe you just want to try some open-source Android apps because you find it more convenient on your desktop? Or, for any other fun use-cases you can think of.

Not just limited to using apps, some Android emulators can also be helpful for development and testing.

Hence, I have compiled a list of the best emulators that you can use to test or run Android applications/games on Linux.

1. Waydroid

waydroid linux

Waydroid takes its inspiration from now-defunt Anbox (created by Canonical), which aimed to bring Android to the Linux operating system.

The only difference is, Waydroid is purely focused on supporting Wayland desktop sessions.

It uses a container-based approach to boot a full Android system on Linux, giving you full-fledged integration to use it. You can find the Android apps you need on your system.

At its core, it uses LineageOS system image based on Android 11 (at the time of updating this article). Not to forget, LineageOS is one of the best de-googled Android-based OS available. You can explore more about it on its GitHub page or visit its official website.

2. Genymotion

genymotion android emulator

Genymotion is an impressive solution tailored for testing and development.

It is not a free and open-source option. They provide virtual Android experiences as a service through the cloud or a desktop client that is independent of Android Studio.

You can simulate a variety of hardware configurations and Android versions to create a virtual device for testing. It also gives you the ability to scale up and has multiple Android virtual devices running for extensive tests.

Genymotion solutions can help you test how file uploading works in your app, impacts battery, performance, memory, and so on.

While it is a premium option mostly for professionals, it does support the latest Linux distributions that include Ubuntu 22.04 LTS.

Suggested Read ��

It's FOSS Pratham Patel

3. Android-x86

android x86 emulator

Android x86 is an open-source project to make Android run on a PC with 32-bit support.

You can choose to install it using a virtual machine manager on your Linux system or directly try it on your PC.

Official installation instructions are available if you need to go ahead.

Unlike some other options, it is a simple emulator that tries to work on a PC with no fancy features.

4. Android Studio (Virtual Devices)

android virtual devices studio

Android Studio is a full-fledged tool for development and testing. Fortunately, with the support for Linux, you can use it to emulate the Android experience for experiments if you need to.

You just need to create an Android Virtual Device (AVD) that you can configure and then simulate as an emulator.

There are good chances to find support for some of the latest smartphones, TVs, and smartwatches as well.

It needs a certain learning curve to be able to pull it off, but it is free and completely open-source.

5. Bliss OS

bliss os

Bliss OS is another open-source project, similar to Android x86 that aims to make Android run on PC.

Unlike Android x86, it gives more compatibility options by supporting both 32-bit and 64-bit architectures. Additionally, you get variants/editions of Bliss OS as per your personal requirements, like Stock for testing, FOSS, and Gapps.

It is actively maintained and supports the latest Android versions available in the market.

6. Anbox Cloud

While Anbox is no longer developed, Anbox Cloud exists for users who want to run Android in the cloud.

It supports ultra-low latency video streaming and recent Android versions. You can stream the mobile apps securely and get the best experience for your users/customers.

Anbox Cloud is a feasible solution for enterprises and businesses.

Suggested Read ��

It's FOSS Ankush Das

Wrapping Up

While you will find several Android emulator solutions available for Linux, they may not replace a full-fledged smartphone experience.

Every emulator comes with a set of features along with a specific purpose. Choose the one that you need.

�� Have you tried Android emulators yet? What’s your favorite emulator that you have used on Linux? You are welcome to let me know in the comments down below.

запуск apk файлов на linux

Запуск Android приложений на Linux является очень простым. Хотите запускать приложения для Android в Linux? Как насчет игр на Android? Доступно несколько вариантов, но лучше всего работает Anbox, полезный инструмент, который запускает ваши любимые приложения для Android в Linux без эмуляции.

Запуск Android приложений на Linux

В этой статье, мы поговорим про запуск Android приложений на Linux. Итак давайте узнаем как можно запустить программы на своем ПК с Linux сегодня.

Встречайте Anbox, ваш «Android в коробке»

Доступ к предпочитаемым вами приложениям и играм для Android обеспечивает потрясающее новое измерение производительности вашего настольного компьютера или ноутбука Linux. Мобильные приложения по дизайну намного проще, чем в настольных операционных системах.

Это может быть именно то, что вы ищете для повышения производительности рабочего стола!

Тем временем мобильные игры становятся все более изощренными. Имеет смысл продолжать играть на другом устройстве, особенно учитывая ограниченное время автономной работы телефона или планшета. Конечно, вы можете подключить устройство, чтобы перезарядить, но возможность играть в игру на вашем компьютере может дать вам преимущество.

Для запуска приложений Android доступно несколько инструментов macOS и Windows. Наиболее распространенным инструментом для запуска Android на рабочем столе является Bluestacks, но он не доступен для Linux.

Вместо этого пользователям Linux следует попробовать Anbox, бесплатную альтернативу с открытым исходным кодом, основанную на последней версии Android Open Source Project (AOSP). Предлагая оконную среду Android с приложениями и играми, Anbox использует контейнеры для отделения Android от операционной системы хоста (то есть ОС на вашем компьютере).

Это не все; Помимо того, что Anbox является открытым исходным кодом, он не имеет ограничений, поэтому теоретически вы можете запускать любое приложение для Android в Linux. Аппаратная виртуализация также отсутствует, и Anbox может работать на ноутбуке или настольном компьютере так же, как на мобильном устройстве под управлением Linux.

Этот последний момент чрезвычайно важен, поскольку он может преодолеть проблемы взаимодействия с мобильными устройствами Linux. Запуск Android приложений на Linux таким способом является самым удобным.

Какие Linux дистрибутивы поддерживают Snap?

Anbox поставляется бесплатно, хотя и бесплатен. Это означает, что двоичные файлы и все зависимости включены в один пакет, что упрощает установку. К сожалению, это также может означать, что ваша ОС Linux не может использовать Anbox, если она не может распаковывать и устанавливать снимки.

Служба snapd требуется для установки моментальных снимков, и это совместимо с дистрибутивами Linux, такими как:

В Ubuntu он предустановлен с 14.04. Вы найдете полную информацию о вашем дистрибутиве на сайте Snapcraft.

Чтобы установить snapd, используйте следующую команду терминала:

Дождитесь завершения установки, прежде чем продолжить.

Установка Anbox в Linux

С установленным на вашем ПК Linux сервисом snapd вы готовы установить Anbox. Это делается с помощью следующей команды, которая устанавливает все необходимое:

snap install —classic anbox-installer && anbox-installer

Вам будет предложено ввести пароль перед загрузкой пакета моментальных снимков.

muo linux android anbox install choice1

Вскоре после этого вам будет представлен выбор:

Если вам потребуется удалить программное обеспечение позднее, просто запустите указанную выше команду установщика и выберите вариант 2. Однако в случае установки Anbox вы можете перейти к варианту 1.

muo linux android anbox install warning1

После этого вы увидите сводную информацию о том, что будет делать установка. Например, выделяются файлы, добавленные из PPA, а также информация о том, что среда выполнения anbox (библиотека программного обеспечения, позволяющая запускать другие программы и приложения) будет автоматически запускаться при входе в Linux.

Если вас все это устраивает, введите легенду «Я СОГЛАШАЮСЬ» и дождитесь установки Anbox. После этого следуйте инструкциям, чтобы перезагрузить систему, прежде чем продолжить.

Загрузка файлов APK на ваш компьютер с Linux

После перезагрузки компьютера Anbox будет доступен в меню рабочего стола. Нажмите на нее, чтобы запустить; Вы скоро увидите окно Anbox.

muo linux android anbox apps1

Если ничего не происходит или вы застряли на заставке с сообщением «Начало», отмените или подождите, пока это не закончится. Затем откройте новый терминал и введите

Затем снова щелкните значок в меню. Через несколько мгновений Anbox должен запуститься. Это известная ошибка в дистрибутивах на основе Ubuntu 16.04, которая не должна затрагивать более поздние дистрибутивы.

С запущенной Anbox вы увидите список основных приложений Android, которые вы можете запустить в Linux, таких как Календарь и Электронная почта. Просто щелкните левой кнопкой мыши по этим значкам, чтобы открыть их; они появятся в новых окнах, размер которых можно изменить по мере необходимости. Если вам нужен браузер, оболочка WebView включена.

Чтобы добавить свои собственные приложения и игры, все, что вам нужно сделать, это загрузить (или скопировать с другого устройства) соответствующие файлы APK. Это установочные файлы, такие как файлы DEB (или снимки) в Linux или файлы EXE в Windows. Как правило, они доступны через Google Play на Android … но это не относится к Anbox.

Установка приложений Android в Linux с помощью Anbox

Поскольку реализация Anbox для Android не зарегистрирована специальными сертификатами для поставщика, вы не сможете получить доступ к Google Play (или установить). Поэтому ответом является загрузка и загрузка APK.

Где вы найдете APK? Доступно несколько альтернатив Google Play, но если вы предпочитаете Play Store, у вас есть несколько способов извлечь APK из Google Play. Хотя Google ограничивает доступ к Play Store только зарегистрированным устройствам Android, в обход этого не идет пиратство. Если у вас есть APK-файлы или они доступны бесплатно, можно запускать их на незарегистрированных устройствах Android.

muo linux android anbox calendar1

После того, как вы получите все APK-файлы, которые хотите установить, вам нужно разрешить установку из неизвестных источников. Для этого откройте меню «Настройки» на экране приложений и найдите «Безопасность». Здесь включите переключатель рядом с неизвестными источниками и нажмите кнопку ОК, чтобы принять.

После этого найдите файлы APK и дважды щелкните первый файл, который хотите установить. Через несколько мгновений приложение или игра должны быть готовы и будут запускаться в своем собственном окне в Linux. Установленные игры перечислены вместе со всеми другими приложениями.

Готово! Настройка проведена, запуск Android приложений на Linux возможен.

Если Вам интересны новости про Android, различные обзоры и советы по установке различных программ, мы рекомендуем ознакомиться с сайтом http://poandroidam.ru/.

Теперь вы можете запускать приложения для Android в Linux

Запуск Android приложений на Linux является очень простым. Но, поскольку Anbox находится, в данный момент на стадии альфа, могут быть некоторые проблемы со стабильностью. Тем не менее, обнадеживает знание того, насколько просто настроить, установить и запустить приложения Android в Linux с Anbox.

Для просмотра и запуска приложения, мы провели 7 шагов:

Рекомендуем ознакомиться с appvisor.ru там вы сможете найти много интересных программ.

Выводы

Anbox — не единственный способ запуска приложений и игр для Android в Linux, но мы считаем, что он станет самым популярным через несколько лет. Если у Вас есть свои варианты того, как запустить Linux на вашем Android-устройстве, обязательно сообщите в комментариях сайта.

Запуск Android приложений на Linux

Сегодня мы поговорим о том, как можно запустить приложения Android на Linux, а именно в операционной системе Ubuntu 18.04. Оказывается, для этого есть несколько путей.

Запуск Android-приложений в ОС Linux

1. Установка эмулятора Anbox

Первый метод запуска приложения Android на Linux — это использование Anbox. Это эмулятор Android с открытым исходным кодом, который устанавливается несколькими командами и позволяет запускать Android-приложения на Ubuntu.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.12.53

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.14.08

Для начала заходим в терминал и обновляем список пакетов следующей командой:

sudo apt-get update

После этого начинаем установку Anbox. Сначала подключаем репозиторий:

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.36.24
sudo add-apt-repository ppa:morphis/anbox-support

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.37.09

Когда система спросит — нажимаем Enter. Ещё раз выполняем обновление списка пакетов:

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.38.58

После этого устанавливаем ядро Anbox

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.41.54
sudo apt install anbox-modules-dkms

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.42.36

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.44.24

После установки нужно один раз вручную запустить модули ядра. В будущем они будут стартовать сами.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.45.21

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.45.52

Выполняем:
sudo modprobe ashmem_linux
sudo modprobe binder_linux

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.46.34

Устанавливаем Android Debug Bridge. Он нужен для корректной работы Android-приложений:

sudo apt install android-tools-adb android-tools-fastboot

Теперь устанавливаем, собственно, Anbox. Важно отметить, что пока это бета-версия, потому в ней возможны ошибки.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.47.30

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.50.08

Маловероятно, но система может ругнуться «snap not found». Установите snap командой:

sudo apt install snapd

И попробуйте ещё раз. В процессе установки будет затребован пароль.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 10.47.57

2. Использование эмулятора Anbox

После установки можно добавлять или удалять файлы с расширением APK. Это установочные пакеты программ на Android.

Для установки программы Android в Linux используем:

sudo adb install /the/location/of/file.apk

Для удаления, соответственно:

sudo adb uninstall /the/location/of/file.apk

Запускать Anbox можно как из списка программ, так и из терминала:

3. Установка эмулятора Genymotion

Второй эмулятор на сегодня весьма интересен. Начнём с того, что он — облачный. Во-вторых, он платный для коммерческого использования. Хотя в нашем случае хватит и бесплатной лицензии.

Наконец, Genymotion предлагает эмуляцию уже готовых моделей смартфонов и планшетов, что очень хорошо для разработчиков. Можно сразу протестировать программу в разных режимах.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.05.59

Для начала идём на сайт Genymotion, регистрируемся там и получаем на почту сообщение с подтверждением о регистрации. В нём кликаем по ссылке, чтобы подтвердить адрес и активизировать учётку.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.07.05

После тыкаем по красной кнопке Trial в верхнем правом углу.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.16.34

Нас перебрасывает на новую страницу, откуда можно скачать необходимый файл. В нашем случае это файл с расширением bin. Запускаем закачку, а пока она идёт, установим VirtualBox (если вдруг он не установлен).

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.25.45

В терминале набираем:

sudo apt install virtualbox

Жмём Enter, вводим пароль, когда система попросит подтверждения, нажимаем y. По окончании установки набираем в терминале:

Эта команда выведет список директорий. Нам нужна Downloads или та, куда у вас по умолчанию скачиваются файлы. Вводим:

Жмём Enter, нас перебрасывает в папку. Снова вводим:

Это даёт нам список файлов в папке. Нас интересует genymotion-2.12.1-linux_x64.bin (в случае 32-разрядной системы genymotion-2.12.1-linux_x32.bin). Вводим:

sudo chmod +x genymotion-2.12.1-linux_x64.bin

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.31.59

Здесь можно ввести первые буквы имени файла и нажать Tab. Жмём Enter. Иначе это можно сделать, зайдя в папку Downloads, кликнуть правой кнопкой по файлу и дать ему права на выполнение.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.33.17

После этого устанавливаем:

Нажимаем Enter, потом y, далее:

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.34.13

По нажатию Enter программа запускается. Теперь выбираем Sign in и авторизуемся с теми данными, с которыми мы регистрировались на сайте. Можно сразу выбрать Personal Use и авторизоваться уже там.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.40.01 Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.40.25 Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.40.56
Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.41.39 Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.41.15 Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.43.19
Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.44.34 Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.44.58

Принимаем условия EULA и — вуаля! У нас готовая к использованию система. Теперь вы знаете, как запустить Android приложение на Linux.

4. Запуск Android-приложений в Google Chrome Linux

В браузере для этого используется ряд расширений — chromeos-apk и ARChon. Сама же эмуляция функционирует, используя библиотеку Chrome App Runtime. Первоначально она появилась в Chrome OS, когда туда добавили поддержку Android. Для начала устанавливаем именно нестабильную версию Chrome (до релиза). В Терминале выполняем:

sudo nano /etc/apt/sources.list.d/google-chrome.list

Откроется окно Nano, туда вписываем следующее:

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Далее в терминале вводим:

Эта команда скачает ключ для доступа к deb-пакету. Теперь вводим команду, которая ниже, это добавит ключ:

sudo apt-key add linux_signing_key.pub

Обновляем список пакетов:

После этого устанавливаем уже нестабильную версию браузера:

sudo apt install google-chrome-unstable

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.50.33

Первый запуск браузера будет долгим, это нормально. Можно установить его по умолчанию, если хочется.

Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 11.58.07 Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 12.01.56 Bezymyannyj
Ubuntu Ubuntu kodeki Rabotaet Oracle VM VirtualBox 2018 06 16 12.06.24 7f0b0d8136df497f861af152d6cd4477

Однако это ещё не всё. Теперь необходимо подготовить APK для установки (а вы думали, всё будет просто?). Сначала установим расширение chromeos-apk. Для этого инсталлируем библиотеку lib32stdc++6 командой в терминале:

sudo apt install lib32stdc++6

Сhromeos-apk устанавливаем, используя менеджер пакетов npm в том же терминале:

Готово, теперь можно корректно распаковывать APK с помощью chromeos-apk и переводить его в расширение. В терминале вводим команду:

У нас получилось расширение для браузера Chrome. Открываем его в chrome://extensions/, после чего запускаем. Если вы всё сделали правильно, новенькая программа должна запуститься.

Важно, что в этом варианте будут работать далеко не все приложения. Ведь, по сути, это пока тестовая возможность, а не релиз. Скорее всего «не заведутся» игры, системные приложения и просто «тяжёлые» программы.

Выводы

В целом, есть ещё много способов запустить Android-программы в Ubuntu. Можно использовать эмулятор Shashlik или вообще поставить Android x86 в VirtualBox. Можно использовать QEMU и эмулировать даже железо (при условии, что у вас мощный ПК). В конце концов, если у вас куча свободного времени, можно даже поэкспериментировать со связкой Wine + какие-угодно-эмуляторы-под-другие-ОС. Правда, гарантий работы никто не даст 😊.

Если же серьёзно, то решения под Ubuntu 18.04 для работы с Android-приложениями есть. Остаётся выбрать.

Snimok ekrana ot 2019 04 05 21 17 00

Snimok ekrana ot 2020 04 11 16 59 52

Snimok ekrana ot 2020 04 27 12 46 20

Snimok ekrana ot 2019 01 02 19 49 17

Оцените статью:

Об авторе
33 комментария

Это точно.
Для винды есть нормальные эмуляторы, для линукса нет.
Ни один из описываемых способов нормально не работает.
Genymotion платный, и работает намного хуже чем бесплатный BlueStacks (который только под виндовс).

Genymotion платен только для коммерческого использования. Пользуюсь им несколько лет и, на мой взгляд, он даже лучше, чем родной эмулятор, входящий в состав идешки Android Studio.

А Вы не устаете при каждой установке программ?

Genymotion бесплатный. Регишься и всё. Никто никаких денег с меня не просил.

Познавательная статья, кому-то может быть и пригодится. Android, хоть и основан на Ubuntu, достаточно «грязная» среда и ставить её приложение на относительно чистый Linux я бы не решился)

С чего вы взяли, что ведро основано на Ubuntu?!

Наверное связь построил :
Если Андроид построен на основе «Линукс», а Убунту это «Линукс», то Андроид=Убунту =))))))))))))

Прикол в том что то что ты перечислил: Debian, mint и убунту одно и тоже считай.

P.S. ОС Linux Mint 19, Virtualbox v 5.2.10 Ubuntu r121806 Windows 7 на этой же виртуалке запускается нормально.

Обсуждает Миша Рыцаревъ: и а наоборот- а вот чтобы в какие смартфоны убунту можно было бы установить? (А то под этот «Андроид» жуть как много всякого малварьного срача- а под убунту-то его нет (нет его и под «яблокофоны». Но зато в них других недостатков хватает)).
И где можно купить смартфон (и планшет) с убунтой? (И бывают ли и такие андроидные модели, куда можно было бы поставить и две ОС? (Т.е. убунту рядом с «Андроидом»)).

И а помимо этого- а какое ПО есть и под линукс для и диагностики и ремонта и бэкапа и перепрошивок смартфонов? (И вот существует много таких проблем в ОС, которые можно легко устранять и без перепрошивки, если знать, как. Однако в большинстве сервисцентров даже и по пустякам такие гаджеты предпочитают просто тупо заново перепрошить и все (и берут за это хорошие деньги. Хотя там весь труд- это всего лишь несколько раз нужные кнопки нажать и все. А денег берут за это столько, сколько многим их клиентам на работе целый день не легким трудом пахать надо. Где тогда в сети есть инструкции, как все, что себе нужно делать со своим гаджетом самостоятельно? (И а под линукс все ли ПО-инструменты есть, какое для этого надо? (У меня вот был случай- подхватил я в сети какую-то малварь, которую антивирус проглядел. Потом антивирус ее все же удалил. Однако удалил так, что много багов в прошивке потом появилось. В сети я нашел, что такое вполне бывает (в других ОС тоже бывает). Однако там же я нашел и описание, как это там выправить, изменив руками всего лишь несколько строк в одном системном файле и все. Но там было написано лишь о том, а как это из под винды делать. Искать описания таких способов и из под линукса было некогда (и это надо и знать, как искать)- отдал я тогда свой гаджет своему знакомому ремонтнику и он заново его перепрошил (хорошо, у меня знакомые такие есть- денег нет- помогли и так. Но в любом случае- а какое ПО-инструмент для «гаджетофонов» и под линуксом есть? (А инструкции, как не имея опыта сделать что-либо в их «мозгах» и самостоятельно?))))

Существует ли такое ПО для обслуживания смартфонов, которое есть только под винду? (Не исключаю, что это еще и от модели (и от производителя) «гаджетофона» может зависеть). А в таких случаях будет ли такое ПО нормально работать из под «Wine»? (Ну или если и винду и какое надо ПО в виртуалке запустить, то тогда получится ли к такой винде кабелем смартфон потом подключить и проделать из под нее все так, как из под обычной?)

Anbox не эмулятор,а система запуска полноценной среды Android прямо на текущем ядре Linux с возможностью вывода интерфейса каждого приложения в отдельном окне с поддержкой 3D-ускорения.

Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
Что с этим делать?

А как же qemu?
Лучше подскажите толковый бесплатный gui’вый дизассемблер под arm и aarch64, чтоб ещё пошагово отлаживать умел и содержимое регистров показывать/менять. ой, что-то я совсем много требую.

ошибка: snap «anbox» is not available on beta for this architecture (i386) but exists on
other architectures (amd64).
Что делать?

Привет залей куданибудь эту версию нигде не могу найти ее. Сейчас 3.01 на сайте.

При запуске Genymotion, выдает мне вот такое:

In order to work, Genymotion requires VirtualBox to be installed on your computer. You can download the latest version of VirtualBox from http://www.virtualbox.org/wiki/Downloads.

Уже установлен пакет virtualbox самой новой версии (5.2.18-dfsg-2

Если без GUI не работает, тогда прошу, подскажите легкую оболочку, безпроблемно отключаемую и не прописывающуюся в автозапуске.
Прошу помощи, я новичок, и найти не смог решения проблемы в интернете и на Вашем сайте.
Заранее спасибо.

Добрый день.
не получается установить ANBOX
у меня Linux mint 18.3 x64 cinnamon (INTEL)
вот что у меня происходит:

Best Way to Run Android Apps and Games on Linux

Thanks to the hard work of some talented developers, there are now multiple ways to run Android apps and games on Linux, and we describe seven of them in this article.

Why Running Android Apps Don’t Run Natively on Linux?

Considering that Android and Linux share the same kernel, one might assume that it would be easy to run Android apps natively on Linux, but it isn’t. That’s because the kernel is just the core of an operating system, and it takes a lot more software than just the kernel to run the applications you interact with on a daily basis.

Furthermore, Android APK files are not straightforward executables (like .exe files on Windows). They are essentially installer packages whose purpose is to extract files to certain specific locations. When executed, the extracted files call certain functions of the Android operating system to access the file system, hardware components, and so on.

Popular Linux distributions make no effort to be compatible with Android apps, so Linux users have to simulate Android devices on their computers using Android emulators or use an operating system that’s compatible with Android apps.

1. Anbox

Anbox is conceptually similar to Wine (a free and open-source compatibility layer that makes it possible to run Windows applications on Linux) because it abstracts hardware access and integrates Android applications with the Linux operating system.

The entire project is open source and licensed under the terms of the Apache and GPLv3 license. The goal of its developers is to make it so that every Android app and game can run on Linux. Because Anbox runs without hardware virtualization, it offers decent performance and tight integration with the host operating system.

Because Anbox is distributed exclusively as a snap (its developers claim that snaps make their lives much easier and allow them to frequently release updates without the need to customize them for multiple distributions), you can install it only on supported distributions unless you install Snap manually, which takes just a few simple commands, all of which are described in detail on Snap’s website.

With Anbox installed, you can add APKs using the Android Debug Bridge (adb). Afterward, you can launch your applications via the host system application launcher and manage them just like all other applications running on your system.

2. Arc Welder

If you’re a Google Chrome user, you can run Android apps on Linux using ARC Welder, also known as App Runtime for Chrome. This Chrome extension is actually intended to let Android developers test and publish their Android Apps to Chrome OS on other platforms, but that doesn’t mean you can’t use it for your personal purposes.

Because Arc Welder is a tool for developers, it doesn’t provide access to apps published in the Google Play Store. In order to run an Android app, you first need to find and download its APK file and then open the file using Arc Welder. Fortunately, there are many websites that let you easily download APK files, including APKMirror, APKPure, or APK Store.

Unfortunately, Arc Welder was last updated in June 2018, so bugs are to be expected. Still, you would be hard-pressed to find and easier way to run Android apps on Linux.

3. Genymotion

Because this is the year 2020, we can’t recommend the once-popular Android emulation solution called Shashlik anymore. The last version of Shashlik was released in 2016, and its developers have been quiet ever since. However, we can recommend something even better: Genymotion.

This cloud-based Android emulator is a boon to all Android developers who would like to streamline app testing and enjoy virtually unlimited scalability thanks to the computing power of Amazon Web Services, Microsoft Azure, Google Cloud Platform, and Alibaba Cloud.

Genymotion can emulate over 3,000 Android device configurations and simulate every imaginable scenario thanks to its full set of hardware sensors. The only problem is that you get only 60 minutes of use for free, and then it’s 5 cents per minute.

4. Android-x86

Android-x86 is a project whose aim is to port Android to the x86 instruction set. Because Android-x86 is a complete operating system, you need virtualization software like VirtualBox to run it inside your Linux distribution.

When setting up a VirtualBox virtual machine for Android-x86, Set Type to Linux, and Version to Linux 2.6 or newer. Allocate at least 2 GB of RAM and create a new hard disk image with 8 GB of storage space or more. Load the Android-x86 installation image and follow the official installation instructions.

When running Android-x86 inside a virtual machine, you can’t really expect great performance because Android-x86 is meant to run on bare metal.

5. Android Studio IDE

Android Studio IDE is Google’s official integrated development environment for Android. It’s built on JetBrains’ IntelliJ IDEA software and runs on Linux, Windows, macOS, and Chrome OS. Included with Android Studio IDE is an Android emulator intended for running and debugging apps in the Android studio.

To install the emulator, choose the Android Emulator component in the SDK Tools tab of the SDK Manager. Open the app you want to run and click the green play-like button in the menu bars at the top. When asked to choose a device, click the Create New Virtual Device button and specify its properties. Once you’re finished, select it from the list of available virtual devices and click OK. The virtual device should start up right away and automatically open your application.

The Android Emulator inside Android Studio IDE doesn’t exactly amaze with its performance or usability, but it gets the job done when you just want to run a single Android app on Linux without installing it on your smartphone.

About the author

David Morelo

David Morelo is a professional content writer in the technology niche, covering everything from consumer products to emerging technologies and their cross-industry application

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *