summaryrefslogtreecommitdiff
path: root/services/incremental/BinderIncrementalService.cpp
AgeCommit message (Collapse)Author
2021-02-03Fix system_server's main thread name.jiangyou li
When BinderIncrementalService start, it call ps->giveThreadPoolName() change the thread name to Binder:%d_%X. However BinderIncrementalService run in system_serve main thread, it need not change the thread name. BUG: 171354331 Test: adb shell ps -T [pid] check the main thread name of system_server Change-Id: I53fc6e096cae78798bb0a2670dcf2d8b4da3f5b6
2020-06-15Merge "Don't provide read logs for shell-initiated installations." into ↵TreeHugger Robot
rvc-dev am: e0ba6d9dff Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11778056 Change-Id: I866bc89927ae11a0da7069d33e3e06d5c1f1b51f
2020-06-12Don't provide read logs for shell-initiated installations.Alex Buynytskyy
Only if the application is profileable. Bug: 158238023 Fixes: 158238023 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageParserTest Change-Id: I8575830ec3f29850297fdbfbaa157072d6350a28 Merged-In: I8575830ec3f29850297fdbfbaa157072d6350a28
2020-05-28Merge "[incremental] respect extractNativeLibs in native lib config" into ↵Songchun Fan
rvc-dev am: f2a6af4b8a Change-Id: Ibc96844cf6737663c48c9133b49bc9c972ed632f
2020-05-27Merge "[incremental] respect extractNativeLibs in native lib config" into ↵Songchun Fan
rvc-dev
2020-05-27[incremental] respect extractNativeLibs in native lib configSongchun Fan
Makes sure the behavior is consistent with legacy installs: When the flag is on, the native libs will be extracted to subdirs under lib/. When the flag is off, the lib/ subdirs will be created but the native libs are not extracted. When the flag is off, check if the native libs are uncompressed and well aligned. Test: atest android.extractnativelibs.cts.CtsExtractNativeLibsHostTest BUG: 157173358 Change-Id: Idb57fd7ca1115f787faf5cde3056c32ff3f60890
2020-05-27Merge "Lifecycle: detecting blocked and unhealthy." into rvc-dev am: 4e5ff2eb7dAlex Buynytskyy
Change-Id: If0f24b8549fbf78aecf4586551528606064ecfe7
2020-05-26Lifecycle: detecting blocked and unhealthy.Alex Buynytskyy
Part 1: interfaces and PM implementation. Bug: 153874006 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest Change-Id: I312dd919d2bb552bea3d72fb49fd1579882da14b
2020-04-30Remove unneeded dependency on libnativehelperOrion Hodson
Bug: 151443957 Test: m service.incremental Change-Id: I251796cf521ed3804b2c9018c43469289032e315 Merged-In: I251796cf521ed3804b2c9018c43469289032e315 (cherry picked from commit 90f0e7a53c00650783dc97fa41235b09a22d6414)
2020-04-22[incfs] Use MountRegistry to import existing mounts on startYurii Zubrytskyi
This is a big cleanup in IncrementalService that makes it behave nicely on runtime restart, and more: - fixed a bunch of threading issues in createStorage/bind - made public functions correctly accept any path in any bind mount and translate it to the proper root mount - got rid of "using namespace" in headers, cleaned includes - removed all unused functions - set CLOEXEC bit on all duped FDs Bug: 151241369 Test: atest PackageManagerShellCommandTest \ PackageManagerShellCommandIncrementalTest \ IncrementalServiceTest Change-Id: Ided4415aabfbfca3925b5e71c91896055886ac4a
2020-04-10[incfs] Fix a crash in worker thread calling JNIYurii Zubrytskyi
Worker thread has to initialize JNI separately to be able to call into managed binders implemented in the same system_server process, e.g. DataLoaderManager Bug: 153513507 Test: adb install megacity.nov4.apk; adb install megacity.v4.apk Change-Id: I668e8664361cd2fb3353ec50efd689c7d613658f
2020-04-10[incfs] Make native library extraction asyncYurii Zubrytskyi
IncrementalService can create the library files beforehand, but delay filling in their data. As it takes quite a while in general (over a second in cases when the phone is busy), it's better to run the unzipping and filling in a separate thread and only make sure it finishes before the whole installation process is complete. This speeds up the megacity.apk installation by ~250-300ms, 1000-1100ms -> 750-800ms Bug: 153513507 Test: adb install megacity.apk Change-Id: Ia44f7e45b9e0abaebdfb6fe5352f9dcf29ab4ece
2020-04-10Get rid of two runtime static destructorsYurii Zubrytskyi
Bug: 153704006 Test: compiles Change-Id: Icb44c2d2c1e26b13a4d03a4996bffe016a141286
2020-04-07Change the way how we call setStorageParams.Alex Buynytskyy
Now it's unified with callback FS connector - we are passing the callback pointer directly to dataloader. This restricts access only to methods we want and only by someone we want. Bug: b/153468113 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest Change-Id: Ib557ebbe7c6c5ce92140eb20534a3626b3ac96d3
2020-04-02Checking LOADER_USAGE_STATS before enabling read logs.Alex Buynytskyy
Bug: b/152633648 Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest Change-Id: Ic747a51b97b785c627c95bddecc6834ef602ff30
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-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-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-03Dumpsys support for IncrementalService.Alex Buynytskyy
Test: atest PackageManagerShellCommandTest Test: adb shell dumpsys incremental Bug: b/136132412 b/133435829 Change-Id: I8a91eddb850c68da87f56a82ca14fdf9ac5d3ce5
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-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