blob: af43417aa5ca0748cef1cfe1cac380fe62445a3a [file] [log] [blame]
Jiyong Park09d77522019-11-18 11:16:27 +09001// Copyright (C) 2019 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package apex
16
17import (
Jiyong Parkbd159612020-02-28 15:22:21 +090018 "encoding/json"
Jiyong Park09d77522019-11-18 11:16:27 +090019 "fmt"
20 "path/filepath"
21 "runtime"
22 "sort"
Jooyung Han5417f772020-03-12 18:37:20 +090023 "strconv"
Jiyong Park09d77522019-11-18 11:16:27 +090024 "strings"
25
26 "android/soong/android"
27 "android/soong/java"
28
29 "github.com/google/blueprint"
30 "github.com/google/blueprint/proptools"
31)
32
33var (
34 pctx = android.NewPackageContext("android/apex")
35)
36
37func init() {
38 pctx.Import("android/soong/android")
39 pctx.Import("android/soong/java")
40 pctx.HostBinToolVariable("apexer", "apexer")
41 // ART minimal builds (using the master-art manifest) do not have the "frameworks/base"
42 // projects, and hence cannot built 'aapt2'. Use the SDK prebuilt instead.
43 hostBinToolVariableWithPrebuilt := func(name, prebuiltDir, tool string) {
44 pctx.VariableFunc(name, func(ctx android.PackageVarContext) string {
45 if !ctx.Config().FrameworksBaseDirExists(ctx) {
46 return filepath.Join(prebuiltDir, runtime.GOOS, "bin", tool)
47 } else {
Martin Stjernholm7260d062019-12-09 21:47:14 +000048 return ctx.Config().HostToolPath(ctx, tool).String()
Jiyong Park09d77522019-11-18 11:16:27 +090049 }
50 })
51 }
52 hostBinToolVariableWithPrebuilt("aapt2", "prebuilts/sdk/tools", "aapt2")
53 pctx.HostBinToolVariable("avbtool", "avbtool")
54 pctx.HostBinToolVariable("e2fsdroid", "e2fsdroid")
55 pctx.HostBinToolVariable("merge_zips", "merge_zips")
56 pctx.HostBinToolVariable("mke2fs", "mke2fs")
57 pctx.HostBinToolVariable("resize2fs", "resize2fs")
58 pctx.HostBinToolVariable("sefcontext_compile", "sefcontext_compile")
59 pctx.HostBinToolVariable("soong_zip", "soong_zip")
60 pctx.HostBinToolVariable("zip2zip", "zip2zip")
61 pctx.HostBinToolVariable("zipalign", "zipalign")
62 pctx.HostBinToolVariable("jsonmodify", "jsonmodify")
63 pctx.HostBinToolVariable("conv_apex_manifest", "conv_apex_manifest")
Jaewoong Jungfa00c062020-05-14 14:15:24 -070064 pctx.HostBinToolVariable("extract_apks", "extract_apks")
Jiyong Park09d77522019-11-18 11:16:27 +090065}
66
67var (
68 // Create a canned fs config file where all files and directories are
69 // by default set to (uid/gid/mode) = (1000/1000/0644)
70 // TODO(b/113082813) make this configurable using config.fs syntax
71 generateFsConfig = pctx.StaticRule("generateFsConfig", blueprint.RuleParams{
Sasha Smundak18d98bc2020-05-27 16:36:07 -070072 Command: `( echo '/ 1000 1000 0755' ` +
73 `&& for i in ${ro_paths}; do echo "/$$i 1000 1000 0644"; done ` +
74 `&& for i in ${exec_paths}; do echo "/$$i 0 2000 0755"; done ` +
75 `&& ( tr ' ' '\n' <${out}.apklist | for i in ${apk_paths}; do read apk; echo "/$$i 0 2000 0755"; zipinfo -1 $$apk | sed "s:\(.*\):/$$i/\1 1000 1000 0644:"; done ) ) > ${out}`,
76 Description: "fs_config ${out}",
77 Rspfile: "$out.apklist",
78 RspfileContent: "$in",
79 }, "ro_paths", "exec_paths", "apk_paths")
Jiyong Park09d77522019-11-18 11:16:27 +090080
81 apexManifestRule = pctx.StaticRule("apexManifestRule", blueprint.RuleParams{
82 Command: `rm -f $out && ${jsonmodify} $in ` +
83 `-a provideNativeLibs ${provideNativeLibs} ` +
84 `-a requireNativeLibs ${requireNativeLibs} ` +
85 `${opt} ` +
86 `-o $out`,
87 CommandDeps: []string{"${jsonmodify}"},
88 Description: "prepare ${out}",
89 }, "provideNativeLibs", "requireNativeLibs", "opt")
90
91 stripApexManifestRule = pctx.StaticRule("stripApexManifestRule", blueprint.RuleParams{
92 Command: `rm -f $out && ${conv_apex_manifest} strip $in -o $out`,
93 CommandDeps: []string{"${conv_apex_manifest}"},
94 Description: "strip ${in}=>${out}",
95 })
96
97 pbApexManifestRule = pctx.StaticRule("pbApexManifestRule", blueprint.RuleParams{
98 Command: `rm -f $out && ${conv_apex_manifest} proto $in -o $out`,
99 CommandDeps: []string{"${conv_apex_manifest}"},
100 Description: "convert ${in}=>${out}",
101 })
102
103 // TODO(b/113233103): make sure that file_contexts is sane, i.e., validate
104 // against the binary policy using sefcontext_compiler -p <policy>.
105
106 // TODO(b/114327326): automate the generation of file_contexts
107 apexRule = pctx.StaticRule("apexRule", blueprint.RuleParams{
108 Command: `rm -rf ${image_dir} && mkdir -p ${image_dir} && ` +
109 `(. ${out}.copy_commands) && ` +
110 `APEXER_TOOL_PATH=${tool_path} ` +
111 `${apexer} --force --manifest ${manifest} ` +
Jiyong Park09d77522019-11-18 11:16:27 +0900112 `--file_contexts ${file_contexts} ` +
113 `--canned_fs_config ${canned_fs_config} ` +
Dario Freni0f4ae072020-01-02 15:24:12 +0000114 `--include_build_info ` +
Jiyong Park09d77522019-11-18 11:16:27 +0900115 `--payload_type image ` +
116 `--key ${key} ${opt_flags} ${image_dir} ${out} `,
117 CommandDeps: []string{"${apexer}", "${avbtool}", "${e2fsdroid}", "${merge_zips}",
118 "${mke2fs}", "${resize2fs}", "${sefcontext_compile}",
119 "${soong_zip}", "${zipalign}", "${aapt2}", "prebuilts/sdk/current/public/android.jar"},
120 Rspfile: "${out}.copy_commands",
121 RspfileContent: "${copy_commands}",
122 Description: "APEX ${image_dir} => ${out}",
Jooyung Han214bf372019-11-12 13:03:50 +0900123 }, "tool_path", "image_dir", "copy_commands", "file_contexts", "canned_fs_config", "key", "opt_flags", "manifest")
Jiyong Park09d77522019-11-18 11:16:27 +0900124
125 zipApexRule = pctx.StaticRule("zipApexRule", blueprint.RuleParams{
126 Command: `rm -rf ${image_dir} && mkdir -p ${image_dir} && ` +
127 `(. ${out}.copy_commands) && ` +
128 `APEXER_TOOL_PATH=${tool_path} ` +
Jooyung Han214bf372019-11-12 13:03:50 +0900129 `${apexer} --force --manifest ${manifest} ` +
Jiyong Park09d77522019-11-18 11:16:27 +0900130 `--payload_type zip ` +
131 `${image_dir} ${out} `,
132 CommandDeps: []string{"${apexer}", "${merge_zips}", "${soong_zip}", "${zipalign}", "${aapt2}"},
133 Rspfile: "${out}.copy_commands",
134 RspfileContent: "${copy_commands}",
135 Description: "ZipAPEX ${image_dir} => ${out}",
Jooyung Han214bf372019-11-12 13:03:50 +0900136 }, "tool_path", "image_dir", "copy_commands", "manifest")
Jiyong Park09d77522019-11-18 11:16:27 +0900137
138 apexProtoConvertRule = pctx.AndroidStaticRule("apexProtoConvertRule",
139 blueprint.RuleParams{
140 Command: `${aapt2} convert --output-format proto $in -o $out`,
141 CommandDeps: []string{"${aapt2}"},
142 })
143
144 apexBundleRule = pctx.StaticRule("apexBundleRule", blueprint.RuleParams{
Jiyong Parkbd159612020-02-28 15:22:21 +0900145 Command: `${zip2zip} -i $in -o $out.base ` +
Jiyong Park09d77522019-11-18 11:16:27 +0900146 `apex_payload.img:apex/${abi}.img ` +
Dario Frenida1aefe2020-03-02 21:47:09 +0000147 `apex_build_info.pb:apex/${abi}.build_info.pb ` +
Jiyong Park09d77522019-11-18 11:16:27 +0900148 `apex_manifest.json:root/apex_manifest.json ` +
Jiyong Park53ae3342019-12-08 02:06:24 +0900149 `apex_manifest.pb:root/apex_manifest.pb ` +
Jiyong Park09d77522019-11-18 11:16:27 +0900150 `AndroidManifest.xml:manifest/AndroidManifest.xml ` +
Jiyong Parkbd159612020-02-28 15:22:21 +0900151 `assets/NOTICE.html.gz:assets/NOTICE.html.gz &&` +
152 `${soong_zip} -o $out.config -C $$(dirname ${config}) -f ${config} && ` +
153 `${merge_zips} $out $out.base $out.config`,
154 CommandDeps: []string{"${zip2zip}", "${soong_zip}", "${merge_zips}"},
Jiyong Park09d77522019-11-18 11:16:27 +0900155 Description: "app bundle",
Jiyong Parkbd159612020-02-28 15:22:21 +0900156 }, "abi", "config")
Jiyong Park09d77522019-11-18 11:16:27 +0900157
158 emitApexContentRule = pctx.StaticRule("emitApexContentRule", blueprint.RuleParams{
159 Command: `rm -f ${out} && touch ${out} && (. ${out}.emit_commands)`,
160 Rspfile: "${out}.emit_commands",
161 RspfileContent: "${emit_commands}",
162 Description: "Emit APEX image content",
163 }, "emit_commands")
164
165 diffApexContentRule = pctx.StaticRule("diffApexContentRule", blueprint.RuleParams{
166 Command: `diff --unchanged-group-format='' \` +
167 `--changed-group-format='%<' \` +
Colin Cross440e0d02020-06-11 11:32:11 -0700168 `${image_content_file} ${allowed_files_file} || (` +
Jiyong Park09d77522019-11-18 11:16:27 +0900169 `echo -e "New unexpected files were added to ${apex_module_name}." ` +
170 ` "To fix the build run following command:" && ` +
Colin Cross440e0d02020-06-11 11:32:11 -0700171 `echo "system/apex/tools/update_allowed_list.sh ${allowed_files_file} ${image_content_file}" && ` +
Dan Willemsen81e43c52020-01-28 15:40:19 -0800172 `exit 1); touch ${out}`,
Colin Cross440e0d02020-06-11 11:32:11 -0700173 Description: "Diff ${image_content_file} and ${allowed_files_file}",
174 }, "image_content_file", "allowed_files_file", "apex_module_name")
Jiyong Park09d77522019-11-18 11:16:27 +0900175)
176
177func (a *apexBundle) buildManifest(ctx android.ModuleContext, provideNativeLibs, requireNativeLibs []string) {
178 manifestSrc := android.PathForModuleSrc(ctx, proptools.StringDefault(a.properties.Manifest, "apex_manifest.json"))
179
Jooyung Han214bf372019-11-12 13:03:50 +0900180 manifestJsonFullOut := android.PathForModuleOut(ctx, "apex_manifest_full.json")
Jiyong Park09d77522019-11-18 11:16:27 +0900181
182 // put dependency({provide|require}NativeLibs) in apex_manifest.json
183 provideNativeLibs = android.SortedUniqueStrings(provideNativeLibs)
184 requireNativeLibs = android.SortedUniqueStrings(android.RemoveListFromList(requireNativeLibs, provideNativeLibs))
185
186 // apex name can be overridden
187 optCommands := []string{}
188 if a.properties.Apex_name != nil {
189 optCommands = append(optCommands, "-v name "+*a.properties.Apex_name)
190 }
191
Jooyung Han643adc42020-02-27 13:50:06 +0900192 // collect jniLibs. Notice that a.filesInfo is already sorted
193 var jniLibs []string
194 for _, fi := range a.filesInfo {
195 if fi.isJniLib {
Jiyong Parkf1493cc2020-05-29 21:29:20 +0900196 jniLibs = append(jniLibs, fi.Stem())
Jooyung Han643adc42020-02-27 13:50:06 +0900197 }
198 }
199 if len(jniLibs) > 0 {
200 optCommands = append(optCommands, "-a jniLibs "+strings.Join(jniLibs, " "))
201 }
202
Jiyong Park09d77522019-11-18 11:16:27 +0900203 ctx.Build(pctx, android.BuildParams{
204 Rule: apexManifestRule,
205 Input: manifestSrc,
Jooyung Han214bf372019-11-12 13:03:50 +0900206 Output: manifestJsonFullOut,
Jiyong Park09d77522019-11-18 11:16:27 +0900207 Args: map[string]string{
208 "provideNativeLibs": strings.Join(provideNativeLibs, " "),
209 "requireNativeLibs": strings.Join(requireNativeLibs, " "),
210 "opt": strings.Join(optCommands, " "),
211 },
212 })
213
Jooyung Han5417f772020-03-12 18:37:20 +0900214 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
Jooyung Han214bf372019-11-12 13:03:50 +0900215 // b/143654022 Q apexd can't understand newly added keys in apex_manifest.json
216 // prepare stripped-down version so that APEX modules built from R+ can be installed to Q
217 a.manifestJsonOut = android.PathForModuleOut(ctx, "apex_manifest.json")
218 ctx.Build(pctx, android.BuildParams{
219 Rule: stripApexManifestRule,
220 Input: manifestJsonFullOut,
221 Output: a.manifestJsonOut,
222 })
223 }
Jiyong Park09d77522019-11-18 11:16:27 +0900224
225 // from R+, protobuf binary format (.pb) is the standard format for apex_manifest
226 a.manifestPbOut = android.PathForModuleOut(ctx, "apex_manifest.pb")
227 ctx.Build(pctx, android.BuildParams{
228 Rule: pbApexManifestRule,
Jooyung Han214bf372019-11-12 13:03:50 +0900229 Input: manifestJsonFullOut,
Jiyong Park09d77522019-11-18 11:16:27 +0900230 Output: a.manifestPbOut,
231 })
232}
233
Jiyong Park19972c72020-01-28 20:05:29 +0900234func (a *apexBundle) buildNoticeFiles(ctx android.ModuleContext, apexFileName string) android.NoticeOutputs {
Jiyong Park9918e1a2020-03-17 19:16:40 +0900235 var noticeFiles android.Paths
236
Paul Duffinbe5a5be2020-03-30 15:54:08 +0100237 a.walkPayloadDeps(ctx, func(ctx android.ModuleContext, from blueprint.Module, to android.ApexModule, externalDep bool) bool {
Jiyong Park9918e1a2020-03-17 19:16:40 +0900238 if externalDep {
Paul Duffinbe5a5be2020-03-30 15:54:08 +0100239 // As soon as the dependency graph crosses the APEX boundary, don't go further.
240 return false
Jiyong Park09d77522019-11-18 11:16:27 +0900241 }
Paul Duffinbe5a5be2020-03-30 15:54:08 +0100242
Jiyong Park9918e1a2020-03-17 19:16:40 +0900243 notices := to.NoticeFiles()
244 noticeFiles = append(noticeFiles, notices...)
Paul Duffinbe5a5be2020-03-30 15:54:08 +0100245
246 return true
Jiyong Park9918e1a2020-03-17 19:16:40 +0900247 })
Jiyong Park09d77522019-11-18 11:16:27 +0900248
249 if len(noticeFiles) == 0 {
Jiyong Park19972c72020-01-28 20:05:29 +0900250 return android.NoticeOutputs{}
Jiyong Park09d77522019-11-18 11:16:27 +0900251 }
252
Jiyong Park33c77362020-05-29 22:00:16 +0900253 return android.BuildNoticeOutput(ctx, a.installDir, apexFileName, android.SortedUniquePaths(noticeFiles))
Jiyong Park09d77522019-11-18 11:16:27 +0900254}
255
Jiyong Park3a1602e2020-01-14 14:39:19 +0900256func (a *apexBundle) buildInstalledFilesFile(ctx android.ModuleContext, builtApex android.Path, imageDir android.Path) android.OutputPath {
257 output := android.PathForModuleOut(ctx, "installed-files.txt")
258 rule := android.NewRuleBuilder()
259 rule.Command().
260 Implicit(builtApex).
261 Text("(cd " + imageDir.String() + " ; ").
Jiyong Parkbd63a102020-02-08 12:40:05 +0900262 Text("find . \\( -type f -o -type l \\) -printf \"%s %p\\n\") ").
Jiyong Park3a1602e2020-01-14 14:39:19 +0900263 Text(" | sort -nr > ").
264 Output(output)
265 rule.Build(pctx, ctx, "installed-files."+a.Name(), "Installed files")
266 return output.OutputPath
267}
268
Jiyong Parkbd159612020-02-28 15:22:21 +0900269func (a *apexBundle) buildBundleConfig(ctx android.ModuleContext) android.OutputPath {
270 output := android.PathForModuleOut(ctx, "bundle_config.json")
271
Jiyong Parkcfaa1642020-02-28 16:51:07 +0900272 type ApkConfig struct {
273 Package_name string `json:"package_name"`
274 Apk_path string `json:"path"`
275 }
Jiyong Parkbd159612020-02-28 15:22:21 +0900276 config := struct {
277 Compression struct {
278 Uncompressed_glob []string `json:"uncompressed_glob"`
279 } `json:"compression"`
Jiyong Parkcfaa1642020-02-28 16:51:07 +0900280 Apex_config struct {
281 Apex_embedded_apk_config []ApkConfig `json:"apex_embedded_apk_config,omitempty"`
282 } `json:"apex_config,omitempty"`
Jiyong Parkbd159612020-02-28 15:22:21 +0900283 }{}
284
285 config.Compression.Uncompressed_glob = []string{
286 "apex_payload.img",
287 "apex_manifest.*",
288 }
Jiyong Parkcfaa1642020-02-28 16:51:07 +0900289
290 // collect the manifest names and paths of android apps
291 // if their manifest names are overridden
292 for _, fi := range a.filesInfo {
Sasha Smundak18d98bc2020-05-27 16:36:07 -0700293 if fi.class != app && fi.class != appSet {
Jiyong Parkcfaa1642020-02-28 16:51:07 +0900294 continue
295 }
296 packageName := fi.overriddenPackageName
297 if packageName != "" {
298 config.Apex_config.Apex_embedded_apk_config = append(
299 config.Apex_config.Apex_embedded_apk_config,
300 ApkConfig{
301 Package_name: packageName,
302 Apk_path: fi.Path(),
303 })
304 }
305 }
306
Jiyong Parkbd159612020-02-28 15:22:21 +0900307 j, err := json.Marshal(config)
308 if err != nil {
309 panic(fmt.Errorf("error while marshalling to %q: %#v", output, err))
310 }
311
312 ctx.Build(pctx, android.BuildParams{
313 Rule: android.WriteFile,
314 Output: output,
315 Description: "Bundle Config " + output.String(),
316 Args: map[string]string{
317 "content": string(j),
318 },
319 })
320
321 return output.OutputPath
322}
323
Jiyong Park09d77522019-11-18 11:16:27 +0900324func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
325 var abis []string
326 for _, target := range ctx.MultiTargets() {
327 if len(target.Arch.Abi) > 0 {
328 abis = append(abis, target.Arch.Abi[0])
329 }
330 }
331
332 abis = android.FirstUniqueStrings(abis)
333
334 apexType := a.properties.ApexType
335 suffix := apexType.suffix()
Jiyong Park7cd10e32020-01-14 09:22:18 +0900336 var implicitInputs []android.Path
Jaewoong Jung1670ca02019-11-22 14:50:42 -0800337 unsignedOutputFile := android.PathForModuleOut(ctx, a.Name()+suffix+".unsigned")
Jiyong Park09d77522019-11-18 11:16:27 +0900338
Jiyong Park7cd10e32020-01-14 09:22:18 +0900339 // TODO(jiyong): construct the copy rules using RuleBuilder
340 var copyCommands []string
341 for _, fi := range a.filesInfo {
342 destPath := android.PathForModuleOut(ctx, "image"+suffix, fi.Path()).String()
Sasha Smundak18d98bc2020-05-27 16:36:07 -0700343 destPathDir := filepath.Dir(destPath)
344 if fi.class == appSet {
345 copyCommands = append(copyCommands, "rm -rf "+destPathDir)
346 }
347 copyCommands = append(copyCommands, "mkdir -p "+destPathDir)
Jiyong Park7cd10e32020-01-14 09:22:18 +0900348 if a.linkToSystemLib && fi.transitiveDep && fi.AvailableToPlatform() {
349 // TODO(jiyong): pathOnDevice should come from fi.module, not being calculated here
350 pathOnDevice := filepath.Join("/system", fi.Path())
351 copyCommands = append(copyCommands, "ln -sfn "+pathOnDevice+" "+destPath)
352 } else {
Sasha Smundak18d98bc2020-05-27 16:36:07 -0700353 if fi.class == appSet {
354 copyCommands = append(copyCommands,
355 fmt.Sprintf("unzip -q -d %s %s", destPathDir, fi.builtFile.String()))
356 } else {
357 copyCommands = append(copyCommands, "cp -f "+fi.builtFile.String()+" "+destPath)
358 }
Jiyong Park7cd10e32020-01-14 09:22:18 +0900359 implicitInputs = append(implicitInputs, fi.builtFile)
360 }
361 // create additional symlinks pointing the file inside the APEX
362 for _, symlinkPath := range fi.SymlinkPaths() {
363 symlinkDest := android.PathForModuleOut(ctx, "image"+suffix, symlinkPath).String()
Tim Joinesc1ef1bb2020-03-18 18:00:41 +0000364 copyCommands = append(copyCommands, "ln -sfn "+filepath.Base(destPath)+" "+symlinkDest)
Jiyong Park7cd10e32020-01-14 09:22:18 +0900365 }
Liz Kammer1c14a212020-05-12 15:26:55 -0700366 for _, d := range fi.dataPaths {
367 // TODO(eakammer): This is now the third repetition of ~this logic for test paths, refactoring should be possible
368 relPath := d.Rel()
369 dataPath := d.String()
370 if !strings.HasSuffix(dataPath, relPath) {
371 panic(fmt.Errorf("path %q does not end with %q", dataPath, relPath))
372 }
373
374 dataDest := android.PathForModuleOut(ctx, "image"+suffix, fi.apexRelativePath(relPath)).String()
375
376 copyCommands = append(copyCommands, "cp -f "+d.String()+" "+dataDest)
377 implicitInputs = append(implicitInputs, d)
378 }
Jiyong Park09d77522019-11-18 11:16:27 +0900379 }
380
Jiyong Park7cd10e32020-01-14 09:22:18 +0900381 // TODO(jiyong): use RuleBuilder
382 var emitCommands []string
383 imageContentFile := android.PathForModuleOut(ctx, "content.txt")
Jooyung Han214bf372019-11-12 13:03:50 +0900384 emitCommands = append(emitCommands, "echo ./apex_manifest.pb >> "+imageContentFile.String())
Jooyung Han5417f772020-03-12 18:37:20 +0900385 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
Jooyung Han214bf372019-11-12 13:03:50 +0900386 emitCommands = append(emitCommands, "echo ./apex_manifest.json >> "+imageContentFile.String())
387 }
Jiyong Park7cd10e32020-01-14 09:22:18 +0900388 for _, fi := range a.filesInfo {
389 emitCommands = append(emitCommands, "echo './"+fi.Path()+"' >> "+imageContentFile.String())
Jiyong Park09d77522019-11-18 11:16:27 +0900390 }
391 emitCommands = append(emitCommands, "sort -o "+imageContentFile.String()+" "+imageContentFile.String())
Jooyung Han214bf372019-11-12 13:03:50 +0900392 implicitInputs = append(implicitInputs, a.manifestPbOut)
Jiyong Park09d77522019-11-18 11:16:27 +0900393
Jooyung Han938b5932020-06-20 12:47:47 +0900394 if a.overridableProperties.Allowed_files != nil {
Jiyong Park09d77522019-11-18 11:16:27 +0900395 ctx.Build(pctx, android.BuildParams{
396 Rule: emitApexContentRule,
397 Implicits: implicitInputs,
398 Output: imageContentFile,
399 Description: "emit apex image content",
400 Args: map[string]string{
401 "emit_commands": strings.Join(emitCommands, " && "),
402 },
403 })
404 implicitInputs = append(implicitInputs, imageContentFile)
Jooyung Han938b5932020-06-20 12:47:47 +0900405 allowedFilesFile := android.PathForModuleSrc(ctx, proptools.String(a.overridableProperties.Allowed_files))
Jiyong Park09d77522019-11-18 11:16:27 +0900406
Jaewoong Jung1670ca02019-11-22 14:50:42 -0800407 phonyOutput := android.PathForModuleOut(ctx, a.Name()+"-diff-phony-output")
Jiyong Park09d77522019-11-18 11:16:27 +0900408 ctx.Build(pctx, android.BuildParams{
409 Rule: diffApexContentRule,
410 Implicits: implicitInputs,
411 Output: phonyOutput,
412 Description: "diff apex image content",
413 Args: map[string]string{
Colin Cross440e0d02020-06-11 11:32:11 -0700414 "allowed_files_file": allowedFilesFile.String(),
415 "image_content_file": imageContentFile.String(),
416 "apex_module_name": a.Name(),
Jiyong Park09d77522019-11-18 11:16:27 +0900417 },
418 })
419
420 implicitInputs = append(implicitInputs, phonyOutput)
421 }
422
423 outHostBinDir := android.PathForOutput(ctx, "host", ctx.Config().PrebuiltOS(), "bin").String()
424 prebuiltSdkToolsBinDir := filepath.Join("prebuilts", "sdk", "tools", runtime.GOOS, "bin")
425
Jiyong Park3a1602e2020-01-14 14:39:19 +0900426 imageDir := android.PathForModuleOut(ctx, "image"+suffix)
Jiyong Park09d77522019-11-18 11:16:27 +0900427 if apexType == imageApex {
428 // files and dirs that will be created in APEX
429 var readOnlyPaths = []string{"apex_manifest.json", "apex_manifest.pb"}
430 var executablePaths []string // this also includes dirs
Sasha Smundak18d98bc2020-05-27 16:36:07 -0700431 var extractedAppSetPaths android.Paths
432 var extractedAppSetDirs []string
Jiyong Park09d77522019-11-18 11:16:27 +0900433 for _, f := range a.filesInfo {
Jiyong Parkf1493cc2020-05-29 21:29:20 +0900434 pathInApex := f.Path()
Jiyong Park09d77522019-11-18 11:16:27 +0900435 if f.installDir == "bin" || strings.HasPrefix(f.installDir, "bin/") {
436 executablePaths = append(executablePaths, pathInApex)
Liz Kammer1c14a212020-05-12 15:26:55 -0700437 for _, d := range f.dataPaths {
438 readOnlyPaths = append(readOnlyPaths, filepath.Join(f.installDir, d.Rel()))
439 }
Jiyong Park09d77522019-11-18 11:16:27 +0900440 for _, s := range f.symlinks {
441 executablePaths = append(executablePaths, filepath.Join(f.installDir, s))
442 }
Sasha Smundak18d98bc2020-05-27 16:36:07 -0700443 } else if f.class == appSet {
444 extractedAppSetPaths = append(extractedAppSetPaths, f.builtFile)
445 extractedAppSetDirs = append(extractedAppSetDirs, f.installDir)
Jiyong Park09d77522019-11-18 11:16:27 +0900446 } else {
447 readOnlyPaths = append(readOnlyPaths, pathInApex)
448 }
449 dir := f.installDir
450 for !android.InList(dir, executablePaths) && dir != "" {
451 executablePaths = append(executablePaths, dir)
452 dir, _ = filepath.Split(dir) // move up to the parent
453 if len(dir) > 0 {
454 // remove trailing slash
455 dir = dir[:len(dir)-1]
456 }
457 }
458 }
459 sort.Strings(readOnlyPaths)
460 sort.Strings(executablePaths)
461 cannedFsConfig := android.PathForModuleOut(ctx, "canned_fs_config")
462 ctx.Build(pctx, android.BuildParams{
463 Rule: generateFsConfig,
464 Output: cannedFsConfig,
465 Description: "generate fs config",
Sasha Smundak18d98bc2020-05-27 16:36:07 -0700466 Inputs: extractedAppSetPaths,
Jiyong Park09d77522019-11-18 11:16:27 +0900467 Args: map[string]string{
468 "ro_paths": strings.Join(readOnlyPaths, " "),
469 "exec_paths": strings.Join(executablePaths, " "),
Sasha Smundak18d98bc2020-05-27 16:36:07 -0700470 "apk_paths": strings.Join(extractedAppSetDirs, " "),
Jiyong Park09d77522019-11-18 11:16:27 +0900471 },
472 })
473
Jiyong Park09d77522019-11-18 11:16:27 +0900474 optFlags := []string{}
475
476 // Additional implicit inputs.
Jooyung Han54aca7b2019-11-20 02:26:02 +0900477 implicitInputs = append(implicitInputs, cannedFsConfig, a.fileContexts, a.private_key_file, a.public_key_file)
Jiyong Park09d77522019-11-18 11:16:27 +0900478 optFlags = append(optFlags, "--pubkey "+a.public_key_file.String())
479
Jooyung Han27151d92019-12-16 17:45:32 +0900480 manifestPackageName := a.getOverrideManifestPackageName(ctx)
481 if manifestPackageName != "" {
Jiyong Park09d77522019-11-18 11:16:27 +0900482 optFlags = append(optFlags, "--override_apk_package_name "+manifestPackageName)
483 }
484
485 if a.properties.AndroidManifest != nil {
486 androidManifestFile := android.PathForModuleSrc(ctx, proptools.String(a.properties.AndroidManifest))
487 implicitInputs = append(implicitInputs, androidManifestFile)
488 optFlags = append(optFlags, "--android_manifest "+androidManifestFile.String())
489 }
490
491 targetSdkVersion := ctx.Config().DefaultAppTargetSdk()
Nikita Ioffe644009a2020-05-20 00:16:27 +0100492 // TODO(b/157078772): propagate min_sdk_version to apexer.
Baligh Uddinf6201372020-01-24 23:15:44 +0000493 minSdkVersion := ctx.Config().DefaultAppTargetSdk()
Nikita Ioffe5d600c92020-02-20 00:43:27 +0000494
Jooyung Han5417f772020-03-12 18:37:20 +0900495 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
496 minSdkVersion = strconv.Itoa(a.minSdkVersion(ctx))
Nikita Ioffe5d600c92020-02-20 00:43:27 +0000497 }
498
Nikita Ioffe1f4f3452020-03-02 16:58:11 +0000499 if java.UseApiFingerprint(ctx) {
500 targetSdkVersion = ctx.Config().PlatformSdkCodename() + fmt.Sprintf(".$$(cat %s)", java.ApiFingerprintPath(ctx).String())
Baligh Uddinf6201372020-01-24 23:15:44 +0000501 implicitInputs = append(implicitInputs, java.ApiFingerprintPath(ctx))
502 }
Nikita Ioffe1f4f3452020-03-02 16:58:11 +0000503 if java.UseApiFingerprint(ctx) {
504 minSdkVersion = ctx.Config().PlatformSdkCodename() + fmt.Sprintf(".$$(cat %s)", java.ApiFingerprintPath(ctx).String())
Baligh Uddinf6201372020-01-24 23:15:44 +0000505 implicitInputs = append(implicitInputs, java.ApiFingerprintPath(ctx))
Jiyong Park09d77522019-11-18 11:16:27 +0900506 }
507 optFlags = append(optFlags, "--target_sdk_version "+targetSdkVersion)
Baligh Uddinf6201372020-01-24 23:15:44 +0000508 optFlags = append(optFlags, "--min_sdk_version "+minSdkVersion)
Jiyong Park09d77522019-11-18 11:16:27 +0900509
Baligh Uddin004d7172020-02-19 21:29:28 -0800510 if a.overridableProperties.Logging_parent != "" {
511 optFlags = append(optFlags, "--logging_parent ", a.overridableProperties.Logging_parent)
512 }
513
Jiyong Park19972c72020-01-28 20:05:29 +0900514 a.mergedNotices = a.buildNoticeFiles(ctx, a.Name()+suffix)
515 if a.mergedNotices.HtmlGzOutput.Valid() {
Jiyong Park09d77522019-11-18 11:16:27 +0900516 // If there's a NOTICE file, embed it as an asset file in the APEX.
Jiyong Park19972c72020-01-28 20:05:29 +0900517 implicitInputs = append(implicitInputs, a.mergedNotices.HtmlGzOutput.Path())
518 optFlags = append(optFlags, "--assets_dir "+filepath.Dir(a.mergedNotices.HtmlGzOutput.String()))
Jiyong Park09d77522019-11-18 11:16:27 +0900519 }
520
Nikita Ioffeb4b44c02020-01-02 23:01:39 +0000521 if ctx.ModuleDir() != "system/apex/apexd/apexd_testdata" && ctx.ModuleDir() != "system/apex/shim/build" && a.testOnlyShouldSkipHashtreeGeneration() {
Nikita Ioffec72b5dd2019-12-07 17:30:22 +0000522 ctx.PropertyErrorf("test_only_no_hashtree", "not available")
523 return
524 }
Jooyung Han5417f772020-03-12 18:37:20 +0900525 if a.minSdkVersion(ctx) > android.SdkVersion_Android10 || a.testOnlyShouldSkipHashtreeGeneration() {
Jiyong Park09d77522019-11-18 11:16:27 +0900526 // Apexes which are supposed to be installed in builtin dirs(/system, etc)
527 // don't need hashtree for activation. Therefore, by removing hashtree from
528 // apex bundle (filesystem image in it, to be specific), we can save storage.
529 optFlags = append(optFlags, "--no_hashtree")
530 }
531
Dario Frenica913392020-04-27 18:21:11 +0100532 if a.testOnlyShouldSkipPayloadSign() {
533 optFlags = append(optFlags, "--unsigned_payload")
534 }
535
Jiyong Park09d77522019-11-18 11:16:27 +0900536 if a.properties.Apex_name != nil {
537 // If apex_name is set, apexer can skip checking if key name matches with apex name.
538 // Note that apex_manifest is also mended.
539 optFlags = append(optFlags, "--do_not_check_keyname")
540 }
541
Jooyung Han5417f772020-03-12 18:37:20 +0900542 if a.minSdkVersion(ctx) == android.SdkVersion_Android10 {
Jooyung Han214bf372019-11-12 13:03:50 +0900543 implicitInputs = append(implicitInputs, a.manifestJsonOut)
544 optFlags = append(optFlags, "--manifest_json "+a.manifestJsonOut.String())
545 }
546
Jiyong Park09d77522019-11-18 11:16:27 +0900547 ctx.Build(pctx, android.BuildParams{
548 Rule: apexRule,
549 Implicits: implicitInputs,
550 Output: unsignedOutputFile,
551 Description: "apex (" + apexType.name() + ")",
552 Args: map[string]string{
Jooyung Han214bf372019-11-12 13:03:50 +0900553 "tool_path": outHostBinDir + ":" + prebuiltSdkToolsBinDir,
Jiyong Park3a1602e2020-01-14 14:39:19 +0900554 "image_dir": imageDir.String(),
Jooyung Han214bf372019-11-12 13:03:50 +0900555 "copy_commands": strings.Join(copyCommands, " && "),
556 "manifest": a.manifestPbOut.String(),
557 "file_contexts": a.fileContexts.String(),
558 "canned_fs_config": cannedFsConfig.String(),
559 "key": a.private_key_file.String(),
560 "opt_flags": strings.Join(optFlags, " "),
Jiyong Park09d77522019-11-18 11:16:27 +0900561 },
562 })
563
Jaewoong Jung1670ca02019-11-22 14:50:42 -0800564 apexProtoFile := android.PathForModuleOut(ctx, a.Name()+".pb"+suffix)
565 bundleModuleFile := android.PathForModuleOut(ctx, a.Name()+suffix+"-base.zip")
Jiyong Park09d77522019-11-18 11:16:27 +0900566 a.bundleModuleFile = bundleModuleFile
567
568 ctx.Build(pctx, android.BuildParams{
569 Rule: apexProtoConvertRule,
570 Input: unsignedOutputFile,
571 Output: apexProtoFile,
572 Description: "apex proto convert",
573 })
574
Jiyong Parkbd159612020-02-28 15:22:21 +0900575 bundleConfig := a.buildBundleConfig(ctx)
576
Jiyong Park09d77522019-11-18 11:16:27 +0900577 ctx.Build(pctx, android.BuildParams{
578 Rule: apexBundleRule,
579 Input: apexProtoFile,
Jiyong Parkbd159612020-02-28 15:22:21 +0900580 Implicit: bundleConfig,
Jiyong Park09d77522019-11-18 11:16:27 +0900581 Output: a.bundleModuleFile,
582 Description: "apex bundle module",
583 Args: map[string]string{
Jiyong Parkbd159612020-02-28 15:22:21 +0900584 "abi": strings.Join(abis, "."),
585 "config": bundleConfig.String(),
Jiyong Park09d77522019-11-18 11:16:27 +0900586 },
587 })
588 } else {
589 ctx.Build(pctx, android.BuildParams{
590 Rule: zipApexRule,
591 Implicits: implicitInputs,
592 Output: unsignedOutputFile,
593 Description: "apex (" + apexType.name() + ")",
594 Args: map[string]string{
Jooyung Han214bf372019-11-12 13:03:50 +0900595 "tool_path": outHostBinDir + ":" + prebuiltSdkToolsBinDir,
Jiyong Park3a1602e2020-01-14 14:39:19 +0900596 "image_dir": imageDir.String(),
Jooyung Han214bf372019-11-12 13:03:50 +0900597 "copy_commands": strings.Join(copyCommands, " && "),
598 "manifest": a.manifestPbOut.String(),
Jiyong Park09d77522019-11-18 11:16:27 +0900599 },
600 })
601 }
602
Jaewoong Jung1670ca02019-11-22 14:50:42 -0800603 a.outputFile = android.PathForModuleOut(ctx, a.Name()+suffix)
Kousik Kumar309b1c02020-05-28 06:13:33 -0700604 rule := java.Signapk
605 args := map[string]string{
606 "certificates": a.container_certificate_file.String() + " " + a.container_private_key_file.String(),
607 "flags": "-a 4096", //alignment
608 }
609 implicits := android.Paths{
610 a.container_certificate_file,
611 a.container_private_key_file,
612 }
613 if ctx.Config().IsEnvTrue("RBE_SIGNAPK") {
614 rule = java.SignapkRE
615 args["implicits"] = strings.Join(implicits.Strings(), ",")
616 args["outCommaList"] = a.outputFile.String()
617 }
Jiyong Park09d77522019-11-18 11:16:27 +0900618 ctx.Build(pctx, android.BuildParams{
Kousik Kumar309b1c02020-05-28 06:13:33 -0700619 Rule: rule,
Jiyong Park09d77522019-11-18 11:16:27 +0900620 Description: "signapk",
621 Output: a.outputFile,
622 Input: unsignedOutputFile,
Kousik Kumar309b1c02020-05-28 06:13:33 -0700623 Implicits: implicits,
624 Args: args,
Jiyong Park09d77522019-11-18 11:16:27 +0900625 })
626
627 // Install to $OUT/soong/{target,host}/.../apex
628 if a.installable() {
Jaewoong Jung1670ca02019-11-22 14:50:42 -0800629 ctx.InstallFile(a.installDir, a.Name()+suffix, a.outputFile)
Jiyong Park09d77522019-11-18 11:16:27 +0900630 }
631 a.buildFilesInfo(ctx)
Jiyong Park3a1602e2020-01-14 14:39:19 +0900632
633 // installed-files.txt is dist'ed
634 a.installedFilesFile = a.buildInstalledFilesFile(ctx, a.outputFile, imageDir)
Jiyong Park09d77522019-11-18 11:16:27 +0900635}
636
637func (a *apexBundle) buildFlattenedApex(ctx android.ModuleContext) {
638 // Temporarily wrap the original `ctx` into a `flattenedApexContext` to have it
639 // reply true to `InstallBypassMake()` (thus making the call
640 // `android.PathForModuleInstall` below use `android.pathForInstallInMakeDir`
641 // instead of `android.PathForOutput`) to return the correct path to the flattened
642 // APEX (as its contents is installed by Make, not Soong).
643 factx := flattenedApexContext{ctx}
Jiyong Parka5948012020-02-07 10:15:14 +0900644 apexBundleName := a.Name()
645 a.outputFile = android.PathForModuleInstall(&factx, "apex", apexBundleName)
Jiyong Park09d77522019-11-18 11:16:27 +0900646
Jiyong Park317645e2019-12-05 13:20:58 +0900647 if a.installable() && a.GetOverriddenBy() == "" {
Jiyong Parka5948012020-02-07 10:15:14 +0900648 installPath := android.PathForModuleInstall(ctx, "apex", apexBundleName)
Jooyung Han54aca7b2019-11-20 02:26:02 +0900649 devicePath := android.InstallPathToOnDevicePath(ctx, installPath)
Jiyong Parka5948012020-02-07 10:15:14 +0900650 addFlattenedFileContextsInfos(ctx, apexBundleName+":"+devicePath+":"+a.fileContexts.String())
Jooyung Han54aca7b2019-11-20 02:26:02 +0900651 }
Jiyong Park09d77522019-11-18 11:16:27 +0900652 a.buildFilesInfo(ctx)
653}
654
655func (a *apexBundle) setCertificateAndPrivateKey(ctx android.ModuleContext) {
Jooyung Hanf121a652019-12-17 14:30:11 +0900656 if a.container_certificate_file == nil {
657 cert := String(a.properties.Certificate)
658 if cert == "" {
659 pem, key := ctx.Config().DefaultAppCertificate(ctx)
660 a.container_certificate_file = pem
661 a.container_private_key_file = key
662 } else {
663 defaultDir := ctx.Config().DefaultAppCertificateDir(ctx)
664 a.container_certificate_file = defaultDir.Join(ctx, cert+".x509.pem")
665 a.container_private_key_file = defaultDir.Join(ctx, cert+".pk8")
666 }
Jiyong Park09d77522019-11-18 11:16:27 +0900667 }
668}
669
670func (a *apexBundle) buildFilesInfo(ctx android.ModuleContext) {
671 if a.installable() {
Jooyung Han214bf372019-11-12 13:03:50 +0900672 // For flattened APEX, do nothing but make sure that APEX manifest and apex_pubkey are also copied along
Jiyong Park09d77522019-11-18 11:16:27 +0900673 // with other ordinary files.
Jiyong Park7cd10e32020-01-14 09:22:18 +0900674 a.filesInfo = append(a.filesInfo, newApexFile(ctx, a.manifestPbOut, "apex_manifest.pb", ".", etc, nil))
Jiyong Park09d77522019-11-18 11:16:27 +0900675
676 // rename to apex_pubkey
677 copiedPubkey := android.PathForModuleOut(ctx, "apex_pubkey")
678 ctx.Build(pctx, android.BuildParams{
679 Rule: android.Cp,
680 Input: a.public_key_file,
681 Output: copiedPubkey,
682 })
Jiyong Park7cd10e32020-01-14 09:22:18 +0900683 a.filesInfo = append(a.filesInfo, newApexFile(ctx, copiedPubkey, "apex_pubkey", ".", etc, nil))
Jiyong Park09d77522019-11-18 11:16:27 +0900684
685 if a.properties.ApexType == flattenedApex {
Jiyong Parka5948012020-02-07 10:15:14 +0900686 apexBundleName := a.Name()
Jiyong Park09d77522019-11-18 11:16:27 +0900687 for _, fi := range a.filesInfo {
Jiyong Parka5948012020-02-07 10:15:14 +0900688 dir := filepath.Join("apex", apexBundleName, fi.installDir)
Jiyong Parkf1493cc2020-05-29 21:29:20 +0900689 target := ctx.InstallFile(android.PathForModuleInstall(ctx, dir), fi.Stem(), fi.builtFile)
Jiyong Park09d77522019-11-18 11:16:27 +0900690 for _, sym := range fi.symlinks {
691 ctx.InstallSymlink(android.PathForModuleInstall(ctx, dir), sym, target)
692 }
693 }
694 }
695 }
696}
Jooyung Han27151d92019-12-16 17:45:32 +0900697
698func (a *apexBundle) getOverrideManifestPackageName(ctx android.ModuleContext) string {
699 // For VNDK APEXes, check "com.android.vndk" in PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES
700 // to see if it should be overridden because their <apex name> is dynamically generated
701 // according to its VNDK version.
702 if a.vndkApex {
703 overrideName, overridden := ctx.DeviceConfig().OverrideManifestPackageNameFor(vndkApexName)
704 if overridden {
705 return strings.Replace(*a.properties.Apex_name, vndkApexName, overrideName, 1)
706 }
707 return ""
708 }
Baligh Uddin5b57dba2020-03-15 13:01:05 -0700709 if a.overridableProperties.Package_name != "" {
710 return a.overridableProperties.Package_name
711 }
Jiyong Park20bacab2020-03-03 11:45:41 +0900712 manifestPackageName, overridden := ctx.DeviceConfig().OverrideManifestPackageNameFor(ctx.ModuleName())
Jooyung Han27151d92019-12-16 17:45:32 +0900713 if overridden {
714 return manifestPackageName
715 }
716 return ""
717}
Jiyong Park83dc74b2020-01-14 18:38:44 +0900718
719func (a *apexBundle) buildApexDependencyInfo(ctx android.ModuleContext) {
720 if !a.primaryApexType {
721 return
722 }
723
724 if a.properties.IsCoverageVariant {
725 // Otherwise, we will have duplicated rules for coverage and
726 // non-coverage variants of the same APEX
727 return
728 }
729
730 if ctx.Host() {
731 // No need to generate dependency info for host variant
732 return
733 }
734
Artur Satayev872a1442020-04-27 17:08:37 +0100735 depInfos := android.DepNameToDepInfoMap{}
736 a.walkPayloadDeps(ctx, func(ctx android.ModuleContext, from blueprint.Module, to android.ApexModule, externalDep bool) bool {
737 if from.Name() == to.Name() {
738 // This can happen for cc.reuseObjTag. We are not interested in tracking this.
739 // As soon as the dependency graph crosses the APEX boundary, don't go further.
740 return !externalDep
Jiyong Park678c8812020-02-07 17:25:49 +0900741 }
Jiyong Park83dc74b2020-01-14 18:38:44 +0900742
Artur Satayev872a1442020-04-27 17:08:37 +0100743 if info, exists := depInfos[to.Name()]; exists {
744 if !android.InList(from.Name(), info.From) {
745 info.From = append(info.From, from.Name())
746 }
747 info.IsExternal = info.IsExternal && externalDep
748 depInfos[to.Name()] = info
749 } else {
Artur Satayev480e25b2020-04-27 18:53:18 +0100750 toMinSdkVersion := "(no version)"
751 if m, ok := to.(interface{ MinSdkVersion() string }); ok {
752 if v := m.MinSdkVersion(); v != "" {
753 toMinSdkVersion = v
754 }
755 }
756
Artur Satayev872a1442020-04-27 17:08:37 +0100757 depInfos[to.Name()] = android.ApexModuleDepInfo{
Artur Satayev480e25b2020-04-27 18:53:18 +0100758 To: to.Name(),
759 From: []string{from.Name()},
760 IsExternal: externalDep,
761 MinSdkVersion: toMinSdkVersion,
Artur Satayev872a1442020-04-27 17:08:37 +0100762 }
763 }
764
765 // As soon as the dependency graph crosses the APEX boundary, don't go further.
766 return !externalDep
Jiyong Park83dc74b2020-01-14 18:38:44 +0900767 })
768
Artur Satayev480e25b2020-04-27 18:53:18 +0100769 a.ApexBundleDepsInfo.BuildDepsInfoLists(ctx, proptools.String(a.properties.Min_sdk_version), depInfos)
Artur Satayev872a1442020-04-27 17:08:37 +0100770
Jiyong Park83dc74b2020-01-14 18:38:44 +0900771 ctx.Build(pctx, android.BuildParams{
772 Rule: android.Phony,
773 Output: android.PathForPhony(ctx, a.Name()+"-deps-info"),
Artur Satayeva8bd1132020-04-27 18:07:06 +0100774 Inputs: []android.Path{
775 a.ApexBundleDepsInfo.FullListPath(),
776 a.ApexBundleDepsInfo.FlatListPath(),
777 },
Jiyong Park83dc74b2020-01-14 18:38:44 +0900778 })
779}