termux-clipboard-get is null
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
Is the latest android, app can not get the clipboard content after the app running in bakcend.
Steps to reproduce
- Run the following script.
termux-clipboard-set "\$"
while true; do
sleep 3
content=`termux-clipboard-get`
echo "The clipboard content is: $content"
if [ "${content:0:1}" != "\$" ]; then
termux-clipboard-set "\$ $(date)"
fi
done
- Let termux running in backend.
- The results including content like this "The clipboard content is : "
Expected behavior
Some ways to read the clipboard content while termux running in backend.
Additional information
- termux-api application version: latest
- termux-api package version (installed through apt): latest
- Android OS version: android 14,
- Device model: realme gt6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the reported termux-clipboard-set and termux-clipboard-get loop while Termux is in the background on Android 14. Investigate the termux-clipboard-get entry point and Android background clipboard behavior; done means the command returns the current clipboard content in that scenario, or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100