I used to hate android emulators, since the ones I'd tested on Windows were ad-ridden, slow bloatware.

The other day I needed to run an android app on Fedora 40.

I tried Waydroid and it worked very well. The app ran supersmooth as if it was running natively.

Also the cli syntax was very sane an user friendly.

waydroid app install|run|list ...

So if you need an Android app on linux the experience might be better than what you think it would be.

top 50 comments

sorted by: hot top controversial new old
[–] 54 points 2 years ago (3 children)

I think a part of your positive experience is also thanks to Linux. Android emulation works better on it because the difference between Linux and Android is not that big and definitely not as big as between Windows and Android. Though Waydroid rocks anyways

  • source
  • hideshow 6 child comments
  • [–] 28 points 2 years ago (2 children)

    It took a long long time until Android emulators on Linux worked even close to what has been available on Windows.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 28 points 2 years ago (2 children)

    The documentation says:

    Waydroid uses Linux namespaces (user, pid, uts, net, mount, ipc) to run a full Android system in a container and provide Android applications on any GNU/Linux-based platform.

    To my understanding this isn't even emulation but regular container technology.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 9 points 2 years ago (3 children)

    Wouldn't some Android Apps require specific builds for x86 architectures? Does Android take care of that?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 9 points 2 years ago

    A lot of android apps are built using Java/Kotlin, so you don't actually need to care about architecture since the JVM supports both x86_64 and arm64.

    There are exceptions to this though, since some apps need to run native code. Those apps would need some sort of emulation/translation layer for the arm instructions.

  • source
  • parent
  • [–] 4 points 2 years ago* (1 child)

    Android emulation works better on it because the difference between Linux and Android is not that big

    To be clear, the difference between Linux and Android is about the same as the difference between Linux and Fedora, in that they are both Linuxes. That's why this works, and why the reverse (running GNU/Linux apps and even entire systems on Android) is possible as well.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 2 years ago* (1 child)

    I meant a desktop Linux distro, not the kernel itself. And Android has a ton of bloatware on top of it so it's not really the same thing. Android has like a double decker kernel

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (8 children)

    AOSP doesn't have that much bloat, it's far lighter then your typical linux distro, It's vendors that bloat it up, Custom roms are extremely light, This is BlissOS running on 2Gb of ram https://files.catbox.moe/4n17z3.mp4.

    It's far more responsive then many linux distros would be since android and it's applications are optimized around low ram and low system resource in general

  • source
  • parent
  • hideshow 8 child comments
  • load more comments (8 replies)
  • [–] 44 points 2 years ago (1 child)

    The app ran super smooth as if it was running natively

    That's because it is native! Waydroid runs an android container on top of your existing kernel. You will notice that you can even see the Android processes while running Waydroid in a top utility.

  • source
  • hideshow 2 child comments
  • [–] 10 points 2 years ago (2 children)

    Although the Android kernel is slightly customized isn't it? I thought it exposed a few extra syscalls. How do these work on Waydroid?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 17 points 2 years ago (6 children)

    I just tried it 3 days ago on Fedora 40, Did not run for me.

    Followed their wiki

    How did you setup?

  • source
  • hideshow 12 child comments
  • [–] 6 points 2 years ago (1 child)

    Yeah I tried it on pop os a while back and never could get it running at all

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 2 years ago (1 child)

    At what point did it not work for you? I just got it running on Fedora 40 following their wiki.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (4 children)
    Failed to get service waydroidplatform
    

    on doing waydroid app install myapk.apk

    ERROR: WayDroid container service is already running
    

    IT says already running on doing sudo waydroid container start

  • source
  • parent
  • hideshow 5 child comments
  • [–] 4 points 2 years ago* (last edited 2 years ago)

    I got it into android "desktopt" previously, but now after rebooting and trying to install an apk it seems to no longer be opening at all. Sorry :/

    Edit: I just uninstalled and reinstalled via the software Center and now it works and I could install F-Droid.

  • source
  • parent
  • load more comments (3 replies)
  • [–] 3 points 2 years ago

    You need a custom kernel, or a kernel module plus DKMS and kernel headers for your current kernel.
    You also need the package that handles whatever filesystem they use for their containers.
    Then, you need to be running it on Wayland or else it doesn't work.
    The part that I'm stuck on is running games, which gives an error about not being able to find libmain.so, which might be an architecture mismatch problem. Maybe I can virtualize that part? But at that point I might as well just buy a phone.

  • source
  • parent
  • [–] 16 points 2 years ago

    I tried Waydroid and it worked very well. The app ran supersmooth as if it was running natively.

    thats because it was running natively

  • source
  • [+] 9 points 2 years ago (2 children)
  • [–] 3 points 2 years ago (2 children)

    Yeah, it can't run stuff compiled for ARM, right?
    I hit a speed bump and I haven't had time to fully investigate but I too would like to run games.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 2 years ago

    Used it but couldn't play any media on it, which was going to be my use case. Nvidia!!!!!. But the devs and the community are quite patient and helpful in their telegram channel.

  • source
  • [+] 2 points 2 years ago
    load more comments
    view more: next ›