Waydroid template

The changes outside of /rw (/home/user and /usr/local) are not persistent in the AppVM. If you need to install something system-wide then do this in template.

Or you can use bind-dirs:

ƃ waydroid-firewall.service
Loaded: loaded (/etc/systemd/system/waydroid-firewall.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-03-18 10:24:45 CET; 46s ago
Process: 476 ExecStart=/usr/sbin/iptables -I INPUT -i waydroid0 -p tcp -m multiport --dports 53,67 -j ACCEPT (code=exited, status=0/SUCCESS)
Process: 551 ExecStart=/usr/sbin/iptables -I INPUT -i waydroid0 -p udp -m multiport --dports 53,67 -j ACCEPT (code=exited, status=0/SUCCESS)
Process: 552 ExecStart=/usr/sbin/iptables -I FORWARD 2 -o eth0 -i waydroid0 -j ACCEPT (code=exited, status=1/FAILURE)
Main PID: 552 (code=exited, status=1/FAILURE)
CPU: 16ms

Mar 18 10:24:44 android systemd[1]: Starting waydroid-firewall.service…
Mar 18 10:24:45 android iptables[552]: iptables: Index of insertion too big.
Mar 18 10:24:45 android systemd[1]: waydroid-firewall.service: Main process exited, code=exited, status=1/FAILURE
Mar 18 10:24:45 android systemd[1]: waydroid-firewall.service: Failed with result ā€˜exit-code’.
Mar 18 10:24:45 android systemd[1]: Failed to start waydroid-firewall.service.
Mar 18 10:25:32 android systemd[1]: /etc/systemd/system/waydroid-firewall.service:1: Unknown section ā€˜UNIT’. Ignoring.
~

Did you change the default Qubes OS iptables rules?
What’s the output of this command?

iptables -nvL

Seems like the iptables FORWARD chain is empty:

 Process: 552 ExecStart=/usr/sbin/iptables -I FORWARD 2 -o eth0 -i waydroid0 -j ACCEPT (code=exited, status=1/FAILURE)
 Mar 18 10:24:45 android iptables[552]: iptables: Index of insertion too big.

Can anyone tell me why I have to set up the firewall and if this effects any other qubes. Because today I have seen that there are other network issues which may be caused by the waydroid experiments

That’s because it’s required for waydroid to work:

No, it shouldn’t have any effect on other qubes.

I did this the other day, 0 issues when following App’s instructions.
It works almost flawlessly.
Only issue is with GAPPS not working, but that’s to do with the image and such, not these instructions.

There is a separate image that has GAPPS:

Or are GAPPS not working in the GAPPS Waydroid image?
I’ve tested the GAPPS Waydroid image some time ago and GAPPS worked there.

I have 2 virtuals, one that uses GAPPS, and one that is VANILLA.

I really needed the GAPPS one to work as I was relying on that to get some things done.

The older versions may work, but the latest one isn’t.
On Q4.1 at the moment I can’t even get Android to install properly, vanilla or not, it just won’t boot afterwards. That’s why I was trying WayDroid since I found your guide which works absolutely perfectly.

The issue with the GAPPS WayDroid version is the fact that you can’t use Google Play Store, Google Applications, Google Services, and can’t log in to Google with an Account either.
It keeps saying that the hardware won’t support the Play Protect and stuff. And that just causes everything every few seconds after installation to just go crazy to the point where I can’t even use it.

I still have my Android 2, 4.1, 8 & 9 that work though. But I want Lineage.
Not even BlissOS will install correctly and then boot. Every time it just says there is no boot device.

Using your methodology, I could probably insert Bliss or similar instead of their image, that wouldn’t be hard now I have it all installed properly.

If you have any thoughts, would love to discuss things about it. If it’s WayDroid, here, if not, then maybe in DM.

You have to self certify the Waydroid:

Related issue:

So this is an issue with Waydroid?

Never had to register a device that was running LineageOS before…

Guess this is just an issue with WayDroid…

I don’t know how Play Protect works, maybe it’s checking the hardware device fingerprint or/and the ROM to be supported.

I have used LineageOS on identical hardware, same PC, same version of Qubes, everything… With GApps and all. Never had the issue, never had to register my hardware with a marketing company.

I don’t know how it works so I can only assume that LinageOS is certifying their ROM builds with Google but the Waydroid is not. The Waydroid is based on LineageOS with some patches but it’s not using the LineageOS ROM builds and build the images by themself and don’t certify them with Google.

Waydroid uses LineageOS. Their ROMs are LineageOS.
There is nothing to certify…

They have not registered my hardware with google… Nor has Waydroids copy. So there should be no issue… as I say… SHOULD…

So I don’t get it…

But since this is just running Android under a virtual, it would be easier for me to just run Lineage under XEN instead of XEN and a virtual.

If they fix their build then it may be worth coming back for a look.

Well, got LineageOS running and no issue.So there must be something in WayDroid that has an issue with identical hardware to what I’m using for LineageOS. Meaning that there should really be no issue… Or is it the fact that it’s running under Sway?

It’s better to ask this from Waydroid devs in their matrix/telegram channel or in the linked github issue.
I don’t think the Sway is the problem here.

I’ll run some tests. I’ll load the same image into sway and see what happens. Just have to wait for a new drive to arrive. Need an m.2 as I’m currently running dual SATA, but I need more speed as everything running so damn slow since the update issue with qubes that has not been resolved. So I have to install 4.1 again.

Hoping by the end of the week to check all of the details and will post the results here.

I’ve updated the guide with this info:

Add Waydroid App menu shortcut to the newly created qubes by default

To add the Waydroid App menu shortcut to the newly created qubes you need to set default-menu-items feature for Waydroid template.
Open dom0 terminal and run this command to set the default App menu items for qubes based on this template:

qvm-features d12m-waydroid default-menu-items "Waydroid-Sway.desktop debian-xterm.desktop"

Hey, I’m running Qubes r4.2.1 I successfully got everything up and running. However, Waydroid does not have internet. I verified that I ran the commands for 4.2.1 and that the changes took. The Qube itself has internet and completed a ping to google.com.

What’s the output of this command in Waydroid qube (run as root)?

nft list ruleset

How did you check that you don’t have internet there?