66472637ada0f7013c3a6e2ff767a2af5aa3a3b3 |
|
05-Dec-2017 |
Tao Bao <tbao@google.com> |
releasetools: Check for duplicate entries in ReplaceCerts(). testdata/{media,platform}.x509.pem files are copied from build/target/product/security/. Fixes: 69479366 Test: python -m unittest test_sign_target_files_apks Change-Id: I8ba42b6f5b5432ee4b8786b241daff11db792c14
/build/make/tools/releasetools/test_sign_target_files_apks.py
|
de1d479aceb56d3b2565c67b55089b10caa55a4d |
|
20-Feb-2018 |
Tao Bao <tbao@google.com> |
releasetools: Clean up test_sign_target_files_apks.py. Since we have been carrying test certificates in testdata/ for other tests, do the same for test_sign_target_files_apks.py. Copy verity.x509.pem from build/target/product/security/ to testdata/ for that purpose. Also capture the stderr output in ReplaceVerityKeyId(). Test: python -m unittest test_sign_target_files_apks Change-Id: Ie11e042086952e8a4a5a63950cb0b16cc436b7e6
/build/make/tools/releasetools/test_sign_target_files_apks.py
|
e838d1446c6c7be2d5b2f5beabf1a5557a131edb |
|
24-Dec-2017 |
Tao Bao <tbao@google.com> |
releasetools: Clean up ReplaceVerityKeyId and add tests. Test: python -m unittest test_sign_target_files_apks Test: Run sign_target_files_apks.py on marlin target_files.zip. Change-Id: Ic3c3f4f14c73f8f8e48a8341e024e0861e665989
/build/make/tools/releasetools/test_sign_target_files_apks.py
|
a7054eede1089e22274502ff51e0915ba80e887c |
|
08-Dec-2017 |
Tao Bao <tbao@google.com> |
releasetools: Fix the tag replacement for ro.build.vendor.fingerprint. For devices using derived fingerprint (i.e. /system/build.prop doesn't contain ro.build.fingerprint, but has ro.build.thumbprint instead), the current code (in android.os.Build) doesn't have a matching logic to do the same for ro.vendor.build.fingerprint. This means we will see ro.build.thumbprint in /system/build.prop, while there's no matching ro.vendor.build.thumbprint in /vendor/build.prop. From signing script point of view, it should just apply the tag replacement (e.g. test-keys -> release-keys) for whatever it sees when signing a target_files.zip. This CL also adds unit tests for EditTags() and RewriteProps(). Fixes: 27950003 Test: Use 'sign_target_files_apks.py' to sign a target that uses derived fingerprint and vendor partition. Check VENDOR/build.prop. Test: python -m unittest test_sign_target_files_apks Change-Id: I09019da970840cd82f54b68a32b4e94984bc1d8d
/build/make/tools/releasetools/test_sign_target_files_apks.py
|