OSDN Git Service

Fix the path for verity_key replacement when signing.
authorTao Bao <tbao@google.com>
Sat, 18 Jun 2016 00:01:22 +0000 (17:01 -0700)
committerTao Bao <tbao@google.com>
Thu, 23 Jun 2016 23:23:14 +0000 (16:23 -0700)
commite0ee794fa16b206e792eac0942f448df34247fd8
tree782eb6345b0639759f2cc3b78286802f4b7d9c63
parent2abbbd03339947327ada0becba5bd4ef41f1bdab
Fix the path for verity_key replacement when signing.

system_root_image expects the key at ROOT/verity_key as opposed to
BOOT/verity_key. Also refactor the verity key replacement lines.

Bug: 29397395
Test: 'sign_target_files_apks.py --replace_verity_private_key newkey --replace_verity_public_key newkey.pub target_files.zip signed-target_files.zip' and verify the replaced key in boot.img.
Change-Id: I58a5defff4be008ad55d4b5a5b7148569c3b8d66
tools/releasetools/sign_target_files_apks.py