Live data from Hacker News

Waydroid – Run Android containers on Ubuntu

waydro.id

41–50 of 214 posts

Re: Waydroid – Run Android containers on Ubuntu

#41
post #34
post #22

Earlier quoted context omitted.

> 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?

Mainly 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 aime…

Makes sense, thanks.

Re: Waydroid – Run Android containers on Ubuntu

#42
post #38

Earlier quoted context omitted.

Wait - you can run waydroid, and thus presumably Android apps, on Pinephone? This is huge! How well does it work?

The PinePhone runs mainline Linux on a regular Arm64 SOC. Why shouldn’t it work? ;)

Because you're running an emulator on a damnd phone!! A PHONE! Wild!

Re: Waydroid – Run Android containers on Ubuntu

#43
post #35

Earlier quoted context omitted.

Waydroid 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.

If 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.

Aren't x86 chromebooks real devices?

Re: Waydroid – Run Android containers on Ubuntu

#44
post #42

Earlier quoted context omitted.

The PinePhone runs mainline Linux on a regular Arm64 SOC. Why shouldn’t it work? ;)

Because you're running an emulator on a damnd phone!! A PHONE! Wild!

Phones have more processing power than laptops from just a few years ago. People aren't exaggerating when they call them pocket supercomputers.

Re: Waydroid – Run Android containers on Ubuntu

#45
post #42

Earlier quoted context omitted.

The PinePhone runs mainline Linux on a regular Arm64 SOC. Why shouldn’t it work? ;)

Because you're running an emulator on a damnd phone!! A PHONE! Wild!

Well it is a container rather than an emulator. Maybe some parts are emulated, like opengl, but I believe waydroid is a lot "closer to the metal" than anbox is.

Re: Waydroid – Run Android containers on Ubuntu

#46
post #38

One 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.

Wait - you can run waydroid, and thus presumably Android apps, on Pinephone? This is huge! How well does it work?

I've asked about anbox (not having heard of waydroid before now) on Pinephone threads before, consensus seemed to be even without bugs it's too slow on Pinephone hardware. (And indeed I've found it too buggy to be useful on my desktop anyway.)

So certainly lighter sounds good, and hopefully the future's bright - could be very useful in bridging the gap driving more Linux phone adoption. Some things just can't and won't be available (without way more adoption), like bank apps say, so being able to run the Android version smoothly would be a huge win.

Re: Waydroid – Run Android containers on Ubuntu

#47

Followed 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?

In 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.

Re: Waydroid – Run Android containers on Ubuntu

#48
post #33

Name strongly implies it requires Wayland? (which, eww) But the front page doesn't make this too clear, can anyone confirm?

FWIW 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.

Re: Waydroid – Run Android containers on Ubuntu

#49

I 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/hel...

Why do they need to? Sure it'll be nice, but depending on your market, maybe that's an unnecessary implementation detail.

Re: Waydroid – Run Android containers on Ubuntu

#50

Doubts: - 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?

What 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.

Post reply on HN