summaryrefslogtreecommitdiffstats
path: root/tools/aidl/Android.mk
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2010-06-08 14:27:42 -0700
committerJim Miller <jaggies@google.com>2010-06-08 15:47:52 -0700
commit284b62e1b8c3419bfd02c6fea5ba0a68146c06f8 (patch)
tree8eb35ad894780e15c7b79acb8fbe455e7c76e8e4 /tools/aidl/Android.mk
parentcb52cb52253c3832ccc7f5f1dbb4d8a0bd8178c0 (diff)
downloadframeworks_base-284b62e1b8c3419bfd02c6fea5ba0a68146c06f8.zip
frameworks_base-284b62e1b8c3419bfd02c6fea5ba0a68146c06f8.tar.gz
frameworks_base-284b62e1b8c3419bfd02c6fea5ba0a68146c06f8.tar.bz2
Fix 2737842: Disable KeguardManager API if device policy is enabled
This change adds notification to find out when the device policy has changed. When an admin adds or changes a policy, we get notified and reset the state of keyguard to be enabled. It also moves disabling keyguard into the TokenWatcher.acquired() method to avoid disabling keyguard when a policy doesn't permit it. This avoids reference counting issues in TokenWatcher and hence relieves the ordering issue. There is one remaining caveat. An application that uses KeyguardManager to disable keyguard will need to disable keyguard again after any policy change. Tested: Install and run app that disables keyguard with no admin. Result: keyguard is enabled/disabled as expected. Enable admin and set quality = "something" after installing & running app. Result: keyguard is enabled. Change admin password quality to "unspecified" and re-run app (per caveat). Result: keyguard is disabled. Change admin password quality to "something" again. Result: keyguard is enabled. Disable admin : Result: keyguard is enabled until app runs again (per caveat). Added minor cosmetic changes after review. Change-Id: I302f2b01446bf031f746b0f3e8b5fd7a6cc0e648
Diffstat (limited to 'tools/aidl/Android.mk')
0 files changed, 0 insertions, 0 deletions