Android apps linux users

Запуск Android приложений на 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, такими как:

  1. Arch Linux
  2. Debian
  3. Ubuntu
  4. Fedora
  5. Gentoo
  6. Linux Mint
  7. Manjaro
  8. OpenSUSE
  9. Solus
  10. Lubuntu

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

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

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

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

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

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

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

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

  • Установить Anbox
  • Удалить Anbox

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

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

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

Читайте также:  Windows language pack installer

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

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

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

Затем снова щелкните значок в меню. Через несколько мгновений 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.

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

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

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

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

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

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

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

  1. Убедитесь, что ваш дистрибутив поддерживает мгновенные пакеты.
  2. Установите или обновите сервис snapd.
  3. Установите Anbox.
  4. Запустите Anbox с вашего рабочего стола Linux.
  5. Скачайте APK файлы и запустите их.
  6. Подождите, пока установится APK-файл.
  7. Нажмите, чтобы запустить приложения Android на рабочем столе Linux.

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

Выводы

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

Источник

Установка и запуск Android-приложений на Linux

Как известно, многие Android-приложения можно нативно запускать на Chrome OS благодаря библиотеке Chrome App Runtime.

С помощью расширений chromeos-apk и ARChon запуск Android APK стал возможен и на других ОС.

В этой публикации я расскажу, как установить произвольное Android-приложение на Ubuntu 14.04.

Исходные инструменты:

  • Ubuntu 14.04 LTS;
  • Chrome 39.0 (подойдет и другая версия 37+).

Устанавливаем ARChon Runtime
1) Скачиваем и распаковываем ARChon в произвольную дирректорию;
2) Открываем Chrome и включаем Developer mode в chrome://extensions/;
3) Кликаем «Load unpacked extension» и устанавливаем распакованный ARChon.

Далее необходимо подготовить архив APK для установки.

Устанавливаем chromeos-apk
1) Для Ubuntu прежде всего нужно установить библиотеку lib32stdc++6:

2) chromeos-apk можно установить с помощью менеджера пакетов npm (поставляется вместе с node.js).
3) Сейчас можно установить непосредственно chromeos-apk:

Теперь все готово к распаковке APK.

Подготавливаем APK с помощью chromeos-apk
1) Для распаковки APK-архива выполняем:

2) Теперь у нас есть Chrome-APK расширение, и все что нужно — загрузить (chrome://extensions/) и запустить его.

UPD: полезные ссылки от sequence
ARChon Packager: создает архивы для archon из установленных в телефоне приложений.
twerk: расширение хром, сильно облегчает конвертацию apk.

Источник

Читайте также:  Сменить букву системного диска windows

How to run Android apps in Linux Mint with Anbox

Even though there are a lot of fantastic applications available for Linux, there is also a very large Android world out there that many people can only access on their phone or tablet. But through Anbox we can also use these Android apps and games fullscreen under Linux on our laptop or desktop equipment. As Anbox is still in its earliest development stage it is a bit buggy. But for those who like to try things out, in this blog post I will explain how to run Android apps in Linux Mint with Anbox.

In this blog post I will discuss the following subjects:

  • What is Anbox
  • Prerequisites to install Anbox
  • How to install snapd
  • How to install Anbox
  • How to setup Anbox
  • How to download APK files from Play Store
  • How to setup Android Debug Bridge
  • How to install apps via Android Debug Bridge
  • How to start and use apps in Anbox

What is Anbox

Simply said we can say that Anbox is Android in a box. Anbox is a free and open source environment that enables running Android applications on your Linux distribution. It offers a compatibility layer by executing an Android runtime environment to execute Android applications. There are other Android for Linux projects as well, like Shashlik or Genymotion. The difference is that these projects rely on an emulator to run the necessary Android environment, which activates an entire emulated system with its own kernel. On the other hand Anbox runs the Android system directly on the Linux kernel. This improves performance.

Prerequisites to install Anbox

To begin with, it is good to realize that it is not very easy to install Anbox. We are forced to use the command line, it requires the installation of a number of kernel components, the implementation of snapd is necessary and there is no Google Play Store in Anbox. But I will describe everything you need.

Anbox is not available as readily installable application in the Linux Mint applications repository. To be able to install Anbox on your Linux Mint implementation your system need to support snaps, which is the preferred approach according to the developers of Anbox.

Maybe you ask yourself what snaps are. Simply said a snap is a self-contained way of packaging software that enables independent software installation. In the traditional Linux applications metaphor software depends on the availability of complete and correct related packages to be able to do a successful software installation. This has some disadvantages as dependencies can be broken due to upgrades and updates.

With snaps everything that is needed to run an application is part of the snap package, so there are no external dependencies outside the snap package and no dependency with the application repository. The tool for using snaps is called snapd, which must be installed in Linux Mint before being able to install and use snap based applications.

Further you need to install two kernel modules, allow your browser to download APK files and setup Android Debug Bridge.

How to install snapd on Linux Mint

Snapd is available for Linux Mint 18.2, Linux Mint 18.3 and the most recent Linux Mint 19. You can install snapd via the Linux Mint Software Manager.

1) Open your Software Manager by clicking on Menu and searching for Software Manager.

