Tuesday 12 May 2015

// // Leave a Comment

How to Install Android Apps on Ubuntu using ARChon

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 Filippov‘s 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.
android apps on linux
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 you’re 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 files and move the resulting directory to ~/Home. 
Now to install ARChon. Open Google Chrome and click the hamburger menu. Navigate through to the Tools > Extensions page and, near the top, check ‘Enable developer mode’.
Finally, click on the ‘load unpacked extension’ button and select the folder you previously placed into ~/Home. 
chromeos-apk-extensions
The Runtime alone doesn’t do much by itself so you will need to create a compatible package from an Android app.
There are several ways to do this: either manually, on your desktop, or using a free Android app. We’re covering the manual method below, but OMG! Chrome! has a great walkthrough of using a desktop app called ‘Twerk’, and theArchon Packager tool for mobile.

The Manual Way (Not Recommended)

To convert APKs manually — something you really don’t need to do any more if you use one of the apps mentioned above — you will need to install the ‘chromeos-apk’ command line JavaScript utility. This is available to install through the Node Packaged Modules (npm) manager.
To do this first run:
sudo apt-get install npm nodejs nodejs-legacy
Ubuntu 64 user? You’ll 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 you’d prefer not to install npm modules with sudo, you can do so with some jiggery-pokery.
chromeos-apk-npm
Now you’re in the home straight. Head over to Google to find an APK of an app you want to try out, bearing in mindnot 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, don’t blink. 
chromeos-apk-archon
You now have an ARChon-rocking Chrome APK extension-y folder-y thing waiting in your Home folder. All that’s 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 you’re feeling helpful be sure to post your findings there.

0 comments:

Post a Comment