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: add screenState=SCREEN_STATE_OFF as the screen locked #791

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

KazuCocoa
Copy link
Member

To support appium/appium-uiautomator2-driver#859 case.

I confirmed that the current method to detect the lock screen didn't work in the issue's use case. Actually, when the device screen was off while screen recording was working, the existing one didn't match as "locked."

screenState=SCREEN_STATE_OFF could help in this case.

This doesn't change current behavior when no screen recording is working, so this could be "fix" I think but this adds a new flag to detect the state so I made this as a "feat."

mCurrentUserId=0
...
`;
(await isScreenStateOff(dumpsys)).should.be.false;
Copy link
Contributor

Choose a reason for hiding this comment

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

this method should not be awaited

@KazuCocoa KazuCocoa merged commit 6f6f45a into master Jan 24, 2025
13 checks passed
@KazuCocoa KazuCocoa deleted the add-screen-off branch January 24, 2025 08:32
github-actions bot pushed a commit that referenced this pull request Jan 24, 2025
## [12.12.0](v12.11.0...v12.12.0) (2025-01-24)

### Features

* add screenState=SCREEN_STATE_OFF as the screen locked ([#791](#791)) ([6f6f45a](6f6f45a))
Copy link

🎉 This PR is included in version 12.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants