summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/wear/WearPackageInstallerService.java
Commit message (Collapse)AuthorAgeFilesLines
* Do not allow downgrades of embedded microappsVinod Krishnan2016-07-061-4/+14
| | | | | | | | - flag is passed in from https://critique.corp.google.com/#review/126666577 Bug: 29641183 Change-Id: I1becbb446d824331430eb37d99bdbc7a36dd13db
* Update Wearable install logic to use stream APIAnthony Hugh2016-05-091-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | The default directory for PackageInstaller moved from /data/user/foo to /data/user_de/foo. Not sure on the exact reason why, but it has something to do with the file based encryption changes in N. This was causing the temp APK file that we were passing to PackageManager for installs to be in an invalid location. This resulted in failed installations. This is OK though because we never really wanted to use a temporary file. We were using it due to limitations in the PackageInstaller APIs. Since implementation, new APIs have been added to allow us to pass a stream through instead. This CL updates the install logic to use the stream API instead. Because this code path is being deprecated and replaced, I've opted to do the bare minimum needed to keep this code operational. I've also borrowed installation code from Wearsky/Finsky codebase to make it easier and more reliable. BUG: 28021618 Change-Id: Ia245abf56649e350e99cf48d2b503906d3cd855c
* Wear Cleanup: Removing implicit intent & API changeVinod Krishnan2016-03-181-18/+43
| | | | | | | | - 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
* [PkgInstaller] Refactoring arguments of WearPackageInstallerVinod Krishnan2015-12-111-65/+26
| | | | | | - Creating a WearPackageArgs object Change-Id: I9616fe5e6621856e5d07da5cee205e7162dad451
* Fix wake lock leakAnthony Hugh2015-12-041-27/+32
| | | | | | | | | | | | Wake lock was not being released when installation failed due to early bail out call. I wrapped the calls into a try/finally to ensure it gets released. Code was tested by tweaking the code to force a failure and test installing/uninstalling apps. BUG: 25814793 Change-Id: I2e81e5d76edcfb601ce734cf571705e979c51f32
* Remove app from "needs permission" state if installation failedAnthony Hugh2015-11-161-6/+13
| | | | | | | | | | This adds code to remove an app that is in the "needs permission" state from the ShowPermStore if the app fails to install. b/25721625 tracks creating a new intent to handle this case for F. BUG: 25363020 Change-Id: Ifed00024d7e329fb3185a4607a347e972f697fcd
* resolve merge conflicts of e8c6801367 to cw-e-dev.Vinod Krishnan2015-11-071-1/+5
| | | | Change-Id: I9c5a0be4e18cc27e163da60ba9dd81ae71588bef
* MNC Perms: Missed some cases for package installationVinod Krishnan2015-10-131-48/+64
| | | | | | | | | | | | | | - If {Companion App was targeting M, Companion was running L, watch is running M, watch app is targeting M}, we were not installing the app before this fix. - If {Companion App was targeting M, Companion was running M, watch is running M, watch app is targeting M}, we were not installing the app before this fix. Bug: 24813602 Bug: 23378733 Change-Id: I96f06adad2372517e57467d4af8d87dcb6068445
* Changing layout to make button animations workVinod Krishnan2015-09-141-1/+2
| | | | | | | | | | | - Fix the Permissions Dialogs for round layout - Show animation for the buttons - Also fixed the names ellipsis issue. - Fixed the theming of the dialogs. Bug: 23118402 Change-Id: I385c827ac41b06222334c36bfda2c70b346232a2
* Redo Move ClockworkPackageInstaller functionality here"Vinod Krishnan2015-09-091-0/+608
| | | | | | This reverts commit 5b26c2e64ceeaa1e71436b36a28f53100e358ed8. Change-Id: I88fa09f87023a7c1b2aac3100cfbdce6283de770
* Revert "Move ClockworkPackageInstaller functionality here"Griff Hazen2015-09-081-608/+0
| | | | | | | | Breaking ub-wear-dinar/ub-wear-master builds This reverts commit aa4368cafc3c92b33a99c3fbe0e6af08d7e092e4. Change-Id: Ib22189891e9cd9eef61cdaa5ac329d05ab9783e8
* Move ClockworkPackageInstaller functionality hereVinod Krishnan2015-09-041-0/+608
- The code is being moved from https://cs.corp.google.com/#android/vendor/google_clockwork/packages/PackageInstaller/src/com/google/android/clockwork/packageinstaller/ Bug: 22411517 Change-Id: If6a0b7f49530176a6cff6b76ee6eff44ba822547