platform_build/core
Nick Kralevich 133e1e1f16 delete recovery policy on changing build types
When the build type changes (for example, from "shamu-userdebug"
to "shamu-user"), the build system doesn't delete all files
and start over. Rather, build artifacts from the old build type
are reused for the new build type.

This is problematic for the recovery SELinux policy, which differs
between build types. Reusing a userdebug policy on a user build
is inappropriate and could lead to security bugs.

Force the deletion of the recovery SELinux policy when changing
build types, so it can be properly regenerated. This is consistent
with how we treat the normal SELinux policy (see commit
a8b3d54101).

(cherry picked from commit 3cb10bbd3b)

Change-Id: I1d8ad7e06112777c66abed4546dadb85d35e33e1
2016-02-29 08:45:31 -08:00
..
clang Fix LLVM_RTLIB_PATH for new prebuilts. 2016-02-04 11:43:41 -08:00
combo Mark the cortex-{a7,a53,a53.57} chips as supporting LPAE 2016-02-24 15:27:08 -08:00
tasks build file change for vts to use the existing cts-tradefed infrastructure 2016-02-24 16:12:49 -08:00
LINUX_KERNEL_COPYING build: Add LINUX_KERNEL_COPYING license file 2015-11-09 02:27:01 +01:00
Makefile Warn more clearly when there are duplicate copied headers 2016-02-23 16:09:49 -08:00
aapt2.mk AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
android_manifest.mk AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
apicheck_msg_current.txt Let apicheck check both the public API and system API. 2015-01-09 14:23:16 -08:00
apicheck_msg_last.txt
base_rules.mk Use LOCAL_COMPATIBILITY_SUPPORT_FILES relative to $(TOP). 2016-02-17 20:36:15 +00:00
binary.mk Merge "Fix unused src tracking for generated .o files" am: 478913f88f 2016-02-05 18:20:34 +00:00
build-system.html set ro.adb.secure=1 for user builds 2015-12-23 20:18:15 +00:00
build_id.mk "LKY80" 2015-03-21 06:05:46 -07: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 AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
config.mk Merge "Move PDK selection into config.mk" am: 655dd3ea76 2016-02-02 20:40:49 +00: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 AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
device.mk
dex_preopt.mk Don't preopt on eng builds. 2015-12-18 10:14:31 +00:00
dex_preopt_libart.mk Build: Build changes for multi oat/image support. 2015-12-24 10:10:55 +00:00
dex_preopt_libart_boot.mk Build: Build changes for multi oat/image support. 2015-12-24 10:10:55 +00:00
dex_preopt_odex_install.mk Build only 64-bit odex for system server jars. 2015-03-10 11:08:05 -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 Move PDK selection into config.mk 2016-02-01 18:05:07 -08:00
dynamic_binary.mk Allow globally disabling the relocation packer. 2015-11-12 15:27:49 -08:00
envsetup.mk Define a class for renderscript bitcode files 2016-02-18 17:34:53 -08:00
executable.mk Add support of SANITIZE_TARGET='address coverage' for fuzzing. 2015-09-18 11:54:43 -07:00
executable_internal.mk Use libgcov OR libclang_rt.profile, not both. 2015-10-08 14:16:39 -07: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 Add support for testing obfuscated app with Jack 2016-02-22 11:51:54 +01:00
host_dalvik_static_java_library.mk Add support for testing obfuscated app with Jack 2016-02-22 11:51:54 +01:00
host_executable.mk Merge "Add HOST_CROSS_OS" 2015-09-09 18:13:21 +00: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 Don't add dependencies on Makefiles when using ninja 2015-09-28 16:29:52 -07: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 Merge "Add HOST_CROSS_OS" 2015-09-09 18:13:21 +00: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 Merge "Add HOST_CROSS_OS" 2015-09-09 18:13:21 +00: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 AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
java_common.mk Revert "Revert "Change the default for LOCAL_JAVA_LANGUAGE_VERSION from 1.7 to 1.8"" 2016-02-23 12:55:23 +00: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 build file change for vts to use the existing cts-tradefed infrastructure 2016-02-24 16:12:49 -08:00
module_arch_supported.mk Add LOCAL_MODULE_HOST_OS 2015-09-03 16:40:51 -07: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 Add libbenchmark's new dependency on libbase. 2015-05-13 13:47:30 -07:00
native_test.mk
ninja.mk Allow building kati & makeparallel with soong 2016-01-13 13:08:29 -08: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 AAPT2: library resource compilation 2016-02-26 10:44:56 -08: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
phony_package.mk Don't add dependencies on Makefiles when using ninja 2015-09-28 16:29:52 -07:00
post_clean.mk Do not update previous_XXX.mk when there is no change 2015-07-21 09:40:02 +09:00
prebuilt.mk Add HOST_CROSS_OS 2015-09-09 18:12:29 +00:00
prebuilt_internal.mk Merge "AAPT2: library resource compilation" into nyc-dev 2016-02-26 22:58:12 +00: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 Merge "envsetup,product,ninja: enable symlink traversal" 2015-11-02 22:27:27 +00: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 Allow for opt-in of proguard shrinking of tests with new flag 2014-09-09 20:42:48 -04:00
root.mk
sdk_font.mk Sort more instances of wildcard and find 2015-09-30 22:25:49 +00:00
setup_one_odex.mk Support to build apk odex for both arch. 2014-09-15 12:12:18 -07:00
shared_library.mk Turn shared library multilib warnings into errors 2015-09-24 13:21:11 -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 Allow building kati & makeparallel with soong 2016-01-13 13:08:29 -08:00
static_java_library.mk AAPT2: library resource compilation 2016-02-26 10:44:56 -08:00
static_library.mk
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 Updating security string patch to 2016-04-01 am: e182d2a95c am: 054bbb9766 am: 7e6a1633c8 am: eb651e2e45 am: 3f53b385de am: fc30358acb 2016-02-19 22:34:03 +00:00