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

Fix screen state logic for devices without NFC. #2819

Merged
merged 2 commits into from
Jun 7, 2019

Conversation

pmuetschard
Copy link
Member

@pmuetschard pmuetschard commented Jun 6, 2019

Don't use the NFC service to determine screen state, as there are devices that don't have NFC, which will cause the "dumpsys nfc" command to fail.

Fixes #2736

Don't use the NFC service to determine screen state, as there are
devices that don't have NFC, which will cause the "dumpsys nfc" command
to fail.
If we fail to determine the screen state, ignore it, print a warning, and
keep going. That is, only fail if we know the screen state and were
unable to unlock.
Copy link
Contributor

@hevrard hevrard left a comment

Choose a reason for hiding this comment

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

LGTM

Many thanks for this fix

@pmuetschard pmuetschard merged commit 832c953 into google:master Jun 7, 2019
@pmuetschard pmuetschard deleted the screen branch June 7, 2019 18:15
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.

Android inside Chromebook
3 participants