the one thing linux really hasnt been made on par with winblows yet is the dreadful amount of options for android simulation -the most popular choice seems to be Waydroid, but its such an unneeded hassle to set up at all -genymotion is just slow -and than you have things like android x86 which entirely defeat the point of an emulator

  • I totally get what OP is asking and am constantly annoyed by the same thing.

    There’s a ton of software that can ONLY be run on a mobile OS, and rather than deal with the nightmare that is a physical Android phone with all of its limitations and restrictions, it would be nice to have these things running in a VM that I can fully control. There’s software that demands access to insane and ridiculous permissions, and I’m not going to install those to my physical Android phone and deal with the privacy problems. But a completely isolated VM with burner accounts that I can run in a window on the desktop I’m already using most of the time anyway? I’ll take that. Also, I don’t see the need to shell out the ridiculous price premiums for phone models with the most storage space when I only use a handful of apps when I’m mobile anyway. An app I might need two or three times a year still takes up that space on my phone when it could easily live on a VM and be used only when I need it at home.

    Also, when Android releases new version updates and my phone manufacturer doesn’t keep up? Why should I have to go out and buy a new phone just to appease the handful of apps that decide THEY want to be cutting edge and THEY’RE going to be the ones to force me to waste money? I should be able to just spin up another VM with the new Android version and use those sporadic apps on there until I decide to upgrade my phone in my own good time.

    Also, Android X86 is fine, but the most problematic apps that mess with users and force apps to newer Android versions for no other reason than being “cutting-edge” aren’t made by the kinds of companies with the forethought or customer focus to provide x86 compatible apks.

    Basically, I don’t see why it’s so hard to run a full virtual, sandboxed ARM emulated vanilla Android environment, or why people aren’t clamoring for this. It’s the most practical, straightforward solution to the fragmentation/bad vendor update model that physical hardware forces on us and I assume most of us hate.

      • Apps “forcing” you to update are the result of developers doing their jobs. Just because you decided to buy a cheap phone or a free Android distro that doesn’t come with any update guarantees doesn’t mean they have to pour in money to keep things working for you.

        I absolutely refuse to spend that much money on a platform with so little respect for users. You shouldn’t even NEED an update guarantee. You don’t go out and buy a computer and check for guarantees that it’s going to include OS updates… you KNOW it’s going to continue updating until the hardware physically can’t handle it anymore and you get sick of it and go upgrade it. The Android system and its heavy ROM customization and reliance on vendor updates is fundamentally broken, and it is NOT a problem to be pawned off on USERS to fix by throwing more money at it. The only reason there’s ANY difference in the Android environment vs X86 computers is because people tolerate it for whatever reason. This is a problem to be fixed, and the first responsibility for fixing this is on Google, and failing that responsible app developers should be developing for the lowest still supported Android version for SEVERAL reasons.

        1. I’m generalizing, but as an app developer, usually more users is better.
        2. If they DID it would be incentive for Google and Android manufacturers to FINALLY decouple Android updates from the hardware they run on.
        3. It reduces e-waste by extending the time phone hardware can be used. I shouldn’t have to explain why this is a good idea.

        There are good reasons to update an app to use a new Android version. Complacency in a broken environment of continuous obsolescence as a money making scam isn’t one of them.

          • My anger is that the decision of an upgrade is made FOR me when the functionality of my phone should be limited by the physical limits of the hardware, and not the development limits of the phone vendor. A company should NEVER tell me “We don’t think this is going to give you a good user experience so we’re disabling it for you.” That is MY decision. If I want to suffer through running your app more slowly, that’s up to me, and I don’t need the decision made on my behalf, especially when the end result is costing me money. I’m sorry, but that is absolutely unacceptable. EU legislation is nice - I’m particularly looking forward to replaceable batteries making a comeback - but legislation forcing vendor updates doesn’t fix the fundamental problem that it shouldn’t even be their responsibility. I know the only real differentiating factor between vendors is their particular ROMs and whatever custom bloatware they ship with, but unlocked boot loaders and an operating system with a kernel that is not so inextricably linked to particular hardware that it can be installed and run on ANY Android phone is the real solution. Desktop operating systems don’t have 47 different installation images for 47 different special pieces of hardware, and there’s absolutely no reason that Android should need that either. Maybe there was an argument that ARM CPUs weren’t powerful enough, or space was at a premium for a kernel to have unnecessary hardware support 10 years ago, but the hardware is certainly powerful enough now, and all of those CPU cycles get wasted on crap like app scanning when the system starts, services I can’t identify and probably don’t need, assistants that are constantly listening to my microphone… I won’t say those things are all well and good - I loathe them - but if we’re going to have them that should come AFTER development of a generic Android image with a kernel that supports a wide variety of hardware. At this point, vendors can’t NOT conform - what are they going to do, develop their own mobile OSs again? Android has become the defacto standard and has no competition. You can force vendors to build hardware that conforms to standards and support generic OS installation now.

            Google have decoupled everything they could from the hardware abstraction layer. These changes started coming in around Android 8 and 9 (5-6 years ago at the earliest) and have only been extending the following versions. Entire subsystems like the Bluetooth system can receive updates through Google. You can boot standard OS images and all the important hardware will Just Work. If you’re stuck on an Android version that’s being dropped by app developers (Android 7, I’m guessing?) you probably won’t reap the benefits, but it’s been a few years since then.

            If this is true, I haven’t seen it. I’ve got Android 10 phones and as far as I know, I sure can’t download a generic Android 12 ROM and just install it. I’m stuck waiting for system updates.

            If you’re not paying, you’re the product, or you’ll be left with shovelware. Companies that won’t make any money from you aren’t going to give you anything out of the goodness of their hearts.

            It’s surprising that I’m STILL hearing this when I’m running 6 PCs with free operating systems that work, aren’t bloated, and are loaded to the brim with world class software that is all free and reliable, some of which was written 20 years ago and barely been touched since because it STILL works.

            What you’re saying is perfectly valid for SERVICES, which involve ongoing costs, but not everything needs to be a service. In fact, I’d argue most things SHOULDN’T be services. And if I write an app TODAY that works PERFECTLY for some task, I can’t just leave it there and rely on it to keep being used in the future. Because of the architecture of the Android system, I have to continually put in work to make it conform to new standards, which of course, keeps reliable, functional FOSS from getting ANY kind of long term usage in the mobile space.

            My favorite dictionary app was written for Android Kitkat. Completely offline and functional and did everything it needed to PERFECTLY. I upgraded my daily driver phone to a Android 12 and with there being NO changes to the dictionary app that did EVERYTHING that was necessary for free, that app was broken, because it didn’t conform to some new standard. Another app let me remotely mount my SSHFS folders and use my personal server, but THAT broke when Android removed the modules from the kernel. The entire history of the platform is LITTERED with this garbage where developers are FORCED to continually put in work on things that should be “develop once and it’s done”, and that’s INTENTIONAL.

            It’s a scam of squeezing money out all the way down.

    • Running Bliss with houdini or NDK should give you a good coverage of arm applications, some still won’t work because they have various anti-emulator crap which just pickups x86 stuff. if new version is an issue, Bliss has you covered as it’s currently running A12L with A13 work underway

  •  Ramin Honary   ( @Ramin_HAL9001@lemmy.ml ) 
    link
    fedilink
    English
    25
    edit-2
    9 months ago

    To do Android development, I got myself a Banana Pi, which is a Raspberry-Pi like single-board computer. They provide you with a rooted Android OS image that you can flash onto the device, and you can install whatever else you want onto it. I give it it’s own display and keyboard, but can also SSH-into it and control it from my other computers.

    • That’s all well and good for development, but there are other use cases than development. There are emulation solutions focused on development already, of varying quality. But there’s nothing for Android END users who simply want to be able to run software an Android environment without having to be tied to a piece of hardware and all the limitations and sacrifices that come with that.

      That’s not to say this isn’t a useful option, but that’s still ONE Android environment tied to ONE piece of physical hardware.

      To give an equivalent comparison… if you wanted to run multiple operating systems on your PC to have fine tuned control of different environments, you could just install a different Linux distro or Windows to multiple different VMs.

      If I want to do the same thing with Android, the solution is always “Buy another device”. That’s insane. If the solution to wanting to run Debian alongside Fedora was “get a second computer”, people would be up in arms with how ridiculous and wasteful that is. But for Android, people just accept it for some reason.

  • The generic answer is usually that someone hasn’t felt the need to create and release one.

    Open source basically means you get whatever someone else felt like creating, and they’ll usually create it to suit themselves first and foremost (which may mean having a poor user interface, or certain limitations or performance quirks).

    BlueStacks is cross platform, but I have never used it so no idea what the performance is gonna be like.

    •  Mandy   ( @Mandy@beehaw.org ) OP
      link
      fedilink
      English
      59 months ago

      "The problem is Bluestacks has not been developed for Linux so some users are thinking what is the system they should adopt to emulate Android applications on Linux.

      Fortunately an alternative exists if you need a system that can do that, now we will give you the keys to install something equivalent to BlueStacks that works correctly. Genymotion"

      from their website

      • My apologies, I saw:

        BlueStacks is the famous Android emulator for PC that can now be downloaded for the Ubuntu Linux operating system but we also refer to other distributions like SUSE, Debian or Linux Mint.

        And that reads clearly as being available.

        But you are correct, and it’s not. That entire blog looks like a Google translate trainwreck.

          • The emulator with android studio might be useful, but I dunno how helpful it is for your use cases. Does require a bit of overkill to setup. I think qemu can also be used, but also probably not nice to setup. (and not sure about the architecture issue).

            A few year ago there used to be a chrome extension for running Android apps, no idea if it works for Linux or even if it still works :/

  • Waydroid works at native speeds for me and on NixOS installation constituted adding virtualisation.waydroid.enable = true; to my config, running waydroid init -s GAPPS and then registering it on Google’s website with the code it gives. Might be able to do it with just the nix package manager and not full blown NixOS but not sure about that

    Unsure of the difficulties installing it but when it works it works flawlessly

    • Man! I was super excited about this, being a big NixOS fan, but then I realised that the “Way” bit is going to kick me in the nuts. I haven’t made the switch to wayland yet; I keep thinking about switching, but last time I checked being tied to i3 and nvidia hardware scared me off (although I’m aware sway is a drop-in alternative to i3, but it’s an extra complication). Another reason to make the switch when I can though!

      Out of curiosity, how do big media apps treat something like Waydroid? Like, I imagine Netflix and co being awkward with anything like this in a misplaced attempted to prevent “piracy”. Do you find apps treating you like a second class citizen?

      • I’ve not found this yet but I’ve only used it for a few things so far, haven’t tried Netflix. Will give it a go for you in a moment

        The apps I have used (plato, teams, office) have worked without a hitch so far (once I figured out I needed to install it with play services enabled)

        Can’t imagine banking apps would work at all though

        Wayland with Nvidia is patchy. I’ve managed to get around the issue by running integrated graphics with offloading for intensive stuff, at least with Wayland gnome I’ve found integrated is indistinguishable performance from using the GPU anyway

        • Just installed NixOS with Wayland and Gnome the other day on my laptop with Nvidia card. I had to tune the config a bit, but it works flawless now – notably also with the offload command. That’s fine for me though because it saves considerable energy if the GPU only runs on request.

    • I use Waydroid on EndeavourOS just to run Apple Music. Waydroid basically virtualises an x86 build of Android and uses containers rather than emulating an entire ARM device. The most difficult thing was getting firewalld to let Waydroid access the internet.

        •  Mandy   ( @Mandy@beehaw.org ) OP
          link
          fedilink
          English
          29 months ago

          you can make a lot of stuff work with all the work you want

          but some people are crazy enough they like to have it a little easier you know, linux doesnt always have to be about making things work

          • If you need non-standard functionality you can’t just expect it to work out of the box and then get upset when it doesn’t, windows and Mac don’t have an easy method that gives you that kind of performance either

            •  Mandy   ( @Mandy@beehaw.org ) OP
              link
              fedilink
              English
              29 months ago

              its not about doing one extra step, its about a continuous flow of them, its like jumping through hoops with each subsequent one getting smaller each time, one or two extra steps? fine, whatever, but having to literally troubleshoot each step cause nobody bothered to make it work properly? thats a little much

              ill end it here, cause you dont seem to want to understand the plight of a person that doesnt wanna spend an hour troubleshooting something that should just work at least a little easier

  •  lemmyvore   ( @lemmyvore@feddit.nl ) 
    link
    fedilink
    English
    199 months ago

    Perhaps because scrcpy exists? It’s very easy to mirror an Android device on the PC with it and control it with mouse and keyboard, and everybody has an Android device around. So why bother emulating one.

    The ones with the most need to emulate are app developers and Android Studio does have an emulator included iirc.

    • Yeah… I feel the intent here isn’t to use the same Android installation on a bigger screen - it’s about taking back control and setting up Android environments on your own terms without unnecessary hardware. It’s a totally different use case.

      • While I appreciate the difference between mirroring and emulation, @lemmyvore@feddit.nl might have a point in so far as scrcpy and other options that aren’t emulation, may still be part of the reason why no one is making polished emulation options. If a dev can get by with a bunch of physical devices connected and controllev via adb, scrcpy and the like, or a passable emulator in Android Studio, then there’s less reason for them to build or contribute to an emulator for their needs, and consequently op (and the rest of us) don’t get a shiny open-source emulator.

  • There’s one that you can download through Android Studio. It’s pretty good if you have Linux as your host OS, as it will share your Linux kernel rather than emulating it. I guess by definition that’s not an emulator, though, so it technically doesn’t answer your question.

    I haven’t used it with Windows as my host OS since around 2016, but it was not very good back then.

  •  DrRatso   ( @DrRatso@lemmy.ml ) 
    link
    fedilink
    8
    edit-2
    9 months ago

    I have not tried it but BlendOS claims native apk support iirc.

    E: Ok, perhaps native is incorrect terminology, I just checked it and it seems to use WayDroid which was already mentioned in the thread. They ship with Aurora store and F-Droid, you can probably make those work on your distro too.

    •  Mandy   ( @Mandy@beehaw.org ) OP
      link
      fedilink
      English
      19 months ago

      blendos sounds nice and all but its claim of being able to install any package from any distro just sounds like a nightmare to maintain, there have to be issues coming from this right?

      could you perhaps sell that distro to me?

        •  Mandy   ( @Mandy@beehaw.org ) OP
          link
          fedilink
          English
          29 months ago

          i dont think thats not how you sell and the 20 seconds i spend on looking distrobox up, it seems to be terminal only, for something as important and big as a distro in a distro, terminal only seems a ltitle to “KISS” for me

          and if waydroid doesnt even work unless you do some serious hackerman stuff, how am i supposed to make distrobox work for android?

          does blendos solve the arm problem for apps at all?

          • I don’t care about the distro. You can get basically the same thing from Vanilla OS, uBlue, Fedora Silverblue, and many others with just a small amount of configuration.

            You use Distrobox from the terminal, but distrobox export lets you install graphical apps in a Distrobox container but integrate them with the host. BlendOS (and Vanilla OS) just combine it into a package manager. It’s also not “important and big,” it’s just a container—basically just WSL for Linux.

            Distrobox doesn’t work with Android. I was talking about the “install any package from any distro” part. BlendOS just adds in Waydroid support.

            No, it does not. It’s just Waydroid, which IIRC requires x86 apps.

      •  DrRatso   ( @DrRatso@lemmy.ml ) 
        link
        fedilink
        1
        edit-2
        9 months ago

        I can’t sell you something I haven’t used, even the components (distrobox and waydroid) I have not tried since I have personally no usecase for them. I mentioned BlendOS purely because from my passing look at it the android app support stuck in my memory.

        The beautiful thing with linux is, you could just burn the live USB and boot the live environment to test it out for yourself, without practically any hassle or run it in VirtualBox.

        As I gather you run Endeavour but then complain about the hassle of doing things in Linux. Endeavour is basically arch with a GUI installer + some extra tidbits, realistically it is as close to being arch as you can be without actually calling it arch. Arch is not a system for people who like things to just work withou “hackerma solutions”. Just look at Arch Wiki FAQ , specifically sections 1.2 and 1.6. If you want something simpler, perhaps try another distro.

        •  Mandy   ( @Mandy@beehaw.org ) OP
          link
          fedilink
          English
          29 months ago

          endeavor was the least trouble i ever had in regard of never having any hassle, i had to jump through far more hoops trying to get certain things working in say…linux mint, than i ever had with endeavouros it makes arch actually usable instead of a nightmare to install

          i just have to type 3 letters and it updates everything, no hassle, speedy and actually easy (for once)

          thanks for the arch wiki link but 3 out of 4 times i have to force myself to use it, i eventually give up and search for the proper answer somewhere else cause i dont want to read the entire history of binary to understand it

    •  Mandy   ( @Mandy@beehaw.org ) OP
      link
      fedilink
      English
      59 months ago

      installing some random kernel that has the modules waydroid needs watching what gpu you have, which changes the instructions a little and even than its pure luck if waydroid even manages to use these binders

      id call that a hassle

      • Waydroid will work out of box if the kernel has binder or binderfs enabled, which I believe ubuntu based, pop, fedora all have it OOB, on arch, you have linux-zen in the main repo, this covers the large majority of linux installations, I would recommend asking your kernel packagers for your distro to enable binder/fs. at this point, I would classify that as a distro issue.

        •  Mandy   ( @Mandy@beehaw.org ) OP
          link
          fedilink
          English
          19 months ago

          zen doesnt work with endeavouros at all, never loaded (tried it less than an hour ago) and you either need to use a tiling wm, or gnome/kde neither of which i would do willingly

          • Zen works fine in endeavor for me last I checked, but then again I haven’t checked for a few mkneths I don’t recommend using our derivatives anyways.

            on Wayland supported compositor “works” (hyprland and wayfire seem to have some issues). I personally use waydroid via cage ontop of x11. but a lot of people use weston. Ive been meaning to test cosmic but haven’t gotten around to it.

            EDIT: I haven’t seen any other users talking about issues using zen kernel on the telegram either.

            •  Mandy   ( @Mandy@beehaw.org ) OP
              link
              fedilink
              English
              29 months ago

              not unusual that you claim it works for everyone but me, its neither the first nor the last time

              you are merely supporting what i said that it barely works for anything but tiling vms and some few select DEs, if you can even call wayfire that and i would very much like to avoid tilingvms at all costs, id like to use something more, well, usable

              • how so? People rarely have issues outside of some janky endeavor related bugs. hyprland’s issues also effect other applications like wine,

                it works on nearly every wayland compositor I have tested, labwc, and enlightenment are included. no idea where you get the impression that it only works on tiling wms.

                •  Mandy   ( @Mandy@beehaw.org ) OP
                  link
                  fedilink
                  English
                  1
                  edit-2
                  9 months ago

                  I dont? Like i said, mainly tiling AND a select view graphical enviroments,

                  Gnome i find entirely unusable,

                  and enlightement just takes apples infuriating design choices,

                  And those, for me, are quite the limited selections to make it work

                  Edit: if it where to workwith a for me much more to use de like cinnamon or xfce, than id be more inclined to properly dive into it