LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-18-2012, 04:28 AM   #1
jason41987
Member
 
Registered: Jun 2012
Posts: 51

Rep: Reputation: Disabled
running android apps on linux?


well, since android is open source due to using a linux kernal... i have noticed some android ports for x86 that arent affiliated with google.... so since the systems open source, i was wondering if its at all possible to have an apk package manager and neccessary files needed to run android apps on a linux operating system?...
 
Old 10-18-2012, 04:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you can run an android emulator, but the apps run within an existing ecosystem that Android provides. Just like you can't magically run any windows open source software on Linux by virtue of a license, same for Android.
 
Old 10-18-2012, 04:34 AM   #3
jason41987
Member
 
Registered: Jun 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
if i remember correctly, isnt the android system little more than a java app running on top of a linux kernal?
 
Old 10-18-2012, 04:45 AM   #4
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 283

Rep: Reputation: 65
I've heard of Rigo on Sabayon Linux, haven't tried it myself though so no idea if it's accually usable.
http://sabayon.org/article/sabayon-r...-apps-natively
 
Old 10-18-2012, 05:42 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Quote:
Originally Posted by jason41987 View Post
if i remember correctly, isnt the android system little more than a java app running on top of a linux kernal?
Well put crudely, yes, but you don't have that java app to run them inside. that's the point. As pointed out by rizzy, it is possible to run that JVM, apparently called Dalvik, on Linux, but AFAIK, that basically is the emulator I mentioned originally.
 
Old 10-18-2012, 11:09 AM   #6
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 10.04/12.04, Scientific Linux 6.3, Android-x86, Maemo
Posts: 1,658

Rep: Reputation: 138Reputation: 138
You can also run Android-x86 within a virtual machine. The only problems are that you need to patch Android to fix Ethernet support on the current ICS builds (virtual machines don't bridge wifi connections for the most part), & for (many) apps you need ARM emulation, as there are ARM specific binaries contained in their *.apk files...

And,... They are typically building for specific hardware targets, which means that if you try to run certain images in a virtual machine, they may fail,... However, there are some groups making builds that are generic, plus patched for both Ethernet and ARM emulation. Those builds tend to lack accelerated 3D support, at least currently.

PS: I've done both running the build for a specific machine, natively,... and run Android-X86 in a Virtual Machine. Performance is ... OK, I guess.

Last edited by JaseP; 10-18-2012 at 11:11 AM.
 
Old 10-18-2012, 02:54 PM   #7
jason41987
Member
 
Registered: Jun 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
the device i have that i would try to run android apps natively on does use an ARM processor... android is fairly common, however, after just a couple weeks of using the android system ive noticed some very good things i like about it, and then just some glaring flaws

i do like the self contained packages, the app market place with countless apps to take advantage of the hardware inside a modern tablet... but as for its glaring flaws, most apps are scaled back, geared towards mobile use on slower systems... my ARM powered tablet is nearly as powerful as my desktop PC, with 1920x1200 resolution... so android itself on this kind of hardware seems like its holding itself back

so if it was possible to run android apps natively such as mentioned before on the sabayon system i was kind of curious what would happen if someone eliminated the android system entirely, installed linux (i have 32gb on board, and will add another 64gb soon via microsd for a total of 96gb of storage, plenty for a full on desktop) and be able to run linux as the operated system rather than android, while still retaining the ability to use the packages that take advantage of the mobile hardware i have, but free me to use all the open source software linux has to offer (such as openoffice for a quick example)

i think in my mind a linux distro that retained the ability to natively run android apps from the android market place would be the most awesome tablet operating system, giving you more control, more software, without losing anything android has to offer either... essentially the best of both
 
Old 10-18-2012, 03:01 PM   #8
jason41987
Member
 
Registered: Jun 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
also, ARM-based processors, especially the nvidia tegra processors are really starting to catch up to the x86 processors on the market now... as stated before, the desktop im on is fairly new, and my tegra-3 tablet is nearly as powerful with almost as much RAM, better graphics too.. so... it wouldnt suprise me to see more linux distros offering ARM versions... heck, even windows is adding support for ARM processors now so... i think the ability to run android apps on an arm-based linux distro will be going up in demand... yeah, android is based on linux, but it still doesnt compete in my opinion with a real linux operating system
 
Old 10-19-2012, 02:30 AM   #9
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 300

Rep: Reputation: 7
For what it's worth, I've managed to setup a virtual android device, which I didn't find very easy. I've discovered that it doesn't come with Google Play, so unless you're writing your own apps or have apks it's useless.

I've three apps which I'd like to run from Play, does anyone know how I might be able to get the apks so I can run them?

Thanks
 
Old 10-19-2012, 04:56 AM   #10
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,718

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally Posted by jason41987 View Post
also, ARM-based processors, especially the nvidia tegra processors are really starting to catch up to the x86 processors on the market now... as stated before, the desktop im on is fairly new, and my tegra-3 tablet is nearly as powerful with almost as much RAM, better graphics too..
The ARM Cortex-A9 CPUs found on Tegra 3s will just beat N450 intel atoms that are 2 years old now, if you drop the clock speeds to the same rate (1.0GHz int his test)-

http://www.phoronix.com/scan.php?pag..._arm_x32&num=1

Given that the atom is crippled more than the ARM CPUs are (N450 stock speed is 1.67Ghz, Cortex-A9 in that test was 1.2Ghz), test results whould probably be more even, or possibly moved to the favour of the atom without downclocking. Atoms are also low power use, low power CPUs.

Compared to current x86 CPUs which arent in the 'low power' segment, arm is still very slow.

Quote:
Originally Posted by jason41987 View Post
heck, even windows is adding support for ARM processors now so...
Its a frantic effort to catch apple and android in the mobile (phone/tablet) market, and to keep in the emerging 'low cost and ultra low powered PCs' market. From everything I've seen, windows phones/tablets are doomed to failure. But what do I know? I dont use smartphones......
 
Old 10-19-2012, 08:28 AM   #11
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 10.04/12.04, Scientific Linux 6.3, Android-x86, Maemo
Posts: 1,658

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by NotAComputerGuy View Post
For what it's worth, I've managed to setup a virtual android device, which I didn't find very easy. I've discovered that it doesn't come with Google Play, so unless you're writing your own apps or have apks it's useless.

I've three apps which I'd like to run from Play, does anyone know how I might be able to get the apks so I can run them?

Thanks
I haven't run into that problem lately. Most Android-X86 builds I've seen in the last several versions have had Play Store access. Then again, I don't always use the stock Android-X86 builds...

Check out AndroVM.org...
http://androvm.org/blog/

They can steer you to some builds that might interest you. As always, use at your own risk...
 
Old 10-19-2012, 03:35 PM   #12
jefro
Guru
 
Registered: Mar 2008
Posts: 11,526

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
I wish I knew more about Android. The original question was a good question to ask. I may have to study on this to see if it can be done more transparently. The architecture is maybe the biggest issue.
 
Old 10-19-2012, 06:04 PM   #13
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 10.04/12.04, Scientific Linux 6.3, Android-x86, Maemo
Posts: 1,658

Rep: Reputation: 138Reputation: 138
Part of the problem is that Android doesn't work the way that a traditional Linux distribution works,... no multi-user (yet), no X-server (uses a framebuffer system for video), memory handling issues, system calls, etc. It really is a different system from what a traditional Linux distribution is. There have been some attempts at getting Dalvik ported over to run on a Linux distro (Myriad's Alien Dalvik), but they go back to circa 2009 and I've seen no meaningful progress.

