关于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);  
        } 

转载于:https://www.cnblogs.com/dyhui/p/4692588.html

你可能感兴趣的:(关于android系统不关屏设置)