platform_build/tools/releasetools
Bowgo Tsai 33ff602070 Moving /odm/build.prop to /odm/etc/buid.prop
In device root directory, we have the following symlinks:
  - /odm/app -> /vendor/odm/app
  - /odm/bin -> /vendor/odm/bin
  - /odm/etc -> /vendor/odm/etc
  ...

This allows the Generic System Image (GSI) to be used on both devices:
  1) Has a physical odm partition, where those symlink will be hidden
     when /odm is used as the mount point
  2) Has no physical odm partition and fallback to /vendor/odm/.

We can't just have the symlink /odm -> /vendor/odm, because the former
devices won't have /vendor/odm directory, which leads to mount failure
when the mount point /odm is resolved to /vendor/odm.

The existing /vendor/odm/build.prop won't be loaded in the latter
devices, because there is no symlink:
    - /odm/build.prop -> /vendor/odm/build.prop.

Note that init blocks reading through direct symlinks (O_NOFOLLOW) so
the above symlink won't work either. This CL moves the odm build.prop
to /odm/etc/build.prop for init to load it (symlinks in earlier
components of the path will still be followed by O_NOFOLLOW).

Bug: 132128501
Test: boot a device and checks /odm/etc/build.prop is loaded
Test: make dist with an odm.img, checks $OUT/odm/etc/build.prop is loaded
Change-Id: I6f88763db755c9ec6068bfdd9cee81c19d72e9d7
Merged-In: I6f88763db755c9ec6068bfdd9cee81c19d72e9d7
(cherry picked from commit 6c62884000)
2019-05-22 16:14:53 +08:00
..
testdata Pass the correct signature size to payload generator 2019-04-11 21:04:28 +00:00
add_img_to_target_files
add_img_to_target_files.py Merge "Adds optional --rebuild_recovery flag to merge_target_files." 2019-03-19 21:32:28 +00:00
apex_utils.py Add sign_apex.py that signs a given APEX file. 2019-05-19 11:33:31 -07:00
blockimgdiff.py FileImage: make thread-safe 2019-04-12 15:59:03 -07:00
build_image.py Reland "Only assert-max-image-size for static partitions." 2019-04-11 10:12:27 -07:00
build_super_image.py sparse_img.py --get_partition_size return size of partition 2019-04-11 10:12:27 -07:00
check_ota_package_signature.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
check_target_files_signatures
check_target_files_signatures.py Revert^2 "releasetools: check_target_files_signatures.py checks APEXes." 2019-03-20 12:40:34 -07:00
common.py Moving /odm/build.prop to /odm/etc/buid.prop 2019-05-22 16:14:53 +08:00
edify_generator.py releasetools: Track edify function API changes. 2018-08-29 11:53:19 -07:00
img_from_target_files
img_from_target_files.py releasetools: Unzip all files when generating image archive. 2019-05-10 15:52:01 -07:00
make_recovery_patch
make_recovery_patch.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
merge_target_files.py Add support merging system and other for the non-A/B configuration. 2019-04-01 14:55:33 -07:00
ota_from_target_files
ota_from_target_files.py ota_from_target_files: include metadata when odm / product is changed. 2019-04-24 16:28:49 -07:00
ota_package_parser.py
OWNERS releasetools: Update OWNERS. 2019-01-11 12:28:09 -08:00
pylintrc releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
rangelib.py releasetools: RangeSet.monotonic is not an optional attribute. 2018-02-06 16:00:52 -08:00
sign_apex.py Add sign_apex.py that signs a given APEX file. 2019-05-19 11:33:31 -07:00
sign_target_files_apks
sign_target_files_apks.py Moving /odm/build.prop to /odm/etc/buid.prop 2019-05-22 16:14:53 +08:00
sparse_img.py sparse_img.py --get_partition_size return size of partition 2019-04-11 10:12:27 -07: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 Code improvement to adjusted the blocks size for care_map file 2019-02-13 18:34:50 +00:00
test_apex_utils.py releasetools: Add apex_utils.py. 2019-03-17 14:00:14 -07:00
test_blockimgdiff.py Allow generating OTA package from non-sparse images. 2019-04-12 10:48:29 -07:00
test_build_image.py build_image: improvements to right size for dynamic partitions 2018-10-23 15:14:00 -07:00
test_common.py releasetools: Remove the name restriction in common.GetSparseImage. 2019-04-12 10:47:53 -07:00
test_merge_target_files.py Adds some tests for merge_target_files. 2019-03-28 14:43:30 -07:00
test_ota_from_target_files.py Pass the correct signature size to payload generator 2019-04-11 21:04:28 +00:00
test_rangelib.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_sign_target_files_apks.py Ensure that 'release-keys' are set on properties 2019-05-03 11:41:07 -07:00
test_utils.py releasetools: Log to stdout when running tests. 2018-10-18 15:05:49 -07:00
test_validate_target_files.py Check the completeness of original blocks during target files validation 2019-02-20 15:47:30 -08:00
test_verity_utils.py releasetools: Add tests for VerityImageBuilder. 2018-11-06 10:00:51 -08:00
validate_target_files.py releasetools: Re-enable verifying AVB-signed images. 2019-03-26 12:13:37 -07:00
verity_utils.py Merge "releasetools: Add tests for VerityImageBuilder." 2018-11-07 20:23:12 +00:00