summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Update install-permission logic to use new FLAG_PRIVILEGEDChristopher Tate2013-06-141-5/+5
| | | | | | | | | | | We no longer grant all "signatureOrSystem" type permissions to all apps bundled on the system partition; there is a build-time grant of privileged status. The logic for granting install permission now checks the caller's privileged status, not just its apk location. Bug 8765951 Change-Id: Ib88f4b0911743bd6bfd3458302fe88518e08ac86
* Use direct call to get ManifestDigestKenny Root2013-04-021-1/+1
| | | | | | | | This speeds up startup of PackageInstaller since it doesn't have to read all the data. Bug: 8528639 Change-Id: Ic7b9dc93f0f940a128b583936b3f56c707b5cb2c
* PackageInstaller: add permission granting supportNick Kralevich2013-03-271-0/+229
| | | | | | | | | | | | | | | | | | | | | | Add support to PackageInstaller for allowing the user to grant permissions to other apps. The user is involved in the decision, and can approve or reject permissions. Applications can make a request to PackageInstaller using something like the following code: private void onPromptPermissionsClicked(String... permissions) { Intent i = getActivity().getApplication() .getPackageManager().requestPermission(permissions); startActivityForResult(i, 0); } This code reuses the sideloading upgrade flow when adding permissions, making the UI very familiar to someone who's sideloaded applications. Conceptually, we are treating a permission grant as a reinstall of the application with new permissions. Change-Id: Ia37f761e5574a490d1d37b9eb40cf5e77c928a40
* Move TabsAdapter into it's own class.Nick Kralevich2013-03-252-132/+156
| | | | | | | | Extract TabsAdapter into it's own class. It makes the code more reusable and makes PackageInstallerActivity.java smaller. No change in functionality. Change-Id: I1ebc7fd05f600fd4764020c5ab72274f435ed211
* PackageUtil: don't collect certs if package doesn't existNick Kralevich2013-03-191-3/+6
| | | | | | | | | | | If packageParser.parsePackage() returns null, don't attempt call packageParser.collectCertificates(). This fixes a NPE triggered by the following command: am start -a android.intent.action.VIEW -d file:///blah/blah.apk -t application/vnd.android.package-archive Change-Id: I6f6f836734d4b4ee07e98ee6b1f6339fa675b8b0
* Add manifest to verification paramsKenny Root2013-03-143-1/+10
| | | | Change-Id: I088ab981cb56d4f156b6ff910d6a2270e3302dc4
* Fix issue #7448596: Can't uninstall app that was installed by another userDianne Hackborn2012-10-311-1/+4
| | | | Change-Id: I80a07a30cb452eee61e0838b5133559bb1f10d6f
* Fix issue #7323256: permission dialog has bad layoutDianne Hackborn2012-10-111-11/+12
| | | | Change-Id: I3fc9f9bf492178ba064a4579826f49f252d41a20
* Merge "Determine the originating uid for an install" into jb-mr1-devBen Gruver2012-09-282-2/+84
|\
| * Determine the originating uid for an installBen Gruver2012-09-272-2/+84
| | | | | | | | | | Bug: 6923241 Change-Id: I281301ca0bece2cb2395cde1d7652be168ffa202
* | Fix issue #7240599 Permissions UI: left side padding on...Dianne Hackborn2012-09-271-1/+2
|/ | | | | | ...Device Access and Privacy headings Change-Id: I9aca7d9fec60d4312ca13d8bce26fc7aebfe326c
* Update references to migrated global settings.Jeff Brown2012-09-251-2/+2
| | | | | Bug: 7231172 Change-Id: Ib6fd133057bdcd40c2cc8699033f548985339aa8
* Allow side-loading of apps from other users.Dianne Hackborn2012-09-192-20/+68
| | | | | | | | This will allow applications to do the desired bypass of downloading and re-installing an app if it is already installed on the device for another user. Change-Id: Ib2bc0f39bc6b495af653560cf13cb8477413186d
* Implement new option for uninstalling over all users.Dianne Hackborn2012-09-162-2/+13
| | | | | | | | This API is hidden, but we don't try to protect with a permission here because we always go through a UI for the user to verify the operation. Change-Id: I5580bcbe7ca00b8613c0d8523f348ce83b2d5031
* Further adjustment of the new package installer UI.Dianne Hackborn2012-09-162-60/+163
| | | | | | | | | | | | | | - Privacy and Device permissions are not shown as separate tabs, but instead separate sections in the same single scrollable permissions list. - No tabs are shown when installing a new app (they are all in the new single list); two tabs are shown when installing an update: the new permissions, and all permissions. - If you are reviewing more permissions than fit on the screen, the "install" button is changed to a "next" button until you scroll through the entire list. Change-Id: I0665a797f80ba5276e782e94be97090a429e5280
* New permissions UI.Dianne Hackborn2012-09-121-44/+183
|
* am 47fe118e: Merge "Show a Toast on a successful application uninstall"Dianne Hackborn2012-08-211-1/+7
|\ | | | | | | | | * commit '47fe118e0178e9d72c98073ff588ee5cf353258e': Show a Toast on a successful application uninstall
| * Show a Toast on a successful application uninstallScott Warner2012-08-211-1/+7
| | | | | | | | | | | | | | | | Instead of waiting for the user to tap OK, just show a Toast and get out of the way. Does not change anything for unsuccessful uninstall attempts Change-Id: I32c2097405b4c4f514224b7561b83175a1c882fb
* | Accept and pass URLs to PackageManagerServicerich cannings2012-08-202-1/+18
| | | | | | | | | | | | | | | | This change passes the originating URI and referrer of an apk, when available, to the package manager. Bug: 6544677 Change-Id: I1431b0e02eb779d9699e282ae59aaab485a00626
* | Revert "Accept and pass URLs to PackageManagerService"Rich Cannings2012-08-082-17/+2
| | | | | | | | | | | | This reverts commit 076ca8c8373a3d5f3f56103fa85966cc6c34c94a Change-Id: I955510c4aa9f7fada2685ca274d0bb8fbdd91cdf
* | Accept and pass URLs to PackageManagerServicerich cannings2012-08-022-2/+17
|/ | | | | | | | This change passes the originating URI and referrer of an apk, when available, to the package manager. Bug: 6544677 Change-Id: I6b1036012399f6cd42feceedeca2493b6b20501a
* Survey says: NIET!Dianne Hackborn2012-06-011-183/+44
| | | | | | Bug: 6593206 Change-Id: Ib8ec410e9af258b507706f2a162e8e7482f93f6a
* Merge "Reduce strict Uri checking, again." into jb-devJeff Sharkey2012-05-241-1/+1
|\
| * Reduce strict Uri checking, again.Jeff Sharkey2012-05-241-1/+1
| | | | | | | | | | Bug: 6539616 Change-Id: I5740b680520606d880646bd419423c08bdc81a99
* | Merge "Reduce strict Uri checking." into jb-devJeff Sharkey2012-05-231-1/+1
|\|
| * Reduce strict Uri checking.Jeff Sharkey2012-05-231-1/+1
| | | | | | | | | | Bug: 6539616 Change-Id: I60cbf1c49ffd565504504ef4b67fe5a512c086e4
* | Make permissions pages awaken their scrollbars when the page is focusedAdam Powell2012-05-221-3/+26
|/ | | | | | Bug 6538805 Change-Id: I8baec78443f7e623cfb49cda90a5a9a95e71090d
* Fix up tabs in the permissions displayAdam Powell2012-05-131-2/+8
| | | | | | | | | | Make tab bar scrollable if tabs don't all fit. Scroll the currently selected tab into view when it becomes selected. Bug 6481646 Change-Id: Ic492526ce06fae759b23127f74cfcb8e2fd8f030
* New permissions UI.Dianne Hackborn2012-05-031-44/+179
| | | | Change-Id: I5d4691f8a23e90265eaaaea15950affdcb8dc9b6
* Stop advertising content://-style Uri support.Jeff Sharkey2012-04-163-32/+48
| | | | | | | | | Internally using PackageParser, which needs raw files. Tried making local copy of incoming files, but ran into 6347522. Instead, stop advertising support for content://-style Uris. Bug: 6343461 Change-Id: Ia57ffa56876f38db359e618d9a2c1116c71f56f2
* Implement new extended install/uninstall options.Dianne Hackborn2011-08-105-8/+146
| | | | Change-Id: I60374f937ca3ccf454480b196a7eb4e36d67fe86
* Changed unknown source setting linkGilles Debunne2011-06-241-7/+4
| | | | | | This settings has been moved to Security. Change-Id: Ie5b630d5d4e909a687d60ac941a407ee9588635a
* More descriptive errors for install failuresKenny Root2011-03-162-15/+73
| | | | Change-Id: Ica79bece0fd29c27126e1ee51daeac96affaa1ab
* Use new package deletion observerKenny Root2011-03-011-3/+3
| | | | Change-Id: Iabef1f9c6758e09c9e7f697da29cda7d532c625b