Unable to access clipboard on S7 device.

0

We are unable to access the clipboard when running auto on an Android S7 device and get the following message in logcat: "ClipboardService: Denying clipboard access to io.appium.uiautomator2.server, application is not in focus nor is it a system service for user 0"

However, we are able to access the clipboard on the following AWS devices:
S4 (Android 8.1)
S6 (Android 9)

and the following local devices not on AWS:
S5e tablet (Android 11)
S9 (Android 10)
Android 11 emulator image

This issue seems to be specific to AWS's S7 device. Below is an excerpt from logcat.

10-06 16:31:07.958 8131 8412 I appium : channel read: POST /wd/hub/session/8e1fdceb-781a-4d2c-bcd8-8cc9edff0fef/appium/device/get_clipboard
10-06 16:31:07.958 8131 8412 I appium : Get Clipboard command
10-06 16:31:07.962 1136 2189 E ClipboardService: Denying clipboard access to io.appium.uiautomator2.server, application is not in focus nor is it a system service for user 0
10-06 16:31:07.963 8131 8412 I appium : AppiumResponse: {"sessionId":"8e1fdceb-781a-4d2c-bcd8-8cc9edff0fef","value":""}

질문됨 3년 전433회 조회
2개 답변
0

Hello,

Please provide the run URLs for both scenarios:

  1. You were able to access the clipboard

  2. You were not able to access the clipboard

Edited by: JunHao-aws on Nov 18, 2021 3:03 PM

AWS
답변함 2년 전
0

This was resolved after updating the Appium version to 1.18 and Node.js to LTS.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