[距离传感器]通话结束后灭屏速度慢

[DESCRIPTION]

通话结束后灭屏速度慢

[PLATFORM]

MT6575 MT6577 MT6589

[SOLUTION]

1.powerManagerService.java中把 msensorManager.registerListener(mProximityListener,

mProximitySensor, SensorManager.SENSOR_DELAY_NORMAL); about 3696行—-》改为

mSensorManager.registerListener(mProximityListener,

mProximitySensor,SensorManager.SENSOR_DELAY_UI);

他们的快慢延迟顺序为:

SENSOR_DELAY_FAST:0

SENSOR_DELAY_GAME:20000

SENSOR_DELAY_UI:66667

SENSOR_DELAY_NORMAL:200000

2.PowerManagerService.java中onsensorchanged中的PROXIMITY_SENSOR_DELAY这个时间再调小些。

3.如果按照以上修改后可考虑以下修改,

alps\packages\apps\Phone\src\com\android\phone\PhoneApp.java的

updateProximitySensorMode(Phone.State state)函数的最后几行的代码,让手机在通话结束后立

即灭屏,不等待远离事件。

将int fags =(screenOnImmediately ?0 werManager.WAIT_FOR_PROXIMITY_NEGATIVE);——-》

改为:int fags = 0;

来源:一牛网论坛

    原文作者:笙箫莫离
    原文地址: https://www.jianshu.com/p/a99039a294c7
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