diff options
author | Tobias Haamel <haamel@google.com> | 2010-03-16 18:10:50 +0100 |
---|---|---|
committer | Tobias Haamel <haamel@google.com> | 2010-03-17 09:16:41 +0100 |
commit | c008e0a5b74de92f3fb3c704a55973f2d9d6c4fd (patch) | |
tree | 0eee08c7f39828613da18168094802a1cb4bd3b6 /services/java | |
parent | 9ab518ad793385f8405edf19363fe825fb64f5f8 (diff) | |
download | frameworks_base-c008e0a5b74de92f3fb3c704a55973f2d9d6c4fd.zip frameworks_base-c008e0a5b74de92f3fb3c704a55973f2d9d6c4fd.tar.gz frameworks_base-c008e0a5b74de92f3fb3c704a55973f2d9d6c4fd.tar.bz2 |
Fix 2514479: Putting phone in car dock ignores security pattern
Don't disable the keylock pattern when the device is in car mode.
Instead it should be possible to show the lock pattern at least once
and after valid authentication it should be disabled in the system.
Since this requires additional discussion it will be moved to the
next Android release.
Change-Id: I28cddcfb6640e44a29c716b59a3d6e37e8003dca
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/UiModeManagerService.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/services/java/com/android/server/UiModeManagerService.java b/services/java/com/android/server/UiModeManagerService.java index 37a3cdf..5bd23f4 100644 --- a/services/java/com/android/server/UiModeManagerService.java +++ b/services/java/com/android/server/UiModeManagerService.java @@ -20,7 +20,6 @@ import android.app.Activity; import android.app.ActivityManagerNative; import android.app.AlarmManager; import android.app.IActivityManager; -import android.app.KeyguardManager; import android.app.IUiModeManager; import android.app.Notification; import android.app.NotificationManager; @@ -103,7 +102,6 @@ class UiModeManagerService extends IUiModeManager.Stub { private LocationManager mLocationManager; private Location mLocation; private StatusBarManager mStatusBarManager; - private KeyguardManager.KeyguardLock mKeyguardLock; private final PowerManager.WakeLock mWakeLock; // The broadcast receiver which receives the result of the ordered broadcast sent when @@ -347,24 +345,6 @@ class UiModeManagerService extends IUiModeManager.Stub { void setCarModeLocked(boolean enabled) { if (mCarModeEnabled != enabled) { mCarModeEnabled = enabled; - - // Disable keyguard when in car mode - if (mKeyguardLock == null) { - KeyguardManager km = - (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); - if (km != null) { - mKeyguardLock = km.newKeyguardLock(TAG); - } - } - if (mKeyguardLock != null) { - long ident = Binder.clearCallingIdentity(); - if (enabled) { - mKeyguardLock.disableKeyguard(); - } else { - mKeyguardLock.reenableKeyguard(); - } - Binder.restoreCallingIdentity(ident); - } } } |