Merge changes I9ad66ea2,I4c95b77b am: 57271b9f45
am: a7c0107744
am: 16213c6bbe
am: f7e9e1f434
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1934955 Change-Id: I5e05dbd3bca3c14bb52ad383c8af3eaf491222a1
This commit is contained in:
@@ -624,7 +624,7 @@ func (a *AndroidApp) generateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
a.aapt.useEmbeddedDex = Bool(a.appProperties.Use_embedded_dex)
|
||||
|
||||
// Check if the install APK name needs to be overridden.
|
||||
a.installApkName = ctx.DeviceConfig().OverridePackageNameFor(a.Name())
|
||||
a.installApkName = ctx.DeviceConfig().OverridePackageNameFor(a.Stem())
|
||||
|
||||
if ctx.ModuleName() == "framework-res" {
|
||||
// framework-res.apk is installed as system/framework/framework-res.apk
|
||||
@@ -1012,6 +1012,7 @@ func (a *AndroidTest) FixTestConfig(ctx android.ModuleContext, testConfig androi
|
||||
command := rule.Command().BuiltTool("test_config_fixer").Input(testConfig).Output(fixedConfig)
|
||||
fixNeeded := false
|
||||
|
||||
// Auto-generated test config uses `ModuleName` as the APK name. So fix it if it is not the case.
|
||||
if ctx.ModuleName() != a.installApkName {
|
||||
fixNeeded = true
|
||||
command.FlagWithArg("--test-file-name ", a.installApkName+".apk")
|
||||
@@ -1168,7 +1169,10 @@ func (i *OverrideAndroidApp) GenerateAndroidBuildActions(_ android.ModuleContext
|
||||
// some of its properties.
|
||||
func OverrideAndroidAppModuleFactory() android.Module {
|
||||
m := &OverrideAndroidApp{}
|
||||
m.AddProperties(&overridableAppProperties{})
|
||||
m.AddProperties(
|
||||
&OverridableDeviceProperties{},
|
||||
&overridableAppProperties{},
|
||||
)
|
||||
|
||||
android.InitAndroidMultiTargetsArchModule(m, android.DeviceSupported, android.MultilibCommon)
|
||||
android.InitOverrideModule(m)
|
||||
|
Reference in New Issue
Block a user