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

gefragt vor 3 Jahren432 Aufrufe
2 Antworten
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
beantwortet vor 2 Jahren
0

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

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen