platform_build/tools/releasetools
Bowgo Tsai 702b8fdfe0 sign_target_files_apks: adding --allow_gsi_debug_sepolicy
https://android-review.googlesource.com/q/topic:gsi_debug_policy
adds userdebug_plat_sepolicy.cil into the GSI system.img to
reduce the steps of repacking a debug ramdisk.

This CL checks that the file userdebug_plat_sepolicy.cil shouldn't
exist before signing, unless the caller explicitly specifies
--allow_gsi_debug_sepolicy to allow it.

Note: also fixes the indentation around the block.

Bug: 188067818
Bug: 201482141
Test: sign_target_files_apks *-target_files-*.zip signed.zip
Change-Id: I56ed328a9ae70cf49dbd3c6efb5a4a8c54e1b7a7
Merged-In: I56ed328a9ae70cf49dbd3c6efb5a4a8c54e1b7a7
(cherry picked from commit 5a73b0ee976dc61fe6fa12e48f15d5ec53f90878)
2021-11-24 07:55:31 +00:00
..
testdata Fix some wording to comply with respectful-code 2020-07-23 10:04:12 -04:00
Android.bp Missing required packages for f2fs when building ota package 2021-06-09 02:11:23 +00:00
OWNERS Add elsk to the owner of scripts 2020-04-28 14:56:01 -07:00
add_img_to_target_files store images in target-files 2014-07-31 11:06:30 -07:00
add_img_to_target_files.py Write the vbmeta digest to the output zipfile also 2021-07-14 16:07:33 -07:00
apex_utils.py Make apex util detect if hashtree is present 2021-08-06 19:38:14 -04:00
blockimgdiff.py Update language to comply with Android’s inclusive language guidance 2020-07-28 15:43:15 -04:00
build_image.py Enable f2fs compression for other partitions 2021-05-26 13:11:28 -07:00
build_super_image.py Simplify codes for BuildSuperImage func 2021-04-23 19:58:40 +08:00
check_ota_package_signature.py Allow zip64 support when opening zip files 2020-09-22 16:53:39 -04:00
check_partition_sizes.py Check super size for factory OTA at build time 2021-05-26 14:43:35 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py Use apksigner in check_target_files_signatures 2020-07-14 21:48:48 -07:00
check_target_files_vintf.py Pass kernel version file to check_vintf. 2020-11-13 18:45:03 -08:00
common.py Add ro.vendor.build.dont_use_vabc to disable VABC OTA 2021-06-14 15:38:37 -07:00
edify_generator.py Fix some wording to comply with respectful-code 2020-07-23 10:04:12 -04:00
find_shareduid_violation.py Finds APK shared UID violations when merging target files. 2020-10-29 09:33:26 -07:00
images.py Factor out the image classes to break circular dependency 2019-07-15 17:02:23 -07:00
img_from_target_files Allow to build the update.zip for emulator build. 2014-06-04 17:04:14 +00:00
img_from_target_files.py More accurate error if input_file is not exists 2021-04-21 16:41:58 +08:00
jarjar-rules.txt Add ota_metadata_proto_java 2021-05-05 09:08:12 -04:00
make_recovery_patch.py Moving recovery resources from /system to /vendor 2019-10-04 00:04:34 +00:00
merge_builds.py Removes custom prefix/suffix from MergeDynamicPartitionInfoDicts. 2019-11-26 11:09:17 -08:00
merge_target_files.py Performs basic APEX validation in the merged target files package. 2021-04-19 22:31:01 +00:00
non_ab_ota.py Define the protobuf for OTA metadata 2020-08-26 16:17:35 -07:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py Add ro.vendor.build.dont_use_vabc to disable VABC OTA 2021-06-14 15:38:37 -07:00
ota_metadata.proto Add ota_metadata_proto_java 2021-05-05 09:08:12 -04:00
ota_metadata_pb2.py Add spl-downgrade field to ota metadata 2021-02-25 10:15:45 -05:00
ota_package_parser.py Allow zip64 support when opening zip files 2020-09-22 16:53:39 -04:00
ota_utils.py Add spl-downgrade field to ota metadata 2021-02-25 10:15:45 -05:00
pylintrc releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
rangelib.py releasetools: Make rangelib Python 3 compatibile. 2019-06-19 10:30:34 -07:00
sign_apex.py Allow passing in codename_to_api_level_map to sign_apex. 2020-05-01 13:56:04 +00:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py sign_target_files_apks: adding --allow_gsi_debug_sepolicy 2021-11-24 07:55:31 +00:00
sparse_img.py Preserve the monotonic property when subtracting 0 block 2020-02-27 13:24:11 -08:00
target_files_diff.py Remove ro.expect.recovery_id 2019-01-28 10:56:37 -08:00
test_add_img_to_target_files.py Moves care map generation logic to common.py, so it can be reused. 2021-04-13 11:42:26 -07:00
test_apex_utils.py Allow zip64 support when opening zip files 2020-09-22 16:53:39 -04:00
test_blockimgdiff.py Factor out the image classes to break circular dependency 2019-07-15 17:02:23 -07:00
test_build_image.py relesetools: Enable releasetools_test in presubmit. 2019-04-12 15:26:35 -07:00
test_check_partition_sizes.py Check super size for factory OTA at build time 2021-05-26 14:43:35 -07:00
test_check_target_files_vintf.py Update language to comply with Android's inclusive language guidance 2020-07-29 12:06:00 -07:00
test_common.py Calculate the runtime ro.build.id in ota scripts 2021-05-10 11:35:48 -07:00
test_merge_target_files.py Performs basic APEX validation in the merged target files package. 2021-04-19 22:31:01 +00:00
test_non_ab_ota.py Define the protobuf for OTA metadata 2020-08-26 16:17:35 -07:00
test_ota_from_target_files.py Performs basic APEX validation in the merged target files package. 2021-04-19 22:31:01 +00:00
test_rangelib.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_sign_apex.py Add support for signing a compressed apex 2021-01-27 01:27:11 +00:00
test_sign_target_files_apks.py sign_target_files_apks: replacing GKI signing args completely 2021-05-10 17:43:52 +08:00
test_utils.py Create a function that can generate ApexInfo using target-files 2021-01-22 20:13:32 -05:00
test_validate_target_files.py Fix errors from validate_target_files 2021-01-12 14:04:58 -08:00
test_verity_utils.py Calculate the vbmeta digest when building images 2021-05-05 18:04:51 +00:00
validate_target_files.py Fix errors from validate_target_files 2021-01-12 14:04:58 -08:00
verity_utils.py Calculate the vbmeta digest when building images 2021-05-05 18:04:51 +00:00