public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] A bit O/T:  Running android apps in QEMU
@ 2019-08-19 18:36 Mick
  2019-08-19 19:00 ` [gentoo-user] " Nikos Chantziaras
  2019-08-19 19:31 ` [gentoo-user] " Petric Frank
  0 siblings, 2 replies; 7+ messages in thread
From: Mick @ 2019-08-19 18:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

Increasingly more and more services I prefer to access online keep asking me 
to download and use some app to be able to enjoy the goodness of their 
offering in the future.  Invariably these are Android apps they think their 
customers will want to use.  I don't have an android phone, but have QEMU 
installed.  I was wondering if I can run some/any of these apps as VM guests 
within QEMU, on my amd64 Gentoo.

I had a look at this wiki page, but I'm not sure if all this is required just 
to run some arm binary, when I don't need/want to compile software on ARM:

https://wiki.gentoo.org/wiki/Embedded_Handbook/General/
Compiling_with_qemu_user_chroot

I assume if I follow the instructions on the page I should be able to install 
some Android image as a guest, then install the requisite app in the guest and 
run it?  Or is it more complicated than this and it won't run unless I install 
it in a real smart phone, I'm connected to a cell tower at the time and give 
them my phone number too?

My understanding of emulating an altogether different CPU arch in QEMU is non-
existent, I've always run x86 guest OS'/apps on x86 gentoo hosts.  Do you have 
any relevant experience you could share?

-- 
Regards,

Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user] Re: A bit O/T: Running android apps in QEMU
  2019-08-19 18:36 [gentoo-user] A bit O/T: Running android apps in QEMU Mick
@ 2019-08-19 19:00 ` Nikos Chantziaras
  2019-08-21 15:49   ` Mick
  2019-08-19 19:31 ` [gentoo-user] " Petric Frank
  1 sibling, 1 reply; 7+ messages in thread
From: Nikos Chantziaras @ 2019-08-19 19:00 UTC (permalink / raw
  To: gentoo-user

On 19/08/2019 21:36, Mick wrote:
> I was wondering if I can run some/any of these apps as VM guests
> within QEMU, on my amd64 Gentoo.

You can, although it seems very complicated to make it work. Projects 
like Anbox (https://github.com/anbox/anbox) exist for that reason. 
Unfortunately, Anbox is not in portage so you'll have to build from source.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] A bit O/T:  Running android apps in QEMU
  2019-08-19 18:36 [gentoo-user] A bit O/T: Running android apps in QEMU Mick
  2019-08-19 19:00 ` [gentoo-user] " Nikos Chantziaras
@ 2019-08-19 19:31 ` Petric Frank
  2019-08-21 15:53   ` Mick
  1 sibling, 1 reply; 7+ messages in thread
