Lines Matching full:boot
48 """Generates a test boot.img without a ramdisk."""
66 '--partition_name', 'boot',
73 """Generates an archive of test boot images.
85 [('boot.img', 4096, 4 * 1024),
86 ('boot-lz4.img', 8192, 8 * 1024)].
91 The full path of the created archive. e.g., /path/to/boot-img.tar.gz.
149 """Extracts the boot signatures of a boot image.
151 This functions extracts the boot signatures of |boot_img| as:
161 # The boot signature is assumed to be at the end of boot image, after
187 """Extracts boot images and signatures of a boot images archive.
189 Suppose there are two boot images in |boot_img_archive|: boot.img
190 and boot-lz4.img. This function then extracts each boot*.img and
192 - |output_dir|/boot.img
193 - |output_dir|/boot-lz4.img
194 - |output_dir|/boot/boot_signature1
195 - |output_dir|/boot/boot_signature2
196 - |output_dir|/boot-lz4/boot_signature1
197 - |output_dir|/boot-lz4/boot_signature2
200 for boot_img in glob.glob(os.path.join(output_dir, 'boot*.img')):
247 ' Partition Name: boot\n'
277 ' Partition Name: boot\n'
307 ' Partition Name: boot\n'
315 " Prop: com.android.build.boot.os_version -> '13'\n"
316 " Prop: com.android.build.boot.security_patch -> '2022-05-05'\n"
339 ' Partition Name: boot\n'
347 " Prop: com.android.build.boot.os_version -> '13'\n"
348 " Prop: com.android.build.boot.security_patch -> '2022-05-05'\n"
371 ' Partition Name: boot\n'
379 " Prop: com.android.build.boot.os_version -> '13'\n"
380 " Prop: com.android.build.boot.security_patch -> '2022-05-05'\n"
403 ' Partition Name: boot\n'
429 ' Partition Name: boot\n' # boot
481 ' Partition Name: boot\n' # boot
533 ' Partition Name: boot\n' # boot
595 ' Partition Name: boot\n' # boot
657 ' Partition Name: boot\n' # boot
719 ' Partition Name: boot\n' # boot
756 """Tests the info of each boot signature under the signature directory.
759 signatures_dir: the directory containing the boot signatures. e.g.,
778 """Tests certify_bootimg on a boot image without an AVB footer."""
780 boot_img = os.path.join(temp_out_dir, 'boot.img')
783 # Generates the certified boot image, with a RSA2048 key.
785 'boot-certified.img')
803 # Generates the certified boot image again, with a RSA4096 key.
805 'boot-certified2.img')
826 boot_img = os.path.join(temp_out_dir, 'boot.img')
831 # Generates the certified boot image, with a RSA2048 key.
833 'boot-certified.img')
854 {'boot-certified.img':
864 # Generates the certified boot image again, with a RSA4096 key.
866 'boot-certified2.img')
887 {'boot-certified2.img':
900 boot_img = os.path.join(temp_out_dir, 'boot.img')
912 '--prop com.android.build.boot.os_version:13 '
913 '--prop com.android.build.boot.security_patch:'
919 # Certifies the boot image with --gki_info.
921 'boot-certified.img')
944 {'boot-certified.img': self._EXPECTED_AVB_FOOTER_WITH_GKI_INFO})
956 """Tests the boot signature size exceeded max size of the signature."""
958 boot_img = os.path.join(temp_out_dir, 'boot.img')
961 # Certifies the boot.img with many --extra_args, and checks
964 'boot-certified.img')
985 """Tests certify_bootimg for a boot images archive.."""
987 boot_img_archive_name = os.path.join(temp_out_dir, 'boot-img')
995 '--prop com.android.build.boot.os_version:13 '
996 '--prop com.android.build.boot.security_patch:'
1002 [('boot.img', 8 * 1024, 128 * 1024),
1003 ('boot-lz4.img', 16 * 1024, 256 * 1024)],
1006 # Certify the boot image archive, with a RSA4096 key.
1008 temp_out_dir, 'boot-certified-img.tar.gz')
1026 boot_img = os.path.join(temp_out_dir, 'boot.img')
1030 boot_lz4_img = os.path.join(temp_out_dir, 'boot-lz4.img')
1037 {'boot.img': self._EXPECTED_AVB_FOOTER_BOOT,
1038 'boot-lz4.img': self._EXPECTED_AVB_FOOTER_BOOT_LZ4})
1043 {'boot/boot_signature1':
1045 'boot/boot_signature2':
1047 'boot-lz4/boot_signature1':
1049 'boot-lz4/boot_signature2':
1053 """Tests certify_bootimg for a boot images archive."""
1055 boot_img_archive_name = os.path.join(temp_out_dir, 'boot-img')
1057 # Checks ceritfy_bootimg works for a boot images archive without a
1063 [('boot-gz.img', 8 * 1024, 128 * 1024)],
1065 # Certify the boot image archive, with a RSA4096 key.
1067 temp_out_dir, 'boot-certified-img.tar')
1081 # Checks ceritfy_bootimg works for a boot images archive with a
1087 [('boot-gz.img', 8 * 1024, 128 * 1024)],
1090 # Certify the boot image archive, with a RSA4096 key.
1092 temp_out_dir, 'boot-certified-img.tgz')
1110 boot_3_img = os.path.join(temp_out_dir, 'boot-gz.img')
1117 {'boot-gz.img': self._EXPECTED_AVB_FOOTER_BOOT_GZ})
1122 {'boot-gz/boot_signature1':
1124 'boot-gz/boot_signature2':