diff options
author | longyu.huang <longyu.huang@ck-telecom.com> | 2015-03-22 21:14:58 -0700 |
---|---|---|
committer | longyu.huang <longyu.huang@ck-telecom.com> | 2015-03-23 03:07:02 -0700 |
commit | 261ec767f30c3ed6300cd5668112cb114e05ba18 (patch) | |
tree | 05930aa598587a916818e1aa5ec33eed1f923feb /packages/SystemUI/src/com/android/systemui/keyguard | |
parent | 38fcaf4037a50225b931551a48c898c7b0bb4db2 (diff) | |
download | frameworks_base-261ec767f30c3ed6300cd5668112cb114e05ba18.zip frameworks_base-261ec767f30c3ed6300cd5668112cb114e05ba18.tar.gz frameworks_base-261ec767f30c3ed6300cd5668112cb114e05ba18.tar.bz2 |
third part apps can disable the secret lockscreen
[Preconditions]
set password or patten lockscreen
[operating steps]
1.install the app (eg QQBrowser) and connected wifi
2.wait a while,the weather notification will shown on statusbar
3.turn off screen,the weather notification will shown on lockscreen too.
4.click the search bar in weather notification,it will disable lockscreen.
5.press HOME button or kill QQBrowser in Recent apps,you can operate the phone
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index e66934e..fae0643 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -773,6 +773,11 @@ public class KeyguardViewMediator extends SystemUI { synchronized (this) { if (DEBUG) Log.d(TAG, "setKeyguardEnabled(" + enabled + ")"); + if (isSecure()) { + Log.d(TAG, "current mode is SecurityMode, ignore hide keyguard"); + return; + } + mExternallyEnabled = enabled; if (!enabled && mShowing) { |