系统进入待机状态,鼠标滑动不唤醒,点击右键唤醒
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
PhoneWindowManager.java中的interceptMotionBeforeQueueingWhenScreenOff(int policyFlags):
// Otherwise, wake the device ourselves.
//result |= ACTION_POKE_USER_ACTIVITY; 注释掉,直接返回0即可
result = 0;
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
PhoneWindowManager.java中的interceptMotionBeforeQueueingWhenScreenOff(int policyFlags):
// Otherwise, wake the device ourselves.
//result |= ACTION_POKE_USER_ACTIVITY; 注释掉,直接返回0即可
result = 0;
本文介绍了一种解决设备待机状态下鼠标滑动无法唤醒的问题,通过修改PhoneWindowManager.java文件中的interceptMotionBeforeQueueingWhenScreenOff方法实现,具体操作为注释掉特定行并直接返回0。
1213

被折叠的 条评论
为什么被折叠?



