Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Android apps in Linux

Tags:

android

I have a Red Hat Linux (RHL) system on which I'd like to run Android apps. How would I do this? Is there an open-source port of the Android Runtime for linux? Kind of like a VM? If not, what steps will I need to follow to port the runtime to RHL (with the Dalvik VM etc) so that I can run the android apps built by all android developers? I am new to android so I am trying to understand if there is an application virtualization support for it from anyone. Thanks in advance!

like image 884
user716222 Avatar asked Apr 20 '11 00:04

user716222


People also ask

Why can't Linux run Android apps?

In order to get an Android "distribution" running under Linux, your kernel first needs to be implementing a number of those features. Actually integrating with a Linux desktop is harder still. The graphics subsystem isn't compatible with X11, so there's no way to draw an Android app to a standard Linux desktop.

Is Anbox an emulator?

Anbox is an Android emulator that is available for any GNU/Linux operating system. An android emulator offers the environment necessary for installing and running Android apps.


1 Answers

You need to use dex2jar to convert an APK file to a JAR and then you need IcedRobot to run the Android stack above OpenJDK. Maybe I will try to emulate AndroidGL with JOGL 2.0 (it supports both OpenGL and OpenGL-ES). Keep in mind that it is not trivial.

The emulator of Android SDK is quite slow but you just have to enter adb install my_file.apk to install your application.

You can run android-x86 in VirtualBox or Live Android from a Live CD as Dimitri suggested but I'm not sure it is what you want.

P.S: The most promising solution seemed to be AndroVM.

P.S 2: ARChon Runtime works very well on 64-bits systems. This tutorial is very helpful to make it work.

P.S 3: App Runtime for Chrome Welder is even more promising, it's currently in beta. The final version will support all Android APIs in Google Chrome under GNU Linux (including Chrome OS), Mac OS X and Windows.

like image 88
gouessej Avatar answered Sep 22 '22 05:09

gouessej