platform_build/tools/releasetools
Tao Bao f47bf0fecf releasetools: Fix an issue in GetMinSdkVersion.
The following is a buggy pattern that won't capture anything into err.
The issue is benign, since a failed run would be eventually captured by
a subsequent check.

  p = Run(["aapt", ...], stdout=subprocess.PIPE)
  output, err = p.communicate()
  if err:
    raise ...

This CL changes the error detection to be based on the return code from
aapt. It also adds some sanity test to ensure the call to aapt works.
The test app is built from AOSP com.android.cts.ctsshim (chosen mostly
because of its small size).

Test: python -m unittest test_common
Change-Id: I337f141bd0fc5f0801dfc628c601b88b7640789c
2018-03-22 10:27:04 -07:00
..
testdata releasetools: Fix an issue in GetMinSdkVersion. 2018-03-22 10:27:04 -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 releasetools: Don't return ZipFile from common.UnzipTemp(). 2018-03-01 10:03:31 -08:00
blockimgdiff.py releasetools: Allow generating BBOTA for images with shared blocks. 2018-02-13 11:14:23 -08:00
build_image.py Support /product partition 2018-01-25 09:33:58 +09:00
check_ota_package_signature.py releasetools: Capture stderr output when calling delta_generator. 2018-02-05 23:39:23 -08:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py releasetools: Call Cleanup() in check_target_files_signatures.py. 2018-03-01 10:12:39 -08:00
common.py releasetools: Fix an issue in GetMinSdkVersion. 2018-03-22 10:27:04 -07:00
edify_generator.py releasetools: Add a BuildInfo class. 2018-01-09 15:08:23 -08: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 releasetools: Don't return ZipFile from common.UnzipTemp(). 2018-03-01 10:03:31 -08:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py releasetools: Handle two edge cases in FinalizeMetadata(). 2018-03-19 13:35:38 -07:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07:00
pylintrc releasetools: Remove deprecated pylint options. 2017-12-04 12:15:23 -08:00
rangelib.py releasetools: RangeSet.monotonic is not an optional attribute. 2018-02-06 16:00:52 -08:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py releasetools: Check for duplicate entries in ReplaceCerts(). 2018-02-20 10:22:30 -08:00
sparse_img.py releasetools: Allow generating BBOTA for images with shared blocks. 2018-02-13 11:14:23 -08:00
target_files_diff.py target_files_diff: Fix the issue with file type change. 2016-04-25 18:35:20 +00:00
test_add_img_to_target_files.py releasetools: Add unittests for GetCareMap() and AddCareMapTxtForAbOta(). 2018-02-22 00:10:05 -08:00
test_blockimgdiff.py releasetools: Remove the unconditional fallback to bsdiff. 2018-02-13 11:06:20 -08:00
test_build_image.py releasetools: Move assertions into CheckHeadroom(). 2018-01-03 11:52:16 -08:00
test_common.py releasetools: Fix an issue in GetMinSdkVersion. 2018-03-22 10:27:04 -07:00
test_ota_from_target_files.py releasetools: Handle two edge cases in FinalizeMetadata(). 2018-03-19 13:35:38 -07:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
test_sign_target_files_apks.py releasetools: Check for duplicate entries in ReplaceCerts(). 2018-02-20 10:22:30 -08:00
test_utils.py releasetools: Handle two edge cases in FinalizeMetadata(). 2018-03-19 13:35:38 -07:00
test_validate_target_files.py releasetools: Support validating Verified Boot images. 2018-03-12 00:17:09 -07:00
validate_target_files.py releasetools: Support validating Verified Boot images. 2018-03-12 00:17:09 -07:00