OSDN Git Service

Fix issue #9074296: Device Admins can activate in a way...
authorDianne Hackborn <hackbod@google.com>
Wed, 22 May 2013 18:29:36 +0000 (11:29 -0700)
committerAlex Klyubin <klyubin@google.com>
Wed, 5 Jun 2013 22:48:20 +0000 (15:48 -0700)
commitd60861258169083f3174734af821fc8078ec5d2f
tree0e687bce62c88dde48d2a3322adca13545835d07
parent1166503886e834f74953bfdb6f0ee54d6c834249
Fix issue #9074296: Device Admins can activate in a way...

...that makes it impossible to deactive/uninstall them

Don't allow device admins to directly launch the add UI if
they are malformed.

(cherry picked from commit 8274b6770219a469ab8a5254206d0d81bd5c96d3)

Changes due to make the cherry-pick apply:
* Replaced PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS with 0
  in the PackageManager.queryBroadcastReceivers invocation. The above
  constant was introduced in API Level 18 only. DeviceAdminSettings
  class from which this fix was extracted is not passing in the above
  flag when it invokes queryBroadcastReceivers either.

Change-Id: I64d2792cd06bacbd4bfc600a10046d51a9383606
src/com/android/settings/DeviceAdminAdd.java