- Приложения Android¶
- Поддерживаемые устройства¶
- Порядок установки¶
- Install Anbox kernel¶
- Run the Anbox installer¶
- Установка новых приложений APK¶
- Приложения нужно вовремя обновлять до актуальных версий¶
- Удаление приложений¶
- Доступ к хранилищу Android¶
- Траблшутинг¶
- Оформление баг-репортов¶
- Установка и запуск Android-приложений на Linux
- Android apps¶
- Supported devices¶
- How to install¶
- Install Anbox kernel¶
- Run the Anbox installer¶
- How to install new APKs¶
- Keep your apps up to date¶
- How to uninstall apps¶
- Access Android storage¶
- Troubleshooting¶
- Reporting bugs¶
- How to run Android applications (.apk) on Ubuntu
- How to run Android apps on Ubuntu
- Как запускать Android приложения и игры в Linux
- Знакомьтесь, Anbox, ваш “Android в коробке”.
- Установка Anbox на Ubuntu 16.04 LTS и 18.04 LTS
- Установка Anbox в Ubuntu 20.04 LTS
- Загрузка файлов APK на ваш компьютер Linux
- Установка приложений Android из Google Play и не только
- Другие способы запуска приложений Android в Linux
Приложения Android¶
Anbox is a minimal Android container and compatibility layer to run Android apps on GNU/Linux operating systems such as Ubuntu Touch.
«Computer» refers to another device you connect your Ubuntu Touch device to (via USB here). Your USB-attached computer must have adb and fastboot installed.
You will need to execute commands on your Ubuntu Touch device (and/or attached computer) to install Anbox and APKs. You can do that by using the terminal application, but it is easier to use adb shell or set up SSH to access your Ubuntu Touch device from your computer.
Поддерживаемые устройства¶
Убедитесь, что Ваше устройство есть в списке поддерживаемых:
BQ Aquaris M10 HD
BQ Aquaris M10 FHD
Порядок установки¶
Установка программы Anbox рекомендуется только для опытных пользователей.
Install Anbox kernel¶
Some devices require you to install a custom Linux kernel to use Anbox. These devices are:
Meizu PRO 5 (codename: turbo , name of the boot partition: bootimg )
BQ Aquaris M10 HD (codename: cooler , name of the boot partition: boot )
BQ Aquaris M10 FHD (codename: frieza , name of the boot partition: boot )
If your device is not in this list, the Anbox kernel was automatically installed when you installed Ubuntu Touch. Please skip ahead to Run the Anbox installer .
You will need to repeat these steps after each Ubuntu Touch update. Not doing so can put your Ubuntu Touch device into an unstable state. Only update your Ubuntu Touch device when you have a computer with you to re-flash the modified kernel image.
Be sure to have a backup of your device.
Open a terminal on your computer and set some device specific variables by running export CODENAME=»turbo» && export PARTITIONNAME=»bootimg» , but replace the part between the quotes respectively with the codename and name of the boot partition for your device. See the above list.
Activate Developer mode on your device.
Connect the device to your computer and run the following commands from your computer (the same terminal you ran the export command):
Run the Anbox installer¶
Once your device has the Anbox kernel installed, you can use the Anbox Tool to install the Anbox container.
Run adb shell from your computer to get a shell on your Ubuntu Touch device.
Run the following command on your Ubuntu Touch device: anbox-tool install .
Follow the on-screen instructions.
Now you’re done! You might have to refresh the app drawer (pull down from the center of the screen and release) for the new Android apps to show up.
You now have an ADB server running on your Ubuntu Touch device.
This guide asks you to run some ADB commands, sometimes on your computer, other times on the device itself. Carefully check which device you are on!
You can check that the ADB server is running on your Ubuntu Touch device by entering adb devices in its terminal app. You should see something like:
Установка новых приложений APK¶
Copy the APK to /home/phablet/Downloads . Then run the following from your computer:
Выполнено! Возможно, Вам придется обновить область приложений (потяните вниз от центра экрана и отпустите), чтобы появились новые приложения для Android.
Приложения нужно вовремя обновлять до актуальных версий¶
Все самые последние версии программ можно найти в репозиториях F-Droid или ApkTrack. Все приложения, которые упоминаются в этой инструкции, можно найти здесь:
Удаление приложений¶
To uninstall apps from the Ubuntu Touch device, run adb uninstall [APP_ID] from your computer:
Done! You might have to pull down from the app list for the new Android apps to show up.
Доступ к хранилищу Android¶
The Android storage is located at /home/phablet/anbox-data/data/media/0 .
Ссылки на библиотеки Android можно сделать в виде соответствующих аналогичных библиотек XDG:
Траблшутинг¶
When you want to install an APK, but get the error Invalid APK file that error could also mean «file not found»
Check that you typed the filename correctly.
If the APK does not reside in the folder you are in when you run adb, you have to specify the full path, e.g. /home/phablet/Downloads/my-app.apk instead of just my-app.apk
Оформление баг-репортов¶
Please report any bugs you come across. Bugs concerning Ubuntu Touch are reported in the normal Ubuntu Touch tracker and issues with Anbox are reported on our downstream fork. Thank you!
Источник
Установка и запуск 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.
Источник
Android apps¶
Anbox is a minimal Android container and compatibility layer to run Android apps on GNU/Linux operating systems such as Ubuntu Touch.
“Computer” refers to another device you connect your Ubuntu Touch device to (via USB here). Your USB-attached computer must have adb and fastboot installed.
You will need to execute commands on your Ubuntu Touch device (and/or attached computer) to install Anbox and APKs. You can do that by using the terminal application, but it is easier to use adb shell or set up SSH to access your Ubuntu Touch device from your computer.
Supported devices¶
Make sure your device is supported:
BQ Aquaris M10 HD
BQ Aquaris M10 FHD
How to install¶
Installing Anbox is only recommended for experienced users.
Install Anbox kernel¶
Some devices require you to install a custom Linux kernel to use Anbox. These devices are:
Meizu PRO 5 (codename: turbo , name of the boot partition: bootimg )
BQ Aquaris M10 HD (codename: cooler , name of the boot partition: boot )
BQ Aquaris M10 FHD (codename: frieza , name of the boot partition: boot )
If your device is not in this list, the Anbox kernel was automatically installed when you installed Ubuntu Touch. Please skip ahead to Run the Anbox installer .
You will need to repeat these steps after each Ubuntu Touch update. Not doing so can put your Ubuntu Touch device into an unstable state. Only update your Ubuntu Touch device when you have a computer with you to re-flash the modified kernel image.
Be sure to have a backup of your device.
Open a terminal on your computer and set some device specific variables by running export CODENAME=»turbo» && export PARTITIONNAME=»bootimg» , but replace the part between the quotes respectively with the codename and name of the boot partition for your device. See the above list.
Activate Developer mode on your device.
Connect the device to your computer and run the following commands from your computer (the same terminal you ran the export command):
Run the Anbox installer¶
Once your device has the Anbox kernel installed, you can use the Anbox Tool to install the Anbox container.
Run adb shell from your computer to get a shell on your Ubuntu Touch device.
Run the following command on your Ubuntu Touch device: anbox-tool install .
Follow the on-screen instructions.
Now you’re done! You might have to refresh the app drawer (pull down from the center of the screen and release) for the new Android apps to show up.
You now have an ADB server running on your Ubuntu Touch device.
This guide asks you to run some ADB commands, sometimes on your computer, other times on the device itself. Carefully check which device you are on!
You can check that the ADB server is running on your Ubuntu Touch device by entering adb devices in its terminal app. You should see something like:
How to install new APKs¶
Copy the APK to /home/phablet/Downloads . Then run the following from your computer:
Done! You might have to refresh the apps scope (pull down from the center of the screen and release) for the new Android apps to show up.
Keep your apps up to date¶
To keep your apps up to date you can use of F-Droid or ApkTrack. If you want to install any of the above apps you can find them here:
How to uninstall apps¶
To uninstall apps from the Ubuntu Touch device, run adb uninstall [APP_ID] from your computer:
Done! You might have to pull down from the app list for the new Android apps to show up.
Access Android storage¶
The Android storage is located at /home/phablet/anbox-data/data/media/0 .
Links to android libraries can be made in their respective XDG counterparts:
Troubleshooting¶
When you want to install an APK, but get the error Invalid APK file that error could also mean “file not found”
Check that you typed the filename correctly.
If the APK does not reside in the folder you are in when you run adb, you have to specify the full path, e.g. /home/phablet/Downloads/my-app.apk instead of just my-app.apk
Reporting bugs¶
Please report any bugs you come across. Bugs concerning Ubuntu Touch are reported in the normal Ubuntu Touch tracker and issues with Anbox are reported on our downstream fork. Thank you!
Источник
How to run Android applications (.apk) on Ubuntu
One of my complaints (which in fact are only two) with Linux-based operating systems is their poor compatibility with some programs. For example, as you all know there is no official version of Photoshop for Linux, for which you have to resort to other programs such as PlayOnLinux and the latest versions do not always work. Actually, you can do almost everything, but you have to know the way and that is my second complaint: some things are not intuitive at all in Linux. But there are always shortcuts and one of them can be run Android apps on Ubuntu.
Google’s mobile operating system can run many applications. It is true that the aforementioned desktop Photoshop will not be for Android, at least for several years, but it does have tons of applications that can get us out of trouble. For example, if we can’t find a decent Twitter client for Ubuntu, we can always simulate an application of Android in Ubuntu and run it as if it were a desktop application. In this post we will show you how to do just that.
Before starting with the guide I would like to remind you that, as with any simulation, some apps may not work. Without going any further, I wanted to install Apple Music, but it didn’t work for me. The next application that I have tried, Twitter has worked perfectly for me.
How to run Android apps on Ubuntu
- We make sure we have the latest version of Google Chrome installed. If we do not have the browser installed, we go to the web www.google.com/chrome/browser/desktop/ and we install it. If we already had a previous version installed, we can update by writing in a Terminal «sudo apt-get install google-chrome-stable»(Without the quotes).
- We install ARC Welder. Logically, we install the extension in Chrome.
- We seek and we download the .apk files that we want to execute. Logically, we cannot say from where to download them.
- We open ARC Welder. At first it will be in the Chrome applications. Once opened, it can be kept in the Ubuntu launcher.
- ARC Welder is very intuitive. We only have to indicate the main folder (where it will save the applications) and choose the .apk file.
- We can indicate if we want to give it access to the clipboard and if we want it to run as a version for mobile, tablet, full screen or expanded.
- As if by magic and that simple, we can now run a simulation of the Android application in our Chrome browser.
An important note: if we keep the Android application in the launcher and when we run the next one we tell it not to overwrite it, when we enter everything will be saved. Or at least that’s how it has been in my case with the applications I’ve tried. And, with what is described in this guide, we can still do much more with our Ubuntu PC.
The content of the article adheres to our principles of editorial ethics. To report an error click here!.
Full path to article: Ubunlog » Ubuntu » Tutorials » How to run Android applications (.apk) on Ubuntu
Источник
Как запускать Android приложения и игры в Linux
Хотите запустить свои любимые приложения и игры для Android на ПК с Linux? Anbox делает это легко. Давайте посмотрим как запустить приложения Android в Ubuntu.
Знакомьтесь, Anbox, ваш “Android в коробке”.
Доступ к любимым приложениям и играм для Android открывает новые возможности для продуктивной работы в Linux. Мобильные приложения, по своей конструкции, намного проще, чем те, которые находятся на настольных операционных системах.
Это может быть именно то, что вы ищете для повышения производительности настольных систем!
Между тем, мобильные игры становятся все более сложными. Вполне логично, что вы можете захотеть продолжить игру на другом устройстве. Это особенно актуально, учитывая ограниченное время автономной работы телефона или планшета.
Для запуска приложений Android существует несколько инструментов для macOS и Windows (например, Bluestacks), но для Linux это недоступно.
Вместо этого пользователям Linux стоит попробовать Anbox, бесплатный инструмент с открытым исходным кодом для запуска приложений Android на Linux. Он основан на последней версии Android Open Source Project (AOSP) и предлагает оконную среду Android.
Anbox использует контейнеры для отделения Android от основной операционной системы, что позволяет запускать игры Android на Linux.
Это еще не все; Anbox не имеет ограничений, поэтому теоретически вы можете запускать любые приложения Android на Linux. Также отсутствует аппаратная виртуализация, поэтому Anbox одинаково хорошо работает как на ноутбуке, так и на настольном компьютере, независимо от спецификации системы.
Несмотря на то, что Anbox является бесплатным, он поставляется в виде пакета snap. Это означает, что двоичный файл и все зависимости включены в один пакет, что облегчает установку.
Для установки snaps требуется служба snapd, которая совместима с такими дистрибутивами Linux, как:
- Arch Linux
- Debian
- Fedora
- Gentoo
- Linux Mint
- Manjaro
- openSUSE
- Solus
- Ubuntu
Ubuntu snapd поставляется предустановленным, начиная с версии 14.04. Полную информацию о вашем дистрибутиве вы найдете на сайте Snapcraft.
Чтобы установить snapd, используйте следующую команду терминала:
sudo apt install snapd
Дождитесь завершения установки, прежде чем продолжить. Обратите внимание, что в то время как snapd работает или предустановлен в вышеперечисленных дистрибутивах, Anbox официально поддерживается в Ubuntu 16.04 LTS (Xenial Xerxes) и более поздних версиях. Однако для Ubuntu 20.04 LTS доступна только бета-версия, для которой требуются другие шаги (см. ниже).
Что еще более важно, вы, скорее всего, получите лучшие результаты при запуске приложений Android на Ubuntu, чем на других дистрибутивах. Поэтому ниже описаны шаги для запуска приложений Android в Anbox на Ubuntu, а не на других дистрибутивах.
Установка Anbox на Ubuntu 16.04 LTS и 18.04 LTS
Когда служба snapd установлена на вашем компьютере Linux, вы готовы к установке Anbox. Используйте следующую команду, которая установит все необходимое:
snap install —classic anbox-installer && anbox-installer
Введите свой пароль, когда появится запрос, и пакет snap загрузится.
Вскоре после этого вы увидите выбор:
- Установить Anbox
- Деинсталлировать Anbox
Если позже вам понадобится удалить программу, просто повторно запустите вышеуказанную команду установщика и выберите вариант 2. В случае установки Anbox вы можете выбрать вариант 1.
После этого вы увидите краткое описание того, что будет сделано в процессе установки. Потратьте время на прочтение.
Вы увидите в списке файлы, добавленные из PPA. Также должно появиться уведомление о том, что программа выполнения anbox будет автозапускаться при входе в Linux. (Это программная библиотека, которая позволяет запускать другие программы и приложения).
Если вас все устраивает, введите I AGREE и дождитесь установки Anbox. После этого следуйте инструкциям по перезагрузке системы, прежде чем продолжить.
Установка Anbox в Ubuntu 20.04 LTS
Установка Anbox немного отличается на Ubuntu 20.04 LTS. Полный релиз программы не выходил с 2019 года, а изменения в ядре Linux за это время привели к необходимости выпустить Anbox только в виде бета-сборки.
Во-первых, убедитесь, что snap установлен. Поскольку вы используете последнюю сборку Ubuntu, она должна быть установлена, но на всякий случай проверьте это:
snap find hello
Это приведет к отображению списка привязок “hello world”, подтверждая, что привязка установлена.
Затем вы можете приступить к установке бета-версии Anbox:
sudo snap install —devmode —beta anbox
Подождите, пока он установится, затем перезагрузите компьютер.
Загрузка файлов APK на ваш компьютер Linux
После перезагрузки компьютера вы должны найти Anbox в меню рабочего стола. Нажмите на него для запуска – вскоре вы увидите окно Anbox.
Если ничего не происходит, или вы застряли на заставке с сообщением Starting, отмените запуск или дождитесь его окончания. Затем откройте новый терминал и введите
Затем снова нажмите на значок в меню. Через несколько мгновений Anbox должен запуститься. (Это известная ошибка в дистрибутивах Ubuntu 16.04, и она не должна повлиять на более поздние дистрибутивы).
Запустив Anbox, вы увидите список основных приложений Android, которые можно запустить в Linux, например, Календарь и Электронная почта. Чтобы открыть эти приложения, просто щелкните по ним левой кнопкой мыши; они появятся в новых окнах, размер которых можно изменять по мере необходимости. Если вам нужен браузер, в комплект входит оболочка WebView Shell.
Установка приложений Android из Google Play и не только
Чтобы добавить собственные приложения и игры, достаточно загрузить (или скопировать с другого устройства) соответствующие файлы APK. Это файлы установщика, такие как DEB-файлы (или snaps) в Linux или EXE-файлы в Windows. Если вы запустите APK в Ubuntu с помощью Anbox, он установится как любое другое приложение Android.
У вас есть два варианта установки приложений на Anbox:
- Sideload
- Установить Google Play
Sideloading относительно прост. Вы можете использовать браузер и эти альтернативы Google Play для добавления программ в Anbox. Если вы выберете загрузку APK, вам нужно будет включить установку из неизвестных источников:
- Откройте меню Настройки на экране приложений
- Нажмите Безопасность
- Включить неизвестные источники
- Нажмите OK, чтобы согласиться.
Однако существует проект на GitHub, Anbox Playstore Installer, который делает процесс установки приложений в Anbox таким же простым, как на телефоне или планшете.
Для начала откройте Терминал и введите:
sudo apt install wget curl lzip tar unzip squashfs-tools
Затем загрузите скрипт Anbox Playstore:
Сделайте его исполняемым:
chmod +x install-playstore.sh
Затем запустите скрипт:
Запустите Anbox, если он не загрузился автоматически:
Затем установите правильные разрешения в Android.
- Откройте Настройки
- Перейдите в раздел Приложения > Службы Google Play
- Нажмите Разрешения, затем включите все разрешения
- Повторите эти действия для Приложения > Google Play.
- Установите разрешения для Google Play
Теперь вы можете устанавливать в Anbox приложения Android из Google Play.
Другие способы запуска приложений Android в Linux
Хотя Anbox и является надежным вариантом, это не единственный способ запуска приложений Android на Linux. Наряду с Anbox вы также можете попробовать:
Существуют также две операционные системы на базе Android, совместимые с компьютерами x86, которые позволят вам устанавливать приложения Android:
Anbox может иметь некоторые проблемы со стабильностью. Тем не менее, обнадеживает тот факт, насколько просто настроить, установить и запустить приложения Android на Linux Ubuntu с помощью Anbox.
Источник