summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/InstallAppProgress.java
Commit message (Collapse)AuthorAgeFilesLines
* Calculate and apply 'installed size'Ryuki Nakamura2016-09-121-0/+9
| | | | | Bug: 30056625 Change-Id: I1ffc7ba88ea5f99591b66c08e72ea07d60ab82d5
* Resolve merge conflict from Ia3d8f54624801696eaec4f9216d7bbefb0b105a4.Philip P. Moltmann2016-09-011-1/+1
| | | | | Bug: 30056625 Change-Id: Ie8e46fc7a2c340fb04b64feb331af0d882fe9672
* Read and apply 'packageName'Ryuki Nakamura2016-08-311-1/+4
| | | | | Bug: 30056625 Change-Id: Ie8e46fc7a2c340fb04b64feb331af0d882fe9672
* Read and apply 'installLocation'Philip P. Moltmann2016-07-111-0/+8
| | | | | | | | | | ... when installing app via packageInstaller. This allows the apk to have some limited control over where it will be installed. Change-Id: Id5140e7d2a2e3b8dd59815a0febf5c05cee08fbf Fixes: 30056625
* Only log (not crash) when activity is not found.Philip P. Moltmann2016-06-161-1/+6
| | | | | Fixes: 29260288 Change-Id: Iaa309f362ae6a296f7ba365e418d4a6f55b23f0c
* Fix a crash in package installerSvet Ganov2016-06-081-1/+0
| | | | | | | | | | | | The first bug was that we were starting the install before having the package info for the installed app. The second was that we were calling the permission review UI despite we were there before the user selected to install. i.e. the user already reviewed the permissions. bug:29197887 Change-Id: I2fac4d014dde7f7744a6b831c2b0ff510e29e8e8
* Fix app install flowSvetoslav Ganov2016-05-101-6/+23
| | | | | | | | | | | | | | | | | A regression was introduced when we added support for installing apps from content URIs. Since we stage the APK in the cache folder we changed the flow to wipe the cached version when the PackageInstallerActivity finishes or gets an installation result, so we started the InstallAppProgress activity for result but the latter may be called with the forward result flag which is incompatible with start activity for result. This change delegates clearing the staging file in the cache folder to the InstallAppProgress activity. bug:28551937 Change-Id: I0d9978aff60b7fab6b64fe7bf889ef30f9b2fd7c
* Cleanup of the PackageInstaller API - PackageInstallerSvet Ganov2016-04-211-3/+1
| | | | | | | | | 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
* Make side-load install path material design-yPhilip P. Moltmann2016-04-071-18/+14
| | | | | Bug: 26932948 Change-Id: Ic8bcec523fc6cd0db847a4575724fbe465e65c5d
* No need to pass digest of AndroidManifest.xml around.Alex Klyubin2016-01-041-2/+0
| | | | | | | | | PackageInstaller app is using the new Package Installer API (android.content.pm.PackageInstaller) which removes the need to pass the digest of AndroidManifest.xml around. Bug: 24542768 Change-Id: I477b8f955b3af11bdd3cb88a9d8187ccb6449000
* Remove InstallFlowAnalyticsTodd Kennedy2015-10-231-8/+0
| | | | | | | | These were no longer being used and they were broken with a recent change adjusting the flow of the PackageInstaller. Bug: 24542039 Change-Id: I14b98dd0f8cdb69d31eab54a3f1b96048263c222
* Use PackageInstaller.SessionTodd Kennedy2015-09-301-47/+137
| | | | | | | | | We've been using the deprecated package manager installation methods. Replace those with the PackageInstaller.Session installation mechanism. Bug: 22282121 Change-Id: I34aefcbae2703c400a7ed35780f61713992b7181
* Use Material tinting for install resultChristopher Tate2014-12-011-2/+2
| | | | | | Bug 18507476 Change-Id: I5cfefa4be52306fee14b7fb163a730b1d39fc759
* Log APK hash for package install attempts in the Event Log.Alex Klyubin2013-10-151-0/+1
| | | | | | | | | | 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
* Merge "Record analytics about package install attempts to Event Log." into ↵Alex Klyubin2013-09-101-0/+7
|\ | | | | | | klp-dev
| * Record analytics about package install attempts to Event Log.Alex Klyubin2013-09-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add manifest to verification paramsKenny Root2013-03-141-1/+5
| | | | Change-Id: I088ab981cb56d4f156b6ff910d6a2270e3302dc4
* Determine the originating uid for an installBen Gruver2012-09-271-1/+3
| | | | | Bug: 6923241 Change-Id: I281301ca0bece2cb2395cde1d7652be168ffa202
* Allow side-loading of apps from other users.Dianne Hackborn2012-09-191-5/+22
| | | | | | | | 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
* Accept and pass URLs to PackageManagerServicerich cannings2012-08-201-1/+8
| | | | | | | | 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-081-6/+1
| | | | | | This reverts commit 076ca8c8373a3d5f3f56103fa85966cc6c34c94a Change-Id: I955510c4aa9f7fada2685ca274d0bb8fbdd91cdf
* Accept and pass URLs to PackageManagerServicerich cannings2012-08-021-1/+6
| | | | | | | | This change passes the originating URI and referrer of an apk, when available, to the package manager. Bug: 6544677 Change-Id: I6b1036012399f6cd42feceedeca2493b6b20501a
* Reduce strict Uri checking, again.Jeff Sharkey2012-05-241-1/+1
| | | | | Bug: 6539616 Change-Id: I5740b680520606d880646bd419423c08bdc81a99
* Stop advertising content://-style Uri support.Jeff Sharkey2012-04-161-6/+12
| | | | | | | | | 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-101-3/+9
| | | | Change-Id: I60374f937ca3ccf454480b196a7eb4e36d67fe86
* More descriptive errors for install failuresKenny Root2011-03-161-5/+32
| | | | Change-Id: Ica79bece0fd29c27126e1ee51daeac96affaa1ab
* Check for activity info when uninstalling.Patrick Dubroy2010-09-031-1/+0
| | | | Also, switch to using standard fat title bar.
* Remove memory checks in side loading uiSuchi Amalapurapu2010-03-111-11/+54
| | | | | | 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
* 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-251-46/+0
| | | | The system process can now make a copy for itself.
* Fix for 2268060, 2251223 if conditional initializing package label.Suchi Amalapurapu2009-11-181-6/+2
| | | | | | Also load the label from the new pkg for existing packages Use installer's metrics and configuration info when creating resources for new package
* move creating temp file to InstallAppProgressSuchi Amalapurapu2009-11-121-1/+61
| | | | and deal with cleanly deleting the file
* Use nonlocalized label when installing packages.Suchi Amalapurapu2009-11-111-12/+16
| | | | | Also invoke the right method based on if its an installed application or not. just move the if condition prior to initializing the view
* Fix screen flow issues in pacakge installer/uninstaller.Suchi Amalapurapu2009-09-081-16/+66
| | | | | | | | | | | | | | | | | | | The main activity was managing the state transitions during installation/uninstallation which was actually not needed. Just make the activities independent and start sub activities without waiting for activity result codes in the main activity. If the user enables development setting to immediately destroy activities, and sideloads an app, the ActivityManager tries to destroy the main activity while it starts sub activities to finish installation and this results in UI bizarreness based on the current state of the installer. Also move InstallConfirmation to the main activity. Converge InstallDone and InstallProgress into one screen. Just enable or disable launch/close buttons. This is how it should have been in the first place.. Same set of issues with uninstall code path as well.
* change utility methods used to load label and icon of packagesSuchi Amalapurapu2009-06-101-1/+1
| | | | | | load label and icon for yet to be installed app from assets and resources created from the apk. define new method for initing app snippet for uninstall related code rename changed utility methods in install and uninstall code paths
* PackageInstaller honors Intent.EXTRA_INSTALLER_PACKAGE_NAMEJacek Surazski2009-05-131-1/+4
| | | | | If this extra is set in the Intent which launches PackageInstaller, PackageInstaller passes it in the call to PackageManager.installPackage().
* Update to match new install API.Dianne Hackborn2009-05-121-3/+3
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+114
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-114/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-9/+20
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+103