summaryrefslogtreecommitdiff
path: root/java/sdk_library_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2024-05-02 17:18:05 +0100
committer Paul Duffin <paulduffin@google.com> 2024-05-03 12:21:56 +0100
commit92efc6107fbf3395453ebba1adbd5c9643e4db3e (patch)
tree762e37f8f15e85541322f0261485abc52f2be8f3 /java/sdk_library_test.go
parent364740b4a45742fba0c8a98d77b24249a577a66b (diff)
Pass module-lib and system-server extension jars for system-server
While the `system-server` API surface extends the `module-lib` API surface a library can only provide one or the other as they appear in bootclasspath and systemserverclasspath respectively. A library that is on the bootclasspath cannot provide a `system-server` API as it would be usable by non-system server code. A library that is on the systemserverclasspath could provide a `module-lib` API but there is no point as it would only be usable by the system server making it effectively a `system-server` API anyway. As a result the `system-server` extension directories only contain `service-*` jars for libraries that provide system server APIs. e.g. ``` $ ls prebuilts/sdk/extensions/11/system-server | cat api service-adservices.jar service-sdksandbox.jar $ ls prebuilts/sdk/extensions/11/module-lib/ | cat api framework-adservices.jar framework-connectivity.jar framework-connectivity-t.jar framework-sdksandbox.jar framework-tethering.jar ``` So, in order to construct the whole `system-server` API, i.e. the API visible to the system server, it is necessary to add in the `module-lib` extension jars too which this change does. This is necessary to construct an `api-versions.xml` file for the complete `system-server` API. Bug: 336993217 Test: TARGETS=$(for i in public system module-lib module-lib-complete system-server-complete; do U=$(echo $i | sed "s|-|_|g"); echo "out/target/common/obj/PACKAGING/api_versions_${U}_generated-api-versions.xml"; done) m $TARGETS; mkdir -p before; cp $TARGETS before m $TARGETS; mkdir -p after; cp $TARGETS after meld before after # Review differences. Change-Id: Ic9652dd28f05e5f569a7a30a84b87f227314d119
Diffstat (limited to 'java/sdk_library_test.go')
0 files changed, 0 insertions, 0 deletions