It is possible to install the required components for Waydroid clipboard access in Ubuntu Touch, and access them from outside Waydroid. Still remains to be discovered how to transfer those to the system clipboard.
- Install pyclip
- Install pip
-
Set up a writable /usr/local
- As root, copy /usr/local to /home/.usr-local
# cp -r /usr/local /home/.usr-local
- Create
/etc/systemd/system/usr-local.mount
with the following contents:[Unit] Before=basic.target [Mount] What=/home/.usr-local Where=/usr/local Options=bind [Install] WantedBy=basic.target
- Reload systemd units with
systemctl daemon-reload
- Enable the mount with
systemctl enable --now usr-local.mount
- As root, copy /usr/local to /home/.usr-local
-
Install pip
# wget https://bootstrap.pypa.io/get-pip.py # python3 get-pip.py --break-system-packages
-
- Install pyclip
# pip install pyclip --break-system-packages
- Install pip
- Install wl-clipboard
- Install the nix package manager
- Ubuntu Touch lacks "xz", so we will download and decompress the nix tarball on another computer:
$ wget https://releases.nixos.org/nix/nix-2.31.2/nix-2.31.2-aarch64-linux.tar.xz $ xz -d nix-2.31.2-aarch64-linux.tar.xz $ adb push nix-2.31.2-aarch64-linux.tar /home/phablet/
- Install nix on the phone:
$ mkdir -p /tmp/nix-binary-tarball-unpack/unpack $ tar -xf /home/phablet/nix-2.31.2-aarch64-linux.tar -C /tmp/nix-binary-tarball-unpack/unpack $ /tmp/nix-binary-tarball-unpack/unpack/nix-2.31.2-aarch64-linux/install $ rm -r /tmp/nix-binary-tarball-unpack
- Ubuntu Touch lacks "xz", so we will download and decompress the nix tarball on another computer:
- Install wl-clipboard
$ nix-env -iA nixpkgs.wl-clipboard
- Install the nix package manager
- Reboot your phone (just in case)
- Test copying from Waydroid
- Copy something in Waydroid
- Open the terminal app
- Run
wl-paste
to retrieve the contents
- Test pasting to Waydroid
- Open the terminal app
- Run
echo hi | wl-copy
- Paste in Waydroid