Oh, & the Sabayon Rigo Android thing... pretty sure it's an April fools joke...
 
Old 10-20-2012, 02:06 AM   #14
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 283

Rep: Reputation: 65
Quote:
Originally Posted by JaseP View Post
Oh, & the Sabayon Rigo Android thing... pretty sure it's an April fools joke...

Well spotted!
 
Old 10-20-2012, 06:12 AM   #15
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 300

Rep: Reputation: 7
Quote:
Originally Posted by JaseP View Post
I haven't run into that problem lately. Most Android-X86 builds I've seen in the last several versions have had Play Store access. Then again, I don't always use the stock Android-X86 builds...

Check out AndroVM.org...
http://androvm.org/blog/

They can steer you to some builds that might interest you. As always, use at your own risk...
I could kiss you. I spent so long fumbling my way round the Android SDK and installing Eclipse etc, this is *so* much simpler and just like Linux should be! It just works!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Oracle Java vs. Google Android: Jury Decision & Android Apps LXer Syndicated Linux News 0 05-08-2012 07:40 AM
LXer: Oracle Java vs. Google Android: Jury Decision & Android Apps LXer Syndicated Linux News 0 05-08-2012 06:10 AM
LXer: Running Android Apps on Linux - Booting the Emulator Quickly LXer Syndicated Linux News 0 06-28-2011 02:41 AM
LXer: 10 Android Apps for Linux Server Admins LXer Syndicated Linux News 0 02-23-2011 01:20 AM
LXer: What I like about Android - and what I don't -- My Android Review (including my Favorite Apps) LXer Syndicated Linux News 0 11-18-2010 02:20 PM


All times are GMT -5. The time now is 01:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration