Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Get clipboard content via ADB if necessary on Android 10 #348

Merged
merged 4 commits into from
Nov 18, 2019

Conversation

mykola-mokhnach
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach commented Nov 16, 2019

This is the part of appium/appium#13466 implementation

@@ -11,6 +11,12 @@ commands.getPageSource = async function () {
return await this.uiautomator2.jwproxy.command('/source', 'GET', {});
};

commands.getClipboard = async function () {
return (await this.adb.getApiLevel() < 29)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed https://github.com/appium/appium-adb/pull/473/files#r347388767 was needed since the setting app already returned data as base64 encoded string.

After the change, this logic worked on android 10 👍

@mykola-mokhnach mykola-mokhnach merged commit 4f0b90c into appium:master Nov 18, 2019
@mykola-mokhnach mykola-mokhnach deleted the a10_clip branch November 18, 2019 14:31
@KazuCocoa KazuCocoa mentioned this pull request Dec 7, 2019
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants