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年前434ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