blob: 6f746b45acd02d05d976871257dcf1a73c339394 [file] [log] [blame]
satayev95e9c5b2021-04-29 11:50:26 +01001// Copyright 2021 Google Inc. All rights reserved.
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 java
16
17import (
18 "android/soong/android"
satayev013485b2021-05-06 23:38:10 +010019 "android/soong/dexpreopt"
Colin Crossc33e5212021-05-25 18:16:02 -070020
satayev9366a052021-05-17 21:13:44 +010021 "github.com/google/blueprint"
Spandan Das7103c4f2024-11-11 22:31:55 +000022 "github.com/google/blueprint/proptools"
satayev95e9c5b2021-04-29 11:50:26 +010023)
24
25func init() {
26 registerSystemserverClasspathBuildComponents(android.InitRegistrationContext)
Jiakai Zhanga8d86602021-09-26 09:02:17 +000027
Paul Duffin4e7d1c42022-05-13 13:12:19 +000028 android.RegisterSdkMemberType(SystemServerClasspathFragmentSdkMemberType)
satayev95e9c5b2021-04-29 11:50:26 +010029}
30
31func registerSystemserverClasspathBuildComponents(ctx android.RegistrationContext) {
satayev95e9c5b2021-04-29 11:50:26 +010032 ctx.RegisterModuleType("platform_systemserverclasspath", platformSystemServerClasspathFactory)
satayevaa86bac2021-05-13 19:01:52 +010033 ctx.RegisterModuleType("systemserverclasspath_fragment", systemServerClasspathFactory)
Jiakai Zhangc9864272021-09-26 03:52:19 +000034 ctx.RegisterModuleType("prebuilt_systemserverclasspath_fragment", prebuiltSystemServerClasspathModuleFactory)
satayev95e9c5b2021-04-29 11:50:26 +010035}
36
Paul Duffin4e7d1c42022-05-13 13:12:19 +000037var SystemServerClasspathFragmentSdkMemberType = &systemServerClasspathFragmentMemberType{
38 SdkMemberTypeBase: android.SdkMemberTypeBase{
39 PropertyName: "systemserverclasspath_fragments",
40 SupportsSdk: true,
41
42 // Support for adding systemserverclasspath_fragments to the sdk snapshot was only added in
43 // Tiramisu.
44 SupportedBuildReleaseSpecification: "Tiramisu+",
45 },
46}
47
satayev95e9c5b2021-04-29 11:50:26 +010048type platformSystemServerClasspathModule struct {
49 android.ModuleBase
50
51 ClasspathFragmentBase
52}
53
54func platformSystemServerClasspathFactory() android.Module {
55 m := &platformSystemServerClasspathModule{}
56 initClasspathFragment(m, SYSTEMSERVERCLASSPATH)
57 android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
58 return m
59}
60
Colin Crosse5c7d7c2024-12-18 17:08:07 -080061func (m *platformSystemServerClasspathModule) UniqueApexVariations() bool {
62 return true
63}
64
satayevaa86bac2021-05-13 19:01:52 +010065func (p *platformSystemServerClasspathModule) AndroidMkEntries() (entries []android.AndroidMkEntries) {
66 return p.classpathFragmentBase().androidMkEntries()
satayev95e9c5b2021-04-29 11:50:26 +010067}
68
satayevaa86bac2021-05-13 19:01:52 +010069func (p *platformSystemServerClasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
satayevb3090502021-06-15 17:49:10 +010070 configuredJars := p.configuredJars(ctx)
71 classpathJars := configuredJarListToClasspathJars(ctx, configuredJars, p.classpathType)
Jiakai Zhangcee9e192021-10-29 19:46:45 +000072 standaloneConfiguredJars := p.standaloneConfiguredJars(ctx)
73 standaloneClasspathJars := configuredJarListToClasspathJars(ctx, standaloneConfiguredJars, STANDALONE_SYSTEMSERVER_JARS)
Jiakai Zhang389a6472021-12-14 18:54:06 +000074 configuredJars = configuredJars.AppendList(&standaloneConfiguredJars)
Jiakai Zhangcee9e192021-10-29 19:46:45 +000075 classpathJars = append(classpathJars, standaloneClasspathJars...)
satayevb3090502021-06-15 17:49:10 +010076 p.classpathFragmentBase().generateClasspathProtoBuildActions(ctx, configuredJars, classpathJars)
Inseob Kimdd532492024-04-30 17:22:58 +090077 p.classpathFragmentBase().installClasspathProto(ctx)
satayev013485b2021-05-06 23:38:10 +010078}
79
satayev142ed272021-06-15 16:21:17 +010080func (p *platformSystemServerClasspathModule) configuredJars(ctx android.ModuleContext) android.ConfiguredJarList {
satayevb3090502021-06-15 17:49:10 +010081 // TODO(satayev): include any apex jars that don't populate their classpath proto config.
82 return dexpreopt.GetGlobalConfig(ctx).SystemServerJars
satayev95e9c5b2021-04-29 11:50:26 +010083}
satayevaa86bac2021-05-13 19:01:52 +010084
Jiakai Zhangcee9e192021-10-29 19:46:45 +000085func (p *platformSystemServerClasspathModule) standaloneConfiguredJars(ctx android.ModuleContext) android.ConfiguredJarList {
86 return dexpreopt.GetGlobalConfig(ctx).StandaloneSystemServerJars
87}
88
satayev333a1732021-05-17 21:35:26 +010089type SystemServerClasspathModule struct {
satayevaa86bac2021-05-13 19:01:52 +010090 android.ModuleBase
satayev333a1732021-05-17 21:35:26 +010091 android.ApexModuleBase
satayevaa86bac2021-05-13 19:01:52 +010092
93 ClasspathFragmentBase
satayev9366a052021-05-17 21:13:44 +010094
95 properties systemServerClasspathFragmentProperties
96}
97
satayev333a1732021-05-17 21:35:26 +010098func (s *SystemServerClasspathModule) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVersion android.ApiLevel) error {
99 return nil
100}
101
satayev9366a052021-05-17 21:13:44 +0100102type systemServerClasspathFragmentProperties struct {
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000103 // List of system_server classpath jars, could be either java_library, or java_sdk_library.
satayev9366a052021-05-17 21:13:44 +0100104 //
105 // The order of this list matters as it is the order that is used in the SYSTEMSERVERCLASSPATH.
Spandan Das7103c4f2024-11-11 22:31:55 +0000106 Contents proptools.Configurable[[]string] `android:"arch_variant"`
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000107
108 // List of jars that system_server loads dynamically using separate classloaders.
109 //
110 // The order does not matter.
Spandan Das7103c4f2024-11-11 22:31:55 +0000111 Standalone_contents proptools.Configurable[[]string] `android:"arch_variant"`
satayevaa86bac2021-05-13 19:01:52 +0100112}
113
114func systemServerClasspathFactory() android.Module {
satayev333a1732021-05-17 21:35:26 +0100115 m := &SystemServerClasspathModule{}
satayev9366a052021-05-17 21:13:44 +0100116 m.AddProperties(&m.properties)
satayev333a1732021-05-17 21:35:26 +0100117 android.InitApexModule(m)
satayevaa86bac2021-05-13 19:01:52 +0100118 initClasspathFragment(m, SYSTEMSERVERCLASSPATH)
119 android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
120 return m
121}
Colin Cross1cea5302024-12-03 16:40:08 -0800122
Colin Crosse5c7d7c2024-12-18 17:08:07 -0800123func (m *SystemServerClasspathModule) UniqueApexVariations() bool {
124 return true
125}
satayevaa86bac2021-05-13 19:01:52 +0100126
satayev333a1732021-05-17 21:35:26 +0100127func (s *SystemServerClasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
Spandan Das7103c4f2024-11-11 22:31:55 +0000128 if len(s.properties.Contents.GetOrDefault(ctx, nil)) == 0 && len(s.properties.Standalone_contents.GetOrDefault(ctx, nil)) == 0 {
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000129 ctx.PropertyErrorf("contents", "Either contents or standalone_contents needs to be non-empty")
satayev9366a052021-05-17 21:13:44 +0100130 }
131
satayevb3090502021-06-15 17:49:10 +0100132 configuredJars := s.configuredJars(ctx)
133 classpathJars := configuredJarListToClasspathJars(ctx, configuredJars, s.classpathType)
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000134 standaloneConfiguredJars := s.standaloneConfiguredJars(ctx)
135 standaloneClasspathJars := configuredJarListToClasspathJars(ctx, standaloneConfiguredJars, STANDALONE_SYSTEMSERVER_JARS)
Jiakai Zhang389a6472021-12-14 18:54:06 +0000136 configuredJars = configuredJars.AppendList(&standaloneConfiguredJars)
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000137 classpathJars = append(classpathJars, standaloneClasspathJars...)
satayevb3090502021-06-15 17:49:10 +0100138 s.classpathFragmentBase().generateClasspathProtoBuildActions(ctx, configuredJars, classpathJars)
Spandan Dasfbcd5fe2024-09-30 22:30:39 +0000139 s.setPartitionInfoOfLibraries(ctx)
140}
141
142// Map of java library name to their install partition.
143type LibraryNameToPartitionInfo struct {
144 LibraryNameToPartition map[string]string
145}
146
147// LibraryNameToPartitionInfoProvider will be used by the top-level apex to enforce that dexpreopt files
148// of apex system server jars are installed in the same partition as the top-level apex.
149var LibraryNameToPartitionInfoProvider = blueprint.NewProvider[LibraryNameToPartitionInfo]()
150
151func (s *SystemServerClasspathModule) setPartitionInfoOfLibraries(ctx android.ModuleContext) {
152 libraryNameToPartition := map[string]string{}
153 ctx.VisitDirectDepsWithTag(systemServerClasspathFragmentContentDepTag, func(m android.Module) {
154 libraryNameToPartition[m.Name()] = m.PartitionTag(ctx.DeviceConfig())
155 })
156 android.SetProvider(ctx, LibraryNameToPartitionInfoProvider, LibraryNameToPartitionInfo{
157 LibraryNameToPartition: libraryNameToPartition,
158 })
satayevaa86bac2021-05-13 19:01:52 +0100159}
160
satayev142ed272021-06-15 16:21:17 +0100161func (s *SystemServerClasspathModule) configuredJars(ctx android.ModuleContext) android.ConfiguredJarList {
satayev703c67a2021-05-20 21:33:41 +0100162 global := dexpreopt.GetGlobalConfig(ctx)
163
Spandan Das7103c4f2024-11-11 22:31:55 +0000164 possibleUpdatableModules := gatherPossibleApexModuleNamesAndStems(ctx, s.properties.Contents.GetOrDefault(ctx, nil), systemServerClasspathFragmentContentDepTag)
satayevd34eb0c2021-08-06 13:20:28 +0100165 jars, unknown := global.ApexSystemServerJars.Filter(possibleUpdatableModules)
166 // TODO(satayev): remove geotz ssc_fragment, since geotz is not part of SSCP anymore.
167 _, unknown = android.RemoveFromList("geotz", unknown)
Keun young Parkd64ab232021-10-18 08:42:23 -0700168 // This module only exists in car products.
169 // So ignore it even if it is not in PRODUCT_APEX_SYSTEM_SERVER_JARS.
170 // TODO(b/203233647): Add better mechanism to make it optional.
171 _, unknown = android.RemoveFromList("car-frameworks-service-module", unknown)
Samiul Islam7b385c52021-10-11 22:47:13 +0100172
Alan Stokesbcd567e2021-11-12 15:21:43 +0000173 // This module is optional, so it is not present in all products.
174 // (See PRODUCT_ISOLATED_COMPILATION_ENABLED.)
175 // So ignore it even if it is not in PRODUCT_APEX_SYSTEM_SERVER_JARS.
176 // TODO(b/203233647): Add better mechanism to make it optional.
177 _, unknown = android.RemoveFromList("service-compos", unknown)
178
Samiul Islam7b385c52021-10-11 22:47:13 +0100179 // TODO(satayev): for apex_test we want to include all contents unconditionally to classpaths
180 // config. However, any test specific jars would not be present in ApexSystemServerJars. Instead,
181 // we should check if we are creating a config for apex_test via ApexInfo and amend the values.
182 // This is an exception to support end-to-end test for ApexdUnitTests, until such support exists.
183 if android.InList("test_service-apexd", possibleUpdatableModules) {
184 jars = jars.Append("com.android.apex.test_package", "test_service-apexd")
Paul Duffin458a15b2022-11-25 12:18:24 +0000185 } else if global.ApexSystemServerJars.Len() > 0 && len(unknown) > 0 {
Samiul Islam7b385c52021-10-11 22:47:13 +0100186 // For non test apexes, make sure that all contents are actually declared in make.
Ulya Trafimoviche5b2b492021-10-04 15:42:53 +0100187 ctx.ModuleErrorf("%s in contents must also be declared in PRODUCT_APEX_SYSTEM_SERVER_JARS", unknown)
satayevd34eb0c2021-08-06 13:20:28 +0100188 }
189
190 return jars
satayevaa86bac2021-05-13 19:01:52 +0100191}
satayev9366a052021-05-17 21:13:44 +0100192
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000193func (s *SystemServerClasspathModule) standaloneConfiguredJars(ctx android.ModuleContext) android.ConfiguredJarList {
194 global := dexpreopt.GetGlobalConfig(ctx)
195
Spandan Das7103c4f2024-11-11 22:31:55 +0000196 possibleUpdatableModules := gatherPossibleApexModuleNamesAndStems(ctx, s.properties.Standalone_contents.GetOrDefault(ctx, nil), systemServerClasspathFragmentContentDepTag)
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000197 jars, _ := global.ApexStandaloneSystemServerJars.Filter(possibleUpdatableModules)
198
199 // TODO(jiakaiz): add a check to ensure that the contents are declared in make.
200
201 return jars
202}
203
satayev9366a052021-05-17 21:13:44 +0100204type systemServerClasspathFragmentContentDependencyTag struct {
205 blueprint.BaseDependencyTag
206}
207
Paul Duffin25322e42021-09-07 14:52:48 +0100208// The systemserverclasspath_fragment contents must never depend on prebuilts.
209func (systemServerClasspathFragmentContentDependencyTag) ReplaceSourceWithPrebuilt() bool {
210 return false
211}
212
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000213// SdkMemberType causes dependencies added with this tag to be automatically added to the sdk as if
214// they were specified using java_systemserver_libs or java_sdk_libs.
215func (b systemServerClasspathFragmentContentDependencyTag) SdkMemberType(child android.Module) android.SdkMemberType {
216 // If the module is a java_sdk_library then treat it as if it was specified in the java_sdk_libs
217 // property, otherwise treat if it was specified in the java_systemserver_libs property.
218 if javaSdkLibrarySdkMemberType.IsInstance(child) {
219 return javaSdkLibrarySdkMemberType
220 }
221
Spandan Das159b2642024-03-20 21:22:47 +0000222 return JavaSystemserverLibsSdkMemberType
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000223}
224
225func (b systemServerClasspathFragmentContentDependencyTag) ExportMember() bool {
226 return true
227}
228
Jiakai Zhang774dd302021-09-26 03:54:25 +0000229// Contents of system server fragments require files from prebuilt apex files.
230func (systemServerClasspathFragmentContentDependencyTag) RequiresFilesFromPrebuiltApex() {}
231
Paul Duffin25322e42021-09-07 14:52:48 +0100232var _ android.ReplaceSourceWithPrebuilt = systemServerClasspathFragmentContentDepTag
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000233var _ android.SdkMemberDependencyTag = systemServerClasspathFragmentContentDepTag
Jiakai Zhang774dd302021-09-26 03:54:25 +0000234var _ android.RequiresFilesFromPrebuiltApexTag = systemServerClasspathFragmentContentDepTag
Colin Crossc33e5212021-05-25 18:16:02 -0700235
satayev9366a052021-05-17 21:13:44 +0100236// The tag used for the dependency between the systemserverclasspath_fragment module and its contents.
237var systemServerClasspathFragmentContentDepTag = systemServerClasspathFragmentContentDependencyTag{}
238
239func IsSystemServerClasspathFragmentContentDepTag(tag blueprint.DependencyTag) bool {
240 return tag == systemServerClasspathFragmentContentDepTag
241}
242
Spandan Das746161d2024-08-21 22:47:53 +0000243// The dexpreopt artifacts of apex system server jars are installed onto system image.
244func (s systemServerClasspathFragmentContentDependencyTag) InstallDepNeeded() bool {
245 return true
246}
247
satayev333a1732021-05-17 21:35:26 +0100248func (s *SystemServerClasspathModule) ComponentDepsMutator(ctx android.BottomUpMutatorContext) {
satayev9366a052021-05-17 21:13:44 +0100249 module := ctx.Module()
Jiakai Zhangc9864272021-09-26 03:52:19 +0000250 _, isSourceModule := module.(*SystemServerClasspathModule)
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000251 var deps []string
Spandan Das7103c4f2024-11-11 22:31:55 +0000252 deps = append(deps, s.properties.Contents.GetOrDefault(ctx, nil)...)
253 deps = append(deps, s.properties.Standalone_contents.GetOrDefault(ctx, nil)...)
satayev9366a052021-05-17 21:13:44 +0100254
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000255 for _, name := range deps {
Jiakai Zhangc9864272021-09-26 03:52:19 +0000256 // A systemserverclasspath_fragment must depend only on other source modules, while the
257 // prebuilt_systemserverclasspath_fragment_fragment must only depend on other prebuilt modules.
258 if !isSourceModule {
259 name = android.PrebuiltNameFromSource(name)
260 }
satayev9366a052021-05-17 21:13:44 +0100261 ctx.AddDependency(module, systemServerClasspathFragmentContentDepTag, name)
262 }
263}
braleeb0c1f0c2021-06-07 22:49:13 +0800264
265// Collect information for opening IDE project files in java/jdeps.go.
Cole Faustb36d31d2024-08-27 16:04:28 -0700266func (s *SystemServerClasspathModule) IDEInfo(ctx android.BaseModuleContext, dpInfo *android.IdeInfo) {
Spandan Das7103c4f2024-11-11 22:31:55 +0000267 dpInfo.Deps = append(dpInfo.Deps, s.properties.Contents.GetOrDefault(ctx, nil)...)
268 dpInfo.Deps = append(dpInfo.Deps, s.properties.Standalone_contents.GetOrDefault(ctx, nil)...)
braleeb0c1f0c2021-06-07 22:49:13 +0800269}
Jiakai Zhangc9864272021-09-26 03:52:19 +0000270
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000271type systemServerClasspathFragmentMemberType struct {
272 android.SdkMemberTypeBase
273}
274
275func (s *systemServerClasspathFragmentMemberType) AddDependencies(ctx android.SdkDependencyContext, dependencyTag blueprint.DependencyTag, names []string) {
276 ctx.AddVariationDependencies(nil, dependencyTag, names...)
277}
278
279func (s *systemServerClasspathFragmentMemberType) IsInstance(module android.Module) bool {
280 _, ok := module.(*SystemServerClasspathModule)
281 return ok
282}
283
284func (s *systemServerClasspathFragmentMemberType) AddPrebuiltModule(ctx android.SdkMemberContext, member android.SdkMember) android.BpModule {
285 return ctx.SnapshotBuilder().AddPrebuiltModule(member, "prebuilt_systemserverclasspath_fragment")
286}
287
288func (s *systemServerClasspathFragmentMemberType) CreateVariantPropertiesStruct() android.SdkMemberProperties {
289 return &systemServerClasspathFragmentSdkMemberProperties{}
290}
291
292type systemServerClasspathFragmentSdkMemberProperties struct {
293 android.SdkMemberPropertiesBase
294
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000295 // List of system_server classpath jars, could be either java_library, or java_sdk_library.
296 //
297 // The order of this list matters as it is the order that is used in the SYSTEMSERVERCLASSPATH.
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000298 Contents []string
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000299
300 // List of jars that system_server loads dynamically using separate classloaders.
301 //
302 // The order does not matter.
303 Standalone_contents []string
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000304}
305
306func (s *systemServerClasspathFragmentSdkMemberProperties) PopulateFromVariant(ctx android.SdkMemberContext, variant android.Module) {
307 module := variant.(*SystemServerClasspathModule)
308
Spandan Das7103c4f2024-11-11 22:31:55 +0000309 s.Contents = module.properties.Contents.GetOrDefault(ctx.SdkModuleContext(), nil)
310 s.Standalone_contents = module.properties.Standalone_contents.GetOrDefault(ctx.SdkModuleContext(), nil)
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000311}
312
313func (s *systemServerClasspathFragmentSdkMemberProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet android.BpPropertySet) {
314 builder := ctx.SnapshotBuilder()
315 requiredMemberDependency := builder.SdkMemberReferencePropertyTag(true)
316
317 if len(s.Contents) > 0 {
318 propertySet.AddPropertyWithTag("contents", s.Contents, requiredMemberDependency)
319 }
Jiakai Zhangcee9e192021-10-29 19:46:45 +0000320
321 if len(s.Standalone_contents) > 0 {
322 propertySet.AddPropertyWithTag("standalone_contents", s.Standalone_contents, requiredMemberDependency)
323 }
Jiakai Zhanga8d86602021-09-26 09:02:17 +0000324}
325
326var _ android.SdkMemberType = (*systemServerClasspathFragmentMemberType)(nil)
327
Jiakai Zhangc9864272021-09-26 03:52:19 +0000328// A prebuilt version of the systemserverclasspath_fragment module.
329type prebuiltSystemServerClasspathModule struct {
330 SystemServerClasspathModule
331 prebuilt android.Prebuilt
332}
333
334func (module *prebuiltSystemServerClasspathModule) Prebuilt() *android.Prebuilt {
335 return &module.prebuilt
336}
337
338func (module *prebuiltSystemServerClasspathModule) Name() string {
339 return module.prebuilt.Name(module.ModuleBase.Name())
340}
341
Jiakai Zhang774dd302021-09-26 03:54:25 +0000342func (module *prebuiltSystemServerClasspathModule) RequiredFilesFromPrebuiltApex(ctx android.BaseModuleContext) []string {
343 return nil
344}
345
Spandan Das2ea84dd2024-01-25 22:12:50 +0000346func (module *prebuiltSystemServerClasspathModule) UseProfileGuidedDexpreopt() bool {
347 return false
348}
349
Jiakai Zhang774dd302021-09-26 03:54:25 +0000350var _ android.RequiredFilesFromPrebuiltApex = (*prebuiltSystemServerClasspathModule)(nil)
351
Jiakai Zhangc9864272021-09-26 03:52:19 +0000352func prebuiltSystemServerClasspathModuleFactory() android.Module {
353 m := &prebuiltSystemServerClasspathModule{}
354 m.AddProperties(&m.properties)
355 // This doesn't actually have any prebuilt files of its own so pass a placeholder for the srcs
356 // array.
357 android.InitPrebuiltModule(m, &[]string{"placeholder"})
358 android.InitApexModule(m)
359 android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
360 return m
361}