e555ab1848
This patch restores the possibility of using password encrypted keys for build signing. Bug: 171221825 Test: 1. Generate password encrypted keys (write non empty passwords): $ subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com' $ mkdir ~/.android-certs $ for x in releasekey platform shared media; do \ ./development/tools/make_key ~/.android-certs/$x \ "$subject"; \ done 2. Create a file with passwords: Example of passwd file: [[[ 12345678 ]]] /home/user/.android-certs/releasekey [[[ 12345678 ]]] /home/user/.android-certs/platform [[[ 12345678 ]]] /home/user/.android-certs/shared [[[ 12345678 ]]] /home/user/.android-certs/media [[[ 12345678 ]]] /home/user/.android-certs/networkstack 3. Tell system where to find passwords: $ export ANDROID_PW_FILE=/path/to/file/with/passwords 4. Generate a release image: $ make dist $ sign_target_files_apks \ -o --default_key_mappings ~/.android-certs \ out/dist/*-target_files-*.zip \ signed-target_files.zip Signed-off-by: Oleh Cherpak <oleh.cherpak@globallogic.com> Change-Id: I3e9d5318f69a2c3ac6eec64b36163b6544d49c90 |
||
---|---|---|
.. | ||
testdata | ||
add_img_to_target_files | ||
add_img_to_target_files.py | ||
Android.bp | ||
apex_utils.py | ||
blockimgdiff.py | ||
build_image.py | ||
build_super_image.py | ||
check_ota_package_signature.py | ||
check_partition_sizes.py | ||
check_target_files_signatures | ||
check_target_files_signatures.py | ||
check_target_files_vintf.py | ||
common.py | ||
edify_generator.py | ||
images.py | ||
img_from_target_files | ||
img_from_target_files.py | ||
make_recovery_patch.py | ||
merge_builds.py | ||
merge_target_files.py | ||
ota_from_target_files | ||
ota_from_target_files.py | ||
ota_package_parser.py | ||
OWNERS | ||
pylintrc | ||
rangelib.py | ||
sign_apex.py | ||
sign_target_files_apks | ||
sign_target_files_apks.py | ||
sparse_img.py | ||
target_files_diff.py | ||
test_add_img_to_target_files.py | ||
test_apex_utils.py | ||
test_blockimgdiff.py | ||
test_build_image.py | ||
test_check_partition_sizes.py | ||
test_check_target_files_vintf.py | ||
test_common.py | ||
TEST_MAPPING | ||
test_merge_target_files.py | ||
test_ota_from_target_files.py | ||
test_rangelib.py | ||
test_sign_apex.py | ||
test_sign_target_files_apks.py | ||
test_utils.py | ||
test_validate_target_files.py | ||
test_verity_utils.py | ||
validate_target_files.py | ||
verity_utils.py |