summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2015-02-21 01:15:21 +0100
committerAdrian Roos <roosa@google.com>2015-03-05 19:27:37 +0000
commita4da9f6b99c7452475e1b85a1feed60b22a950fd (patch)
treef79680dfaf558aa0cd5c787a03c7dc22f9844c30 /packages
parent54b804fa742e44a0bc7dccc2784b3322c7b92f19 (diff)
downloadframeworks_base-a4da9f6b99c7452475e1b85a1feed60b22a950fd.zip
frameworks_base-a4da9f6b99c7452475e1b85a1feed60b22a950fd.tar.gz
frameworks_base-a4da9f6b99c7452475e1b85a1feed60b22a950fd.tar.bz2
Remove leftover code causing trust agent issues
When trust agent whitelists were added in MR1, the isTrustDisabled method was left in although it prevents the whitelist from working properly. Bug: 19461292 Change-Id: I72eb041b03e1f16c582cbf2a0bb622a70444caeb
Diffstat (limited to 'packages')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java23
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) {