这是indexloc提供的服务,不要输入任何密码
Skip to content

termux-clipboard-get is null #748

@xcccdjsn

Description

@xcccdjsn

Problem description

Is the latest android, app can not get the clipboard content after the app running in bakcend.

Steps to reproduce

  1. 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
  1. Let termux running in backend.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions