Anyone Successfully Run WayDroid on Librem 5?

Almost. I’m a bit behind the schedule there :wink: libglibutil is already in PureOS; libgbinder is tagged but seems it got stuck somewhere in the pipeline - I’ll give it a push right now. Once it gets there, it will be time for gbinder-python, at which point installing waydroid will be just a matter of downloading a .deb from CI. Afterwards we can even think about uploading waydroid itself into the repos.

9 Likes

Just a little bit curious, maybe someone has more in depth knowledge about that:

Is it correct that the Waydroid approach was just prioritized over Anbox because it worked better for now?

I mean that Waydroid ships a whole Android and starts that before opening any app whereas Anbox works with containerization (which should consume much less resources, save battery, etc.)

Doesn’t drain Waydroid much more battery? Is Anbox still some option for the future or is there no plan to use that someday?

I think those with more in depth knowledge can be found here: https://source.puri.sm/Librem5/linux/-/issues/427

1 Like

Anbox and Waydroid work in essentially the same way. Where they differ is how they get the graphics out onto the screen - Anbox uses APIs used by Android’s virtual machine (goldfish), while Waydroid implements a Wayland client inside the Android image. Both run an LXC container with a full Android system (Anbox’s default images seem to be quite stripped out compared to Waydroid’s ones though).

10 Likes

Ah, thanks for this info. I was under the impression, Anbox works “like WINE”. Are there any experiences how Waydroid influences the battery runtime?

Can the user spoof some input towards the Waydroid? For example, fake phone number, fake IMSI, fake GEO location?

Are cases of escaping the Waydroid container known?

1 Like

With enough effort and some patches, all of that should be possible :stuck_out_tongue: I’m not aware of ready solutions though.

I’m pretty sure someone will find one once they start seriously looking, so don’t rely on it as a security boundary - it isn’t one.

3 Likes

You are breaking my heart. The Waydroid idea certainly sounds like a security boundary even if not bulletproof.

Hi All, anyone got google play store working ?

I use Aurora which I got working straight from fdroid

I have xclip… still no clipbpard

A big shout of thanks to everyone on this thread. thanks to @weirdnerd for starting it, and especially @dos for the backend work and instructions.

the instructions worked great for me. I"ve got waydroid installed and running. I’m impressed by the performance, very responsive. In particular, @dos thanks for the tips on freezing and resuming! that really makes it easy to manage the power consumption!

I’m testing use of waydroid for email clients like protonmail and tutanota, as well as signal. At this point, I got them all running and their responsiveness is nice. I’ll have to see how notifications work. With signal, it won’t be for audio/video calls obviously since there is no access to those devices. But, my family uses signal, so chatting is helpful. I was able to do a backup/restore, from my android phone and that worked well.

@dos, one question about file exchange. Is there an easy and secure way to share a file between L5 and waydroid? I saw what you mentioned for installing privileged apps with /var/lib/waydroid/overlay but, can that work for file exchange? can I access that location from within waydroid? I’m asking because if I get an email attachment using a protonmail app, in WD, I’d like to use the L5 tools to work with the file. and vice versa. To get my Signal backup file into WD, I had to put the file in a cloud location, then access it from the browser. wondering if there is an easier way to do this?

2 Likes

Install and use syncthing for that

Overlays are meant for modifying system images. While they can be used for data sharing, it’s a massive overkill :wink:

Use adb connect as described in the guide and simply move files around via adb like you would with a regular Android phone with adb push / adb pull. You can also access the data partition directly in ~/.local/share/waydroid/data/, but you’ll have to be careful about file permissions there.

1 Like

Thanks @dos. that makes sense. I haven’t used adb push/pull before. So, it will be good to learn that.

@Lionel, I tried syncthing on the L5, but couldn’t get that to work.

guys anyway to show waydroid apps on posh drawer ? waydroid boots up each time i close and open it.

1 Like

Hi All, today there were new images (system and vendor) available and i updated then unfortunately. waydroid stopped working had to delete the images and redownload images it gave some glitches
(resolution changed and spacebar was missing from android keyboard) was fixed after reboot.

@dos s there a way to update the android images ?

I’m running Librem 5 with postmarketOS and Waydroid. The best of both worlds!

1 Like

hi @freeguru how did you get waydroid to work? i tried it and eachtime the phone becomes unresponsive. had to remove the battery to reboot the phone.

First of all, I switched from PureOS to postmarketOS (phosh). PureOS regularly crashed (bootloop) and with postmarketOS I have no problems with that. For me, pmOS is therefore more stable than PureOS. By the way, I put pmOS on the Librem 5 using pmbootstrap (1). The pmOS website contains a description of how you can install Waydroid (using the terminal) (2).

(1) https://wiki.postmarketos.org/wiki/Purism_Librem5_(purism-librem5)#With_pmbootstrap_.28Advanced.29
(2) https://wiki.postmarketos.org/wiki/Waydroid

1 Like