summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup of the PackageInstaller API - PackageInstallerSvet Ganov2016-04-2125-87/+345
| | | | | | | | | 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
* Fix misleading uninstall message for managed profilesFyodor Kupolov2016-04-181-1/+3
| | | | | | | | | | | | The message now depends on the state of mAllUsers flag in UninstallAppProgress activity: - This app is required for some users or profiles and was uninstalled for others (if mAllUsers==true) - This app is needed for your work profile and can't be uninstalled (if mAllUsers==false) Bug: 28240714 Change-Id: Ia060aebd112d3e4c5fcaee02a777140f085abf87
* DeletePackageAsUser in PackageManager uses different ordering of flags than ↵Philip P. Moltmann2016-04-151-1/+1
| | | | | | | IPackageManager. Bug: 28207146 Change-Id: Idc75427005c7998de4edd30245fa00a68ba816ba
* Reworked permission UI on TV into the new side-panel leanback styleKeyvan Amiri2016-04-149-160/+103
| | | | | | | | | | | | | | Reworked all the permission UIs on TV to mesh with the rest of the settings rendered as leanback-styled side panels with title bars. The permissions consist of the following components: * Each individual app permission listing ** Listing of all the permissions together with the apps using those permissions Bug: 27344882 Bug: 22481180 Change-Id: I4ab05efd9a4ea6fab7971b89f13d65591a2be8ee
* Show spacer when staging appPhilip P. Moltmann2016-04-111-0/+1
| | | | Change-Id: Iba35b172c03e971d2ef9864ddb86534f163b5993
* Do not show the uninstall progress if it taked less than 1/2 second.Philip P. Moltmann2016-04-111-12/+51
| | | | | | | | This actually covers most apps and flashing a screen for such a short time is just flicker. Bug: 24263165 Change-Id: I82469cad8277599677a5cf11ef975492d22f6d8d
* Merge "Apply material design make-over to uninstall path." into nyc-devPhilip P. Moltmann2016-04-111-14/+4
|\
| * Apply material design make-over to uninstall path.Philip P. Moltmann2016-04-111-14/+4
| | | | | | | | | | Bug: 26932948 Change-Id: I7552eaad562c2772c02cfa6f13cb044b6db17a19
* | Merge "Adding help link to apps permissions page" into nyc-devSuprabh Shukla2016-04-082-0/+6
|\ \ | |/ |/|
| * Adding help link to apps permissions pageSuprabh Shukla2016-04-072-0/+6
| | | | | | | | | | | | | | | | Added a menu item to link for the help center article for app permissions. Bug: b/22096093 Change-Id: Ic810bbcc64b20ab6ee21140f0bb3ea055c10813a
* | Merge "Make side-load install path material design-y" into nyc-devPhilip P. Moltmann2016-04-082-21/+15
|\ \
| * | Make side-load install path material design-yPhilip P. Moltmann2016-04-072-21/+15
| | | | | | | | | | | | | | | Bug: 26932948 Change-Id: Ic8bcec523fc6cd0db847a4575724fbe465e65c5d
* | | Remove dialog titles from simple package installer dialogs.Philip P. Moltmann2016-04-081-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Checked the wording of the content of the dialogs and I think the title does not add any information. Design guidelines discourage dialog titles. - Removed unused dialog type - Removed now unused strings - Spell corrected a string Bug: 5526317 Change-Id: I7d125d92ef3a2fb3fd6fd402af8d2422c0d8b869
* | | Refresh permissions UI on resumeSvet Ganov2016-04-072-0/+2
|/ / | | | | | | | | | | bug:21891813 Change-Id: Id9a694d14ecd80c8c04dc28b34cdda3e9119bfb3
* | Merge "Properly show third-party defined permission in platform groups" into ↵Svetoslav Ganov2016-04-021-2/+2
|\ \ | |/ |/| | | nyc-dev
| * Properly show third-party defined permission in platform groupsSvet Ganov2016-04-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | Apps can define permissions in the platform groups. If a legacy app deifines a permission in a platform group we were showing the permission twice because we failed to group the custom permission in the platform group when building the UI. bug:26142772 Change-Id: I263bff8631e14395c9000e5e54b0e160969e1eb2
* | Merge "Update deny button in permission warning dialogs" into nyc-devSvetoslav Ganov2016-03-236-6/+6
|\|
| * Update deny button in permission warning dialogsSvet Ganov2016-03-226-6/+6
| | | | | | | | | | | | bug:23899558 Change-Id: I37bf080d54fc4fff5dfcc9f8240b95c82fed56d2
* | Respect past user choices in permisson review UISvetoslav Ganov2016-03-232-27/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a permission review mode we show UI for the user to review new permissions for apps that do not support the new runtime permission model. The review is shown on an app launch. It is possible for the user to modify permissions in the settings UI before launching an app. This change ensures that the default value in the review UI reflects the user choice in settings. Specifically, the review UI shows the permission toggle in a granted state if the user expressed no opinion or granted the pemrission in settings (initially permissions are shown as revoked in settings as a review is pending - granting a permission from settings doesn't void the pending review). However, if the user grants and then revokes a permission in settings, (expresses an opinion the pemrission should be revoked) the default state of the permission toggle is off. bug:26741436 Change-Id: I021175df00e334e73aa01363d2c5645e2fe16b90
* | Merge "Revert "Respect past user choices in permisson review UI"" into nyc-devSvetoslav Ganov2016-03-232-32/+5
|\ \
| * | Revert "Respect past user choices in permisson review UI"Svetoslav Ganov2016-03-232-32/+5
| | | | | | | | | | | | | | | | | | This reverts commit 437a6bfedb33daf66592bbed8595025f3e707850. Change-Id: I5a46f94aadb0ab6dcbe85761f3b1390749b8b1cf
* | | Merge "Respect past user choices in permisson review UI" into nyc-devSvetoslav Ganov2016-03-232-5/+32
|\| |
| * | Respect past user choices in permisson review UISvetoslav Ganov2016-03-232-5/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a permission review mode we show UI for the user to review new permissions for apps that do not support the new runtime permission model. The review is shown on an app launch. It is possible for the user to modify permissions in the settings UI before launching an app. This change ensures that the default value in the review UI reflects the user choice in settings. Specifically, the review UI shows the permission toggle in a granted state if the user expressed no opinion or granted the pemrission in settings (initially permissions are shown as revoked in settings as a review is pending - granting a permission from settings doesn't void the pending review). However, if the user grants and then revokes a permission in settings, (expresses an opinion the pemrission should be revoked) the default state of the permission toggle is off. bug:26741436 Change-Id: Iae6ae497dfba46ba1399fbf66fb60e70c37f0420
* | | Merge "Added "Manage users" button" into nyc-devFyodor Kupolov2016-03-231-0/+14
|\ \ \
| * | | Added "Manage users" buttonFyodor Kupolov2016-03-221-0/+14
| |/ / | | | | | | | | | | | | | | | | | | Show "Manage users" button when a secondary user is blocking the uninstall. Bug: 24616123 Change-Id: I61f1d9814dccc9f9e8acbce97d8ef681f5ec8944
* | | Merge "Don't show app defined permissions in the review UI" into nyc-devSvetoslav Ganov2016-03-222-6/+21
|\ \ \
| * | | Don't show app defined permissions in the review UISvetoslav Ganov2016-03-212-6/+21
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only platform defined runtime permissions have corresponding app ops, hence there is no way to disable functionality guarded by app defined permissions. Therefore, app defined permissions should not show in the review UI. bug:27102458 Change-Id: Iedc7c4de9216007176b87cfecaeed69dbadc2068
* | | Show No permissions, if there are no permissionsVinod Krishnan2016-03-182-15/+24
| | | | | | | | | | | | Change-Id: I285e326994268fc5b561e4a445ac2af326a64397
* | | Wear Cleanup: Removing implicit intent & API changeVinod Krishnan2016-03-183-24/+64
|/ / | | | | | | | | | | | | | | - Remove a way to implicitly call Wear install service - Also make the Service take in the package as the data, just like the activities in PackageInstaller Change-Id: I0c4c9cebbb7396e025cab81eed835ab1a941ca01
* | Pick up the right package install URIBenjamin Franz2016-03-151-1/+1
| | | | | | | | | | Bug: 27645571 Change-Id: I824198b0eefea08ee3f0fa4f4f9267a557d21166
* | Merge "Don't crash installer" into nyc-devTodd Kennedy2016-03-111-0/+8
|\ \
| * | Don't crash installerTodd Kennedy2016-03-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | When starting the installer without a URI, it would crash. Don't do that. Bug: 26450627 Change-Id: I2b0d452c12c0fc695326200617c5284f60a9e45b
* | | Tweak strings when uninstalling updatesAmith Yamasani2016-03-091-3/+17
|/ / | | | | | | | | | | | | Inform about data deletion and also about other users. Bug: 26694521 Change-Id: Ib1ab8ca58e111cfbad6895f296e567e289ce34d8
* | Merge "Support app install from a content URI" into nyc-devSvetoslav Ganov2016-03-0618-90/+218
|\ \
| * | Support app install from a content URISvet Ganov2016-03-0518-90/+218
| |/ | | | | | | | | | | bug:24079113 Change-Id: Ide1aa1667370f6b8d00ff269ef28992589656e9a
* | Update restricted icon position in RestrictedSwitchPreference.Sudheer Shanka2016-03-022-6/+14
| | | | | | | | | | | | | | | | | | And fixed a bug where the admin disabled summary is shown even if the admin has not set a permission policy. Bug: 25603665 Bug: 27263775 Change-Id: I8cbbc4c326669a656ad5aef53896b388d556a74f
* | Use safe label in permission request UISvetoslav Ganov2016-03-011-23/+3
|/ | | | | | bug:23531798 Change-Id: I7cde3b9987c0e59b9aa148a5a3a597eec55a20a4
* Merge "Expose removed permissions flag as system API - installer" into nyc-devSvetoslav Ganov2016-02-235-6/+5
|\
| * Expose removed permissions flag as system API - installerSvet Ganov2016-02-225-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Show permissions grant UI in requested order" into nyc-devSvetoslav Ganov2016-02-231-6/+6
|\ \
| * | Show permissions grant UI in requested orderSvet Ganov2016-02-221-6/+6
| |/ | | | | | | | | | | bug:23314383 Change-Id: I4b41b9941f147eefc5f3fc2c520aba7afabd26a0
* | No overlay when permissions shown - package installerSvet Ganov2016-02-207-46/+17
| | | | | | | | | | | | bug:26973205 Change-Id: Ibae1b971ceb1ea0d831435b9d5166482199e9184
* | Fix a NPE in GrantPermissionsActivitySvet Ganov2016-02-201-5/+6
|/ | | | | | | | | We get an NPE if an app that delcates no permissions as used requests runtime permissions. bug:21011604 Change-Id: Id0cac6dcbd78ef849a1eafa522b8a06e61b21a1b
* Show support dialog when admin disallows installs from unknown sources.Sudheer Shanka2016-02-081-2/+4
| | | | | Bug: 26737249 Change-Id: I2a58b2eae34319ecc51ffc42078ed0cfe2460c60
* Use the correct userId when checking if disabled by admin.Sudheer Shanka2016-02-014-8/+17
| | | | Change-Id: I0fbe8ac8670b9fa4eb1fa35693856b47fdc974a4
* Update the summary used when permission is fixed by admin.Sudheer Shanka2016-01-262-4/+7
| | | | Change-Id: I427fd1e1c99153484944ee9955ae79ee9e2c23ef
* Merge "Add a padlock to options when disabled by admin."Sudheer Shanka2016-01-213-8/+110
|\
| * Add a padlock to options when disabled by admin.Sudheer Shanka2016-01-203-8/+110
| | | | | | | | | | | | | | | | Currently, if admin has enforced setPermissionGrantState to denied or granted, we disable the option and add a summary that the option is disabled by admin. With this change, a padlock will also be added in this case. Change-Id: I58080c914fabab045282eb3cc491901676fffaed
| * Merge "Revert "Make request permissions dialog layout robost"" am: 41d260fe98Svetoslav Ganov2016-01-153-35/+6
| |\ | | | | | | | | | | | | | | | | | | am: eccff95e32 * commit 'eccff95e32dbf09f0fe6df033daf09e8d3c4212e': Revert "Make request permissions dialog layout robost"
* | \ resolve merge conflicts of 9199155a7f to master.Svetoslav Ganov2016-01-203-250/+130
|\ \ \ | |/ / |/| | | | | Change-Id: I325541269f5a0f7c1fde7a57042543e769bed218