summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Handle dark themes in permissions UIJason Monk2015-05-194-4/+20
| | | | | | | | | | | | | | - 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
* Update permission preferences on reloadSvetoslav2015-05-181-8/+15
| | | | | | bug:21195624 Change-Id: I2ca03d80fd514258959c9e3e847d620e233a8de5
* Hide platform platform legacy permissions behind a menu option - package ↵Svet Ganov2015-05-1712-522/+1134
| | | | | | | | installer. bug:21195624 Change-Id: If6de516d76969c3627316d091893da58f81af832
* Apply same warning dialog to PermissionAppsFragmentJason Monk2015-05-152-4/+25
| | | | | | | Also fix old warning dialog to only show when needed. Bug: 21154909 Change-Id: Ibac1f39e8ae034ffc82450aedd2e30a5af28eb31
* Don't show permission with no app ops.Svet Ganov2015-05-144-4/+39
| | | | | | | | | | | | 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-147-4/+192
| | | | | | bug:21078221 Change-Id: Ie5bfb4c6013faf528b95eda0d5caf1c591f1e439
* Merge "Add default permission icon" into mnc-devJason Monk2015-05-132-2/+7
|\
| * Add default permission iconJason Monk2015-05-132-2/+7
| | | | | | | | | | Bug: 21119477 Change-Id: I9961276c8fe5fbc3658174dd8e00cff85e34b685
* | Add warning dialog for revoking non-M permsJason Monk2015-05-132-3/+30
|/ | | | Change-Id: I77d6e8da090684a65bdf27ba4a3a60ba6a5e9ac9
* Add additional permissions to app perms screenJason Monk2015-05-132-12/+66
| | | | | Bug: 20269176 Change-Id: Ibf77e352ebc8f0b7f16e839927d6df5a231c5c16
* Runtime permissions for system components not revokable - package installerSvet Ganov2015-05-125-0/+29
| | | | | | bug:20953205 Change-Id: Ie497e3124f127843d10645a625b47f2ee77dd269
* Add support for permissions gran/revoke policy - package installer.Svet Ganov2015-05-118-62/+333
| | | | Change-Id: Id2d5733db0978e909d7159b0eade2b85ec838924
* Merge "Add info button that leads to app info" into mnc-devJason Monk2015-05-082-1/+11
|\
| * Add info button that leads to app infoJason Monk2015-05-082-1/+11
| | | | | | | | | | Bug: 20633669 Change-Id: I4fc761e17ceee735a2bb833febf0af931ae6321f
* | Add animation for multiple permission checksJason Monk2015-05-084-155/+430
|/ | | | | | | | | | | | | - 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-0512-457/+744
| | | | Change-Id: I23a7b4e42968df44d2dc3415bff2d15627653089
* Add leanback-looking UI to permissions screensTony Mantler2015-04-222-12/+95
| | | | Change-Id: Ib77227dc0ae4d02f96efff95f67a359310b5547c
* Merge "Update permissions dialog from redlines"Jason Monk2015-04-071-3/+2
|\
| * Update permissions dialog from redlinesJason Monk2015-04-071-3/+2
| | | | | | | | Change-Id: I0b3146add8984fdea1a702d447461e82f4aa7c31
* | Fix a NPE and remove dead code.Svetoslav2015-04-062-249/+7
| | | | | | | | Change-Id: Id54773e0b48bd9356eb730b1530fb07a3d529160
* | Handle apps with no permissions (don't crash)Jason Monk2015-04-032-0/+18
|/ | | | Change-Id: I186b14cc7edb1de53df4e7e8bf299af09009f15b
* Minor updates to permission request dialogJason Monk2015-03-274-15/+67
| | | | | | | | | - Show correct icon and tinting for it - Bold/color the app name - Update the string, location and themeing of the checkbox, although its not actually hooked up yet. Change-Id: Ia7da81abb3d427f6d37ea29e8a38531cb743e878
* Update permissions UIJason Monk2015-03-276-35/+530
| | | | | | | - Update existing settings page to show action bar and app header. - Add page to manage apps based on permission. Change-Id: I2211044fbe4db4b4fbf981f1a7ad7a01666cd69d
* Initial version of the grant permission UI.Svet Ganov2015-03-245-0/+817
| | | | Change-Id: Ieb311d29d122cfce130ae1a26889dd7794548833
* Add basic support for new runtime permissionsSvet Ganov2015-03-241-110/+128
| | | | Change-Id: I7ec15992587b0036030386be35eedc095055b6eb
* Don't crash when cancelling an uninstall of a nonexistent packageChristopher Tate2015-03-101-6/+7
| | | | | | | | | | We bring up the UI with a friendly "hey this app does not exist" mode, but in the abort flow we were implicitly assuming that the target app info was properly initialized, and NPEing. Now we aren't. Bug 19676670 Change-Id: I017632caa51d0f1b354fdd48ad4867d245357680
* am 51296542: am 10763f1c: Merge "Hidden ApplicationInfo flags are now in ↵Alex Klyubin2015-02-111-3/+5
|\ | | | | | | | | | | | | privateFlags." * commit '512965420a8c5b00780610e962574215c91cf829': Hidden ApplicationInfo flags are now in privateFlags.
| * am 10763f1c: Merge "Hidden ApplicationInfo flags are now in privateFlags."Alex Klyubin2015-02-111-3/+5
| |\ | | | | | | | | | | | | * commit '10763f1caaf75389302a175a18f7b302848e3b36': Hidden ApplicationInfo flags are now in privateFlags.
| | * Hidden ApplicationInfo flags are now in privateFlags.Alex Klyubin2015-02-111-3/+5
| | | | | | | | | | | | | | | | | | See b9f8a5204a1b0b3919fa921e858d04124c582828. Change-Id: Ie23eb8ddd5129de3c6e008c5261b639e22182ee5
* | | Show appropriate UI when uninstalling blocked by device admin.Rubin Xu2014-12-181-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | If the uninstallation is blocked by device admin in secondary user, the UI shouldn't lead the user to the admin settings of current user. Bug: 17668398 Change-Id: I0b2ae67d434bdc4f5c439e8b7b05cdcc798f2f31
* | | Show appropriate UI when uninstalling fails due to being device admin.Rubin Xu2014-12-171-7/+41
|/ / | | | | | | | | | | | | | | | | | | If the app being uninstalled is a secondary user's device admin rather than the current user or profile owner, the uninstallation failure activity should state so clearly, and it should not lead the user to the device administrator settings of the current user. Bug: 17668398 Change-Id: Ib81840b7b2928624bc57cce949cfb2a2d9de604a
* | Use Material tinting for install resultChristopher Tate2014-12-011-2/+2
| | | | | | | | | | | | Bug 18507476 Change-Id: I5cfefa4be52306fee14b7fb163a730b1d39fc759
* | Fix a regression in installing from unknown sourcesAmith Yamasani2014-10-291-0/+2
| | | | | | | | | | | | | | | | If unknown source and the setting is enabled, proceed with UI initialization. Bug: 18165796 Change-Id: Ifee833cc7225d30b4e4fb874dc255cd42d7472d0
* | Display correct message based on reasonAmith Yamasani2014-10-281-29/+60
|/ | | | | | | | | | | | | There can be two reasons for not allowing installation of apps from unknown sources. 1. The user setting is off, in which case allow the user to go to Settings and change it. 2. The device administrator (or corp profile) has prohibited. In this case, user can't really change it, so show a different message and have just an OK button. Bug: 17656403 Change-Id: I0d90ba95d7a9250021366b76d570c0ef7b55c143
* Use an AlertDialog for the Uninstall confirmationAdam Lesinski2014-09-101-127/+151
| | | | | | | | | This allows us to get the correct theming for free moving forward. Bug:17045520 Change-Id: I173315b39816b0061c048459e1f14d81747f072b
* Use correct API for badgingAmith Yamasani2014-09-071-1/+1
| | | | | Bug: 17414778 Change-Id: If7c67b9983923c8c02287c3325d1d8d23127adc7
* Update AppInstaller due to API changes.Svetoslav2014-09-041-6/+1
| | | | | | bug:17390424 Change-Id: I4fc49f7bab04547e47c3c0d0fe5052de6478ef7b
* PackageInstaller API refactoring.Jeff Sharkey2014-08-152-2/+2
| | | | | Bug: 17008440 Change-Id: Ice56b712a96abecc3d908424d4595449927c2d3e
* Extend to support uninstall callbacks.Jeff Sharkey2014-08-072-42/+65
| | | | | | | | | The new PackageInstaller.uninstall() API in the framework currently shuttles through the callers IBinder, just to get this flow working for now. Bug: 16515814 Change-Id: Ib7b839b3fcc1c854f99af6eeae25172e900acb80
* Extend to support install sessions.Jeff Sharkey2014-08-071-34/+71
| | | | | | | | | Light changes to existing code to support pre-staged install sessions. Only inspects a base APK from session, which defines all permissions. Bug: 16515814 Change-Id: Ia1cb43ff9fdfe1f2468ad0d1374cff2b8eb50f54
* Support uninstalling apps for other profiles.Kenny Guy2014-07-103-22/+124
| | | | | | | | | | | | | | Allow client to pick which user the package will be removed for, checking its a profile of the current user. Inform user if package is blocked from being removed and let them knows its due to an admin. Add check to stop non owner asking to uninstall for all users. Bug: 14127299 Change-Id: I60504224f5271272a390320a0fa62aa7f5de4e54
* Apply restriction ENSURE_VERIFY_APPS to PackageInstaller.Julia Reynolds2014-06-301-0/+4
| | | | | Bug: 15986973 Change-Id: I154fdf06d6e37c55bd4b179cdac00112455ca777
* Follow more PackageParser refactoring.Jeff Sharkey2014-06-181-13/+5
| | | | Change-Id: I98f44668bd0a211b57e8311ead4b4ce01a04de90
* Follow API refactoring.Jeff Sharkey2014-06-151-16/+16
| | | | | | Now using exceptions for better control flow. Change-Id: I4432721729f6b1878971c99f5eaaa033194cd8ba
* Prevent sideloading if UserManager flag is set for current user.Sander Alewijnse2014-05-201-4/+11
| | | | | | | Using the flag UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES. If true, this overrides the secure INSTALL_NON_MARKET_APPS flag. Change-Id: I4d9628f0ce35d585d4416adfb421e74cbf01fd86
* Log APK hash for package install attempts in the Event Log.Alex Klyubin2013-10-154-12/+119
| | | | | | | | | | This CL adds a package_digest field to the install_package_attempt event. The field is populated with the SHA-256 digest of the contents of the APK iff the user has consented to app verification and app verification is enabled. Bug: 10605940 Change-Id: I0d191398ed8d28950c7b5ee0ce02ec077d2c888b
* Robustify logging of analytics about PackageInstaller.Alex Klyubin2013-09-102-65/+42
| | | | | | | | | | | This CL switches from the type-unsafe EventLog.writeEvent method to the strictly-typed EventLogTags.writeInstallPackageAttempt. This method is generated from the definition of this event in EventLogTags.logtags and thus offers compile-time type checking. Bug: 10605940 Change-Id: I62895b60fe4c01d4314eba564476e0f1ed7ad78b
* Merge "Record analytics about package install attempts to Event Log." into ↵Alex Klyubin2013-09-105-36/+647
|\ | | | | | | klp-dev
| * Record analytics about package install attempts to Event Log.Alex Klyubin2013-09-095-36/+647
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of this change is to provide analytics about the various stages of the install flow. Recorded information does not contain user-, device-, or package/app-identifying information. Examples of recorded information are: * duration of the flow (start to finish) * duration of the flow until the moment the user clicks Install * whether the attempt is an update or a new install. * whether app verification is enabled. * whether Unknown Sources is enabled. * whether the attempt was blocked by Unknown Sources. * whether permissions were displayed. * error code (if any) returned by PackageManager when installing the package. Bug: 10605940 Change-Id: I9bc009223a365a558cdf02bd91cf4315b82564c2
* | Fix bug #10397732 'X' icon of download manager UI error not mirroredFabrice Di Meglio2013-09-061-1/+2
|/ | | | | | - use TextView.setCompoundDrawablesRelative() instead of setCompoundDrawables() Change-Id: I4021236aa40d92ed9df0e354b8ce2287afa51168