summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update Grant Permissions dialog to redlinesAnthony Hugh2015-09-223-59/+84
| | | | | | | | | | | | | | | | | | | | | | | | Changes: - Refactor the ViewHandler a bit to be more generic. This should help with another upcoming Wear dialog. - Update assets for buttons - Add deny asset - Fix margins and other UI number tweaks BUG: 24133550 Change-Id: I330bdf3217fa5c554f71d9105a0475106b6f3e12
* | Permissions Settings UI updatesAnthony Hugh2015-09-174-51/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes: - Moved non-system permission groups to the end of the list - Updated "disabled" look to match non-center looked - Fixed state string alpha to match other alphas when not centered - Minor code clean ups BUG: 24132393 BUG: 24132470 BUG: 24131983 Change-Id: I65a64d59e6fff8e0cbdaaa3da4e4a79987d6e624
* | Fix build breakAnthony Hugh2015-09-161-1/+1
| | | | | | | | | | | | Another bad merge. Util was changed to isWear, not isWatch Change-Id: If15036edbb09114a17fd5993c145433b5c274ec8
* | Build initial Permissions Settings UI page for WearAnthony Hugh2015-09-155-2/+598
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a first pass to build a functional settings UI page for Permissions on Android Wear. The user flow is a little different than the phone version, so there are some nuances that need to be adjusted from the normal flow. I have forked off of the AppPermissionsFragment and created a Wear version for us to use. Rather than try to link the Wearable-Support lib into AOSP code, I have made a duplicate of the few files I needed. This change adds a Wear layout version of the Settings UI page. The UI is fully functional for most cases, but there are some tweaks still needed for full parity. The tweaks are primarily around UI and special edge case functions. BUG: 23080561 Change-Id: I8477f6b966cacaae9e77aa0fb61b4b1e621a9ead
* | Merge "Permissions Watch settings UI port" into cw-e-devAnthony Hugh2015-09-164-0/+457
|\ \
| * | Permissions Watch settings UI portAnthony Hugh2015-09-154-0/+457
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL contains all the UI elements needed to build the Wear version of the Settings UI for permissions. The actual implementation for the Wear version of SettingsUI will be done in a follow up bug. This is basically a straight port from our Settings app and wearable-support lib. I tweaked two strings and changed the package paths to make it easier to group the files together. BUG: 23080561 Change-Id: I6d72d29dd1926ad07d63f85b52ccf9f72ff70df1
* | | am b6e35d1c: am 30707bb7: Use unique preference key.Svet Ganov2015-09-152-8/+8
|\ \ \ | | |/ | |/| | | | | | | * commit 'b6e35d1c5efeec22481f4912a7e422daad601fbc': Use unique preference key.
| * | Use unique preference key.Svet Ganov2015-09-122-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Add an API for getting list of all apps that have runtime perms" into ↵Vinod Krishnan2015-09-142-21/+77
|\ \ \ | | | | | | | | | | | | cw-e-dev
| * | | Add an API for getting list of all apps that have runtime permsVinod Krishnan2015-09-142-21/+77
| | |/ | |/| | | | | | | | | | | | | | | | | | | Bug: 23819535 - Used for Android Wear Change-Id: Ie42ce04453cb0cd7d2cf292065bbb1891fffbfa9
* / | Changing layout to make button animations workVinod Krishnan2015-09-1411-26/+182
|/ / | | | | | | | | | | | | | | | | | | | | - 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
* | Redo Move ClockworkPackageInstaller functionality here"Vinod Krishnan2015-09-093-0/+964
| | | | | | | | | | | | This reverts commit 5b26c2e64ceeaa1e71436b36a28f53100e358ed8. Change-Id: I88fa09f87023a7c1b2aac3100cfbdce6283de770
* | Revert "Move ClockworkPackageInstaller functionality here"Griff Hazen2015-09-083-964/+0
| | | | | | | | | | | | | | | | Breaking ub-wear-dinar/ub-wear-master builds This reverts commit aa4368cafc3c92b33a99c3fbe0e6af08d7e092e4. Change-Id: Ib22189891e9cd9eef61cdaa5ac329d05ab9783e8
* | Move ClockworkPackageInstaller functionality hereVinod Krishnan2015-09-043-0/+964
| | | | | | | | | | | | | | | | | | - The code is being moved from https://cs.corp.google.com/#android/vendor/google_clockwork/packages/PackageInstaller/src/com/google/android/clockwork/packageinstaller/ Bug: 22411517 Change-Id: If6a0b7f49530176a6cff6b76ee6eff44ba822547
* | am ab4bb65e: am 3c44cc54: Display properly runtime permissions without a ↵Svetoslav2015-09-022-15/+3
|\| | | | | | | | | | | | | corresponding app op. * commit 'ab4bb65e30cfc7323dc7dfab8f370c7452956962': Display properly runtime permissions without a corresponding app op.
| * Display properly runtime permissions without a corresponding app op.Svetoslav2015-09-012-15/+3
| | | | | | | | | | | | | | | | | | | | | | | | We added the GET_ACCOUNTS permission to the contacts group but it does not have an app op. The UI code was written with the assumption that all runtime permissions have an app op and was not showing the contacts group if the only requested permission from that group was GET_ACCOUNTS. bug:23726958 Change-Id: Iad5493297901c3f1144f4d58a3dad3f022c593a1
* | am 5d2d9baa: am f7fc0631: Merge "Show location permission toggle for ↵Svetoslav Ganov2015-08-316-9/+23
|\| | | | | | | | | | | | | location provider" into mnc-dev * commit '5d2d9baa01c06ff8f247419eb3b66e8e21844b28': Show location permission toggle for location provider
| * Merge "Show location permission toggle for location provider" into mnc-devSvetoslav Ganov2015-08-316-9/+23
| |\
| | * Show location permission toggle for location providerSvetoslav2015-08-286-9/+23
| | | | | | | | | | | | | | | | | | bug:23528665 Change-Id: Id3a0838c3421b56dcf47c86043bb51c670268d03
* | | am 954f5f2e: am 711f8a17: Merge "Revert "Show location permission group, ↵Svetoslav Ganov2015-08-311-4/+2
|\| | | | | | | | | | | | | | | | | | | | even when fixed."" into mnc-dev * commit '954f5f2ed1c7ff288ba9f4686bdee93860d02720': Revert "Show location permission group, even when fixed."
| * | Merge "Revert "Show location permission group, even when fixed."" into mnc-devSvetoslav Ganov2015-08-311-4/+2
| |\|
| | * Revert "Show location permission group, even when fixed."Svetoslav Ganov2015-08-281-4/+2
| | | | | | | | | | | | | | | | | | This reverts commit 3c093f94a82a7b013dd93edf3f5811aa3763af4b. Change-Id: I28e5597390df3abfdde6e4f8c46d0350028392c8
* | | am 5005cc47: am 79fe6c1c: Merge "Refresh permissions UI on fragment resume" ↵Svetoslav Ganov2015-08-291-1/+1
|\| | | | | | | | | | | | | | | | | | | | into mnc-dev * commit '5005cc47bd411539b2815d39b1e55fdb950f83af': Refresh permissions UI on fragment resume
| * | Merge "Refresh permissions UI on fragment resume" into mnc-devSvetoslav Ganov2015-08-281-1/+1
| |\ \ | | |/ | |/|
| | * Refresh permissions UI on fragment resumeSvet Ganov2015-08-231-1/+1
| | | | | | | | | | | | | | | | | | bug:23435039 Change-Id: I244d73d3482cc17447e5e673a461183e03bc67a6
* | | 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
| * | Merge "Always set permission policy to fixed" into mnc-devIan Pedowitz2015-08-271-3/+3
| |\ \
| | * | Always set permission policy to fixedBenjamin Franz2015-08-251-3/+3
| | | | | | | | | | | | | | | | | | | | Bug: 23408576 Change-Id: I981810de6f5b49b94371606cc5cf7baf51375485
* | | | am 372aad9e: am 0d93cfb9: Protect permission dialog from type jack attacksSvet Ganov2015-08-251-1/+23
|\| | | | | | | | | | | | | | | | | | | * commit '372aad9e815985e6e6d3fee13292f64f5085756d': Protect permission dialog from type jack attacks
| * | | Protect permission dialog from type jack attacksSvet Ganov2015-08-251-1/+23
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit the app name in the permissions dialog to prevent a bad app with a very long name to trick the user about the purpose of this dialog. Also wrap the label with BidiFormatter to protect against bidi override attacks. bug:23516019 Change-Id: Iba819d384864a004eefc2d2154dbfed3ef3b81c1
* | | am cc893701: am bb27277d: Use actual app name in location dialog.Jeff Sharkey2015-08-221-1/+1
|\| | | | | | | | | | | | | | * commit 'cc893701a129ead00f2e753481fabae21153b1f2': Use actual app name in location dialog.
| * | Use actual app name in location dialog.Jeff Sharkey2015-08-211-1/+1
| | | | | | | | | | | | | | | Bug: 21805447 Change-Id: I394f40d0d8bce1541ec57cac7a60751b740aefaf
* | | am 7f4103b0: am 8dcea3bf: Show multi-permission UI in the requested order.Svet Ganov2015-08-222-36/+40
|\| | | | | | | | | | | | | | * commit '7f4103b04d6af92fd92d92f5526b73aa76fbd233': Show multi-permission UI in the requested order.
| * | Show multi-permission UI in the requested order.Svet Ganov2015-08-212-36/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 1b066ca0: am 9b724fd6: Merge "Show location permission group, even when ↵Jeff Sharkey2015-08-221-2/+4
|\| | | | | | | | | | | | | | | | | | | | fixed." into mnc-dev * commit '1b066ca094bf6c3ab0157a97ec4a20f988e0ed0a': Show location permission group, even when fixed.
| * | Show location permission group, even when fixed.Jeff Sharkey2015-08-211-2/+4
| |/ | | | | | | | | | | | | | | | | System fixed permissions are typically hidden in the UI, but we need to special-case the Location group to help guide the user to another part of Settings where they can manage location access. Bug: 21805447 Change-Id: Ia6b30b4651c9ed42e0279e729e544b654940dde6
* | am af8c918e: am ab1e5900: Merge "Revert "Grant only requested permissions ↵Ian Pedowitz2015-08-226-48/+20
|\ \ | | | | | | | | | | | | | | | | | | 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-216-48/+20
| | | | | | | | | | | | | | | | | | | | | | | | 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-222-40/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | order." * commit '4a399b3249a39c66108f7bed37c95bc4d43a92b2': Revert "Show multi-permission UI in the requested order."
| * | | Revert "Show multi-permission UI in the requested order."Ian Pedowitz2015-08-212-40/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit dda78230999da573318594c7cfcdbc738bab864e. Bug: 23314383 Bug: 23397858 Change-Id: I8d06936ad8a51299148f0a311da81d8868840e78
* | | | Implement base version of GrantPermissions dialogAnthony Hugh2015-08-213-0/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-213-315/+0
|\ \ \ \
| * | | | Revert "Implement base version of GrantPermissions dialog"Anthony Hugh2015-08-213-315/+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-213-0/+315
|\| | | | | |/ / / |/| | |
| * | | Implement base version of GrantPermissions dialogAnthony Hugh2015-08-213-0/+315
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-202-36/+40
| |/ |/| | | | | | | | | | | | | | | | | | | 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-206-20/+48
|/ | | | | | | | | | | | 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
* Fix issue #23115154: APR: NPE in PackageInstallerDianne Hackborn2015-08-111-0/+4
| | | | Change-Id: If89e603508e02cad781ee455b2149af1024bd443
* Do not show removed permissions in the UI - frameworkSvet Ganov2015-08-074-3/+12
| | | | | | bug:23043018 Change-Id: I32efe93f8c52924263b16d80e09fae1a0a6babf5
* Show warning when touches are being blocked by overlaysJason Monk2015-08-076-4/+121
| | | | | Bug: 22317719 Change-Id: I5f6526bcce382ae6fabe32d3f8842567d8dc8701