summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/permission/model/PermissionApps.java
Commit message (Collapse)AuthorAgeFilesLines
* Load PermissionGroups completely asyncPhilip P. Moltmann2016-12-131-0/+18
| | | | | | | | | | | | | | Before we relied on 'manual' referesh calls in onResume, etc... . Now all the updating is done triggered by a loader based on PermissionsChangeListener in PermissionGroups.PermissionsLoader. Fixes: 33354617 Test: - Revoked permission in manage permission UI. Global manage permission UI got updated. - Granted permission inside of app while settings was open. Saw settings to get updated. Change-Id: I3f35564885b6020d1729d61fc9056d732a0366c1
* Support ephemeral permissionsChad Brubaker2016-10-261-3/+5
| | | | | | | | | | | | | | Ephemeral permissions may be mixed in permission groups, avoid trying to grant non-ephemeral group members and avoid showing a group for an ephemeral app if all permissions of that group are not ephemeral Test: Verified that runtime permissions work for ephemeral and that groups which contain no ephemeral permissions are auto-rejected/not displayed in settings. Test: cts-tradefed run cts -m CtsPermission2TestCases Test: Verified that permissions that cannot be granted are not shown in the all permissions fragment. Change-Id: I511689bc540a025e0e3ebdaf9c62e01764028a9f
* Polish permissions review UI.Svet Ganov2016-09-211-3/+2
| | | | | | | | | | | | | | | | | | | This change adds a more info button to the permission grant UI and the permission review UI which sends the user to the all permissions screen. It also adds UI to manage all permissions in the SMS group individually. Now tapping on the switch in the app permissions screen toggles the permission group and tapping on the permission name sends the user to the detailed permission-level management UI. Lastly, this change adds management controls to each SMS permission in the all permissions screen where tapping on the switch toggles the permission and tapping on the name as before shows a detailed description. Change-Id: I1d6cbc478c789e7680f41b92b9f3fa2504576ecd
* Use badged icons for permissions.Philip P. Moltmann2016-05-111-10/+12
| | | | | | | | Please note that the labels stay unbadged. I.e. The label will always be "Contacts" instead of "Work Contacts". Fixes: 28403737 Change-Id: Ib994db946b07098a8c0f95eab5787fb30532fe62
* Fix a NPE in PackageInstallerSvet Ganov2016-04-291-0/+4
| | | | | | | | | | | We were returing a null PermissionGroup object to a place where this was not expected by design. The reason for that was an incorrect fix for b/28241097. This CL reverts the introduced regression and adds a null check just in case. bug:27102458 Change-Id: I78f8107d0adf6bb2da5d8e11c5f3cf3c00fe36a2
* Cleanup of the PackageInstaller API - PackageInstallerSvet Ganov2016-04-211-4/+5
| | | | | | | | | The PackageInstaller app manages side-loading apps as well as permission management. It should be updatable, hence should rely on system APIs to talk to the platform. This is the first step of defining an API boundary. Change-Id: I37aea1e5cc3195b8b636af6790af45fe5a9765cd
* Support app install from a content URISvet Ganov2016-03-051-1/+1
| | | | | | bug:24079113 Change-Id: Ide1aa1667370f6b8d00ff269ef28992589656e9a
* Expose removed permissions flag as system API - installerSvet Ganov2016-02-221-2/+1
| | | | | | | | | | | | | | | There are some permissions that were removed from the platform and guard nothing but legacy apps may be checking them before calling APIs. Hence, these apps should get the permissions as expected despite them being a no-op. To address this the platform declares removed permissions as normal permissions that are hidden such that legacy apps can always get them. These permissions are not shown in the UI. Play needs a way to filter out these permissions like the platform as they have permissions UI too. bug:23361760 Change-Id: Ieecf69f70551d987f5fac1f128b7f7a0c242c378
* Use the correct userId when checking if disabled by admin.Sudheer Shanka2016-02-011-0/+4
| | | | Change-Id: I0fbe8ac8670b9fa4eb1fa35693856b47fdc974a4
* Follow PackageManager refactoring.Jeff Sharkey2016-01-061-2/+2
| | | | Change-Id: Ie6ef17c3252b6baa8fcfea1db1a8739f00851529
* Add optional permission review for legacy apps - installerSvet Ganov2015-12-011-5/+5
| | | | Change-Id: Ifc88b2fa259d2d22bea6b5500cded2714ad4da85
* resolve merge conflicts of c10abb25f3 to cw-e-dev.Svetoslav2015-11-201-1/+2
| | | | Change-Id: I3fe38a9ac62466b38efec834dceb712d2782c518
* Use unique preference key.Svet Ganov2015-09-121-2/+2
| | | | | | | | | | | | The UI code was wrongly using UID as the key - it is not unique - resulting in keeping only one app per UID in the UI and not showing permission controls for the other apps in this UID. This change uses the unique package plus UID as the preference key. bug:23937944 Change-Id: I859afcf3ec8efdcb62d0e9dacd19f771436da084
* Revert "Grant only requested permissions not the whole group."Ian Pedowitz2015-08-211-3/+3
| | | | | | | | This reverts commit e899d8d48558a6d4a8f0498c38a623115aad2205. Bug: 23314383 Bug: 23397858 Change-Id: Ia928a4b24c60eae6b4fb16ebdbfa6b6787f6c3ae
* Grant only requested permissions not the whole group.Svet Ganov2015-08-201-3/+3
| | | | | | | | | | | | 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
* Do not show removed permissions in the UI - frameworkSvet Ganov2015-08-071-1/+3
| | | | | | bug:23043018 Change-Id: I32efe93f8c52924263b16d80e09fae1a0a6babf5
* Ingore not installed permissions in the UISvetoslav2015-07-221-1/+3
| | | | | | bug:22303510 Change-Id: Ieab8da041627e6a5807d00a72a1ec73f1cca821b
* Add "Show system apps" to "apps > permissions > [permission]" for TVTodd Volkert2015-07-091-2/+7
| | | | | | b/22045256 Change-Id: I5f3f9a87875f02f9ca11b8001515ad82c260919b
* Merge "Consider only dagerous permissions of a group in permission apps ↵Svet Ganov2015-07-061-4/+9
|\ | | | | | | screen" into mnc-dev
| * Consider only dagerous permissions of a group in permission apps screenSvet Ganov2015-07-021-4/+9
| | | | | | | | | | | | bug:22173337 Change-Id: If484f7d5d8820cbdbf84dcf67d71e74e00c1bbcd
* | Show basic feature warning for default granted permissionsSvet Ganov2015-07-031-0/+4
|/ | | | | | bug:22174223 Change-Id: Ic5c9a0ed9c17353145fff6e45483e92181fd9b86
* Migrate package installer permissions fragments to preference support lib.Todd Volkert2015-07-011-3/+1
| | | | | | | | | | | | In order to allow for TV-friendly layouts, this migrates the permissions fragments to the preference support lib, and modifies the necessary layouts and themes to make them work on TV. b/22043727 b/22045650 b/22044940 Change-Id: Ic862effe2c126da78c304983fd06e017c3ee4472
* Fix app count on App PermissionsMakoto Onuki2015-06-221-0/+1
| | | | | | Bug 21853051 Change-Id: I0ce4776f75c54d47bb0aa6f12419acc7bfd964ae
* Merge "Link from location permission to settings for loc providers" into mnc-devJason Monk2015-06-181-0/+4
|\
| * Link from location permission to settings for loc providersJason Monk2015-06-171-0/+4
| | | | | | | | | | Bug: 21805447 Change-Id: I27aed860b73d99976479793076852aecbf0be5a2
* | Merge "Add better logic for what is 'system'" into mnc-devJason Monk2015-06-181-10/+11
|\ \
| * | Add better logic for what is 'system'Jason Monk2015-06-181-10/+11
| |/ | | | | | | | | | | | | | | Match settings logic for this: System apps are on the system image, don't show up in launcher, and haven't been updated. Bug: 21849124 Change-Id: Ida77f98d080068731dcfd7aaf26aeb086fd681ed
* / Pass the right userHandle to AppPermissionGroupFyodor Kupolov2015-06-151-1/+1
|/ | | | | | | Previously, userHandle of the user associated with the context was always used. Bug: 21804306 Change-Id: If297a4c7b22abf43533b8ed67df0fd9b11c9b82e
* Add show/hide system to PermissionAppsFragmentsJason Monk2015-06-041-2/+17
| | | | | Bug: 20826868 Change-Id: Ie48a3624116822135eb1920806ed12ade1612874
* Add permission summaries backJason Monk2015-05-261-98/+178
| | | | | | | | | | | - Add summaries to manage permissions screen - Add some shortcuts to skip loading unneeded labels/icons for summary info - Add way for Settings to broadcast request for info about granted permissions. Bug: 21078474 Change-Id: I28582129971385203f4e4316addf73e07ee53940
* Hide platform platform legacy permissions behind a menu option - package ↵Svet Ganov2015-05-171-14/+14
| | | | | | | | installer. bug:21195624 Change-Id: If6de516d76969c3627316d091893da58f81af832
* Don't show permission with no app ops.Svet Ganov2015-05-141-0/+8
| | | | | | | | | | | | We have some permissions that we will be getting rid of and for that reason do not have app ops. Such permission were showing in the UI for legacy apps but changing them has no effect because there is no app ops support. We are not not showing them in the UI to avoid user frustration. bug:21168530 Change-Id: I2b6988f003e27b266fb2b48ddbb692ae5cf131fb
* Add logging for user permission interactions.Svet Ganov2015-05-141-4/+14
| | | | | | bug:21078221 Change-Id: Ie5bfb4c6013faf528b95eda0d5caf1c591f1e439
* Add default permission iconJason Monk2015-05-131-1/+5
| | | | | Bug: 21119477 Change-Id: I9961276c8fe5fbc3658174dd8e00cff85e34b685
* Runtime permissions for system components not revokable - package installerSvet Ganov2015-05-121-0/+4
| | | | | | bug:20953205 Change-Id: Ie497e3124f127843d10645a625b47f2ee77dd269
* Add support for permissions gran/revoke policy - package installer.Svet Ganov2015-05-111-2/+6
| | | | Change-Id: Id2d5733db0978e909d7159b0eade2b85ec838924
* Permission UI - legacy apps support - package installerSvet Ganov2015-05-051-0/+266
Change-Id: I23a7b4e42968df44d2dc3415bff2d15627653089