Merge "sign_target_files_apks: replacing GKI signing args completely"

This commit is contained in:
Treehugger Robot 2021-05-11 07:30:16 +00:00 committed by Gerrit Code Review
commit dcadb68011
2 changed files with 3 additions and 4 deletions

View File

@ -1033,9 +1033,8 @@ def ReplaceGkiSigningKey(misc_info):
extra_args = OPTIONS.gki_signing_extra_args
if extra_args:
print('Setting extra GKI signing args: "%s"' % (extra_args))
misc_info["gki_signing_signature_args"] = (
misc_info.get("gki_signing_signature_args", '') + ' ' + extra_args)
print('Setting GKI signing args: "%s"' % (extra_args))
misc_info["gki_signing_signature_args"] = extra_args
def BuildKeyMap(misc_info, key_mapping_options):

View File

@ -602,7 +602,7 @@ name="apex.apexd_test_different_app.apex" public_key="system/apex/apexd/apexd_te
expected_dict = {
'gki_signing_key_path': 'release_gki_key',
'gki_signing_algorithm': 'release_gki_algorithm',
'gki_signing_signature_args': 'default_gki_signature_args release_gki_signature_extra_args',
'gki_signing_signature_args': 'release_gki_signature_extra_args',
}
ReplaceGkiSigningKey(misc_info)
self.assertDictEqual(expected_dict, misc_info)