Skip to content

Conversation

@zzyiwei
Copy link
Contributor

@zzyiwei zzyiwei commented Aug 10, 2018

The current implementation won't work on late Android Pie releases because dumpsys window policy removed the state flag for display and lockguard. This change proposed a more robust and consistent way for retrieving screen states using power manager and activity manager.

@ben-clayton
Copy link
Contributor

Thank you for your PR @zhangyiwei.

The change looks good - we just need to update the tests. (You can run them all with bazel test tests).

The failing test is here and can be run with bazel test //core/os/android/adb:go_default_test.

@zzyiwei
Copy link
Contributor Author

zzyiwei commented Aug 10, 2018

Thanks for your review, and sorry for the missing bit. Will send an update soon.

@zzyiwei
Copy link
Contributor Author

zzyiwei commented Aug 15, 2018

The update is combined in the 1 commit because of getting rid of false merge commits. The related tests have passed. Let me know if there's any other concerns.

Copy link
Contributor

@ben-clayton ben-clayton left a comment

Choose a reason for hiding this comment

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

Thank you!

@ben-clayton ben-clayton merged commit 79bf78d into google:master Aug 15, 2018
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.

4 participants