1. Create a VM and install faivorite linux on it (Optional). Debian in my case
  2. Install Wayland based desktop enviroment (KDE/Gnome). Full DE is not really nessary as Waydroid need is Wayland compositor.
  3. Install Waydroid. On time of writing Dec 2023 steps are:
    1. sudo apt install curl ca-certificates -y
    2. curl https://repo.waydro.id | sudo bash Do not do it outside throughaway VM.. If you need to download script and than check content and unsestand what is it doing. All it really do it is adding new repo to the system.
    3. sudo apt install waydroid -y
  4. Install Android with Goole Services sudo waydroid init -s GAPPS
  5. Start Waydroid waydroid
  6. Certify you install for Google Play Protect”. You need it to use PlayStore
    1. Run sudo waydroid shell
    2. Inside the shell run
      ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"
      
    3. Use the string of numbers printed by the command to register the device on your Google Account at ​(https://www.google.com/android/uncertified)[https://www.google.com/android/uncertified]
  7. Fake enviroment to allow Intune checks to pass as described in Github issue #1060
    1. Edit /var/lib/waydroid/waydroid.cfg and add following to [properties]
      # fix root liapp
      ro.product.brand=google
      ro.product.manufacturer=Google
      ro.system.build.product=redfin
      ro.product.name=redfin
      ro.product.device=redfin
      ro.product.model=Pixel 5
      ro.system.build.flavor=redfin-user
      ro.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
      ro.system.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
      ro.bootimage.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
      ro.build.display.id=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
      ro.build.tags=release-keys
      ro.build.description=redfin-user 11 RQ3A.211001.001 eng.electr.20230318.111310 release-keys
      ro.vendor.build.fingerprint=google/redfin/redfin:11/RQ3A.211001.001/eng.electr.20230318.111310:user/release-keys
      ro.vendor.build.id=RQ3A.211001.001
      ro.vendor.build.tags=release-keys
      ro.vendor.build.type=user
      ro.odm.build.tags=release-keys
      
    2. regenerate /var/lib/waydroid/waydroid_base.prop waydroid upgrade --offline
  8. Start waydroid, launch PlayStore, login to your Gmail account (probaly create new one to stop Intune stealing all data from you real one), install M$ Teams. Intune checks should pass succesfully.

Updated: