[DESCRIPTION]
如何将锁屏变为透明?
[SOLUTION]
ICS/ICS2/JB:
1、请修改KeyguardViewManager.java的show方法,将|WindowManager.LayoutParams.FLAG_SHOW_WALLPAPAR;注释掉;
2、请修改KeyguardViewBase.java的resetBackground()方法,将setBackground(mBackgroundDrawable);注释掉;
3、请修改PhoneWindowManager.java的doesForceHide方法,将attrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD;替换为false;
JB2 & KK:
1、请修改KeyguardViewManager.java的maybeCreateKeyguardLocked方法,将|WindowManager.LayoutParams.FLAG_SHOW_WALLPAPAR;注释掉;
2、请修改KeyguardViewBase.java的resetBackground()方法,将setBackground(mBackgroundDrawable);注释掉;
3、请修改PhoneWindowManager.java的doesForceHide方法,将attrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD;替换为false;
4. 请修改keyguardViewManager.java的updateShowWallpaper()方法,将以下语句注释:
/*
if (show) {
mWindowLayoutParams.flags |= WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
} else {
mWindowLayoutParams.flags &= ~WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER;
}*/