History log of /packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
080f8db85c62672344375ca70c53086b891bce52 13-Aug-2014 Amith Yamasani <yamasani@google.com> Make sure profile owner is system app

For cases where an app wants to become the profile owner after
setup has completed, make sure that it is a system app.

Bug: 17004847
Change-Id: I88249f1ce3bf841ca4d87f33acfd07a7db906332
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
b8e0f608cf28f20b95b65a4f7c0b345298d98e41 29-Jul-2014 Amith Yamasani <yamasani@google.com> Implement SET_PROFILE_OWNER intent

This will be shown when a system priv-app tries to add a profile owner
to a device that's already been through setupwizard.

Refactored the Add Device Admin dialog to also be used for this
purpose with additional warning text.

Also, make sure that profile owners cannot be deactivated.

Bug: 16207721
Change-Id: I25499a22718b2219a5a56b158ca2681243751549
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
b763e34210e3947b46ef7c9bf396579f17ab0daf 23-Jul-2014 Dianne Hackborn <hackbod@google.com> Improve protection against malicious admins.

- 2 second timeout until we give up on displaying a message,
keeping us within the 5 second activity launch block time.
- Restart the activity launch block when we show the dialog.
- Use app ops to prevent the app of the currently displayed
admin from putting windows on top while the settings screen
is running.

Change-Id: I631e8896ec7539c2de3ff36f183e67e36bcc37ca
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
64e676a5863dc928546d047fe2e504cd54d3f835 23-Nov-2013 William Luh <williamluh@google.com> Add event logging for device admin.

This allows us to gather metrics about unwanted device admin apps. User consent from Verify Apps is required.

Bug: 11253927
Change-Id: I449929772f63f426426f7726d3d21e7c1512e6ce
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
681b21f3e4ef0a63d982eca0e9d1896422bc30ff 07-Jun-2013 Alex Klyubin <klyubin@google.com> resolved conflicts for merge of 5d21820a to jb-mr2-dev

Change-Id: If371a4571c5440ce2a0b4339f97893bf78832b31
29de9d5153075b33717ba18a0c13c84ea4ba34f3 06-Jun-2013 Alex Klyubin <klyubin@google.com> Permit deactivation of malformed Device Admins.

Bug: 9074296
Change-Id: I4a3b2f972cb297b9f985a762219c8d67d8e3a425
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
d60861258169083f3174734af821fc8078ec5d2f 22-May-2013 Dianne Hackborn <hackbod@google.com> 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
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
8274b6770219a469ab8a5254206d0d81bd5c96d3 22-May-2013 Dianne Hackborn <hackbod@google.com> 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.

Change-Id: I0d3140222d8015f680e1f199bddae2221ee0e726
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
4f25e1d5e3f94b761345a3286bf9c91a4df20f75 03-Mar-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3324032: It is possible to create an app that cannot...

...be uninstalled using device policy managers

Don't allow app switches while we are bringing up the confirmation
dialog. This prevents the app from pushing us out of the intended
settings app flow.

Change-Id: Iea1ff64c054452d307f91f349a815c0b244e9af5
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
a1d01841664131eca201acfaf747f1f187de10f6 25-Jan-2011 Amith Yamasani <yamasani@google.com> Tabletize Device administrator screen and fix the layout for DeviceAdminAdd.

Bug: 3376986

Convert the DeviceAdminSettings screen to a fragment, remove fat titlebar.
Convert the DeviceAdminAdd screen to layout nicely in the new holo DialogWhenLarge
style.

Change-Id: I20a9d16aed135a2178969dfff807075b0b79237c
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
c090feb64f674d9840993736a24f9667f8b0e0d5 08-Dec-2010 Jake Hamby <jhamby@google.com> Implement BT settings functionality for new UI.

- Removed context menu logic for long press (no longer used).
- Converted device picker to run in its own Activity, using a dialog
theme on large screen devices and full-screen on phones.
- Removed unused resources.
- Add device to "Paired devices" list when pairing is initiated by the
remote device.
- Return to Bluetooth settings pane after successfully pairing a new
device from the "Find nearby device" pane.
- Add support for renaming devices (TODO: persist the custom name and
update the "bread crumb" in the action bar to the new device name).
- Add support for incoming file transfer and auto connect checkboxes
in DeviceProfilesSettings.
- Show available and connected device profiles as icons instead of
summary text. Available but disconnected profiles are drawn in gray.
- Fixed bluetooth_notif_message to include the device name as a parameter
instead of appending the name to the end of the localized string.
- Changed some fields from private to package scope for more efficient
access from inner classes.

Bug: 3137982

Change-Id: Ic2d6ee5be60c9c5b3f3a8a58846d58efedfa5c93
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
5cc0e4152b3c75b41c0116c167e2bb5d8d1053cf 09-Dec-2010 Andy Stadler <stadler@google.com> Allow Device Admins to refresh (re-request) activation

* ACTION_ADD_DEVICE_ADMIN now works on already-added admins

Bug: 3253179
Change-Id: I2090339c1fb61295e728bc61ca977ff6028a68dd
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
51794a05ad044ad87efd8291b8decb71a9b5455e 14-Sep-2010 Chris Palmer <palmer@google.com> Improve the add-device-admin layout.

Make it so that the app's explanation comes before the list of possible
policies. This gives the app a chance to explain itself instead of having
the explanation hidden below the fold. To avoid situations in which one
bunch of text items can obscure the other, use an expandable/ellipsizable
TextView with an indicator image. This resolves b/2992594.

Change-Id: I0eb0d0c46bb4be2ec2e019d741915537e1fcc592
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
39e64e76c14f6ad0a844cea6c9ea9865f0b9261e 26-Mar-2010 Dianne Hackborn <hackbod@google.com> API council: don't allow admin add from new task.

Change-Id: I45f75f8e2c43ba0dae51d37e104d18d0b1a2cdbf
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
97de6bccfe81655a16feb988da1d208f95a8d6e3 04-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2477264: "Force Stop" in "Manage Applications" is not working

Also add cancel button when adding a device admin.
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
4037c7f27c849a1ada0980ad881636fc940a0b85 27-Feb-2010 Dianne Hackborn <hackbod@google.com> Move DeviceAdmin APIs to android.app.admin.
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
3e04288198bc9bf8f97b9f30e0dbcd9bbb27d837 22-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2396296: An admin is already set
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
5435511ee9151dbca8ad13656b3dc20ec79f940b 17-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2420412: API review: DeviceAdmin API changes
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
4df6edb1acefcd927932b7c1cb71575298d53b86 05-Feb-2010 Andrew Stadler <stadler@android.com> Fix device administrator "add" logic

Due to a missing "else" the logic to activate a device administrator
was immediately falling through into the logic to remove it. As a result,
the add was immediately countermanded by a remove.
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
8cecf89cec3ea14003482c046eec7d2aba8bb0ad 28-Jan-2010 Dianne Hackborn <hackbod@google.com> Update to follow device policy changes.
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
61daf83ca8bcf1353e0e81316a2b3809ec7397c5 28-Jan-2010 Dianne Hackborn <hackbod@google.com> Update settings UI to support multiple device admins.
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
b885afe4e7376a21d354ca11d4873930d9cce9ea 27-Jan-2010 Dianne Hackborn <hackbod@google.com> More device admin work:

- Show a warning before removing an admin, if desired.
- Additional message that can be shown when adding an admin.
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java
28429033375c3876af56528bfc9ea6b541052fcb 26-Jan-2010 Dianne Hackborn <hackbod@google.com> Work on the device admin settings UI.

Improve the look of the UI, and add the confirmation screen
for enabling an administrator. This uses the new framework APIs
to show its description and policies it will control.
/packages/apps/Settings/src/com/android/settings/DeviceAdminAdd.java