diff options
author | Adrian Roos <roosa@google.com> | 2015-03-09 16:06:42 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-09 16:06:43 +0000 |
commit | 93891686eb28f8c0da6545d277965e4db50d5065 (patch) | |
tree | ac376ef8e2f6ada8486df0d002f2b10edc2b5b07 /packages | |
parent | e71a2be2ba148dc14b168127b93bb05141d7970e (diff) | |
parent | a4da9f6b99c7452475e1b85a1feed60b22a950fd (diff) | |
download | frameworks_base-93891686eb28f8c0da6545d277965e4db50d5065.zip frameworks_base-93891686eb28f8c0da6545d277965e4db50d5065.tar.gz frameworks_base-93891686eb28f8c0da6545d277965e4db50d5065.tar.bz2 |
Merge "Remove leftover code causing trust agent issues"
Diffstat (limited to 'packages')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java index a66fc22..396fe4f 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java @@ -371,24 +371,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } private boolean isTrustDisabled(int userId) { - final DevicePolicyManager dpm = - (DevicePolicyManager) mContext.getSystemService(Context.DEVICE_POLICY_SERVICE); - if (dpm != null) { - // TODO once UI is finalized - final boolean disabledByGlobalActions = false; - final boolean disabledBySettings = false; - - // Don't allow trust agent if device is secured with a SIM PIN. This is here - // mainly because there's no other way to prompt the user to enter their SIM PIN - // once they get past the keyguard screen. - final boolean disabledBySimPin = isSimPinSecure(); - - final boolean disabledByDpm = (dpm.getKeyguardDisabledFeatures(null, userId) - & DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS) != 0; - return disabledByDpm || disabledByGlobalActions || disabledBySettings - || disabledBySimPin; - } - return false; + // Don't allow trust agent if device is secured with a SIM PIN. This is here + // mainly because there's no other way to prompt the user to enter their SIM PIN + // once they get past the keyguard screen. + final boolean disabledBySimPin = isSimPinSecure(); + return disabledBySimPin; } private boolean isFingerprintDisabled(int userId) { |