Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2|回复: 1
打印 上一主题 下一主题

修改关机添加下可以操作蓝牙

[复制链接]

1198

主题

2060

帖子

7058

积分

超级版主

Rank: 8Rank: 8

积分
7058
跳转到指定楼层
楼主
发表于 2016-6-11 22:27:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
修改文件::
/media/doraemon/works/android/mtk/6572/QPlayer/eng/alps/frameworks/base/services/jni/com_android_server_input_InputManagerService.cpp
===============================
bool NativeInputManager::isScreenOn() {
    //zcfdebug-- return android_server_PowerManagerService_isScreenOn();
        return true;//zcfdebug++
}

bool NativeInputManager::isScreenBright() {
    //zcfdebug-- return android_server_PowerManagerService_isScreenBright();
        return true;//zcfdebug++
}


回复

使用道具 举报

1198

主题

2060

帖子

7058

积分

超级版主

Rank: 8Rank: 8

积分
7058
沙发
 楼主| 发表于 2016-6-11 23:08:54 | 只看该作者
上面修改的方法会导致power短按唤醒被过滤掉了,这样修改才行
/media/doraemon/works/android/mtk/6572/QPlayer/eng/alps/frameworks/base/services/input/InputDispatcher.cpp

void InputDispatcher::dispatchOnceInnerLocked(nsecs_t* nextWakeupTime) {
    nsecs_t currentTime = now();

    // Reset the key repeat timer whenever we disallow key events, even if the next event
    // is not a key.  This is to ensure that we abort a key repeat if the device is just coming
    // out of sleep.
    if (!mPolicy->isKeyRepeatEnabled()) {
        //zcfdebug-- resetKeyRepeatLocked();
    }

    // If dispatching is frozen, do not process timeouts or try to deliver any new events.
    if (mDispatchFrozen) {
#if DEBUG_FOCUS
        ALOGD("Dispatch frozen.  Waiting some more.");
#endif
        return;
    }
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, 2025-12-14 18:52 , Processed in 0.009537 second(s), 8 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表