TranslateProject/sources/tech/20140922 How to Run Android Apps on Ubuntu using ARChon.md
2014-09-22 10:49:08 +08:00

6.0 KiB
Raw Blame History

How to Run Android Apps on Ubuntu using ARChon

Android, Chrome, Ubuntu

Android, Chrome, Ubuntu

Google recently announced the first set of Android apps available to run natively on Chrome OS, a feat made possible using a new Android Runtime extension.

Now, a developer has figured out a way to bring Android Apps to Chrome on the desktop.

Vlad Filippovs chromeos-apk script and ARChon Android Runtime extension work hand-in-hand to bring Android apps to Chrome on the Windows, Mac and Linux desktop.

IMDB, Flipboard and Twitter Android Apps running on Ubuntu 14.04 LTS

IMDB, Flipboard and Twitter Android Apps running on Ubuntu 14.04 LTS

Performance of apps through the runtime is not fantastic. Any ambitions of running Dead Trigger 2 or other graphically intensive games should be put to one side.

Similarly, being both an unofficial repackaging of the official runtime and running outside of Chrome OS, system integration (e.g., webcam, speakers, etc.) may be patchy or non-existent.

The guide that follows is provided as-is, and without any guarantees of success. It should be considered highly experimental, buggy, unstable possibly even flat out evil. Try it out of curiosity rather than heightened expectation and you should be fine.

How to Run Android Apps on Linux

To run Android apps on Linux through Chrome you will need, obviously, to install Chrome. Version 37 or higher is required. Honestly, if youre going to be playing with a potentially unstable hack then you might as well download and install the unstable version of Google Chrome for Linux, too.

Already got a version of Chrome installed? You can install the Dev Channel version via the command line by running:

sudo apt-get install google-chrome-unstable

Next you need to download the custom-made — ergo officially not endorsed by Google or Chromium — Android Runtime created by Vlad Filippov. This differs from the official version in a number of ways, the chief being it can be used on desktop versions of the browser.

Once the runtime has fully downloaded you will need to extract the contents from the .zip and move the resulting folder to your Home folder.

To install, open Google Chrome, click the hamburger menu and navigate through to the extensions page. Check Enable developer mode and click on the load unpacked extension button.

The Runtime alone doesnt do much by itself so you will need to create a compatible package from an Android app. To do this you will need the chromeos-apk command line JavaScript utility, which is available to install through the Node Packaged Modules (npm) manager.

First run:

sudo apt-get install npm nodejs nodejs-legacy

Ubuntu 64 user? Youll want to grab the following library, too:

sudo apt-get install lib32stdc++6

Now run the command to install the script itself:

npm install -g chromeos-apk

Depending on your configuration you may need to need to run this latter command as sudo. If youd prefer not to install npm modules with sudo, you can do so with some jiggery-pokery.

Now youre in the home straight. Head over to Google to find an APK of an app you want to try out, bearing in mind not all Android apps will work, and those that do may be unstable or lack features.

Place your wanted Android APK in ~/Home, then return to Terminal to convert it using the following command, replacing the APK name with the one you want:

chromeos-apk replaceme.apk --archon

The command will take a few seconds to do its thing. Maybe have a blink. Actually, dont blink.

You now have an ARChon-rocking Chrome APK extension-y folder-y thing waiting in your Home folder. All thats left to do is install it to see if it works!

Head back into the chrome://extensions page, tap the load unpacked extension button once again but this time select the folder the script above created.

The app should proceed to install without issue, but will it run without issue? Open the Chrome App Launcher or Apps Page and launch it to find out.

Going Further

Since the ARChon runtime supports an unlimited number of Chromified APKs you can repeat the process as many times as you like. The Chrome APK subreddit is keeping track of success/failures, so if youre feeling helpful be sure to post your findings there.


via: http://www.omgubuntu.co.uk/2014/09/install-android-apps-ubuntu-archon

作者:Joey-Elijah Sneddon 译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出