summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/permission/ui/GrantPermissionsActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* am 6986f29b: Auto grant permissions in an already granted group.Svetoslav Ganov2015-10-151-2/+18
|\ | | | | | | | | * commit '6986f29bb93a6aaaeaaddcab081d0e0afd7082e8': Auto grant permissions in an already granted group.
| * Auto grant permissions in an already granted group.Svetoslav Ganov2015-10-151-2/+18
| | | | | | | | | | | | bug:24074183 Change-Id: Iad6f9b7d5b83d0b0121796891bcd069658995a47
* | am 86f1ee8c: Revert "Auto grant permissions in an already granted group."Ian Pedowitz2015-10-151-18/+2
|\| | | | | | | | | * commit '86f1ee8c2db04d37d48f25a60086e5a27a812fb9': Revert "Auto grant permissions in an already granted group."
| * Revert "Auto grant permissions in an already granted group."Ian Pedowitz2015-10-151-18/+2
| | | | | | | | | | | | This reverts commit c7e595a22c11247b3e6b0fbfa324542321ab9d14. Change-Id: I0a319ef590e9c0f830af470155213677bed684f4
* | am c7e595a2: Auto grant permissions in an already granted group.Svetoslav2015-10-151-2/+18
|\| | | | | | | | | * commit 'c7e595a22c11247b3e6b0fbfa324542321ab9d14': Auto grant permissions in an already granted group.
| * Auto grant permissions in an already granted group.Svetoslav2015-10-151-2/+18
| | | | | | | | | | | | | | bug:24074183 Change-Id: I8eb4e4c76ed27721b04e09ae009ddd2daec1e0b1 (cherry picked from commit ecc46fe0ce772338786cb9e23cb872189e6a285c)
* | Changing layout to make button animations workVinod Krishnan2015-09-141-7/+3
| | | | | | | | | | | | | | | | | | | | | | - Fix the Permissions Dialogs for round layout - Show animation for the buttons - Also fixed the names ellipsis issue. - Fixed the theming of the dialogs. Bug: 23118402 Change-Id: I385c827ac41b06222334c36bfda2c70b346232a2
* | am 1e6cd17f: am 919d56f9: Merge "Always set permission policy to fixed" into ↵Ian Pedowitz2015-08-271-3/+3
|\| | | | | | | | | | | | | mnc-dev * commit '1e6cd17f5abde2e6dd9a28021af5edc977c5b430': Always set permission policy to fixed
| * Always set permission policy to fixedBenjamin Franz2015-08-251-3/+3
| | | | | | | | | | Bug: 23408576 Change-Id: I981810de6f5b49b94371606cc5cf7baf51375485
* | am 7f4103b0: am 8dcea3bf: Show multi-permission UI in the requested order.Svet Ganov2015-08-221-8/+10
|\| | | | | | | | | * commit '7f4103b04d6af92fd92d92f5526b73aa76fbd233': Show multi-permission UI in the requested order.
| * Show multi-permission UI in the requested order.Svet Ganov2015-08-211-8/+10
| | | | | | | | | | | | | | | | | | | | Apps can request several permissions at once but the UI was not shown in the request order. This is problematic since apps may show on board UI stating which permissions will be requested. Bug: 23314383 Change-Id: I0c59a741fb09e63bead0f76d4d337769d2dff387
* | am af8c918e: am ab1e5900: Merge "Revert "Grant only requested permissions ↵Ian Pedowitz2015-08-221-16/+7
|\| | | | | | | | | | | | | not the whole group."" into mnc-dev * commit 'af8c918e6a54c95d35f1e92cb16a4251e1ee7fb8': Revert "Grant only requested permissions not the whole group."
| * Revert "Grant only requested permissions not the whole group."Ian Pedowitz2015-08-211-16/+7
| | | | | | | | | | | | | | | | This reverts commit e899d8d48558a6d4a8f0498c38a623115aad2205. Bug: 23314383 Bug: 23397858 Change-Id: Ia928a4b24c60eae6b4fb16ebdbfa6b6787f6c3ae
* | am 4a399b32: am d7b72885: Revert "Show multi-permission UI in the requested ↵Ian Pedowitz2015-08-221-10/+8
|\ \ | | | | | | | | | | | | | | | | | | order." * commit '4a399b3249a39c66108f7bed37c95bc4d43a92b2': Revert "Show multi-permission UI in the requested order."
| * | Revert "Show multi-permission UI in the requested order."Ian Pedowitz2015-08-211-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit dda78230999da573318594c7cfcdbc738bab864e. Bug: 23314383 Bug: 23397858 Change-Id: I8d06936ad8a51299148f0a311da81d8868840e78
* | | Implement base version of GrantPermissions dialogAnthony Hugh2015-08-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Emerald release, we need to support the new permission APIs. This changelist adds a dialog for the Activity.requestPermissions() API so that users can request permissions. This check in is a functional version, but not polished. will need to be a follow up CL to add the correct animations and update the UI to the appropriate redlines. The implementation for the confirmation dialog is modeled after the one in the clockwork libs/Views folder. There are some tweaks to match the designed behavior of the permission dialog. When there's more time in the future, we should try to condense this to one implementation. This is a resubmit without the wearable-support lib. I will figure out how to get that referenced in the next UI pass. BUG: 23118402 Change-Id: Ib2fb94b356aa965b999b3e12726fda86928a963e
* | | Merge "Revert "Implement base version of GrantPermissions dialog"" into cw-e-devAnthony Hugh2015-08-211-7/+0
|\ \ \
| * | | Revert "Implement base version of GrantPermissions dialog"Anthony Hugh2015-08-211-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b7da1f5f9886ff8a4ad81b0d617d442c461ca1e5. We can't reference vendor from this package. Need to add the references manually. Change-Id: I3ee31de110f24014100ce804b0659055b26f963b
* | | | Merge "Implement base version of GrantPermissions dialog" into cw-e-devAnthony Hugh2015-08-211-0/+7
|\| | | | |/ / |/| |
| * | Implement base version of GrantPermissions dialogAnthony Hugh2015-08-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the Emerald release, we need to support the new permission APIs. This changelist adds a dialog for the Activity.requestPermissions() API so that users can request permissions. This check in is a functional version, but not polished. will need to be a follow up CL to add the correct animations and update the UI to the appropriate redlines. The implementation for the confirmation dialog is modeled after the one in the clockwork libs/Views folder. There are some tweaks to match the designed behavior of the permission dialog. When there's more time in the future, we should try to condense this to one implementation. BUG: 23118402 Change-Id: Ic90d37a2ce8a7adacb7c4e004b0a5260b624f5c8
* | | Show multi-permission UI in the requested order.Svet Ganov2015-08-201-8/+10
| |/ |/| | | | | | | | | | | | | | | | | | | Apps can request several permissions at once but the UI was not shown in the request order. This is problematic since apps may show on board UI stating which permissions will be requested. bug:23314383 Change-Id: Iffd0f4fd7df04aeece3995290a7798a559430304
* | Grant only requested permissions not the whole group.Svet Ganov2015-08-201-7/+16
|/ | | | | | | | | | | | The policy for an app requesting permissions is that only the requested permissions are granted not the whole groups to which these permissions belong. There was a regression where we granted the whole group not only the requested permissions. If an app has a permission in a group already granted, now per policy a subsequent request from the same group is followed by an auto grant. bug:23370436 Change-Id: Icce6377d60187f6f153d10d646cd8c9878dd6fab
* Show warning when touches are being blocked by overlaysJason Monk2015-08-071-2/+6
| | | | | Bug: 22317719 Change-Id: I5f6526bcce382ae6fabe32d3f8842567d8dc8701
* Remove the obsolete 'show legacy' option from permission screensSvet Ganov2015-07-161-2/+10
| | | | | | bug:22523221 Change-Id: I09b605c7689c7402942c02a2639f1f28c7ee0c54
* Add "show additional permissions" screen to app permissions for TV.Todd Volkert2015-07-141-5/+2
| | | | | | | | | | | | | This also cleans up some code: 1) Factor out isTelevision into Utils.isTelevision() and call it where we were previously inlining that code 2) Make AppPermissionsFragment work better with config changes and screen rotation changes (the extra screen wasn't working at all with such changes) b/22045242 Change-Id: I937eaa67f19f44b5e1a76a58e3fdd799ae36e73b
* Properly label the permission request activity for accessibilitySvet Ganov2015-07-101-0/+2
| | | | | | bug:22129341 Change-Id: Ic296e44419388aff5d8b8e03c5c800364b44e44b
* Fix accessibility for grant permission dialogJason Monk2015-07-091-0/+2
| | | | | | | | | - Announce properly - Clear button focus after selecting to avoid multiple accidental allows/denys Bug: 22331950 Change-Id: Ibbe9af386c497024447cb696a94a9fbe515c91ef
* Merge "Ensure that mixed permission policies return the right result" into ↵Benjamin Franz2015-07-091-6/+8
|\ | | | | | | mnc-dev
| * Ensure that mixed permission policies return the right resultBenjamin Franz2015-07-071-6/+8
| | | | | | | | | | | | | | | | | | Currently, when a policy is fixed denied, but the profile / device owner has set DevicePolicyManager.PERMISSION_POLICY_AUTO_GRANT, requesting a permission returns the wrong result. Bug: 22291565 Change-Id: I9c531faf89236f7e177ccd4b2c3e8f86308b263e
* | Update grant result when a granted permission was requeried and denied.Svet Ganov2015-07-061-1/+1
|/ | | | Change-Id: I98fe8099144d51d852fae6ab604fa6e85b1e13f6
* :Fix should show permission API back button behavior.Svetoslav2015-06-301-2/+6
| | | | | | | | | | Pressing the back button in the request permission dialog should be treated as a denial of the currently displayed permission. bug:22041240 Change-Id: I853d9ff5d3d10a29b2a5b1815de7de8b1c28cc6b
* Merge "Fix issue #21945272: Crash in ↵Dianne Hackborn2015-06-231-8/+17
|\ | | | | | | Activity.dispatchRequestPermissionsResult" into mnc-dev
| * Fix issue #21945272: Crash in Activity.dispatchRequestPermissionsResultDianne Hackborn2015-06-231-8/+17
| | | | | | | | | | | | Make sure to send a full result no matter how we finish the activity. Change-Id: Ic087a354053d0078985c33f6d1c77c9bb694dc62
* | Mark permissions that are auto granted/revoked as policy_fixedAmith Yamasani2015-06-231-0/+2
|/ | | | | | | | Let PackageManager know that the permission state was changed by policy so that it can't be modified by the user anymore. Bug: 21888917 Change-Id: Idd09005515fac89fb1603b3aff0345a1f5e7bd79
* Fix animating between very different heightsJason Monk2015-06-181-0/+12
| | | | | | | | | | | | | - Expand ViewHeightController so it can expand up or down - Control the height of all containers in the hierarchy - Intercept touch events and compensate for any top offset on the root view, since we expand upwards - Remove the current description from the description container so that it can shrink in relayout if necessary. Bug: 21879037 Bug: 21784297 Change-Id: I3ad562158013b75c5e9150cbd91c96c6ff4941c9
* Requesting granted permission shows grant/revoke UI.Svet Ganov2015-06-121-7/+9
| | | | | | bug:21565838 Change-Id: Ib878d07b7d9bbab1ffe2b64f008e2fe092ead253
* Use onBackPressed instead of onKeyDown/onKeyUpFyodor Kupolov2015-06-111-17/+3
| | | | Change-Id: I1a1b8f34b1625306daced4ff28a4ed389665be40
* Handle back button in grant permissions activitySvet Ganov2015-06-111-0/+21
| | | | | | bug:21760616 Change-Id: Ie559e5ff3de93c8354e9e1b0a857ccfca228ebc0
* Merge "Add tv-specific grant permissions view handler" into mnc-devTodd Volkert2015-06-101-3/+9
|\
| * Add tv-specific grant permissions view handlerTodd Volkert2015-06-101-3/+9
| | | | | | | | | | | | b/20476102 Change-Id: I128bb19413121b6d0367147989e79bffe45f8d82
* | Respect permission request order.Svetoslav2015-06-091-1/+1
|/ | | | | | | | | Show permission accept dialogs in the order of which the developer requested the permissions. bug:21559824 Change-Id: I2a8f459252b31440707c6d8ffb3766e8ab6e0031
* Prepare "grant permissions" for Tv-specific view handler.Todd Volkert2015-06-011-51/+36
| | | | | | | | | | | | | | Also, this cleans up some unused code in GrantPermissionsActivity and fixes a latent bug in GrantPermissionsActivity#updateDefaultResults where if the calling package was null, we were defaulting to GRANTED. Note that we can't simply create a tv-specific layout xml file, because the view handler is tied to the layout xml, so this change allows for the creation of different view handlers. b/20476102 Change-Id: Ia62051a0895e4bd314d18ba3001871b29de21ae5
* Show the permission description not its label in the grant dialogSvet Ganov2015-05-201-1/+1
| | | | | | bug:21336863 Change-Id: I5c25581bea76cc50b7b09534c9222550e7f464ff
* Handle dark themes in permissions UIJason Monk2015-05-191-1/+1
| | | | | | | | | | | | | | - Settings > Apps > Advanced > Permissions - Permission icon needed tinting - Settings > Apps > [App] > Permissions - Permission icon also needed tinting - Grant permission dialog - Needed new base theme - App name color span needed dark color - Progress text needed dark color Bug: 21154903 Change-Id: I34045ac71ca87abbb4ce828435f583f53ab0d3da
* Hide platform platform legacy permissions behind a menu option - package ↵Svet Ganov2015-05-171-6/+6
| | | | | | | | installer. bug:21195624 Change-Id: If6de516d76969c3627316d091893da58f81af832
* Add logging for user permission interactions.Svet Ganov2015-05-141-0/+19
| | | | | | bug:21078221 Change-Id: Ie5bfb4c6013faf528b95eda0d5caf1c591f1e439
* Add support for permissions gran/revoke policy - package installer.Svet Ganov2015-05-111-17/+66
| | | | Change-Id: Id2d5733db0978e909d7159b0eade2b85ec838924
* Add animation for multiple permission checksJason Monk2015-05-081-26/+30
| | | | | | | | | | | | | - DialogFragment was removed and just use the dialog-themed activity instead. The previously GrantPermissionFragment, now acts as a helper class. - The dialog always tells the window its the same size, but then draws at whatever height is required for the current permission. (this allows it to stay in one position) - Touching outside now does nothing so that the user must respond to the permission request. Change-Id: I12f27de4de5ad83e123cb9acfa062950db39f61b
* Permission UI - legacy apps support - package installerSvet Ganov2015-05-051-0/+258
Change-Id: I23a7b4e42968df44d2dc3415bff2d15627653089