From: Petric Frank @ 2019-08-19 19:31 UTC (permalink / raw
  To: gentoo-user

Hello,

not exactly. But in Android Studio (which uses Android SDK) is bundled an
emulator using qemu. Android Studio allows you to download an Android image
(Android 2.0 up to Android 9) compiled for x86 and run it.
This is mainly used for testing apps developed under Android Studio.
Maybe this could also be used standalone.

regards
  Petric

Am Montag, 19. August 2019, 20:36:01 CEST schrieb Mick:
> Increasingly more and more services I prefer to access online keep asking me
> to download and use some app to be able to enjoy the goodness of their
> offering in the future.  Invariably these are Android apps they think their
> customers will want to use.  I don't have an android phone, but have QEMU
> installed.  I was wondering if I can run some/any of these apps as VM
> guests within QEMU, on my amd64 Gentoo.
>
> I had a look at this wiki page, but I'm not sure if all this is required
> just to run some arm binary, when I don't need/want to compile software on
> ARM:
>
> https://wiki.gentoo.org/wiki/Embedded_Handbook/General/
> Compiling_with_qemu_user_chroot
>
> I assume if I follow the instructions on the page I should be able to
> install some Android image as a guest, then install the requisite app in
> the guest and run it?  Or is it more complicated than this and it won't run
> unless I install it in a real smart phone, I'm connected to a cell tower at
> the time and give them my phone number too?
>
> My understanding of emulating an altogether different CPU arch in QEMU is
> non- existent, I've always run x86 guest OS'/apps on x86 gentoo hosts.  Do
> you have any relevant experience you could share?






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: A bit O/T: Running android apps in QEMU
  2019-08-19 19:00 ` [gentoo-user] " Nikos Chantziaras
@ 2019-08-21 15:49   ` Mick
  2019-08-21 16:19     ` Jarry
  0 siblings, 1 reply; 7+ messages in thread
From: Mick @ 2019-08-21 15:49 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

On Monday, 19 August 2019 20:00:36 BST Nikos Chantziaras wrote:
> On 19/08/2019 21:36, Mick wrote:
> > I was wondering if I can run some/any of these apps as VM guests
> > within QEMU, on my amd64 Gentoo.
> 
> You can, although it seems very complicated to make it work. Projects
> like Anbox (https://github.com/anbox/anbox) exist for that reason.
> Unfortunately, Anbox is not in portage so you'll have to build from source.

This looks simpler than creating an ARM chroot on an x86 box.  :-)

Thanks Nikos, I'll give this a spin when I get minute.

-- 
Regards,

Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] A bit O/T:  Running android apps in QEMU
  2019-08-19 19:31 ` [gentoo-user] " Petric Frank
@ 2019-08-21 15:53   ` Mick
  0 siblings, 0 replies; 7+ messages in thread
From: Mick @ 2019-08-21 15:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

On Monday, 19 August 2019 20:31:00 BST Petric Frank wrote:
> Hello,
> 
> not exactly. But in Android Studio (which uses Android SDK) is bundled an
> emulator using qemu. Android Studio allows you to download an Android image
> (Android 2.0 up to Android 9) compiled for x86 and run it.
> This is mainly used for testing apps developed under Android Studio.
> Maybe this could also be used standalone.
> 
> regards
>   Petric

Thank you Petric, I've used Android SDK in the past and it was so slow I soon 
gave up on it.  On my current laptop I have not installed Java and will 
probably keep it Java free, but if I were to install it I will give Android 
SDK another go to see if it runs any faster on this PC.
-- 
Regards,

Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: A bit O/T: Running android apps in QEMU
  2019-08-21 15:49   ` Mick
@ 2019-08-21 16:19     ` Jarry
  2019-08-21 16:34       ` Mick
  0 siblings, 1 reply; 7+ messages in thread
From: Jarry @ 2019-08-21 16:19 UTC (permalink / raw
  To: gentoo-user

On 21-Aug-19 17:49, Mick wrote:
> On Monday, 19 August 2019 20:00:36 BST Nikos Chantziaras wrote:
>> On 19/08/2019 21:36, Mick wrote:
>>> I was wondering if I can run some/any of these apps as VM guests
>>> within QEMU, on my amd64 Gentoo.
>>
>> You can, although it seems very complicated to make it work. Projects
>> like Anbox (https://github.com/anbox/anbox) exist for that reason.
>> Unfortunately, Anbox is not in portage so you'll have to build from source.
> 
> This looks simpler than creating an ARM chroot on an x86 box.  :-)
> 
> Thanks Nikos, I'll give this a spin when I get minute.
> 

Just curious: Is ARM for you a "must"? I'm running android-x86.org
in virtualbox and the only problem is non-accelerated graphics
(there are no virtualbox-additions for android). Appart from that,
all works as expected. Network is emulated as "wifi", Google
services are integrated and I can install apps as on any other
android device...

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: A bit O/T: Running android apps in QEMU
  2019-08-21 16:19     ` Jarry
@ 2019-08-21 16:34       ` Mick
  0 siblings, 0 replies; 7+ messages in thread
From: Mick @ 2019-08-21 16:34 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

On Wednesday, 21 August 2019 17:19:58 BST Jarry wrote:
> On 21-Aug-19 17:49, Mick wrote:
> > On Monday, 19 August 2019 20:00:36 BST Nikos Chantziaras wrote:
> >> On 19/08/2019 21:36, Mick wrote:
> >>> I was wondering if I can run some/any of these apps as VM guests
> >>> within QEMU, on my amd64 Gentoo.
> >> 
> >> You can, although it seems very complicated to make it work. Projects
> >> like Anbox (https://github.com/anbox/anbox) exist for that reason.
> >> Unfortunately, Anbox is not in portage so you'll have to build from
> >> source.
> > 
> > This looks simpler than creating an ARM chroot on an x86 box.  :-)
> > 
> > Thanks Nikos, I'll give this a spin when I get minute.
> 
> Just curious: Is ARM for you a "must"? I'm running android-x86.org
> in virtualbox and the only problem is non-accelerated graphics
> (there are no virtualbox-additions for android). Appart from that,
> all works as expected. Network is emulated as "wifi", Google
> services are integrated and I can install apps as on any other
> android device...
> 
> Jarry

Ahh!  I had forgotten about this project.  Last time I used an x86 port it was 
some early alpha and pretty much unusable.

I have a look - thanks!

-- 
Regards,

Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-08-21 16:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-19 18:36 [gentoo-user] A bit O/T: Running android apps in QEMU Mick
2019-08-19 19:00 ` [gentoo-user] " Nikos Chantziaras
2019-08-21 15:49   ` Mick
2019-08-21 16:19     ` Jarry
2019-08-21 16:34       ` Mick
2019-08-19 19:31 ` [gentoo-user] " Petric Frank
2019-08-21 15:53   ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox