Commit Graph

13 Commits

Author SHA1 Message Date
phweiss
15931742ac Specify disallowed action in AdminSupportDetailsDialog
The title of an AdminSupportDetailsDialog "Action not allowed" is
replaced by specialized strings such as "Screenshot not allowed" if
the action is specified by the extra DevicePolicyManager.EXTRA_RESTRICTION
in the calling intent.

This is done because these intents can be created by
third-party apps via the new public API
DevicePolicyManager.createAdminSupportIntent, and the disallowed action
might not be obvious in context of the third party app.

Bug: 31215663
Test: CtsVerifier in separate CL
Change-Id: I0c9e360cea34bec8eda29d86c5bf55d8c38c47ec
2017-03-13 18:53:18 +01:00
Rubin Xu
75a080b2e4 Do not require MANAGE_DEVICE_ADMINS for showing admin-specifc policy transparency dialog
Bug: 30582906
Change-Id: I976c354021482b7db4e6270e071f2e513e49009d
2016-08-08 15:25:31 +00:00
Nicolas Prevot
637d24c8b9 Fix rendering of policy transparency activity.
Use the dialog's context instead of the activity
context to inflate the view.

BUG:29172155
Change-Id: I0fb32e3d4bfc522a4c8b6d7a6ed55acd01f97446
2016-06-09 20:59:20 +01:00
TreeHugger Robot
a433fd2429 Merge "Avoid triggering device admin settings in non-current user." into nyc-dev 2016-06-03 17:02:51 +00:00
Sudheer Shanka
8b72e563ec Avoid triggering device admin settings in non-current user.
Bug: 28953755
Change-Id: Ic9f6f57b1ef4cc1de2d1ea227b17faf4334ffec8
2016-06-02 12:40:22 -07:00
Sudheer Shanka
65cabcd4ee Start DeviceAdminSettings in a new task from support dialog.
Bug: 28998790
Change-Id: Ia43d6e719124e0908ec8ccb8c1ba7e80b5297096
2016-06-01 16:29:20 +00:00
Sudheer Shanka
17cbc996ce Avoid showing DeviceAdminAdd screen in the background of support dialog.
Change-Id: Idb2f98012fc161decef579c1e87cca0f8ade2619
Fixes: 27665715
2016-04-12 12:09:37 -07:00
Sudheer Shanka
e3dbfb1a6b Update the admin app icon in the support dialog.
Change-Id: Ia1212b682e9168340b8df678a5880f50ee579485
2016-02-22 22:39:26 +00:00
Sudheer Shanka
7dbbe13168 Add disabled by policy empty views to more screens.
Bug: 27214401
Change-Id: I6cd4292a63610671070bf2134105e9e348c3ab32
2016-02-19 20:18:43 +00:00
Sudheer Shanka
fee4e3e405 Update ShowAdminSupportDetailsDialog launchmode to singleTop.
Bug: 26977320
Change-Id: I8d89ba9243c807657fb4b2b8c93e75aab53d907e
2016-02-19 11:47:53 +00:00
Sudheer Shanka
cd8d052f25 Check for MANAGE_DEVICE_ADMINS permission instead of uids.
Currently, in ShowAdminSupportDetailsDialog we use uid check to
restrict only system to pass extras. Relaxing that condition to
allow any package with MANAGE_DEVICE_ADMINS permission to pass extras.

Change-Id: I0351c1f82321b2304a61b5831788806636402610
2016-01-18 20:15:40 +00:00
Kenny Guy
7a3555961d Add support messages to device admin pages.
Add support message to device admin settings pages.
Show policy information for device owners
and profile owners.
Allow a user to remove profile from profile owners
admin page.

Bug: 26416662
Change-Id: I95424da50067b7c0ba1618a083a31448d406188f
2016-01-06 17:21:45 +00:00
Sudheer Shanka
9159fe9af8 Add support for showing the admin disabling settings.
For settings disabled by user restrictions show
the user a lock icon and allow them to click to
find more info.

Bug: 22543585

Change-Id: Ie8b02ac26f2b22db386a9044f3c6570098f6e14b
2015-12-11 19:44:14 +00:00