summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Martijn Coenen <maco@google.com> 2022-12-02 14:33:10 +0100
committer Martijn Coenen <maco@google.com> 2022-12-19 10:57:50 +0100
commit72d234ea09b428032d3e89cf2de101f75352c705 (patch)
tree2f67d09a2d3fdf36e34712fdc60877120358f7c9 /libs/androidfw/ApkParsing.cpp
parent60d7db229083e12e09780d2c9d764016dea3da1a (diff)
Support shared isolated processes.
This introduces a new flag, Context.BIND_SHARED_ISOLATED_PROCESS, which allows a single client to bind multiple isolated services into a single isolated process. This allows the system to save resources when multiple isolated services can safely be co-located into a single isolated process. We reuse the existing instanceName parameter to specify the name of the isolated process. After the first bind for a client with a particular instanceName, subsequent service binds with the same flag and instanceName will result in the service being bound into the already existing isolated process. These are scoped to the client app; it is not possible for an app to bind an isolated service into a shared isolated process that belongs to another app. Bug: 243554393 Test: atest ActiveServicesTest Test: atest android.externalservice.cts.SharedIsolatedServiceTest Change-Id: I6b88c551082be849f384849955d3a43e0aa707c1
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions