summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/DevicePolicyManagerService.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixe some stuff.Dianne Hackborn2010-11-081-1/+1
| | | | | | | | | | | | | | | Addresses these bugs: 3061847 - With no headers, PreferenceActivity crashes 2888426 - minor typo in DevicePolicyManagerService.ActiveAdmin.writeToXml() 3159155 - IllegalStateException:"Can not perform this action after onSaveInstanceState" while dismissing a DialogFragment 3155995 - PopupWindow.showAtLocation does not respect LayoutParams Also tweak the new fragment APIs to use abstract classes instead of interfaces as base classes. Change-Id: I9c0b4337fe0e304b737b5f7c2762762372bb3020
* resolved conflicts for merge of 964eb438 to masterKenny Root2010-10-181-4/+16
|\ | | | | | | Change-Id: I0c54d6b88356d8734d7f51234b0114434414502e
| * Implement issue #3094621 and #3094609 - wipe sd cardDianne Hackborn2010-10-161-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | 3094621: add "wipe sd card" option to factory data reset 3094609: collapse unmount/format into one command Also since we have decided that it is important to consider the Crespo storage as internal storage, DevicePolicyManager gets a new API to be able to wipe it. (No big deal, since all of the work for this is now done in the implementation of the new UI.) Change-Id: I32a77c410f710a87dcdcbf6586c09bd2e48a8807
* | resolved conflicts for merge of 6a3eddb4 to masterDianne Hackborn2010-09-301-0/+3
|\| | | | | | | Change-Id: I1ca1d100274d4a733ef2bf58b0d5d7217b4f858e
| * Rub in a little 'ol log-b-gone.Dianne Hackborn2010-09-301-0/+3
| | | | | | | | | | | | Mmmmmm... great fresh scent! Change-Id: I050e70b31b5d4a9c6731f15a4b51a3620a33a78d
* | Device Policy Manager changes to enable Global Proxy.Oscar Montemayor2010-08-041-0/+137
| | | | | | | | Change-Id: I8489df7d28e4c5312e10d5cecc8e2a182413a034
* | Adding support for minimum number of non letter characters.Konstantin Lopyrev2010-06-081-4/+67
| | | | | | | | Change-Id: If54cb7209d65eef826d474d7e0dbbef63d2f2b47
* | am db603bb5: am 3b68548d: am 75b6a6b9: Merge "Fix 2737842: Disable ↵Jim Miller2010-06-081-0/+7
|\| | | | | | | KeguardManager API if device policy is enabled" into froyo
| * Fix 2737842: Disable KeguardManager API if device policy is enabledJim Miller2010-06-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix 2677197: Adding minimum complex character support.Konstantin Lopyrev2010-05-271-7/+349
| | | | | | | | Change-Id: I520bc5f9aa924bf9b5585b2235a91cc96cb99c25
* | Fix 2673731: Adding support for password history to Device Admin.Konstantin Lopyrev2010-05-241-83/+128
|/ | | | Change-Id: If3240048813e32b2bae79fe5cb8a73aea20ec56c
* Fix issue #2530103: ActivePassword data in Device Policy Manager needs to be ↵Dianne Hackborn2010-03-221-40/+89
| | | | | | | | | | | | | persisted Also fixes how the quality vs. mode is handled to be more consistent, which also required introducing a new "alphabetic" quality since it is possible for the user to enter such a password. The current password quality and length is stored in the DPM, since at boot it couldn't figure this out from the stored password. Change-Id: I519d9b76dd0b4431bcf42920c34dda38c9f1136e
* Maybe fix issue #2457218: Corrupt batterystats.bin file preventing phone ↵Dianne Hackborn2010-03-191-0/+1
| | | | | | | | | | | | | | boot - LIBtt68127 No steps to repro, but makes the code more robust by using the standard JournaledFile class and doing sanity checks on the input it reads. This required moving the JournaledFile class in to the framework (and we really should get rid of either it or AtomicFile, but they have different recovery semantics so that is tough). Also went through and cleaned up the file management in various places. Change-Id: Ieb7268d8435e77dff66b6e67bb63b62e5dea572e
* Move DeviceAdmin APIs to android.app.admin.Dianne Hackborn2010-02-261-6/+115
| | | | | | Also add ability for admins to hide themselves when not in use, a facility for admins to not allow other admins to reset their password, and debug dumping.
* Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-251-2/+2
| | | | | | | This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
* Fix issue #2438980: Implement package watcher for voice recognizer service ↵Dianne Hackborn2010-02-221-3/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setting I am getting tired of writing package monitor code, realized this is missing in a number of places, and at this point it has gotten complicated enough that I don't think anyone actually does it 100% right so: Introducing PackageMonitor. Yes there are no Java docs. I am still playing around with just what this thing is to figure out what makes sense and how people will use it. It is being used to fix this bug for monitoring voice recognizers (integrating the code from the settings provider for setting an initial value), to replace the existing code for monitoring input methods (and fix the bug where we wouldn't remove an input method from the enabled list when it got uninstalled), to now monitor live wallpaper package changes (now allowing us to avoid reverting back to the default live wallpaper when the current one is updated!), and to monitor device admin changes. Also includes a fix so you can't uninstall an .apk that is currently enabled as a device admin. Also includes a fix where the default time zone was not initialized early enough which should fix issue #2455507 (Observed Google services frame work crash). In addition, this finally introduces a mechanism to determine if the "force stop" button should be enabled, with convenience in PackageMonitor for system services to handle it. All services have been updated to support this. There is also new infrastructure for reporting battery usage as an applicatin error report.
* Fix issue #2420412: API review: DeviceAdmin API changesDianne Hackborn2010-02-171-7/+7
| | | | | | | | Note in docs that callbacks are on main thread. Rename to DeviceAdminReceiver? Document resetPassword is the device's password. Also hide android.R.attr.neverEncrypt.
* Get rid of the limit-unlock policy control.Dianne Hackborn2010-02-111-1/+1
| | | | | | This is merged with force-lock. These both allow effectively the same thing, so there is no reason to junk up the user experience with them as separate entities.
* New external storage APIs.Dianne Hackborn2010-02-091-8/+12
| | | | | | | | | | | This implements the spec for external storage organization, and properly reflects how the media scanner organizes the files it finds. Also includes package manager support for removing app private files from external storage when the application is uninstalled. For the new APIs and paths, the main place to look is Environment and Context.
* More device policy work: clarify password modes, monkeying.Dianne Hackborn2010-01-291-25/+35
| | | | | | | | Clarifies what the password modes mean, renaming them to "quality" and updating their documentation and the implementation to follow. Also adds a facility to find out if a monkey is running, which I need for the api demo to avoid letting it wipe the device.
* More device admin.Dianne Hackborn2010-01-281-37/+77
| | | | | - Clean up device policy manager APIs. - Implement lockNow(). For now this just turns the screen off to lock the device.
* Bite the bullet and add support for multiple device admins.Dianne Hackborn2010-01-271-43/+102
|
* More work on device admins:Dianne Hackborn2010-01-271-77/+191
| | | | | | | | | | | | | | | | - You can now show a dynamic message to the user when asking to have your DeviceAdmin added. - A DeviceAdmin can now provide a warning message that is displayed before a user disables it. - Better ordering (and text) of the policy warnings. - New API to set the maximum failed password attempts before the device wipes itself. - We now store the number of failed unlock attempts in persistent storage. - New managed dialog APIs that will be used by the settings app. Also a little bit of cleanup as I was working on this - removed the long unused MailboxNotAvailableException, fixed a java doc in Messenger.
* More device admin work: description, policy control.Dianne Hackborn2010-01-261-16/+35
| | | | | | | | | | | | There is now a description attribute associated with all components, that can supply user-visible information about what the component does. We use this to show such information about device admins, and wallpapers are also updated to be able to show this in addition to the existing description in their meta-data. This also defines security control for admins, requiring that they declare the policies they will touch, and enforcing that they do so to be able to use various APIs.
* Don't crash when there is no admin.Dianne Hackborn2010-01-211-9/+9
|
* More device policy manager / admin work.Dianne Hackborn2010-01-211-19/+91
| | | | | Update API with some new features, re-arrange how you check for valid passwords, and start hooking up the back-end implementation.
* First pass at new device policy and administration APIs.Dianne Hackborn2010-01-171-0/+471
This adds new DevicAdmin, DevicePolicyManager, and DeviceAdminInfo classes. See the java docs for each on documentation on them. Basically: a DeviceAdmin is what you derive from to administer a device; DevicePolicyManager is what you use to apply and check your policy requirements and perform other administration tasks.