Waydroid: Difference between revisions
Add section for GPS/location sharing |
→GPS/Location forwarding: Connect via ADB |
||
Line 102: | Line 102: | ||
=== GPS/Location forwarding === | === GPS/Location forwarding === | ||
First enable ''geoclue2'' daemon on the host<syntaxhighlight lang="nix"> | First enable ''geoclue2'' and ''adb'' daemon on the host<syntaxhighlight lang="nix"> | ||
services.geoclue2.enable = true; | services.geoclue2.enable = true; | ||
programs.adb.enable = true; | |||
</syntaxhighlight>Enable location provider in your desktop environment. For Gnome Shell you can do this<syntaxhighlight lang="bash"> | </syntaxhighlight>Enable location provider in your desktop environment. For Gnome Shell you can do this<syntaxhighlight lang="bash"> | ||
gsettings set org.gnome.system.location enabled true | gsettings set org.gnome.system.location enabled true | ||
</syntaxhighlight>To test and see location<syntaxhighlight lang="bash"> | </syntaxhighlight>To test and see location<syntaxhighlight lang="bash"> | ||
nix shell nixpkgs#geoclue2 -c $(nix eval --raw nixpkgs#geoclue2)/libexec/geoclue-2.0/demos/where-am-i | nix shell nixpkgs#geoclue2 -c $(nix eval --raw nixpkgs#geoclue2)/libexec/geoclue-2.0/demos/where-am-i | ||
</syntaxhighlight>Get IP address of the Waydroid guest and connect ''adb'' to it<syntaxhighlight lang="bash"> | |||
waydroid shell ip addr show | |||
adb connect <IP>:5555 | |||
</syntaxhighlight> | </syntaxhighlight> | ||