My app sets the Android clipboard using SET_CLIPBOARD and then immediately verifies the result through GET_CLIPBOARD.
It works well on my Android 9 device (an old Sony Xperia). It always fails on Google Pixel 4a with the latest Android 11. The SET_CLIPBOARD operation succeeds. I can verify it on the phone. When I send a subsequent GET_CLIPBOARD request the STF service returns an empty text.
In fact I have never succeeded to get any clipboard content from STF on this device. Even if I copy a text on the device screen manually the GET_CLIPBOARD fails to return it.
My app sets the Android clipboard using SET_CLIPBOARD and then immediately verifies the result through GET_CLIPBOARD.
It works well on my Android 9 device (an old Sony Xperia). It always fails on Google Pixel 4a with the latest Android 11. The SET_CLIPBOARD operation succeeds. I can verify it on the phone. When I send a subsequent GET_CLIPBOARD request the STF service returns an empty text.
In fact I have never succeeded to get any clipboard content from STF on this device. Even if I copy a text on the device screen manually the GET_CLIPBOARD fails to return it.