Waydroid setup on fedora (with google services)

Want to use an android app on your computer? Waydroid has you covered I have also had a look in anbox in the past but it seemed to be a lot of trouble to setup and sort of unstable to use(at leas on machine). Installing wydroid is straight forward while using it seems flowless to me. I have managed to get it working on my thinkpad x260 I would like to get it working on my thinkpad t14 gen3 as well but that’s nothing to blame waydroid for since my t14 has general display issues.

Installation Steps

Here are the steps I followed to set it up :

  1. Make sure you’re using kernel version 5.15 or higher

  2. Add the Copr repository:
    sudo dnf copr enable aleasto/waydroid

  3. Update sepolicy if using fedora35 (I didn’t need to run this step)
    sudo dnf update

  4. Install waydroid
    sudo dnf install waydroid

  5. Initialize waydroid. To include google services flag don’t forget the gapps flag wen initializing waydroid:

    1
    sudo waydroid init -c https://ota.waydro.id/system -v https://ota.waydro.id/vendor -s GAPPS

Google services registration

  1. Register the output of the following command at
    https://www.google.com/android/uncertified/ :
    1
    echo 'ANDROID_RUNTIME_ROOT=/apex/com.android.runtime sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"'| sudo waydroid shell
  1. To mitigate changing registration number add a cron job:
    1
    2
    sudo su 
    crontab -e
    add the following line:
    1
    */5 * * * *       echo 'ANDROID_RUNTIME_ROOT=/apex/com.android.runtime sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "update main set value=\"<DEVICE_ID>\" where name = \"android_id\";"'| /usr/bin/waydroid shell
    replace <DEVICE_ID> with the device id you have registered in previous step.

Use

You may now start waydroid using the desktop menu entry. It will take some time for your device to register so if you receive any google service errors reporting your device as unregistered try again later.

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2012-2023 Andreas Galazis

请我喝杯咖啡吧~