关于android系统不关屏设置

在 base/services/core/java/com/android/server/power/PowerManagerService.java文件中getScreenOffTimeoutLocked函数中添加如下内容

int nosleep = mScreenOffTimeoutSetting;
        Slog.i(TAG, “nosleep=”+nosleep+” MaximumScreenoff=”+mMaximumScreenOffTimeoutFromDeviceAdmin);
        if(nosleep  <  70000)  
       {  
        nosleep = mMaximumScreenOffTimeoutFromDeviceAdmin ;
        Slog.i(TAG,”666″);
        return Math.max(nosleep, mMaximumScreenOffTimeoutFromDeviceAdmin);  
        } 

    原文作者:dyhui1992
    原文地址: http://www.cnblogs.com/dyhui/p/4692588.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