platform_build/tools
Alex Klyubin 284e45ac09 Fix bug in APK entry alignment.
APK entry alignment logic assumes that input entries have zero-length
comment and extra fields. When the assumption is broken, the logic
silently breaks alignment of output entries. This happens, for
example, when the APK to be signed is already aligned and thus may
contain entries with non-empty extra fields.

Given that APKs are not supposed to use comment and extra fields for
anything useful and given that this signer already discards comment
and extra fields of compressed entries, this change makes the signer
discard comment and extra fields of STORED input entries as well.
This unbreaks the existing alignment logic.

Bug: 27814973

(cherry picked from commit 37a0ecd329)

Change-Id: If2e0df6d3298e9736ef175bb0d9a05d450164c9f
2016-03-23 18:11:35 -07:00
..
acp Clean up Mac OS hacks in acp slightly. 2016-01-05 09:32:42 -08:00
apicheck don't build apicheck for PDK builds, removing dependency on doclava 2012-03-28 15:30:36 -07:00
atree Clean up Mac OS hacks in acp slightly. 2016-01-05 09:32:42 -08:00
droiddoc remove the 'refonly' templates. 2016-03-22 16:00:34 -07:00
fs_config am a69dcefd: am 74a81e66: fix device specific fs_config on build server 2015-07-10 19:26:24 +00:00
fs_get_stats fix device specific fs_config on build server 2015-07-10 10:55:54 -07:00
ijar Remove warnings from ijar/classfile.cc 2015-12-01 16:44:32 +09:00
makeparallel makeparallel: unset MAKEFLAGS and MAKELEVEL 2016-02-16 13:10:40 -08:00
releasetools Revert "Revert "build: pass version and patch level to mkbootimg"" 2016-03-15 11:23:56 -07:00
rgb2565 auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
signapk Fix bug in APK entry alignment. 2016-03-23 18:11:35 -07:00
signtos Add SignTos tool 2014-08-08 13:18:53 -07:00
zipalign Fix 2 unused parameter warnings in zipalign. 2016-02-12 02:13:30 +00:00
ziptime Use explicitly sized types in zipalign/ziptime 2015-11-04 23:52:52 +00:00
Android.mk Remove unneccessary TARGET_BUILD_APPS conditional 2015-12-15 15:49:53 -08:00
adbs ADBS now uses stack_core code to parse traces. 2014-07-07 15:14:41 -07:00
buildinfo.sh Add ro.build.ab_update property. 2015-11-19 18:42:52 +00:00
check_builds.sh Use a more modern -j flag. 2012-08-16 22:45:55 -07:00
check_radio_versions.py fix build: make check_radio_versions.py okay with no args 2012-03-21 10:01:01 -07:00
compare_fileslist.py auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
diff_package_overlays.py Clean common intermediate files if overlay changed 2012-06-04 18:02:55 -07:00
dump-package-stats allow use of unzip version 6.0 2009-11-09 18:19:48 -08:00
event_log_tags.py check syntax of description field in logtags files 2011-01-23 12:57:19 -08:00
fileslist.py Move forward installed-files.txt in the dependency graph 2011-09-09 17:07:23 -07:00
filter-product-graph.py make product-graph now filtered 2012-08-16 22:45:55 -07:00
findleaves.py Follow symlinks in findleaves 2012-08-24 16:24:45 -07:00
fixlinebreaks.sh auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
generate-notice-files.py Create reproducible NOTICE collections 2015-11-10 12:37:23 -08:00
java-event-log-tags.py Add float support to binary event log. 2015-04-28 18:21:09 -07:00
java-layers.py Add a tool to let you enforce layering between packages in a java module. 2012-10-20 17:25:55 -07:00
merge-event-log-tags.py fix merge-event-log-tags.py deprecation warning 2012-09-20 11:50:34 -07:00
mktarball.sh fix device specific fs_config on build server 2015-07-10 10:55:54 -07:00
normalize_path.py Normalize the product makefile path in inherit-product. 2015-10-28 15:20:41 -07:00
parsedeps.py Add tool to parse make dependency info from new --deps flag. 2012-08-16 22:45:55 -07:00
post_process_props.py Do not add 'adb' to persist.sys.usb.config if already there 2015-05-29 07:46:40 +00:00
print_module_licenses.sh auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
product_debug.py Remove support of factory ramdisk/bundle. 2015-02-04 11:00:01 -08:00
warn.py Update warn.py with more warnings 2010-03-10 16:16:02 -08:00