Getting Waydroid to work on the Pinephone Pro
Went to a lot of trouble to get Waydroid running on the Pinephone Pro. Seems to be running pretty smooth now (as smooth as it will run without hardware acceleration anyways).

Waydroid is technically not supported yet on the Pro. Hardware acceleration is broken, so you have to disable it due to a Mesa / Android conflict. I am on Mobian Bookworm, so this post outlines what I did to get it working on Mobian Bookworm specifically. Your instructions might vary slightly on different distros or builds of Mobian.

Note: You will be editing your U-boot config file here if you are on Mobian. Doing this wrong can make your device not boot correctly. I’m not responsible for bricked devices if you break your config. The Mobian resource below has all of these instructions save for the hardware acceleration disabling. I’d recommend using the listed instructions over mine. The only thing in this post not included in either of these links is the hardware acceleration disabling.

Refer to these instructions:

Mobian specific, I used the desktop install method and not source compiling:

Use the Ubuntu/Debian desktop specific instructions here:

After you install the Waydroid package via the instructions, do not use
sudo waydroid init

until you have done the Mobain specific instructions on the mobian page. This will cause Waydroid to not work for some reason. I got gbinder errors doing this, but your milage may very.

Mobain Specific Install Instructions

Add this to the bottom of “/etc/gbinder.conf” [NOTE: My file was named anbox.conf and it still worked]

ApiLevel = 29

This is Mobian specific. I do not believe you need this on other distros. Refer to the Mobian wiki page linked above for this step. 
Add this line to U_BOOT_PARAMETERS in “/etc/default/u-boot”:
after vt.global_cursor_default=0

Be very careful here. If you add this config wrong you might break u-boot. Please use the listed Mobain wiki resource here and ensure you add this correctly. I’m not responsible for bricked devices if this goes wrong. I triple checked my config versus the listed code on the Mobian wiki before running the next command.

After you are sure your config is written properly, run
sudo u-boot-update
and reboot the phone.
Almost done now. You need to disable hardware acceleration as of this post to make Waydroid work on the PPP.

Make the following changes in “/var/lib/waydroid/waydroid_base.prop”:

Change the value of ro.hardware.gralloc to "default" as shown:


Change the value of ro.hardware.egl to "swiftshader" as shown:


Save and exit the file.

This is it, now run:

systemctl enable waydroid-container.service

Now you can run
sudo waydroid init

At this point it will install the LineageOS image and other dependencies. After this is compete, if you did everything correctly, you should be able to run
waydroid session start
in the terminal and get Waydroid to work. The Mobain guide says starting via the Phosh app drawer will start the session. You can try it this way, but it takes around 20 seconds to get anything more than a blank screen. Seems spotty and slow to me, so if it doesn’t do it consistently I will add a comment to this post with a bash script to auto start the session on boot.

You can now launch the Waydroid app via the Phosh app drawer, and you are done!

Hope this helped you. Please refer to the documentation above for 99% of the instructions. Only thing I added to them was the hardware acceleration disabling.

Messages In This Thread
Getting Waydroid to work on the Pinephone Pro - by Dragonborn - 03-03-2022, 10:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone pro. zetabeta 16 3,290 04-28-2024, 01:52 AM
Last Post: diederik
  Tow-Boot, a new U-Boot option for Pinephone Pro and other devices Ulfnic 60 49,242 02-13-2024, 02:54 PM
Last Post: fxc
  A Btrfs Image for Arch SXMO on the Pinephone Pro mburns 2 1,066 11-23-2023, 08:44 AM
Last Post: mburns
  Rhino Linux does not seem ready for the PinePhone Pro. mburns 2 1,173 11-23-2023, 08:39 AM
Last Post: mburns
  Megapixels on Mobian Bookworm on PinePhone Pro - Not Launching X0X0X0X0X0 1 863 11-07-2023, 09:44 AM
Last Post: mburns
  Seeking Contributors: Apache NuttX Real-Time Operating System for PinePhone Pro lupyuen 2 1,952 09-14-2023, 07:23 PM
Last Post: lupyuen
  What to do if your PinePhone Pro does not boot fxc 19 21,320 09-10-2023, 03:19 AM
Last Post: fxc
  Waydroid No Network Hell pinemegood 4 2,817 07-15-2023, 08:16 PM
Last Post: SpoofyKid
  My Waydroid Manager call for testers / assistance MadameMalady 0 759 07-15-2023, 02:16 PM
Last Post: MadameMalady
  Pinephone(pro) modem bug / shortcomings MadameMalady 2 2,651 06-19-2023, 03:40 PM
Last Post: MadameMalady

Forum Jump:

Users browsing this thread: 1 Guest(s)