2) Search for snapd and click on Install.

3) Restart your machine, or log out and log in again, to complete the installation.

It is also possible to install snapd via the command line instead of using the Software Manager.

1) Use key combination CTRL + ALT + T to start the Terminal.
2) Type “sudo apt update” and give enter.
3) Type “sudo apt install snapd” and give enter.
4) Restart your machine, or log out and log in again, to complete the installation.

How to install Anbox in Linux Mint

Now that we installed snapd, we can continue with installing the necessary kernel modules that enables to support the mandatory kernel subsystems Ashmem and Binder for the Android container. We do that by adding the required PPA (personal package archive).

1) Use key combination CTRL + ALT + T to open the Terminal.
2) Type “sudo add-apt-repository ppa:morphis/anbox-support” and give enter.
3) You will be asked to confirm the installation. Give enter.

4) Type “sudo apt update” and give enter.
5) Type “sudo apt install anbox-modules-dkms” and give enter.

The above added the PPA and installed the anbox related modules that contain the before mentioned Ashmem and Binder kernel modules.

Читайте также:  Windows system32 driver error

Now we have to manually load the kernel modules, which is a one time action.

6) Type “sudo modprobe ashmem_linux” and give enter.
7) Type “sudo modprobe binder_linux” and give enter.

You can check if there are two new sub folders available by typing “ls -1 /dev/”. Give enter.

Now that we added the PPA and installed the anbox related modules that contain the before mentioned Ashmem and Binder kernel modules, we can continue with installing and setting up the Anbox snap package.

8) Type “sudo snap install –devmode –beta anbox” and give enter.

9) Now update to the most recent version by typing “snap refresh –beta –devmode anbox”. Give enter.
10) To request information about the currently available versions type “snap info anbox” and give enter.

How to setup Anbox in Linux Mint

Anbox is now ready to use.

1) Go to your application menu via Menu and search for Anbox.

2) Click on Anbox Application Manager.

Now the Anbox Application Manager will be started.

As you will notice there isn’t a Google Play Store available to install Android Apps. To add the apps and games you like to run on your Linux machine, you must first download the Android APK files. But before being able to install APK files in Android and thus in Anbox you need to change your security settings in Anbox.

3) Click on Settings.
4) Go to Security.

5) Make sure that Unknown sources is enabled.

How to download APK files from the Google Play Store

Downloading apk files from the Play Store is possible by using the “Apk Downloader” extension for your Firefox, Chrome or Chromium browser.

1) Open your browser and go to menu option Add-ons.
2) Search for “apk downloader”.
3) Install “apk downloader”.

Now we can download the APK files.

4) Go to the Play Store via https://play.google.com/store.
5) Search for an app.
6) Select the app.

Here you will see the additional “Download APK” button.

7) Click on “Download APK” and select “Save file”.

How to set up Android Debug Bridge

Unfortunately, you can not simply download an apk application file and start it directly in Linux Mint. You need Android Debug Bridge (adb) to bring apk files to Anbox.

1) Use key combination CTRL + ALT + T to open the Terminal.
2) Type “sudo apt-get install android-tools-adb” and give enter.

How to install apps via adb

Now that you have set up adb on your Linux system you can install android applications in Anbox. In section “How to download APK files from the Google Play Store” I downloaded the Flipboard apk (flipboard-app1540872000.apk) as an example in the Downloads folder. When we want to add Flipboard to Anbox we do the following:

1) Type “adb install Downloads/flipboard-app1540872000.apk” and give enter.

How to start and use apps in Anbox

Now you will see the Flipboard app in Anbox.

1) Click on Flipboard and the app will be started in its own window.

Final words

Although it is not an easy process, it is doable to set up Anbox, download apps and use these apps under Linux. As Anbox is still in its earliest development stage it is a bit buggy. But for those who like to try things out, share your experiences with the development team. As always, the more users and experiences, the better for further development of software. In future blogs I will write about Shashlik and Genymotion.

How to Connect your Android phone to Zorin OS with Zorin Connect

March 23, 2021 March 23, 2021

How to follow your favorite websites with the NewsFlash RSS Feed Reader for Linux

How to verify your Linux Mint ISO image file

February 20, 2021 February 20, 2021

Follow RealLinuxUser

Why this website

Hi, my name is John. I started this website because I think that many Linux-oriented websites are too technical to be of any interest for novice users or people who just want to be productive with their computer, and that scares off a potentially large group of new people to take the step to Linux. And that is a pity because Linux is a formidable platform and with the right user-centered approach Linux could get a much larger footprint. So this website tries to be different and will be simple and focused on users who just want to be productive with Linux and related software.

Источник

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