Expand preprocessed flag to work on android_app_imports
Setting the preprocessed flag will now also verify that the apk is zip-aligned and does not have compressed JNI libs or dex files. Bug: 185811447 Test: m nothing Change-Id: I01b7c25f390345b14385f6f9e1640f48a5d9dc93
This commit is contained in:
@@ -246,6 +246,19 @@ var (
|
||||
CommandDeps: []string{"${config.ZipAlign}"},
|
||||
},
|
||||
)
|
||||
|
||||
checkZipAlignment = pctx.AndroidStaticRule("checkzipalign",
|
||||
blueprint.RuleParams{
|
||||
Command: "if ! ${config.ZipAlign} -c -p 4 $in > /dev/null; then " +
|
||||
"echo $in: Improper package alignment >&2; " +
|
||||
"exit 1; " +
|
||||
"else " +
|
||||
"touch $out; " +
|
||||
"fi",
|
||||
CommandDeps: []string{"${config.ZipAlign}"},
|
||||
Description: "Check zip alignment",
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
Reference in New Issue
Block a user