-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Support Samsung phone when getting device wakefulness status
#98146
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
Support Samsung phone when getting device wakefulness status
#98146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just add the new check to the existing regular expression? e.g mWakefulness=|getWakefullnessLocked()=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used regexp to combine these two.
|
Please rebase onto #98166 to fix plugin_lint_mac. |
1bfea4a to
5352176
Compare
5352176 to
8802dad
Compare
Current device assumes single pattern on all devices, and uses
mWakefulness=Awaketo get the wakefulness status. This fails when it's a Samsung phone, which returnsgetWakefullnessLocked()=Awake.This PR adds support for Samsung phones.
Fixes: #97235