Does your Waydroid app ask for WiFi? Use this trick in command form.

Waydroid with WiFi

I've recently started trying waydroid on my system. The truth is, I hardly need it (if at all), but I want the option. I've already used it on Bazzite, but I wanted it on Manjaro. It's one of the applications I miss, even though it exists. CiderIt's an official Apple Music that allows me to listen to music offline or the radio service, shortcomings of the Electron-based app.

For an app like Apple Music to work, you first have to "unroot" Waydroid, which is basically Add a few lines to a configuration file to prevent the system from thinking it is rooted.With this, you can listen to music, but the radio doesn't work and many images don't download, so the experience isn't the best. Apple Music says you have to turn off airplane mode, and it does this because it can't connect to a Wi-Fi network.

Giving Waydroid apps access to WiFi

Granting a Waydroid app WiFi access is easy. It can be done with three commands:

  1. First, we ask it to show us a list of installed applications:
WayDroid app list
  1. We note down or copy the package name of the app we want to use with WiFi and type this other command:
waydroid prop set persist.waydroid.fake_wifi "com.package.name"
  1. Finally, we restart the service with these two commands
waydroid session stop waydroid session start

And that's it. What we've done is trick a specific application with fake_wifi into believing that the connection exists. In the specific case of Apple Music, everything works perfectly. Live radio can be used, and images appear on all album covers and various playlists. Other applications may experience different problems, but the Wi-Fi issue shouldn't be one of them again.