Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b9fe029 authored by Wei Li's avatar Wei Li Committed by Gerrit Code Review
Browse files

Merge "Add support of <APEX>_backing.txt in mixed build."

parents 64340c05 cc73a056
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1908,8 +1908,7 @@ func (a *apexBundle) ProcessBazelQueryResponse(ctx android.ModuleContext) {
		// TODO(b/239081457): Generate the bazel bundle module file from the apex rule.
		a.bundleModuleFile = android.PathForBazelOut(ctx, a.Name()+apexType.suffix()+"-base.zip")
		a.nativeApisUsedByModuleFile = android.ModuleOutPath(android.PathForBazelOut(ctx, outputs.SymbolsUsedByApex))
		// TODO(b/239081456): Generate the backing.txt file from Bazel.
		a.nativeApisBackedByModuleFile = android.ModuleOutPath(android.PathForBazelOut(ctx, a.Name()+"_backing.txt"))
		a.nativeApisBackedByModuleFile = android.ModuleOutPath(android.PathForBazelOut(ctx, outputs.BackingLibs))
		// TODO(b/239084755): Generate the java api using.xml file from Bazel.
		a.javaApisUsedByModuleFile = android.ModuleOutPath(android.PathForBazelOut(ctx, a.Name()+"_using.xml"))
		installSuffix := imageApexSuffix
+2 −0
Original line number Diff line number Diff line
@@ -219,6 +219,7 @@ return json_encode({
    "container_key_info": [container_key_info.pem.path, container_key_info.pk8.path, container_key_info.key_name],
    "package_name": info.package_name,
    "symbols_used_by_apex": info.symbols_used_by_apex.path,
    "backing_libs": info.backing_libs.path,
})`
}

@@ -231,6 +232,7 @@ type ApexInfo struct {
	ContainerKeyInfo  []string `json:"container_key_info"`
	PackageName       string   `json:"package_name"`
	SymbolsUsedByApex string   `json:"symbols_used_by_apex"`
	BackingLibs       string   `json:"backing_libs"`
}

// ParseResult returns a value obtained by parsing the result of the request's Starlark function.
+2 −0
Original line number Diff line number Diff line
@@ -149,6 +149,7 @@ func TestGetApexInfoParseResults(t *testing.T) {
				`"container_key_info":["foo.x509.pem", "foo.pk8", "foo"],` +
				`"package_name":"package.name",` +
				`"symbols_used_by_apex": "path/to/my.apex_using.txt",` +
				`"backing_libs":"path/to/backing.txt",` +
				`"provides_native_libs":[]}`,
			expectedOutput: ApexInfo{
				SignedOutput:      "my.apex",
@@ -159,6 +160,7 @@ func TestGetApexInfoParseResults(t *testing.T) {
				ContainerKeyInfo:  []string{"foo.x509.pem", "foo.pk8", "foo"},
				PackageName:       "package.name",
				SymbolsUsedByApex: "path/to/my.apex_using.txt",
				BackingLibs:       "path/to/backing.txt",
			},
		},
	}