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":""}

asked 2 years ago414 views
2 Answers
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
answered 2 years ago
0

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

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions