The officially official Devuan Forum!

You are not logged in.

#1 2025-06-13 11:33:44

Duke Nukem
Member
Registered: 2018-11-07
Posts: 36  

Android in a VM - recommendations?

I've been looking for an Android emulator to run in a VM. 

It is becoming increasingly difficult to avoid using a smartphone - I do have one but hate it. For example my doctors' practice no longer takes appointment requests via a website, you must use their app, and there are certain things my bank will not let you do on their website but only with their app. In fact there is an increasing general attitude that anyone still using a PC must be a bit shady, possibly a teenage gamer or a black hat hacker, and phone apps are becoming inescapable.

I've looked around and there seem to be quite a few emulators, but most seem oriented towards developing Android apps. I just want one to use as a smartphone, and I want it to run in a VM because I don't want Google (and their thousand "partners") getting their fingers into my main PC.

So any recommendations for an Android emulator?

Offline

#2 2025-06-13 12:30:47

s1mple
Member
Registered: 2023-11-13
Posts: 12  

Re: Android in a VM - recommendations?

I myself would refuse to interact with someone who require the use of apps, but I recognize it's not a battle for everyone, because life is full of many other things. If I were you I'd try Waydroid. Waydroid is container based and as the name suggest it's using Wayland, so if you're on X11 you must start it with Weston.

Last edited by s1mple (2025-06-13 12:31:29)

Offline

#3 2025-06-13 13:13:16

Altoid
Member
Registered: 2017-05-07
Posts: 1,764  

Re: Android in a VM - recommendations?

Hello:

Duke Nukem wrote:

... becoming increasingly difficult to avoid using a smartphone ...

Indeed ...
The final objective is that everyone uses a smartphone for everything.

Duke Nukem wrote:

... have one but hate it.

Same here.
And the local telcos do not offer any dumbphone options.

Duke Nukem wrote:

... doctors' practice ...
... certain things my bank will not let you do on their website ...
... using a PC must be a bit shady ...

A local doctor's association (or whatever it is) has intere$ted / offered their associated physicians access to a dedicated website where, instead of handing you the usual hand written prescription while you are in front to them, they will send it to you via email.

To that effect, all your data and prescription history is stored (safely, never shared or sold mind you) in the association's server.
Not only that, it seems that the chaps actually get some cash for every patient that gets uploaded to the data base.

Like my proctologist's secretary ignorantly explained: "the Dr. saves time when not having to write the prescription".  8^D !!!

The bank where I get my pension deposit and have been a client for more than 25 years one day decided that I would no longer be able to transfer money between my account and any other account (mine or not) if I did not have a token which was (to them) the only possible way to ID myself before the bank's infrastructure if I was using their website.

Gone was the 2FA Auth I had been using and as you would expect, said token could only be generated by an app running in a smartphone I did not have (used a Blackberry at the time).

Needless to say that the process of installing the app involved (you guessed it) uploading photos of your mug like if you were being processed for murder. ie: front / right / left / smiling / not smiling and so on. It's a wonder they did not also want a photo of my tonsils.

I could go on as examples of this bulshit abound so I will stop now and explain why all this is happening worldwide:

It is all about control.
A smartphone is basically a tracking device and all these app shennanigans are meta-data harvesting procedures.

The moment you get your mug shot on-line is the moment it is shared worldwide, istantly associated to all the information you shed permanently with absolutely everything you do with a smartphone. eg: banking, digital wallet payments, etc.

The added bonus for banking institutions is that, sooner than later, any and all client banking activity will have to be done via a smartphone.
Forget your secure Linux box behind a router / firewall at home and, to their shareholder's delight as all their clients will then work for them, welcome to the world of banks without branches, ATMs, tellers, employees, etc.

Like stores of all sorts that, as time goes by, have more self-service checkout tills and less cashiers or humans: you are both the employee (weighing/sorting/checking out the goods) and the client (paying for it all).

I flatly refuse to use them and point out to the employee at the till that if I do, eventually they will be out of a job, a job which they are good at.
Their reply? "I find it very helpful, especially when there are many clients in the store"
Unbelievable.

Duke Nukem wrote:

... just want one to use as a smartphone, and I want it to run in a VM ...

