summaryrefslogtreecommitdiff
path: root/services/incremental/IncrementalService.cpp
AgeCommit message (Collapse)Author
2020-04-01Use the new incfs API to open filesYurii Zubrytskyi
Bug: 152983639 Test: atest service.incremental_test Change-Id: If33891d4699d5ddf2789ac99677a67e2b004d94e
2020-03-27[frameworks] update with incfs.hSongchun Fan
BUG: 150470163 Test: atest PackageManagerShellCommandIncrementalTest Change-Id: I32ac2576c7468e04ada61e82ca778f762ce2559f
2020-03-26Dynamic args complete removal.Alex Buynytskyy
Bug: b/150470163 Test: atest PackageManagerShellCommandIncrementalTest PackageManagerShellCommandTest Change-Id: I122f37f210ef9b8b02d565c34245ebeec26d83b2
2020-03-19Merge "[incremental native lib] skip writing to zero byte files" into rvc-devYurii Zubrytskyi
2020-03-19Merge "Incremental apps removal on data loader failures." into rvc-devYurii Zubrytskyi
2020-03-18[incremental native lib] skip writing to zero byte filesSongchun Fan
Test: adb install --incremental /google/data/rw/teams/tradefed/testdata/thirdparty_apps_stable/MX_Player_1.9.17.apk BUG: 150795871 Change-Id: Idca09929f41424edb527b9b89dea1974c1f8ea46
2020-03-18Merge "Removing race condition accessing shared binder object." into rvc-devYurii Zubrytskyi
2020-03-18Incremental apps removal on data loader failures.Alex Buynytskyy
Test: adb install --incremental megacity.apk over USB2.0, remove usb connection after installed. Bug: b/15041101 Change-Id: Ib848640dbe49c76021f7cf544de4413599c2c763
2020-03-18Removing race condition accessing shared binder object.Alex Buynytskyy
Test: incrementally installing two apks at the same time Bug: b/150411019 Change-Id: I81231edf7a32470542ec529aa305b4f9fb2b80e3
2020-03-18Merge "[incremental service] avoid nullptr dereferencing" into rvc-devSongchun Fan
2020-03-17[incremental service] avoid nullptr dereferencingSongchun Fan
externalListener could be nullptr. BUG: 150795871 Test: atest service.incremental_test Change-Id: I2843e1751cb1f7e9318edb05e9a8f5256ad9f3a8
2020-03-13Updated v4 signature processing.Alex Buynytskyy
Passing to libincfs.so. Obtaining and verifying, including v3 digest check. go/apk-v4-signature-format Test: atest PackageManagerShellCommandTest Bug: b/151241461 Change-Id: Id61f5716b9f9b55d6ab1ebca5a7ecb1c6e54570a
2020-03-12Use aidl::nullable for nullable type in C++Jooyung Han
To reduce the discrepance between old code which still uses std::unique_ptr and new code using std::optional. This might help to avoid merge-conflicts between branches. Bug: 144773267 Test: m Merged-In: Ie3196ee5cce17d77950eea9479d2cc1406e9e674 Merged-In: I33822bc76ef87637d5408849f64a0607e121792e Change-Id: I33822bc76ef87637d5408849f64a0607e121792e (cherry picked from commit ad62e8cbf5cf6083568f6f230ef7d73ad8776971) Exempt-From-Owner-Approval: cherry-pick from master with owner's approval
2020-03-11DataLoader lifecycle cleanup.Alex Buynytskyy
Remove 5 second delay in startLoading() Remove sysprops: incremental.skip_loader Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest Bug: b/151178179 b/136132412 Change-Id: Ibbe921c444b7e11fe5482662ca791bd8dfeb8324
2020-03-03directly call data loader manager service from incremental serviceSongchun Fan
BUG: 150406132 Test: atest service.incremental_test Test: atest PackageManagerShellCommandIncrementalTest Change-Id: I2bb75d5adae58d2471478f6a4d2354058d7b0dab
2020-02-11Fix mounting existing images on rebootSongchun Fan
Fixes paths. BUG: b/133435829 Test: manual Change-Id: Ib48ac36e8b22f8e2a85d5e223c6dd0f8b5289045
2020-02-11Merge "Incremental installations in PackageManagerShellCommand."Alex Buynytskyy
2020-02-11Incremental installations in PackageManagerShellCommand.Alex Buynytskyy
- onPrepareImage in native, - allow to check installation type and choose native or managed dataloaders, - native data loader for Incremental, - install-incremental shell command. Test: atest PackageManagerShellCommandTest Test: atest IncrementalServiceTest Bug: b/136132412 b/133435829 Change-Id: I530a8a203fb50132c1869abd0b869036add18699
2020-02-10incfs: fix uninitialized valuesGeorge Burgess IV
Clang's static analyzer is flagging uninitialized struct fields that we're passing around. In particular, it's not happy that we pass this partially-initialized struct to a pure-virtual method. I tend to agree that this may cause issues. Assuming zero-init gives us reasonable values for all of: IncFsNewFileParams{}.verification.rootHash IncFsNewFileParams{}.verification.additionalData IncFsNewFileParams{}.verification.signature Bug: None Test: TreeHugger Change-Id: I61e556cd8c0e68cdaebd50b0a7be5d5e0a4fd8ff
2020-02-07Incremental native lib extractionSongchun Fan
Basically we configure all the lib files inside Incremental Service, e.g., create lib dirs, make lib files, extract original lib file data from zip and then write data to the lib files on incfs. Test: manual with incremental installation BUG: b/136132412 b/133435829 Change-Id: I7544d2e78bcf3bdd76ce4c0766ec31ff13fd2011
2020-02-04Merge "fix dir creation mode"TreeHugger Robot
2020-02-04Merge "Dumpsys support for IncrementalService."TreeHugger Robot
2020-02-03Dumpsys support for IncrementalService.Alex Buynytskyy
Test: atest PackageManagerShellCommandTest Test: adb shell dumpsys incremental Bug: b/136132412 b/133435829 Change-Id: I8a91eddb850c68da87f56a82ca14fdf9ac5d3ce5
2020-02-04more normalized path fixSongchun Fan
Test: manual Change-Id: I8fe073cb4bc4fa1a3af784cfcfa8db4d0a232991
2020-02-04fix dir creation modeSongchun Fan
They need to be writable by owner. Test: manual Change-Id: I3e99094e5752c0f6bb351cc24bdf5698b7a4bde2
2020-01-31make adb install --incremental workSongchun Fan
With a simple Java apk (flipboard.app). BUG: 133435829 Test: manual Change-Id: If702afffc0e01cbb03f88560c0569fd23dda2350
2020-01-28Port the current code to new IncFSYurii Zubrytskyi
Bug: 146080380 Test: manual, "cmd incremental install-start" Change-Id: I6761c3f0e58b6d4de1ae3c4b31c23204fba9f740
2019-12-20Migrating Incremental* APIs to PackageManager APIs.Alex Buynytskyy
Step 2, merging Data Loader params. Test: builds and flashes Bug: b/136132412 Change-Id: I2102554316dadcdcb49790c133ece110c43c29b3
2019-12-19[incremental] native implementation of Incremental ServiceSongchun Fan
The implementation of IIncrementalManager.aidl. TODO to refactor this. Test: atest service.incremental_test Change-Id: Ib8c8a9c0e7f0289b4bcd8961fa39746ed12b4310