Waydroid: Difference between revisions
→Camera forwarding: Add fix for AMD GPUs |
→V4L2 camera forwarding: Simplify setup instructions |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 12: | Line 12: | ||
{ | { | ||
virtualisation.waydroid.enable = true; | virtualisation.waydroid.enable = true; | ||
# Newer kernel versions may need | |||
virtualisation.waydroid.package = pkgs.waydroid-nftables; | |||
# Enable clipboard sharing | # Enable clipboard sharing | ||
environment.systemPackages = [ pkgs.wl-clipboard ]; | environment.systemPackages = [ pkgs.wl-clipboard ]; | ||
| Line 117: | Line 120: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== | === V4L2 camera forwarding === | ||
Camera forwarding using V4L2 is broken on upstream, but can be achieved by using the Waydroid images of the [https://github.com/WayDroid-ATV Waydroid-ATV project]. You might [[Waydroid#Resetting Android Container|need to reset]] your existing Waydroid environment. Then stop the container and fetch the latest Waydroid-ATV images.<syntaxhighlight lang="bash"> | |||
systemctl stop waydroid-container | systemctl stop waydroid-container | ||
waydroid init -f \ | waydroid init -f \ | ||
| Line 155: | Line 137: | ||
waydroid shell -- pm disable-user --user 0 com.google.android.gms.setup | waydroid shell -- pm disable-user --user 0 com.google.android.gms.setup | ||
</syntaxhighlight>In case the camera access will crash the Waydroid container, there's a recent image which solves this on AMD GPUs. Download it and extract the contents to <code>/etc/waydroid-extra/images</code>. After that recreate the environment as mentioned above but only issue <code>waydroid init -f</code>. | </syntaxhighlight>In case the camera access will crash the Waydroid container, there's a recent image which solves this on AMD GPUs. Download it and extract the contents to <code>/etc/waydroid-extra/images</code>. After that recreate the environment as mentioned above but only issue <code>waydroid init -f</code>. | ||
=== Running applications that differ from the current host architecture via libhoudini or libndk<ref>Need help with activating libhoudini for waydroid on NixOS | === Running applications that differ from the current host architecture via libhoudini or libndk<ref>Need help with activating libhoudini for waydroid on NixOS | ||