This has to be done with the help of an "invisible" server only window.
X11 to Android:
The X selection identified by the "CLIPBOARD" atom has then to be transferred to a property on this "invisible" window.
Android to X11:
The selection identified by the "CLIPBOARD" atom has to hold the data and needs to be owned by the "invisible" window. A client can then request the content via ConvertSelection.
This has to be done with the help of an "invisible" server only window.
X11 to Android:
The X selection identified by the "CLIPBOARD" atom has then to be transferred to a property on this "invisible" window.
Android to X11:
The selection identified by the "CLIPBOARD" atom has to hold the data and needs to be owned by the "invisible" window. A client can then request the content via ConvertSelection.