Loading apex/apex.go +3 −0 Original line number Diff line number Diff line Loading @@ -1316,6 +1316,9 @@ type overridableProperties struct { // binaries would be installed by default (in PRODUCT_PACKAGES) the other binary will be removed // from PRODUCT_PACKAGES. Overrides []string // Logging Parent value Logging_parent string } type apexPackaging int Loading apex/apex_test.go +5 −0 Original line number Diff line number Diff line Loading @@ -3230,6 +3230,7 @@ func TestOverrideApex(t *testing.T) { base: "myapex", apps: ["override_app"], overrides: ["unknownapex"], logging_parent: "com.foo.bar", } apex_key { Loading Loading @@ -3276,6 +3277,10 @@ func TestOverrideApex(t *testing.T) { t.Errorf("name should be \"override_myapex\", but was %q", name) } if apexBundle.overridableProperties.Logging_parent != "com.foo.bar" { t.Errorf("override_myapex should have logging parent (com.foo.bar), but was %q.", apexBundle.overridableProperties.Logging_parent) } data := android.AndroidMkDataForTest(t, config, "", apexBundle) var builder strings.Builder data.Custom(&builder, name, "TARGET_", "", data) Loading apex/builder.go +4 −0 Original line number Diff line number Diff line Loading @@ -394,6 +394,10 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { optFlags = append(optFlags, "--target_sdk_version "+targetSdkVersion) optFlags = append(optFlags, "--min_sdk_version "+minSdkVersion) if a.overridableProperties.Logging_parent != "" { optFlags = append(optFlags, "--logging_parent ", a.overridableProperties.Logging_parent) } a.mergedNotices = a.buildNoticeFiles(ctx, a.Name()+suffix) if a.mergedNotices.HtmlGzOutput.Valid() { // If there's a NOTICE file, embed it as an asset file in the APEX. Loading Loading
apex/apex.go +3 −0 Original line number Diff line number Diff line Loading @@ -1316,6 +1316,9 @@ type overridableProperties struct { // binaries would be installed by default (in PRODUCT_PACKAGES) the other binary will be removed // from PRODUCT_PACKAGES. Overrides []string // Logging Parent value Logging_parent string } type apexPackaging int Loading
apex/apex_test.go +5 −0 Original line number Diff line number Diff line Loading @@ -3230,6 +3230,7 @@ func TestOverrideApex(t *testing.T) { base: "myapex", apps: ["override_app"], overrides: ["unknownapex"], logging_parent: "com.foo.bar", } apex_key { Loading Loading @@ -3276,6 +3277,10 @@ func TestOverrideApex(t *testing.T) { t.Errorf("name should be \"override_myapex\", but was %q", name) } if apexBundle.overridableProperties.Logging_parent != "com.foo.bar" { t.Errorf("override_myapex should have logging parent (com.foo.bar), but was %q.", apexBundle.overridableProperties.Logging_parent) } data := android.AndroidMkDataForTest(t, config, "", apexBundle) var builder strings.Builder data.Custom(&builder, name, "TARGET_", "", data) Loading
apex/builder.go +4 −0 Original line number Diff line number Diff line Loading @@ -394,6 +394,10 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { optFlags = append(optFlags, "--target_sdk_version "+targetSdkVersion) optFlags = append(optFlags, "--min_sdk_version "+minSdkVersion) if a.overridableProperties.Logging_parent != "" { optFlags = append(optFlags, "--logging_parent ", a.overridableProperties.Logging_parent) } a.mergedNotices = a.buildNoticeFiles(ctx, a.Name()+suffix) if a.mergedNotices.HtmlGzOutput.Valid() { // If there's a NOTICE file, embed it as an asset file in the APEX. Loading