14 ms·
Waydroid – Run Android containers on Ubuntu
- marcodiego 5y agoDoubts: - Is it better/faster/more compatible than anbox? - Runs on ARM? - Does it allows me to watch DRM streaming services on my linux box? - Can I install google play on it?
- Spivak 5y agoI feel like you're expecting a lot from a a container running LineageOS with some integrations into the window manager. It's a container so the arch matches the host kernel. In general on LineageOS it's possible to install gapps. You won't be able to watch DRM streaming services that require Widevine higher than L3 support.
- judge2020 5y ago> - Does it allows me to watch DRM streaming services on my linux box? It doesn't include a HSM, so if it does allow you to watch DRM content, it'll only be Widevine level 3 content, which most services restrict to 420p or sometimes 720p streaming. https://support.google.com/widevine/answer/6072714?hl=en https://support.google.com/widevine/answer/6072714?hl=en
- chrismorgan 5y agoWaydroid has Android use your actual Linux kernel, so on an x86-64 host you’ll run x86-64 Android, and on an ARM host, ARM Android. This means that there will be some apps that won’t run on your Intel/AMD computer. I have no idea at all how common it is for Android apps to be tied to ARM, but I imagine that ARM64 will have helped with architecture-neutrality.
- bogwog 5y agoIf the app doesn't use any native libraries, it should be able to run on any architecture. Otherwise, I don't think you'll find many developers shipping x86/x86_64 binaries nowadays considering there are no real devices that use it. I think Intel has (or had?) a tool/library for translating ARM to x86 called Houdini. Can't seem to find it though, and it might require a license anyways.
- oynqr 5y agoAren't x86 chromebooks real devices?
- CameronNemo 5y agoIf you mean x86_64 then yes certainly. They are about as common as ARM64 Chromebooks these days.
- bogwog 5y agoCan Chrome books run Android apps?
- lights0123 5y agoYes they can. It's been an advertised feature for a few years.
- bogwog 5y agoTIL! In that case, x86 builds are probably more common than I assumed.
- gizdan 5y ago> This means that there will be some apps that won’t run on your Intel/AMD computer. Should be able to still run them if you use binfmt_misc. Of course it will be slower but it's possible.
- westurner 5y ago> binfmt_misc https://en.wikipedia.org/wiki/Binfmt_misc https://en.wikipedia.org/wiki/Binfmt_misc > binfmt_misc can also be combined with QEMU to execute programs for other processor architectures as if they were native binaries.[9] QEMU supported [ARM guest] machines: https://wiki.qemu.org/Documentation/Platforms/ARM#Supported_Machines https://wiki.qemu.org/Documentation/Platforms/ARM#Supported_... Edit: from "Running and Building ARM Docker Containers on x86" (which also describes how to get CUDA working) https://www.stereolabs.com/docs/docker/building-arm-container-on-x86/ https://www.stereolabs.com/docs/docker/building-arm-containe... : sudo apt-get install qemu binfmt-support qemu-user-static # Install the qemu packages docker run --rm --privileged multiarch/qemu-user-static --reset -p yes # Execute the registering scripts docker run --rm -t arm64v8/ubuntu uname -m # Test the emulation environment https://github.com/multiarch/qemu-user-static https://github.com/multiarch/qemu-user-static : > multiarch/qemu-user-static is to enable an execution of different multi-architecture containers by QEMU [1] and binfmt_misc [2]. Here are examples with Docker [3].
- westurner 5y agoWhy the heck isn't there just an official Android container and/or a LineageOS container? It's not a certified device, so. There are a number of ways to build "multi-arch docker images" e.g. for both x86 and ARM: OCI, docker build, podman build, buildx, buildah. Containers are testable. Here's this re: whether the official OpenWRT container should run /sbin/init in order to run procd, ubusd,: https://github.com/docker-library/official-images/pull/7975#issuecomment-744874229 https://github.com/docker-library/official-images/pull/7975#... AFAIU, from a termux issue thread re: repackaging everything individually, latest Android requires binaries to be installed from APKs to get the SELinux context label necessary to run?
- kllrnohj 5y ago> but I imagine that ARM64 will have helped with architecture-neutrality. What would have helped a lot more here is the default emulator in Android Studio is currently, and has been for a while now, x86. Since of course x86 to x86 virtualization is a lot faster than ARM to x86 virtualization. ARM64 didn't do much to help with architecture-neutrality just like X86_64 didn't.
- rektide 5y ago> Is it better/faster/more compatible than anbox? From the Anbox website: > "We're reusing what Android implemented within the QEMU-based emulator for OpenGL ES accelerated rendering." I'm not certain but I believe WayDroid more directly attempts to provide Android drawing subsystems on top of Wayland. This should be better/faster. Cross fingers. Compatibility wise, I'm unsure. Anbox may be a more faithful Android platform perhaps. Waydroid feels like it's a closer integration to me, with less virtualized-machinery, which is a much wider support target since it's running directly atop a wide variety of hosts. But I for one am very glad we have a closer integrated option, one where Android apps are running more within the Linux desktop context. There's probably a bunch wrong with my understandings here. Hoping some even better informed people can correct/supplement.
- genewitch 5y agoWhat streaming service doesn't work on FF ESR on Linux? Netflix and prime and Pluto do, at least. That's all I use, so I am curious. I don't stream anything else, no Roku or Android-tv or whatever.
- CameronNemo 5y agoNone on ARM. Google never offered widevine to Firefox on ARM64.
- marcodiego 5y agoExactly, AFAIK you can't watch netflix on your ARM SBC.
- JanMa 5y agoYou can, all you need to do is to extract the widevine binary from a ChromeOS arm build and put them on your Pi/ARM board. Admittedly, it's a bit cumbersome to do this, but it works very well. I've been watching Netflix on my Raspberry Pi 4 for over a year using it. Also, according to this guy [0] you now seem to be able to just install libwidevine in Raspberry OS. I haven't tested this yet though. [0]: https://lemariva.com/blog/2021/04/raspberry-pi-amazon-prime-netflix-disney-spotify-drm-solution https://lemariva.com/blog/2021/04/raspberry-pi-amazon-prime-...
- CameronNemo 5y agoRight, as long as you are using Chrome (maybe chromium in a 32 bit chroot or container if you do not have an RPI), you can use widevine. But I'm not a big fan of the RPI devices, or chrome.
- supercheetah 5y ago4k Netflix doesn't work on Linux, and also downloading for offline viewing, but I think those only work on Windows with HDCP enabled.
- puppet-master 5y agoFollowed instructions for 21.04 (distro = "hirsute"), greeted with complaint about binder missing. Found some bug report on the web suggesting I must rebuild my kernel to enable binder. Noped out of there. Looks like a nice effort though. Is this some problem specific to 21.04 kernel config?
- iam-TJ 5y agoIn Ubuntu kernels the Android modules are named "binder_linux" and "ashmem_linux" so: sudo modprobe binder_linux sudo modprobe ashmem_linux Where $version is the kernel version, for -generic kernels they are in the package "linux-modules-extra-${version}-generic" and for -lowlatency "linux-modules-${version}-lowlatency". On -generic the modules-extra may sometimes not be installed by default.
- madushan1000 5y agoAlso if you have secureboot on,you won't be able to load ashmem because it's not signed by default by ubuntu. That is without signing the module yourself. I have waydroid running in 21.04 without any issues.
- CameronNemo 5y agoI have seen an error like that with anbox before, but it was not on Ubuntu. I just had to mount the binderfs and it stopped complaining. Might be worth a try: mount -t binder binder /dev/binderfs https://brauner.github.io/2019/01/09/android-binderfs.html https://brauner.github.io/2019/01/09/android-binderfs.html
- rd07 5y agoI have tried Waydroid in Manjaro Linux, and to my surprise, it runs smoothly. I even able to install Aurora Store and install Telegram from there, which also run perfectly. RAM usage was minimal, maybe because of it is running on a container. The only thing I haven't figured out is keyboard input from my physical keyboard directly to the android.
- piaste 5y ago> I even able to install Aurora Store and install Telegram from there, which also run perfectly Why Telegram specifically, when it already offers both a web client and a FOSS Linux client?
- tgtweak 5y agoIsolation probably. edit: or if it's anything like signal, the mobile app has some extra functionality that is omitted from the desktop/web client...
- slim 5y agoYes namely e2e encryption does not work on linux client
- rd07 5y agoMainly because I want to see if : - I can install something from Aurora Store - The app can run - The app can connect to the internet without changing any config - The app can operate normally It is just a coincidence that the first apps I installed was Telegram. AFAIK, Waydroid doesn't add ARM virtualization, and because I installed it on a X86_64 computer, I doubt something installed from a store (which mainly aimed for ARM device) can even run properly.
- piaste 5y agoMakes sense, thanks.
- andrewshadura 5y ago
- Dhrhdhxbxbx 5y agoIf it's simple to set up, I'd like to use this for verifying and accessing private app data from Android backups without having to use a 2nd phone. Does it support arm64 emulation on an x86_64 host? That way I could just run the backed up apks directly.
- sodality2 5y agoTitle should be changed to Linux - thought this was Ubuntu-only at first (like if it were only in Ubuntu repos)
- blendergeek 5y agoYeah. This title should be reverted to the title on the page. A container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu. This could be simplified to: WayDroid: Containerized Android for GNU/Linux But as it is now, the title has been changed to be confusing.
- xt00 5y agoOne of the biggest problems with anbox and ARC was that they would need to do tons of work on each new android version. If somebody is willing to keep updating this for new versions of android at least every other android release then it’s reasonable to say this will work long term, otherwise people will use of a year then abandon it.. so Google is now switching to using arcvm where they use a VM instead of trying to do a bunch of work to make android apps run in chromeOS running in a container that requires the right kernel and special compatibility libs / services running to pretend to be android.
- underscore_ku 5y agoso now we have waydroid and anbox
- xt00 5y agoIt sort of looks like these guys said hey if anbox folks aren’t going to update their android version, let’s fork it and do our own thing? There are some random anbox files in the repo for waydroid.
- chrismorgan 5y agoWaydroid was formerly known as anbox-halium; I believe it was a rewrite of Anbox to use system capabilities more or something, but I’m fuzzy on the details. (As to what it’s now known as, I’m not actually certain: in most places it’s spelled Waydroid, but there are a number of places where it’s spelled WayDroid instead. Waaaaah! I can’t cope!)
- xt00 5y agooh super interesting to know about the anbox-halium history, thanks for that info.
- deknos 5y agowithout snap and other propretiary stuff? then i would take it.
- coolspot 5y agoSnapd is opensource
- blendergeek 5y agoWhile snapd is open source, it's main (sole) purpose is to run (proprietary) software sourced from a propietary store.
- amir-h 5y agoIt will be interesting to see how these kind of solutions compare with emulators for e2e testing of Android apps locally and on CI.
- hereme888 5y agoI'm glad to recently switch to Linux as my primary OS with things like these available. Windows 11's android app integration now doesn't sound as appealing.
- kxyvr 5y agoHas anyone had success getting any of these containers to work with a camera? Recently, my bank discontinued their website based deposit system for checks in favor of their app. I'm reluctant to keep an app with full access to my account on my phone, so a container system like Waydroid or Anbox would be great if I could just emulate the app when I need it. Has anyone else run into this issue and, if so, how have you dealt with it?
- npteljes 5y agoI got by in similar circumstances with Android x86. Which is simply an android VM. The catch is that it's not ARM, which some apps lamented - but the app I needed worked just fine.
- exikyut 5y agoFWIW/out of curiosity, I just tried poking the emulator that comes with Android Studio, and found an option (under "advanced settings") to route the emulated front or back camera to "Webcam0". This is out of the box on Debian. While definitely a heavyweight approach (yay, installing all of Android Studio - but you also install an update tool), I can confirm it works. (And you can fish out and save the qemu invocation from `ps axfww`, then launch it directly without needing to start anything else, although I think the idiomatic approach is using the `emulator` command.)
- zorr 5y agoThe emulator is part of the android SDK so you don't need to install the full IDE if all you need is the emulator. You can just install the Android SDK standalone and use that to install additional images and start/stop devices.
- tathisit 5y agoAndroid is actually pretty secure. If you trust Linux kernel (which I think you do since you trust lxc), then you can trust Android.
- knakk 5y agoI have been trying to get my banking software to work with both Anbox and Waydroid for the last couple of days. So far I've had no success with either. I've gotten other apps to run just fine but not any related to banking. These apps are extremely picky about the environment you run them in. At least the ones I'm working with require Google Play Services, which is proprietary and have to be ripped from an Android image (if you don't want to take a chance on some shady download). Even with Play services, my app still will not start. I'm thinking it could be related to how Anbox and Waydroid shares the kernel with the host OS, and therefor it may not look like valid Android to the apps.
- 29083011397778 5y agoOne of the major advantages of Waydroid that I've found is that it's lighter than Anbox. I know some here have compute to spare, but it makes a big difference on my Pinephone :) It's still early days for Waydroid, but it's also decidedly a step forwards.
- option_greek 5y agoCan you add a bit more on what works and what doesn't work on waydroid compared with regular android and regular lineageos on pine phone.
- amenod 5y agoWait - you can run waydroid, and thus presumably Android apps, on Pinephone? This is huge! How well does it work?
- josteink 5y agoThe PinePhone runs mainline Linux on a regular Arm64 SOC. Why shouldn’t it work? ;)
- edoceo 5y agoBecause you're running an emulator on a damnd phone!! A PHONE! Wild!
- outworlder 5y agoPhones have more processing power than laptops from just a few years ago. People aren't exaggerating when they call them pocket supercomputers.
- LeSaucy 5y agoThe series 7 Apple Watch has a higher resolution display than the original iPhone.
- 5y ago
- shrubble 5y agoIdea: take the open source Beagle Bone Black, which has open source schematics, put into (probably chunkier) phone form factor, add 4g phone modem. Use containers to segregate any apps, e.g. web browser, maps, Signal/Telegram all in a separate container from each other. Would this allow for less privacy-invasion from Google etc.?
- seba_dos1 5y agoBBB requires non-free drivers for the GPU, which are a huge PITA even if you don't mind them being non-free. You would end up with more-or-less a Nokia N9 clone. It's better to use something like i.MX 8M Quad - you may want to take a look at the Librem 5; or if you want something lower-end than that then there's also the PinePhone which is based on A64.
- marcodiego 5y agoi.MX still needs binary blobs. I think the only ARM SBC today that can run blob-free today is Radxa's Rock pi 4.
- CameronNemo 5y agoWhy only that particular rk3399 board? My rock64 runs blob free, as I would imagine most rk3328 boards do. The rk3399 type c port does require a blob, but I guess that is optional and boards without the USB3 type c port do not need it. Other than that the only blob I need for my PBP is for the broadcom WiFi modem. Are there any ac WiFi modems that work without blobs? I have only seen the ath9k chipsets which top out at 802.11n With that said, I worry an rk3399 would run hot in a phone. Hopefully the thermals on the rk3588 are better. But rockchip is dedicating die space to a poorly supported "neural processing unit" now, so we will have to see.
- marcodiego 5y agoThe USB-c port on the rock pi 4 is for power only, no eDP or any blob required for HDMI. The model A has no wifi, so no blob required for that too.
- tgtweak 5y agoWhat's different between this and anbox (other than support, focus, etc)? How good is the 3d support, ie: Does it support a modern version of OpenGL ES? Can it process that via host hardware support (a la angle or similar)? Can it do that headlessly without an window server running on the host? Can the video output of the app be easily captured by nvenc or intel/amd equivalent? Is arm translation supported natively or does it require plugins for the abi translation? Are google's libraries (play services, play store, webview) or alternatives easy to install/supported? Can the app data and system volume be mounted externally? Can the system details (cpuid/flags, device name/mfg/model, android OS specifics) be provided/spoofed? Can sensor inputs (gps location, tilt, multi-touch gestures, battery level, network status, camera/s) be easily simulated or passed from host sensor to the guest app? Can bluetooth be passed through from the host? Would love for somebody to crush this space and not pivot immediately into commercial offering.
- moritonal 5y agoI'm sorry if this is rude, but this comment reads really strangely. You seem to acknowledge that you really want something, whilst also accept you cannot do it for a lack of time|skill and then seem annoyed that the people who do ask for some kind of payment for their work?
- tgtweak 5y agoJust looking for the delta between this and anbox free/anbox cloud/genynotion cloud. No quams about paying for it honestly, just inquiring if any of these formerly paid-only (or build it yourself) features are being offered in the open here.
- ajvs 5y agoFrom what I understand this is aimed only at ARM, so there's no emulation. This is therefore targeting Linux phones, but not Linux on desktop (which is usually run on x86).
- 5y ago
- sodimel 5y agoVery nice project... but why does the third paragraph has a contenteditable tag set to true?
- jcuenod 5y agoLol! How did you notice this?
- electrikjesus 5y agoThanks for filing the issue. Pushed the update after I got out of work ;)
- lanyusea 5y agolooks amazing, wondering if it is possible to run NDK programs? didn't find any related info in docs
- zekrioca 5y agoI do not know why they do not give credits, nor mention that they use LXC behind the scenes [1]. [1] https://github.com/waydroid/waydroid/blob/bullseye/tools/helpers/lxc.py https://github.com/waydroid/waydroid/blob/bullseye/tools/hel...
- gizdan 5y agoWhy do they need to? Sure it'll be nice, but depending on your market, maybe that's an unnecessary implementation detail.
- deleted 5y ago[deleted]
- zekrioca 5y agoThey do mention "Waydroid uses Linux namespaces (user, pid, uts, net, mount, ipc) to run a full…" [see main page] when in fact they simply use LXD, which uses all these features. Besides, it is a project dependency, which is not mentioned anywhere. Edit: clarity.
- jrm4 5y agoI am, of course, not naive enough to think that there's a good chance of it happening -- but I nevertheless strongly feel this way about every large tech company that isn't Microsoft not mentioning that they use Linux.
- deleted 5y ago[deleted]
- jrm4 5y agoName strongly implies it requires Wayland? (which, eww) But the front page doesn't make this too clear, can anyone confirm?
- ZiiS 5y agoYes it requires Wayland.
- yjftsjthsd-h 5y agoFWIW you can just run a Wayland compositor in a window on X. Not sure if there's a way to get it working without the root window to make it seamless, but it's still an option. EDIT: Actually I tried it and this doesn't want to work in an instance of weston running on top of X; not sure where the failure is.
- jrm4 5y agoColor me surprised :) Obviously its no one's job to fix Wayland for me or anything like that, but I've literally never gotten Wayland to work on anything beyond a live distro. Now, of course, I haven't tried very hard because I have no use for it. But yeah.
- skerit 5y agoEww? Do you honestly believe the future of the Linux desktop is anything but Wayland?
- jrm4 5y agoFunny way to ask the question, which lets me know that it's at least still a question :) What I believe doesn't matter of course, and I get that it's probably happening whether I like it or not; but this is the worst rollout of anything I've ever seen in the Linux world, and to me just violates the heck out of at least one of "the whole points" of using Linux. Don't break backward compatibility! (and for me, e.g don't break my x2go)
- the_third_wave 5y ago
- deleted 5y ago[deleted]
- 1hrow_away1 5y agoI wish I could setup waydroid on Raspberry Pi so that I can finally use hotstar/primevideo and netflix on my dumb tv. I had bought firestick in past that is now stuck on boot loop for over a year. I have decided not buy these sticks or smart TV where I have little to no control over Software.
- evv555 5y agoI hope they get this running through Termux now that it supports containers on the latest Lineage OS builds.
- spansoa 5y agoThis could be useful for web development. You could download a bunch of Android browsers and test your site(s) with them, without having to do that on a finicky phone (for those who want to do everything on a desktop PC)
- Jiejeing 5y agoYou know you have been able to do that for ages using the official android emulator, right?
- jeroenhd 5y agoOne thing I've run into with these projects is that they don't work well in a multi user setting. Anbox specifically assumes that only a single user is present in the system and having multiple users with multiple app profiles seems to be entirely unsupported. I can't find anything about that use case in the description here, but if anyone has tried it I'd love to hear if Waydroid would be a fit for my use case.
- nirav72 5y agoInteresting. Might have to see if this can run tasker for automation
- begueradj 5y agoSounds better than -the dead- Anbox
- arendtio 5y agoDoes someone know why Arch Linux doesn't come with the binder and ashmem modules enabled by default? Both are required to run Anbox and Waydroid so you have to switch to another kernel or build one yourself.
- hereme888 5y agoCan anyone post a list of terminal commands to install Waydroid in Ubuntu 21? I'm a total Linux noob who just migrated from Windows. I got as far as: Sudo apt install python3 && curl && lxc I don't know how to word the install for wayland session manager. And copy pasting the.... "export DISTRO="bullseye" && \ curl https://repo.waydro.id/waydroid.gpg https://repo.waydro.id/waydroid.gpg > /usr/share/keyrings/waydroid.gpg && \ echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list && \ sudo apt update" ...told me permission denied to modify some files, even if I did it as "sudo". I think once I get past that point I'll be able to type in the rest of the commands to start running it. I think it would be lots of fun to run Android apps on a FOSS Android module. I was running LineageOS in VMWare within Windows, and it was ok. Thanks!
- marcodiego 5y agoI tested it on bullseye, so I had to change nothing. I think, the thing you have to change is replacing export DISTRO="bullseye" with export DISTRO="focal"
- hereme888 5y agoUnfortunately I'm still getting: "bash: /etc/apt/sources.list.d/waydroid.list: Permission denied"
- marcodiego 5y agoTry "sudo" before the command that failed. I think it will become: "export DISTRO="bullseye" && sudo curl https://repo.waydro.id/waydroid.gpg https://repo.waydro.id/waydroid.gpg > /usr/share/keyrings/waydroid.gpg && sudo echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list && sudo apt update"
- hereme888 5y agoThis is what my terminal shows: sudo curl https://repo.waydro.id/waydroig.gpg https://repo.waydro.id/waydroig.gpg > /usr/share/keyrings/waydroid.gpg && echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list && \ > echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ https://repo.waydro.id/ $DISTRO main" > /etc/apt/sources.list.d/waydroid.list && \ > sudo apt update bash: /usr/share/keyrings/waydroid.gpg: Permission denied
- marcodiego 5y agoJust installed it. First impressions: * The good - It is very responsive and smooth - Install just following instructions described - F-droid works - Apps installed from F-droid works - Full screen videos from Newpipe play smoothly * The bad - Had to enable "invert colors" to get correct colors - Mouse scroll is inverted - Can't choose correct layout of physical keyboard because android thinks there's no physical keyboard connected - Android gestures on the desktop are annoying - Can't access whole screen of vertical apps and they appear sideways on my screen - Multiwindow mode didn't work at first * The ugly: - Nothing is actually ugly. Everything mostly works as expected
- marcodiego 5y agoAnd this one is - Sent from my waydroid
- electrikjesus 5y agoLove it
- the_third_wave 5y agoOne thing to add to The bad/The ugly: - requires Wayland - does not seem to work with X11 This makes it a no-go for many a potential user.
- dolmen 5y agoThanks. That explains the "Way" prefix for the project name, I suppose.
- syntaxing 5y agoWhoa this is awesome, curious if I can run a WhatsApp matrix bridge with this
- CatsEyes 5y agoDoes the Live Captioning feature work in Waydroid?
- julienfr112 5y agoIs there a way it will run on a mac M1 ?
- DreamFlasher 5y agoIs it running on any cloud (aws, gcp, azure)?