I do not think there is one and given how the system works, I there will not ever be one.

This because the key to all this is that the app runs on the smartphone, ie: the portable data harvesting device registered (via an IMEI <-> your ID pair) to you and working with / through the telco's infrastructure which is (obviously) linked to the rest of the world-wide telco infrastructure and whatever other infrastructure feeds from it.

As far as I know, it is impossible to access that infrastructure directly with a computer / emulator but you can do it if your computer accesses it via your smartphone, I believe there is such a thing for whatsup. You would need to fake quite a few things, the main one being a valid IMEI / your ID pair.

Soon there will be no way of using any telco infrastructure without a registered smartphone.

No dumphones or burner phones will be allowed and all communication devices will have to be linked to a valid ID, meta-data* included, of course.
* full name, address, full facial recognition data, some ID number (passport, etc.) and who knows what else.

Best,

A.

Offline

#4 2025-06-13 15:22:21

rbit
Member
Registered: 2018-06-12
Posts: 60  

Re: Android in a VM - recommendations?

dDepending on your needs, Genymotion (https://www.genymotion.com/product-desktop/download/) may work.  I used it in the past, seems like it's gotten a bit worse in later versions though from my perspective.  It's something you could try, but it seems a bit hit-and-miss as far as app compatibility is concerned.  It gives the option of using VirtualBox or QEMU for hypervisor.

Offline

#5 2025-06-13 15:49:03

steve_v
Member
Registered: 2018-01-11
Posts: 434  

Re: Android in a VM - recommendations?

Android studio can create any number of full-featured emulated devices, with android versions and api levels of your choice, in just a few clicks.
It is of course a google product and not to be trusted, but using the standard development environment does have advantages wrt compatibility.

I'd suggest a version a year or two old, so as to avoid the worst of the Artificial Idiocy that google seems determined to infict on man + dog.

Last edited by steve_v (2025-06-13 15:57:24)


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#6 2025-06-13 16:20:30

yurimodin
Member
Registered: 2025-06-09
Posts: 17  

Re: Android in a VM - recommendations?

Waydroid via Weston is the way I do that stuff.

Offline

#7 2025-06-13 17:27:48

Altoid
Member
Registered: 2017-05-07
Posts: 1,764  

Re: Android in a VM - recommendations?

Hello:

rbit wrote:

Genymotion ...

steve_v wrote:

Android studio ...

yurimodin wrote:

Waydroid via Weston ...

Interesting.

Let me see if I understood this correctly:

Using one or any of the applications suggested above, I can log into my bank or whatever secure website requiring a website supplied token* and carry out my business without actually using a smartphone?

* the token sent by the secure server to a smartphone registered under my name with that same server but without using the smartphone in any way.

Yes?

That said, I do obtain secure access to a couple of secure websites using my browser.
But the token is generated by the smartphone itself (ie: me) via an app such as Aegis Authenticator.
All I had to do is copy a QR code generated by the owner of the website and apply it to the authenticator.

Any time I need to access that secure server, I first login to the website (with UserID+PW) and then use the authenticator to generate a six digit number (on demand) in order to complete my access.

No further process is carried out on or by the secure server.

Best,

A.

Offline

#8 2025-06-14 00:22:38

steve_v
Member
Registered: 2018-01-11
Posts: 434  

Re: Android in a VM - recommendations?

Those will all do what was asked in the OP, run "Android in a VM". None of them will register a real IMEI on a real cellular network though, because that requires a physical radio connecting to a physical cell site...
So it depends how your authenticator works. If it uses basic google APIs, then you just need to sign in to google from the virtual device with a real account. If it needs hardware device attestation (safetynet/play protect/etc.), uses SMS, or otherwise relies on the mobile carrier, you're probably SOL.

There are ways to spoof device attestation, but it's a cat-and-mouse game with google and far too complicated to go into here. Hit up xda forums.

Last edited by steve_v (2025-06-14 00:26:56)


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#9 2025-06-14 01:14:25

Altoid
Member
Registered: 2017-05-07
Posts: 1,764  

Re: Android in a VM - recommendations?

Hello:

steve_v wrote:

... will all do what was asked in the OP ...

The OP asked about much more than that.
Running in an emulator is only a necessary part of what OP ultimately wanted to do.

Duke Nukem wrote:

... there are certain things my bank will not let you do on their website but only with their app.

The app the OP refers to is the bank's custom application running on a smartphone in the way I previously described.

So the answer to the question/s I posed in my previous post would seem to be a hard no.

steve_v wrote:

None of them will register a real IMEI ...

Exactly.

steve_v wrote:

... depends how your authenticator works.
... sign in to google from the virtual device with a real account.

As far as I can tell, Google et al have absolutely no involvement (at least for the time being) in the client <-> bank transaction through their authenticating servers, none whatsoever.

Banks are run by experienced white collar crooks, not idiots.

Many years ago, I tried to log into one of my bank's websites using the Tor browser, thinking it would be better and safer.
It took a few seconds to get kicked out of the session and instantly get an email summoning me to the head branch to speak with an accounts officer who, sternly produced a disclaimer for me to sign because "third party malware had been detected during my last log in" and assume full responsibility for whatever could happen, lest they terminate my account on the spot if I did not sign it.

Needless to say, he did not take lightly my asking if he was referring to the MS operating system (Win98SE) running on the boxes I used at the office and at home.

So no, for all the reasons I explained in my lengthy post, I do not think it is possible to avoid using a smartphone to do any banking unless the bank allows the use of an 'on-device' authenticator running on your smartphone, something that will never happen.

Basically because, among other things, it is an integral part of the the meta-data farming system that has been put in place in the past 5/10 years.
With no government oversight whatsoever.

Soon enough, you will not even be able to order a pizza at a resturant without a smartphone.
The absence of a printed menu has recently started to become a widespread trend.
ie: sitting at a table in the joint, you actually have to use a smartphone to see the menu on the restautant's web site.

And it is going to get worse.  8^|

Best,

A.

Offline

#10 2025-06-14 04:59:53

steve_v
Member
Registered: 2018-01-11
Posts: 434  

Re: Android in a VM - recommendations?

The OP asked about much more than that.

The OP asks about running apps without a physical phone, and gives a couple of generic examples with no implementation details.
*you* moved the goalposts by adding custom authentication and token generators.

The app the OP refers to is the bank's custom application running on a smartphone in the way I previously described.

If you have a working crystal ball, feel free to open-source the schematics. Otherwise you're putting words in somebody else's mouth to further your own agenda.
If what what you really want to do is shoot down every suggestion so you can whine about "big tech" control some more (with much talk and no action of course), you do you... But constant "old man yells at cloud" bitching (a common pastime around here apparently) never achieved anything constructive.

As far as I can tell, Google et al have absolutely no involvement

GSF has built-in 2fa authentication for apps to use, with various levels of physical device integrity checks. Whether a specific app uses it or rolls their own is up to the app developer. Even when they do roll their own 2fa auth, they're likely going to be using GSF to verify the integrity of the app, OS, and device before they allow you to start that process.

Unless you are somehow under the impression that there is only one bank in the world, with one app, you're making the assertion that your personal situation with your particular bank is also the only one the OP could possibly be in. This is infantile.

Banks are run by experienced white collar crooks, not idiots.

Which is why authentication is (or should be) handled server-side, and any on-device security handled by widely deployed, trusted frameworks. The "app" can then be (and IME often is) little more than a thin interface for the web api, with hooks into GSF for 2fa.
If an app does require integrity checks (e.g. allows fingerprint or facial recognition auth and does it on-device), that's exactly what the android integrity and hardware crypto apis are for. Most apps use those, because security is hard and reinventing wheels is stupid... They're also far more secure than relying on something like cell network registration / IMEI, which is notoriously easy to screw about with (see many real-world examples of sim-swapping / device cloning attacks).

My bank also has an app, it's not mandatory, it only uses 2fa for initial setup, and it works perfectly in a VM. The same goes for a host of "special deal only in our app spyware" situations, virtual boarding passes, concert tickets et al., extracting login tokens or DRM decryption keys for reuse in third-party apps, and countless other things besides.

Last edited by steve_v (2025-06-14 06:20:25)


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#11 2025-06-14 13:08:57

Duke Nukem
Member
Registered: 2018-11-07
Posts: 36  

Re: Android in a VM - recommendations?

Thanks for the responses.  So it may or may not require IMEI (which I had not heard of) that only a phone can give (without some serious hacking) depending on what the server is set up to require.  I shall give it a try, but I had not expected that hurdle when I put the question. My first concern though is to choose an Android emulator (to run in VirtualBox) . It seems like Android x86 could be a good choice, Distrowatch counts it as a distro.

Offline

#12 2025-06-14 23:11:35

yurimodin
Member
Registered: 2025-06-09
Posts: 17  

Re: Android in a VM - recommendations?

Android x86 has been abandoned, there is another project that does the same thing but I can't remember its name. End of the day this might be solved with a $30 used phone + wifi.

Offline

#13 2025-06-15 23:13:52

Micronaut
Member
Registered: 2019-07-04
Posts: 230  

Re: Android in a VM - recommendations?

Bliss OS is where the Android x86 developers went. It's fussier than Android x86 and won't run in many of the emulators that previous port could use. I think it requires KVM in Linux. But that's a technical detail that may change from one release to the next.

I do agree with the OP complaint about the trend towards forcing everyone to use smartphone apps (either iPhone or Android) to interact with businesses. I've not encountered the banking restrictions talked about, yet, but now I am worried. I hate the idea of having access to all the critical details of my life on a portal device that I may have to carry around just for safety. You need a phone to get help on the road if your car breaks down, for example. But then you've got your entire life on that little device where ever you go and can potentially lose it and control of your life right along with it.

Offline

#14 2025-06-15 23:59:49

sagemage
Member
Registered: 2025-05-21
Posts: 8  

Re: Android in a VM - recommendations?

FydeOS might be a good alternative. I tried this on bare metal recently and it was pretty close to a chromeOS like desktop experience. You can get android apps to work on it as well, bit of trial and error though. Not a fan of anything google so this fydeOS is a good alternative, you can still use google stuff on it and sign in to google, but it has a local account setup i thought was worth a look. Still a no go for me, you get trapped in that ecosystem, whether it be google or fydeOS.
https://fydeos.io/

PS: fdroid works flawlessly on fydeOS without having to set android rom stuff up.
https://f-droid.org/

Last edited by sagemage (2025-06-16 00:02:54)

Offline

#15 2025-06-16 00:27:57

golinux
Administrator
Registered: 2016-11-25
Posts: 3,445  

Re: Android in a VM - recommendations?

Micronaut wrote:

But then you've got your entire life on that little device where ever you go and can potentially lose it and control of your life right along with it.

Not to worry . . . There is a solution for some of that. It's not easy to "lose" a tiny sub-dermal chip containing all your important personal info!

Note that a voip connection is still working for me on an ancient set of Panasonic phones that a friend handed down to me over a decade ago. My "emergency" cell phone has the battery removed and I have no idea if it would still work to make a 911 emergency call which is why I bought it a very long time ago.

Online

#16 2025-06-17 11:59:07

Devarch
Member
Registered: 2022-10-03
Posts: 95  

Re: Android in a VM - recommendations?

dDepending on your needs, Genymotion (https://www.genymotion.com/product-desktop/download/) may work

It's spyware. They track you. Otherwise, yes it's the best but requires virtualbox.

Offline

#17 2025-06-17 21:50:15

lumin
Member
Registered: 2025-06-17
Posts: 1  
Website

Re: Android in a VM - recommendations?

It is becoming increasingly difficult to avoid using a smartphone - I do have one but hate it.

I don't have a VM suggestion, but I'm in a similar situation.  I keep my phone tethered to one place at home, and never access it directly, or take it with me anywhere.  I installed a Lineage OS on it, and make use of the multiple user accounts feature.  The primary account only has free software.  A secondary account has only "important" things like banking and government stuff, and a third account has only relatively untrusted apps that I might need once in a blue moon.  I have ADB over TCP enabled on a Wireguard VPN, and access my phone from my desktop or laptop through scrcpy[1], and I have Termux installed on the primary account, with an sshd server running at boot, listening on the VPN too.

[1]: https://github.com/Genymobile/scrcpy

Offline

Board footer