Merge "apexer: remove --do_not_check_keyname" am: e732271cc5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2421920 Change-Id: Ib4af8a15cce5a4271ae0a1b34301ff4045ddae9d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -4138,8 +4138,6 @@ func TestApexName(t *testing.T) {
|
||||
module := ctx.ModuleForTests("myapex", "android_common_com.android.myapex_image")
|
||||
apexManifestRule := module.Rule("apexManifestRule")
|
||||
ensureContains(t, apexManifestRule.Args["opt"], "-v name com.android.myapex")
|
||||
apexRule := module.Rule("apexRule")
|
||||
ensureContains(t, apexRule.Args["opt_flags"], "--do_not_check_keyname")
|
||||
|
||||
apexBundle := module.Module().(*apexBundle)
|
||||
data := android.AndroidMkDataForTest(t, ctx, apexBundle)
|
||||
|
||||
@@ -706,12 +706,6 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
|
||||
optFlags = append(optFlags, "--unsigned_payload")
|
||||
}
|
||||
|
||||
if a.properties.Apex_name != nil {
|
||||
// If apex_name is set, apexer can skip checking if key name matches with
|
||||
// apex name. Note that apex_manifest is also mended.
|
||||
optFlags = append(optFlags, "--do_not_check_keyname")
|
||||
}
|
||||
|
||||
if moduleMinSdkVersion == android.SdkVersion_Android10 {
|
||||
implicitInputs = append(implicitInputs, a.manifestJsonOut)
|
||||
optFlags = append(optFlags, "--manifest_json "+a.manifestJsonOut.String())
|
||||
|
||||
Reference in New Issue
Block a user