Question What is the best way to run an Android .apk with WiFi access in Linux?

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
Hello Folks,

I bought a cheap drone at some discounter. https://maginon.de/products/quadrokopter-qc-710se-wifi-100827
Now I want to run the app, to fly the drone, on my Kali Linux. https://apkpure.com/maginon-air/com.maginon.maginonair/variant/1.1.1-APK#variants
My phone is a bit shitty. And actually the other is a 20yo Nokia. 📞
At the last attempt I messed up my Linux installation. Now I ask first.
What I don't want - I am paranoid as well/hell - is having Google or some other spyware on it. All need to be freeware without to pay.
Actually I want a big screen resolution. Duno if I can use the Joystick later. Would be cool.

Any suggestions? :unsure:
 

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
47 views, not a single comment!
Meanwhile I am experimenting with open Android and Lineage OS on Gnome Boxes in Kali.
They launch well, but my drone app stalls all the time.
Furthermore I am worried about to use the WiFi from the virtual drive.
Otherwise everything fine. Computer is still running. :p
 

Matias Saibene

Development hell
Joined
Jul 7, 2012
Messages
1,051
Reaction score
631
Points
128
Location
Monte Hermoso - Argentina
Website
de-todo-un-poco-computacion-e-ideas.blogspot.com.ar

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
Yes, but Anbox is not available anymore. It was on Snapcraft for Debian. But it don't exist anymore.
Waydroid was, what let me fuck-up my OS by the attempt to remove it.
But Kali has Wayland in the Ubuntu Parts. I think I have 11 Desktop-enviroments on Kali.
Some websites say there are over 10 possibilities to run an app. Last I did was to run several Android versions in Gnome-Boxes. But somehow the app stalls all the time.
 

Matias Saibene

Development hell
Joined
Jul 7, 2012
Messages
1,051
Reaction score
631
Points
128
Location
Monte Hermoso - Argentina
Website
de-todo-un-poco-computacion-e-ideas.blogspot.com.ar
Yes, but Anbox is not available anymore. It was on Snapcraft for Debian. But it don't exist anymore.
Waydroid was, what let me fuck-up my OS by the attempt to remove it.
But Kali has Wayland in the Ubuntu Parts. I think I have 11 Desktop-enviroments on Kali.
Some websites say there are over 10 possibilities to run an app. Last I did was to run several Android versions in Gnome-Boxes. But somehow the app stalls all the time.
Maybe the app only supports ARM and not x86_64 architecture.
 

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
Hmm, I never thought about that. But that's what an emulator is made for?
On the other hand, I can let Android OS, Bliss OS and Lineage OS run in Gnome-Boxes. Why the app should not work in the VM?
On my very old netbook I have a Bliss OS physically in a 8GB partition installed. I used it for car-diagnostic apps. On Intel architecture.
And It worked via bluetooth.
 

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
$ sudo apt install qemu-system-arm

qemu-system-arm ist schon die neueste Version (1:7.2+dfsg-7). <-- already installed
So, yes, you are right. But if I wouldn't have it, the Lineage OS wouldn't run either.
I tried a few of this Virtual Machines. But Gnome Boxes is simply the best.
 
Last edited:

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
Android x86 was the first I tried.
Bliss OS is what I have on my old computer. (You can only boot it via Uefi/Bios) https://blissos.org/
And Lineage OS is what I have on my phone. Here the app runs. But it stall in the simulation of drone flight.
Perhaps cause of low RAM (1GB)?
Actually I would prefer to run the app directly in an emulator without to simulate an Android OS in a VM.
And btw. I have AMD
 
Last edited:

Matias Saibene

Development hell
Joined
Jul 7, 2012
Messages
1,051
Reaction score
631
Points
128
Location
Monte Hermoso - Argentina
Website
de-todo-un-poco-computacion-e-ideas.blogspot.com.ar

Matias Saibene

Development hell
Joined
Jul 7, 2012
Messages
1,051
Reaction score
631
Points
128
Location
Monte Hermoso - Argentina
Website
de-todo-un-poco-computacion-e-ideas.blogspot.com.ar
Thank you. I am actually all the time on that page. I could install Waydroid even in Kali now, when I run it on wayland.
But I still can't install an app in my simulated Android there.
As far as I know you can install it in Arch too. https://wiki.archlinux.org/title/Waydroid
I'm going to need some time because the computer I'm using now (my main machine) has Manjaro and linux-zen doesn't come in the repositories.

-----------EDIT-------------

I installed Waydroid, I tried it, but the apps programmed for ARM didn't work for me. Only those programmed for x86_64.

I tried to install Maginon Air through the command line and it gave me an error, I tried to install it through the PlayStore and it also gave me an error. I tried to install it sideloading from ApkPure and it also failed.

So I found out on the Internet that APK files have inside a folder called lib where the files pertaining to the corresponding architectures are stored and unfortunately Maginon Air is not compatible with x86_64.
Screenshot_20230612_205743.png
 
Last edited:

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
😭Thank you so much. Something like that I thought too. Specially it could caused by AMD x64.
But now we know how to run Apps in Linux, as far as they are programmed for x86_64.
The funny thing is, If I use LDPlayer, I can run the App on windows, but I don't have WiFi access.

I found this btw.: https://www.99images.com/apps/photography/com.maginon.maginonair/download
 

Matias Saibene

Development hell
Joined
Jul 7, 2012
Messages
1,051
Reaction score
631
Points
128
Location
Monte Hermoso - Argentina
Website
de-todo-un-poco-computacion-e-ideas.blogspot.com.ar
😭Thank you so much. Something like that I thought too. Specially it could caused by AMD x64.
But now we know how to run Apps in Linux, as far as they are programmed for x86_64.
The funny thing is, If I use LDPlayer, I can run the App on windows, but I don't have WiFi access.

I found this btw.: https://www.99images.com/apps/photography/com.maginon.maginonair/download
Apparently LDPlayer emulates an ARM processor. I'm going to investigate to see if an ARM processor can be emulated in x86, perhaps with some feature that I don't know about in QEMU.

----------------EDIT------------------

I came up with a possible and strange solution: Install Manjaro ARM, with Sway (which is a Wayland window manager). I chose Manjaro because I can't get installable ARM images from Android. Then I'm going to install Waydroid on Manjaro ARM (within a virtual machine). And then I'm going to try to install the Maginon Air application. I'm going to try this idea, and if it works I'll see how it's done with Kali ARM.
 
Last edited:

Col Brubaker

Hoax Developer
Joined
May 21, 2011
Messages
82
Reaction score
40
Points
33
Location
Free Republic of Germany
I can run the app in BlueStacks and LDPlayer in Windows.
The problem is, I don't get WiFi.
And the Manjaro-thing I just understood half. There are Linux OS for Phones, Such as Manjaro ARM or Kali Nethunter.
I can run them in a VM like Waydroid. and install the app there?
 

Matias Saibene

Development hell
Joined
Jul 7, 2012
Messages
1,051
Reaction score
631
Points
128
Location
Monte Hermoso - Argentina
Website
de-todo-un-poco-computacion-e-ideas.blogspot.com.ar
I can run the app in BlueStacks and LDPlayer in Windows.
The problem is, I don't get WiFi.
And the Manjaro-thing I just understood half. There are Linux OS for Phones, Such as Manjaro ARM or Kali Nethunter.
I can run them in a VM like Waydroid. and install the app there?
Yes, technically it is possible. In fact, I configured an ARM virtual machine but I could not install Manjaro ARM or Kali ARM, the img.xz installation images were not detected as bootable.
 
Top