summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Log APK hash for package install attempts in the Event Log.Alex Klyubin2013-10-184-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: 11275004 Bug: 10605940 (cherry picked from commit 8fca480bee00578c1529b1f32ab30af096db82dd) Change-Id: I9773925f7e397ada26efac022349dc8e4af01208
* 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
* Use NEW_TASK flag when going to SettingsKenny Root2011-02-151-0/+2
| | | | | | | | | | Users being directed into Settings because of some problem were getting the Settings activity on the PackageInstaller stack. This caused some confusion because going into PackageInstaller again put them into Settings which is wrong. Bug: 3456307 Change-Id: Idda1e02a619950dbc4db81c4962a3257f67094b2
* Check for activity info when uninstalling.Patrick Dubroy2010-09-035-40/+75
| | | | Also, switch to using standard fat title bar.
* Fix issue #2558391: Package manager problem when not replacing existing ↵Dianne Hackborn2010-03-301-1/+9
| | | | | | | | system partition app Make sure to set the replace flag if the app exists but has been renamed. Change-Id: I0849834b59eb2a98c94e763860f649770eeeef43
* Remove memory checks in side loading uiSuchi Amalapurapu2010-03-113-116/+97
| | | | | | Move dialog for insufficient storage as a post-install error handle dialog Change-Id: I419b1dc233e01fc91e29d1274bae17d5bd63a60d
* Check for resolvable activities before enabling launch button.Suchi Amalapurapu2010-03-111-0/+10
| | | | Change-Id: I6bbb6c079c53f09a3b92b4e2a50d17fbd4839a0e
* Nuke parser references.Suchi Amalapurapu2010-02-192-14/+37
| | | | Modify free storage logic.
* Remove recomended install app locationSuchi Amalapurapu2010-02-121-11/+0
|
* Change method signature for recommendAppInstallLocationSuchi Amalapurapu2010-02-101-2/+1
|
* Apps on SD card projec.Oscar Montemayor2010-01-291-2/+3
| | | | Folowing through with making recommendAPpInstallLocation(..) an instance method in PackageManager.
* Apps on SD card project.Oscar Montemayor2010-01-281-1/+10
| | | | | Modifying sideload app to recommend location where to install application package, based on application flags, total space and available space on internal and SD card storage. Currently ignoring "Do not install" recommendation.
* Remove copying temporary file into installer's private data directory.Suchi Amalapurapu2010-01-252-47/+1
| | | | The system process can now make a copy for itself.