Skip to main content

How to Run Android Apps Inside Chrome on Any Desktop Operating System

  1. Download the ARChon runtime here.
  2. Unzip the archive.
  3. Open your extensions page in Chrome by going to Menu > More Tools > Extensions.
  4. Enable Developer mode in the top right corner, if it is not already enabled.
  5. Select "Load unpacked extension."
    1. Choose the folder containing the ARChon runtime you unzipped earlier.
    The ARChon runtime will now be running as an extension in Chrome. You may see a couple warnings like the following on the extensions page. However, these are normal and shouldn't affect your ability to run Android apps.
    Next, you'll need some Android apps to run. This is a little complicated, since Android APKs are not properly packaged for Chrome. However, with a little elbow grease (or some help from your friendly neighborhood internet), you can get some of them to launch. Whether they function properly is an entirely different matter.

    Step 2: Install Existing Android Apps

    The quickest, most dead-simple way to get some working Android apps is to find some online. Forums like this subreddit are already working on getting some functional. However, this is a far cry from the 1.3 million apps on the Play Store. While most of those will probably remain out of your reach due to incompatibility issues, we'll also look at how to (try to) create your own.
    Disclaimer: Distribution of modified apps is, generally speaking, some degree of copyright violation. In practice, there's little distinction between downloading a pre-modified app, and downloading the regular version and modifying it yourself. For this reason, it's unlikely any developer of a free app will be too concerned if you download a pre-modified app to play around with. However, downloading a modified paid app is piracy. Please support developers and don't download modified versions of paid apps without paying for them. And, while it should go without saying, don't write a bad review or criticize the developer if an app is broken in Chrome. You're on your own here.
    Some helpful internet users have created agrowing list of apps that work in Chrome. You can find download links in that document, or find more in communities currently working on Chrome APKs. Once you have a .zip file containing one of these modified APKs, here's how to install it:
    ADVERTISEMENT
    1. Unzip the file and place the folder (likely named something like "com.twitter.android") in a place you can easily find.
    2. Open the Extensions page in Chrome.
    3. Click "Load unpacked extensions."
    4. Select the folder with the modified APK you downloaded.
    The app will now appear in your list of Chrome extensions. If you're a particular fan of Chrome apps, you might also notice that a shortcut has been added to theChrome app launcher. Depending on how it was packaged, it may have a benign Android icon and the package name instead of a proper app name.

    (Optional) Step 3: Repackage Your Own Android Apps for Chrome

    There are a few ways to make and tweak APKs so that they can run on Chrome. These methods are also under active development, so if you're reading this later, there may be even easier ways that have been developed to convert them. For the sake of completeness, we'll go over how to install the chromeos-apk tool, as well as how to convert them manually, should you need to do any extra tweaking.

    Windows:

    1. Download the node.js .msi file (not the .exe) from here.
    2. Install node.js.
    3. In a command prompt, run the following command: npm install chromeos-apk -g
    That's it. You now have the chromeos-apk tool installed on your machine and can call it from any folder in the command line. You can skip ahead to the section below on how to use it.

    OS X/Linux:

    The chromeos-apk tool was originally developed for Linux and OS X devices. Here's how to install it there:
    ADVERTISEMENT
    1. In a terminal, run the following command: sudo apt-get install npm
    2. (Ubuntu only): Run the following command: sudo apt-get install lib32stdc++6
    3. Download node.js.
    4. Unzip the tar.gz file you downloaded from the above link.
    5. Per the README file, open a terminal to the unzipped folder containing node.js. And run the following commands in order:
    6. ./configure
    7. make
    8. make install
    9. Run the command: sudo npm install chromeos-apk -g
    10. To make sure you're updated to the latest version (now or in the future), run: sudo npm install -g chromeos-apk@latest

    How to Use the Chromeos-apk Tool

    You now have the chromeos-apk tool installed on your machine. To use it, first you'll need to acquire an APK. If you're trying to convert a free app, you can usethis tool to pull an APK directly from the Play Store. You can also use this tool to get an APK from an app installed on your phone. Many file managers and backup utilities like ES File Explorer and Titanium Backup can also pull APKs on your device.
    Once you have your APK, it's super simple to create a Chrome-friendly version. Open a command prompt or terminal in the folder where you have the APK stored, then do the following:
    ADVERTISEMENT
    1. Run the following command: chromeos-apk [NAME OF APK]
    2. Example: chromeos-apk com.evernote.apk
    3. If prompted, enter the package name of the app. This can usually be found in the URL of the Play Store listing. For example, in this URL, the portion after "?id=" is the package name. In this case, "com.evernote".
    You now have a modified APK, ready for Chrome! You can install it using the same instructions in Step 2 earlier in this post. Namely, open your extensions page, click "Load unpacked extension," and choose the folder you just created.
    At the time of this writing, the chromeos-apk tool still only gets the app working. It won't remove the key (which allows you to run more than one app at once), nor does it fix the app icon. We'll handle that in the cleanup section.

    Alternative: Convert APKs Manually

    If you can't (or don't want to) use the command line utility to modify APKs for Chrome usage, you can repackage them yourself. You'll still need to download chromeos-apk from Github here. You'll also need an APK for the app in question, so use the methods described in the section above to get them. Then, follow these steps:
    ADVERTISEMENT
    1. There is a folder named "_template" inside the chromeos-apk tool you downloaded. Make a copy of this somewhere else (preferably near the APK you downloaded).
    2. Copy the APK into "_template > Vendor > chromium > crx". There should be a README file in the correct folder that says "APK goes here." in the correct folder.
    3. Rename the "_template" folder to the package name. The package name can usually be found in the Play Store listing URL after "?id=".
    4. Modify the "manifest.json" file in the main folder of the package. This is considerably easier to do with an app like this.
    5. Add the app's package name (like "com.pandora.android") to the "package name" field.
    6. Add the app's regular name (like "Pandora") to the "name" field.
    7. Delete the entry named "key", which will have a very long, seemingly random string for a value.
    8. Save the modified JSON file as "manifest.json" and replace the existing version with the new, edited one.
    9. Download the app icon from Play Store.
    10. On a Play Store listing page like this one, right-click the icon image.
    11. In the URL bar, change "w300-rw" to "w128". Hit enter.
    12. Right-click the new image and save it as "icon.png" in the main folder of the modified template folder.
    Congratulations! You have just manually modified an APK to run in Chrome. The entire process isn't terribly complicated, it's just time consuming if you're altering each app manually.
    You'll also note that none of this process involves changing the app itself. The APK sits inside an elaborate wrapper. Either it works or it doesn't. Time will tell if Android apps can or will be targeted for desktop use, but for now the floodgates are open to tinkerers if you really want to try them out.
    Leave a reply

Comments