platform_build/core
Alex Klyubin f59ad14c1f Fix handling of version codes in minSdkVersion when signing.
The APK signing tool, build/tools/signapk, needs to know the API Level
of the oldest platform supported by the APK. The APK's minSdkVersion
may reference that using a number (API Level) or a version code. To
handle the version code case, the existing logic was to see if it
matches $PLATFORM_VERSION_CODENAME and then substitute it with
$PLATFORM_SDK_VERSION.

However, some platforms support multiple version codes. To handle this
scenario, this commit changes the logic for computing the min API
Level for signing purposes to treat any non-numeric minSdkVersion as
$PLATFORM_SDK_VERSION.

Bug: 28715556
Change-Id: I292c96e8928b7e2f8d9716ef2be33a23a87764c4
2016-05-11 12:11:11 -07:00
..
clang Switch to clang-2690385 2016-03-20 22:57:32 -07:00
combo Use newest clang static analyzers. 2016-02-26 18:51:26 -08:00
tasks Add org.apache.harmony.tests.javax.xml to old cts 2016-05-10 12:54:32 -07:00
LINUX_KERNEL_COPYING build: Add LINUX_KERNEL_COPYING license file 2015-11-09 02:27:01 +01:00
Makefile Pack base_fs files into target_files.zip. 2016-04-30 23:56:10 -07:00
aapt2.mk Add --auto-add-overlay if a module has LOCAL_STATIC_ANDROID_LIBRARIES 2016-03-02 18:55:46 -08:00
android_manifest.mk AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
apicheck_msg_current.txt
apicheck_msg_last.txt
base_rules.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
binary.mk build rule change for VTS (vendor test suite)'s metadata files 2016-04-25 13:06:57 -07:00
build-system.html set ro.adb.secure=1 for user builds 2015-12-23 20:18:15 +00:00
build_id.mk [DO NOT MERGE] Update BUILD_ID for nyc branches. 2016-03-02 18:18:07 -08:00
ccache.mk Disable goma/ccache with USE_XXX=false 2015-12-18 15:26:17 +09:00
checktree
cleanbuild.mk delete recovery policy on changing build types 2016-02-29 08:45:31 -08:00
cleanspec.mk Add new variable SCAN_EXCLUDE_DIRS; specifies directories to exclude when searching source tree. 2015-06-10 13:00:13 -05:00
clear_vars.mk build rule change for VTS (vendor test suite)'s metadata files 2016-04-25 13:06:57 -07:00
config.mk build rule change for VTS (vendor test suite)'s metadata files 2016-04-25 13:06:57 -07:00
config_sanitizers.mk Remove RPATH for AddressSanitizer. 2015-12-21 10:29:54 -08:00
configure_local_jack.mk Strip LOCAL_MODULE before referencing it. 2015-10-26 17:06:08 -07:00
configure_module_stem.mk
copy_headers.mk Warn more clearly when there are duplicate copied headers 2016-02-23 16:09:49 -08:00
cxx_stl_setup.mk Add support for LOCAL_NDK_STL_VARIANT := none. 2015-12-09 15:59:17 -08:00
definitions.mk Fix handling of version codes in minSdkVersion when signing. 2016-05-11 12:11:11 -07:00
device.mk
dex_preopt.mk Build: Switch on oat file mini-debug-info for boot.oat 2016-05-09 22:42:27 +00:00
dex_preopt_libart.mk Merge "Rebuild odex files in PDK fusion build." into nyc-dev 2016-03-15 21:23:50 +00:00
dex_preopt_libart_boot.mk Build: Add ART_BOOT_IMAGE_EXTRA_ARGS 2016-04-12 14:24:50 -07:00
dex_preopt_odex_install.mk Rebuild odex files in PDK fusion build. 2016-03-14 21:01:46 -07:00
distdir.mk Sort out ANDROID_GOALS, KATI_GOALS and NINJA_GOALS. 2015-11-03 17:10:28 -08:00
dpi_specific_apk.mk Merge "Do not run zipalign when building APK (except prebuilts)." am: b437f58006 am: fddfc2c604 2015-12-08 03:04:50 +00:00
droiddoc.mk Revert "Revert "Make OpenJDK 8 the default"" 2016-01-25 17:35:57 +00:00
dumpvar.mk Fix dumping variables of absolute paths. 2016-03-07 12:00:41 -08:00
dynamic_binary.mk Support arch specific variants of LOCAL_STRIP_MODULE/LOCAL_PACK_MODULE_RELOCATIONS 2016-03-01 20:21:37 -08:00
envsetup.mk Benchmark have their own folder 2016-04-12 18:57:36 +01:00
executable.mk Don't reset LOCAL_*MODULE_STEM. 2016-04-19 14:26:58 -07:00
executable_internal.mk Enable LOCAL_POST_LINK_CMD for non-static executables. 2016-03-07 13:22:06 -08:00
executable_prefer_symlink.mk resolved conflicts for 953981db to stage-aosp-master 2015-09-28 18:45:23 -07:00
filter_symbols.sh
find-jdk-tools-jar.sh Error out early on nonstandard JDK directory layouts 2015-10-23 19:00:43 -07:00
fuzz_test.mk Add support of SANITIZE_TARGET='address coverage' for fuzzing. 2015-09-18 11:54:43 -07:00
goma.mk Disable goma/ccache with USE_XXX=false 2015-12-18 15:26:17 +09:00
help.mk
host_dalvik_java_library.mk Remove rules for building dex with dx 2016-03-18 16:03:00 +01:00
host_dalvik_static_java_library.mk Inform Jack of the min sdk 2016-03-16 15:41:00 +01:00
host_executable.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
host_executable_internal.mk Merge "Add HOST_CROSS_OS" 2015-09-09 18:13:21 +00:00
host_fuzz_test.mk Add support of SANITIZE_TARGET='address coverage' for fuzzing. 2015-09-18 11:54:43 -07:00
host_java_library.mk Add JarJar support to BUILD_HOST_JAVA_LIBRARY 2016-03-02 11:19:41 +00:00
host_java_library_common.mk [DO NOT MERGE] Compile using Jack. 2015-05-19 18:31:05 +02:00
host_native_test.mk Default LOCAL_MULTILIB:=both for HOST_NATIVE_TEST 2015-12-21 16:34:25 -08:00
host_prebuilt.mk
host_shared_library.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
host_shared_library_internal.mk Don't add dependencies on Makefiles when using ninja 2015-09-28 16:29:52 -07:00
host_shared_test_lib.mk
host_static_library.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
host_static_library_internal.mk Fix LOCAL_MODULE_HOST_OS 2015-09-04 15:41:38 -07:00
host_static_test_lib.mk
host_test_internal.mk Link libgtest_main before libgtest 2015-09-25 16:11:31 -07:00
install_jni_libs.mk Don't extract jni from prebuilt apks. 2015-06-01 19:19:45 -07:00
install_jni_libs_internal.mk Use direct dependency on the JNI so files. 2015-10-15 17:50:06 -07:00
jack-default.args [DO NOT MERGE] Compile using Jack. 2015-05-19 18:31:05 +02:00
java.mk Make jack_check_timestamp depend on setup-jack-server 2016-04-19 17:22:29 -07:00
java_common.mk Add core-lambda-stubs to default classpath for target libs compiling using javac 2016-03-30 11:01:33 -07:00
java_library.mk Support code coverage with Jack 2016-01-27 19:14:14 +01:00
legacy_prebuilts.mk Remove old grandfathered ALL_PREBUILTS 2015-09-30 14:53:53 -07:00
main.mk Reject Google's build of JDK. 2016-04-14 12:30:25 -07:00
module_arch_supported.mk Tell Soong about HOST_CROSS_* 2016-02-29 13:55:14 -08:00
multi_prebuilt.mk Strip prebuilt shared library by default. 2015-03-13 11:36:15 -07:00
multilib.mk Add HOST_CROSS_OS 2015-09-09 18:12:29 +00:00
native_benchmark.mk Benchmark have their own folder 2016-04-12 18:57:36 +01:00
native_test.mk
ninja.mk Add vts to build in ninja 2016-04-01 15:39:48 +01:00
node_fns.mk
notice_files.mk Allow modules to override the default NOTICE file. 2015-12-24 10:10:55 +00:00
package.mk
package_internal.mk Fix code coverage for apps 2016-03-31 18:33:57 +02:00
pathmap.mk Fix data binding source paths 2016-01-20 12:20:10 +00:00
pdk_config.mk Merge "Move PDK selection into config.mk" am: 655dd3ea76 2016-02-02 20:40:49 +00:00
pdk_fusion_modules.mk Use $(BUILD_SYSTEM) as the LOCAL_PATH of auto-generated modules. 2016-03-24 17:24:38 -07:00
phony_package.mk Don't add dependencies on Makefiles when using ninja 2015-09-28 16:29:52 -07:00
post_clean.mk Clean generated source dir if .proto/.rs is gonee. 2016-03-01 22:22:43 -08:00
prebuilt.mk Don't reset LOCAL_*MODULE_STEM. 2016-04-19 14:26:58 -07:00
prebuilt_internal.mk Ensure prebuilt executables are executable 2016-04-11 11:21:47 -07:00
process_wrapper.sh
process_wrapper_gdb.cmds
process_wrapper_gdb.sh
product-graph.mk Fix "make product-graph" and "make dump-products". 2015-10-28 16:49:44 -07:00
product.mk Rename incr ext4 base_fs path vars. Add to product_var_list. 2016-04-25 15:47:42 -07:00
product_config.mk AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
proguard.emma.flags
proguard.flags Let proguard keep classes/methods annotated with internal VisibleForTesting. 2015-07-27 13:24:30 +09:00
proguard.jacoco.flags Support code coverage with Jack 2016-01-27 19:14:14 +01:00
proguard_basic_keeps.flags Keep Throwable's constructor that takes a String argument. 2015-05-11 14:56:20 -07:00
proguard_tests.flags
root.mk
sdk_font.mk Sort more instances of wildcard and find 2015-09-30 22:25:49 +00:00
setup_one_odex.mk
shared_library.mk Don't reset LOCAL_*MODULE_STEM. 2016-04-19 14:26:58 -07:00
shared_library_internal.mk Use libgcov OR libclang_rt.profile, not both. 2015-10-08 14:16:39 -07:00
shared_test_lib.mk
soong.mk Handle symlinked OUT_DIRs (again) 2016-03-30 12:24:57 -07:00
static_java_library.mk Include classes.jar with class files in aar. 2016-04-12 12:57:36 -07:00
static_library.mk Don't reset LOCAL_*MODULE_STEM. 2016-04-19 14:26:58 -07:00
static_library_internal.mk
static_test_lib.mk
target_test_internal.mk Link libgtest_main before libgtest 2015-09-25 16:11:31 -07:00
version_defaults.mk Merge "Describe required format for for PLATFORM_SECURITY_PATCH" into nyc-dev 2016-04-28 05:07:55 +00:00