summaryrefslogtreecommitdiff
path: root/services/incremental
AgeCommit message (Collapse)Author
2021-06-28Reduce timeout for DL to destroy.Alex Buynytskyy
10secs should be more than enough to stop whatever the DL is doing. Besides, DL has its own set of IncFS FDs and should not crash. Bug: 189222575 Fixes: 189222575 Test: atest IncrementalServiceTest Change-Id: I73cb27d61c7418adeea7536c8263e6ba8c77fd3e
2021-06-08Proper retrying DL installation sessions.Alex Buynytskyy
Plus more robust handling of broken DLs. Bug: 190012477 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest com.google.android.packageinstallerv2proxy.host.gts.IncrementalInstallerHostTest Change-Id: I5cb037d49cd2b140bed1045c99f072112495acfc
2021-05-28[incremental/metrics] report uid of last read errorSongchun Fan
BUG: 187354818 Test: atest service.incremental_test Change-Id: I632b747440ed4faef31266a3a7b18b7a382ff2cf
2021-05-21Updates OWNERS filesPatrick Baumann
Bug: 186864416 Test: Builds Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-13Duplicate apk names on package update.Alex Buynytskyy
+minor fixes Bug: 187710420 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest Change-Id: Iced479532b38bddcd8655df3ce08611434965cf4
2021-05-11[incremental] use same sysfs name for setOptionsSongchun Fan
Otherwise we have errors during applyStorageParams: 05-10 15:35:32.363 562 625 E IncrementalService: applyStorageParams failed: Status(-8, EX_SERVICE_SPECIFIC): '-95: ' 05-10 15:35:32.363 562 625 E incfs-dataloaderconnector: setStorageParams failed with error: -95 05-10 15:35:32.363 562 625 E incfs-dataloaderconnector: DataLoader supports UID 05-10 15:35:32.367 0 0 E incfs : Can't change sysfs_name mount option on remount BUG: 187308584 Test: atest CtsContentTestCases:android.content.pm.cts.PackageManagerShellCommandIncrementalTest#testInstallWithIdSigNoMissingPages Change-Id: Ic2146aa7855e13de9f96794639de556f64e93701
2021-05-08Avoid sysfs name clashes.Alex Buynytskyy
Bug: 187437944 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest ApkVerityInstallTest Change-Id: Idc8cb4d170b0bfd98ee3a10bdf57439801739757
2021-05-05Merge "[incremental] report new metrics from Incremental Service" into sc-devSongchun Fan
2021-05-04[incremental] report new metrics from Incremental ServiceSongchun Fan
BUG: 184844615 Test: atest service.incremental_test Change-Id: Ibbfe68851a4adfd620db9652f1fda550a3c6fb2c
2021-05-04Merge "[IncrementalService] add last read error in dumpsys" into sc-devSongchun Fan
2021-05-04Merge "[IncrementalService] use sysfs_name in mount options and dumpsys" ↵Songchun Fan
into sc-dev
2021-05-03[IncrementalService] add last read error in dumpsysSongchun Fan
BUG: 184844615 Test: dumpsys Change-Id: I3e8178c8a62dc5d09c718b140bb48bda85a3bae5
2021-04-30Add more info to IncrementalService::onDump()Yurii Zubrytskyi
+ suppress a couple lint warnings Bug: 184844615 Test: manual + check the dump output Change-Id: Ic1cf2a2fb519cc9e746c73816b1cb55f14d11279
2021-04-30[IncrementalService] use sysfs_name in mount options and dumpsysSongchun Fan
BUG: 184844615 Test: adb shell dumpsys incremental Change-Id: Ib6bbbede6d4fbed0bcef8d37f377e706b9d1af28
2021-04-27Merge "[incremental] expose more metrics fields" into sc-devSongchun Fan
2021-04-26[incremental] expose more metrics fieldsSongchun Fan
Exposing more data loader states as per go/incremental-crash-reports-1-pager. BUG: 184844615 Test: atest service.incremental_test Test: atest android.cts.statsdatom.incremental.AppErrorAtomTests Change-Id: I532513453411b2ccdb21311d0bc3dee0641837db
2021-04-26Retry on unavailable.Alex Buynytskyy
Bug: 182214420 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: Iaf61b6825ced45ffdc7e9c87dfea830e50633476
2021-04-20Merge "[pm] remove incremental startable/unstartable code" into sc-devTreeHugger Robot
2021-04-20Merge "Move CtsInstalledLoadingProgressHostTests to group presubmit-large" ↵TreeHugger Robot
into sc-dev
2021-04-19reflect libbinder->libpermission: appopsSteven Moreland
Since libbinder is used in many places, lightening it up (vtables in these classes contribute to private dirty memory). Bug: 183654927 Test: boot Change-Id: I73328013bfb701257eb88339f7da2cb92db6809e
2021-04-19Move CtsInstalledLoadingProgressHostTests to group presubmit-largeeasoncylee
The test config takes longer than 15mins to run. Move it to a dedicated group for running slow presubmit Test Mapping test. Some more context is in the referenced bug, e.g, b/174495337 The group will work exactly the same as presubmit for now. Bug: 174654670 Bug: 174495337 Test: none Change-Id: Id12caa8a87b6be142d49e8e871c6edb01ffbab6a
2021-04-16[pm] remove incremental startable/unstartable codeSongchun Fan
Also remove streaming health status reporting which could cause startable state change because it is also not needed any more. BUG: 171920377 Test: builds Change-Id: I7284e7a63df79da7dbf3d16ff64302b3d1ce1348
2021-04-08Add storage state and installation ts to dump.Alex Buynytskyy
Bug: 160635296 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: I524a92aa8c6a7b6961722dc3004a4bb323232297
2021-04-08Installation hardening: reducing read timeout during installation.Alex Buynytskyy
And then restoring post-install. Bug: 160635296 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: I0821458bf92db162518a2cbcb7499cd7544e64f2
2021-03-25More logging and better retry logic.Alex Buynytskyy
Bug: 183551663 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: I1b6da82cd4472cc5671b0b60fb12222b4ed08e17
2021-03-24[incfs] Space trimming for IncFS v1Yurii Zubrytskyi
Run a manual timed job that trims all files one by one on the old version of IncFS, where it didn't do it automatically. Bug: 183435580 Fixes: 183436717 Test: atest libincfs-test service.incremental_test Change-Id: I57885b2826e383814822c767802f837135fd8464
2021-03-24[incfs] Fix the mount state callbacks processingYurii Zubrytskyi
- use a never-existing storage ID as a job key - order the jobs in the map to not skip them on changes, or, worse, never hang in a loop - clear the local callbacks vector before moving to the next storage ID - try to resume from the closest place on the next processing iteration Bug: 183435580 Test: atest service.incremental_test Change-Id: I36cd5d30c656bed62c20bd7a7f84fb58046a0933
2021-03-24Merge "Reduce ifs lock scope." into sc-devAlex Buynytskyy
2021-03-24Merge "Add properties to test readlogs timeout." into sc-devAlex Buynytskyy
2021-03-23Reduce ifs lock scope.Alex Buynytskyy
Bug: 182214420 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: Ic36002205c93b316b28ba10ea8f5fbc50dcff70a
2021-03-23Add properties to test readlogs timeout.Alex Buynytskyy
Bug: 182477087 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: I02bc11b11f9158c31a80b845adb0703a27459332
2021-03-23Merge "[incfs] Optimize path::join for appending" into sc-devYurii Zubrytskyi
2021-03-23Add a first chance retry delay of 1s.Alex Buynytskyy
Bug: 182214420 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: Iade9e1355ed0e5e761a3a98f3a7bca8215982315
2021-03-23[incfs] Optimize path::join for appendingYurii Zubrytskyi
Append path strings to the first argument if it's an rvalue Bug: 183435580 Test: atest libincfs-test service.incremental_test Change-Id: I52c4a1f0e4ad3547aeccac96a3393323e3be9adb
2021-03-23Unbind from DataLoader when not needed anymore.Alex Buynytskyy
+ simplify adding new callbacks on storage state + streamline lock story for ifs members Bug: 183101753 Fixes: 183101753 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: I86fffa7101eeb42ebccca67ae7f5d133c1ab9dfa
2021-03-19[incfs] Allow multiple timed jobs at the same time pointYurii Zubrytskyi
Old code had a tiny chance of ignoring a job if it happens to be scheduled to the exactly the same time as one already in the queue. Not that it will ever happen, but better to fix it. + make the worker thread code slightly easier to reason about Bug: 183243150 Test: atest IncrementalServiceTest Change-Id: Ia3126d30e19edfd17f7c8da368e9763ca5501e84
2021-03-19Untangle listeners mess in IncrementalServiceYurii Zubrytskyi
Listeners and some binder call parameters were using several different styles when passed around - copy, move, pointer, pointer to pointer. This CL tries to 'normalize' that. Bug: 183067554 Test: atest IncrementalServiceTest Change-Id: Ia28089aa9e4491b0f28e3e747489199cfccb5a1b
2021-03-19[incfs] Call the new isFullyLoaded api where possibleYurii Zubrytskyi
Replace the remaining calls to getFilledRanges() with isFullyLoaded() where we don't care about the progress Bug: 183067554 Test: atest IncrementalService Change-Id: Ic8dc2e3a0ef078353883feef7969b29e11dfa2d0
2021-03-19[incfs] Fix the unsafe memory copy in IncrementalServiceYurii Zubrytskyi
Better to protect the memcpy() and zero-out the target Bug: 183160959 Test: atest IncrementalService Change-Id: I3daca749168a8c5a32b1eedc7992006cbe2e9eb4
2021-03-19[incfs] Use a more efficient getBlockCount() for incfs v2Yurii Zubrytskyi
v2 IncFS driver gives a very lightweight function to check the loading progress on a file, use it instead of counting the filled ranges + remove the unused mockable toString(IncFsFileId) Bug: 183067554 Test: atest IncrementalServiceTest Change-Id: Icd3bd891d671b27654f4194787a15a00cba1eb80
2021-03-18[incfs] Use the new libincfs API for file status checkingYurii Zubrytskyi
libincfs got a new set of functions for checking the file loaded status, which works more efficiently than getting filled ranges. Bug: 183067554 Test: atest IncrementalServiceTest Change-Id: I3b96bf409f1778c5a89e4802e2005197f70ce0cb
2021-03-17[incfs] Preallocate space for IncFS filesYurii Zubrytskyi
Use the new libincfs APIs to preallocate space for all files created via the public makeFile() API. This way we ensure the device won't run out of space much later Bug: 182185202 Test: atest libincfs-test PackageManagerShellCommandTest \ PackageManagerShellCommandIncrementalTest \ IncrementalServiceTest Change-Id: I70af97949b29ff5db63201b0e3487fe026e23160
2021-03-16Limit read log reporting to 2hrs for non-system DLs (non-adb).Alex Buynytskyy
Bug: 182477087 Test: atest IncrementalServiceTest Change-Id: I98c9ed3a2e8a91d26bcb879ab7073903ff7bb2c5
2021-03-12Merge "DL lifecycle: handle slow DL binding." into sc-devAlex Buynytskyy
2021-03-11DL lifecycle: handle slow DL binding.Alex Buynytskyy
Bug: 182214420 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest Change-Id: I5959e01177ab702de1f754f4ba433004925ce98b
2021-03-11Merge "[hardening] Switch to hardened libziparchive in system_server" into ↵Yurii Zubrytskyi
sc-dev
2021-03-09[incremental] expose duration since oldest pending readSongchun Fan
As requested by go/incremental-disablement-metrics, we will expose the duration since oldest pending read as part of the crash/ANR metrics. This is the first step that exposes the value to Incremental Service. BUG: 180951530 Test: unit test Change-Id: Ic67460072556ef01780a1794b40924ca2092060d
2021-03-09Merge "[incremental] update owners file for incremental service" am: ↵Songchun Fan
bc92c6eb23 am: 2432332a16 am: 3aa5e72742 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1623181 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I153b9550f14698441fb9fedc1fdfa20215e08d05
2021-03-08[incremental] update owners file for incremental serviceSongchun Fan
Test: N/A BUG: 174932174 Change-Id: I8cb5797b880861a9a67678f820035b77924abf12
2021-03-05[hardening] Switch to hardened libziparchive in system_serverYurii Zubrytskyi
Use the new libziparchive_hardened in all system_server dependencies to ensure no missing page access can crash the process Bug: 160635079 Test: IncrementalService tests + adb install --incremental Change-Id: I1c664e111b69718cd9c62fc3e0d6a5dc70bed16b