Only allow setting presigned without preprocessed on targetSdk < 30
When targetSdk is >= 30, the system verifies that you use a valid signature V2+ certificate. Uncompressing ndk/dex files or aligning the zip file will break a signature V2, so these apks should really just set preprocessed: true. Fixes: 185811447 Test: Presubmits Change-Id: Id89c42bcd5b5daa6eda1716bff4023423298036b
This commit is contained in:
@@ -305,7 +305,7 @@ func hiddenAPIEncodeDex(ctx android.ModuleContext, dexInput, flagsCSV android.Pa
|
||||
})
|
||||
|
||||
if uncompressDex {
|
||||
TransformZipAlign(ctx, output, encodeRuleOutput)
|
||||
TransformZipAlign(ctx, output, encodeRuleOutput, nil)
|
||||
}
|
||||
|
||||
return output
|
||||
|
Reference in New Issue
Block a user