(Almost) fixing clipboard access
-
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.mountwith 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-pasteto retrieve the contents
- Test pasting to Waydroid
- Open the terminal app
- Run
echo hi | wl-copy - Paste in Waydroid
- Install pyclip
-
Someone actually has a weird discovery. You can copy paste between Waydroid and Mimi browser. You can't even do it anymore inside Waydroid since A13

No one knows yet why that is the case.
It won't help with accessing clipboard from and to Waydroid though since Mimi browser also can't access system clipboard but perhaps something to look at
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login