Merge "Add links to partner docs for presigned apks" into main am: ad6a20f3a1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3268012 Change-Id: I2fe7e1ff79bc978c4e2054e0d6cb71e59e1183ef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -36,7 +36,7 @@ def has_preprocessed_issues(args, *, fail=False):
|
|||||||
if fail:
|
if fail:
|
||||||
sys.exit(args.apk + ': Contains compressed JNI libraries')
|
sys.exit(args.apk + ': Contains compressed JNI libraries')
|
||||||
return True
|
return True
|
||||||
# It's ok for non-privileged apps to have compressed dex files, see go/gms-uncompressed-jni-slides
|
# It's ok for non-privileged apps to have compressed dex files
|
||||||
if args.privileged and args.uncompress_priv_app_dex:
|
if args.privileged and args.uncompress_priv_app_dex:
|
||||||
if info.filename.endswith('.dex') and info.compress_type != zipfile.ZIP_STORED:
|
if info.filename.endswith('.dex') and info.compress_type != zipfile.ZIP_STORED:
|
||||||
if fail:
|
if fail:
|
||||||
@@ -46,6 +46,10 @@ def has_preprocessed_issues(args, *, fail=False):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
# This script enforces requirements for presigned apps as documented in:
|
||||||
|
# go/gms-uncompressed-jni-slides
|
||||||
|
# https://docs.partner.android.com/gms/building/integrating/jni-libs
|
||||||
|
# https://docs.partner.android.com/gms/policies/domains/mba#jni-lib
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--aapt2', help = "the path to the aapt2 executable")
|
parser.add_argument('--aapt2', help = "the path to the aapt2 executable")
|
||||||
parser.add_argument('--zipalign', help = "the path to the zipalign executable")
|
parser.add_argument('--zipalign', help = "the path to the zipalign executable")
|
||||||
|
Reference in New Issue
Block a user