3a61eeb6cb
To rebuild odex files of Java libraries and apps, we store the jars/apks without stripping the classes.dex inside the platform.zip. We also save the build variables that may affect how we rebuild an odex in pdk_dexpreopt_config.mk in the platform.zip. We store the files and configuration only for libraries/apps that get installed to the system.img (or vendor.img). In PDK fusion build, we auto-generate prebuilt module definitions for the javalib.jar and package.dex.apk carried in the platform.zip, using configuration stored in pdk_dexpreopt_config.mk. With the prebult modules, we override the implicit rule that directly copies the odex from the platform.zip. To rebuild odex of javalib.jar, we added support for prebuilt shared Java library to prebiult_internal.mk. An installable prebuilt Java library is treated as shared Java library, i.e. with classes.dex in the jar instead of a set of .class files. For apks in the platform.zip, we install the stripped version from platform files inside platform.zip, instead of the package.dex.apk, using a new variable LOCAL_REPLACE_PREBUILT_APK_INSTALLED. We can't strip package.dex.apk because we can't re-sign the stripped apk at this point. We generate prebuilt module only if it's not already defined in the source tree. Bug: 27543283 Change-Id: I9e146f8b713d6f57c397fd28d88c9ab700757ca1 |
||
---|---|---|
.. | ||
clang | ||
combo | ||
tasks | ||
aapt2.mk | ||
android_manifest.mk | ||
apicheck_msg_current.txt | ||
apicheck_msg_last.txt | ||
base_rules.mk | ||
binary.mk | ||
build-system.html | ||
build_id.mk | ||
ccache.mk | ||
checktree | ||
cleanbuild.mk | ||
cleanspec.mk | ||
clear_vars.mk | ||
config.mk | ||
config_sanitizers.mk | ||
configure_local_jack.mk | ||
configure_module_stem.mk | ||
copy_headers.mk | ||
cxx_stl_setup.mk | ||
definitions.mk | ||
device.mk | ||
dex_preopt.mk | ||
dex_preopt_libart.mk | ||
dex_preopt_libart_boot.mk | ||
dex_preopt_odex_install.mk | ||
distdir.mk | ||
dpi_specific_apk.mk | ||
droiddoc.mk | ||
dumpvar.mk | ||
dynamic_binary.mk | ||
envsetup.mk | ||
executable.mk | ||
executable_internal.mk | ||
executable_prefer_symlink.mk | ||
filter_symbols.sh | ||
find-jdk-tools-jar.sh | ||
fuzz_test.mk | ||
goma.mk | ||
help.mk | ||
host_dalvik_java_library.mk | ||
host_dalvik_static_java_library.mk | ||
host_executable.mk | ||
host_executable_internal.mk | ||
host_fuzz_test.mk | ||
host_java_library.mk | ||
host_java_library_common.mk | ||
host_native_test.mk | ||
host_prebuilt.mk | ||
host_shared_library.mk | ||
host_shared_library_internal.mk | ||
host_shared_test_lib.mk | ||
host_static_library.mk | ||
host_static_library_internal.mk | ||
host_static_test_lib.mk | ||
host_test_internal.mk | ||
install_jni_libs.mk | ||
install_jni_libs_internal.mk | ||
jack-default.args | ||
java.mk | ||
java_common.mk | ||
java_library.mk | ||
legacy_prebuilts.mk | ||
LINUX_KERNEL_COPYING | ||
main.mk | ||
Makefile | ||
module_arch_supported.mk | ||
multi_prebuilt.mk | ||
multilib.mk | ||
native_benchmark.mk | ||
native_test.mk | ||
ninja.mk | ||
node_fns.mk | ||
notice_files.mk | ||
package.mk | ||
package_internal.mk | ||
pathmap.mk | ||
pdk_config.mk | ||
pdk_fusion_modules.mk | ||
phony_package.mk | ||
post_clean.mk | ||
prebuilt.mk | ||
prebuilt_internal.mk | ||
process_wrapper.sh | ||
process_wrapper_gdb.cmds | ||
process_wrapper_gdb.sh | ||
product-graph.mk | ||
product.mk | ||
product_config.mk | ||
proguard.emma.flags | ||
proguard.flags | ||
proguard.jacoco.flags | ||
proguard_basic_keeps.flags | ||
proguard_tests.flags | ||
root.mk | ||
sdk_font.mk | ||
setup_one_odex.mk | ||
shared_library.mk | ||
shared_library_internal.mk | ||
shared_test_lib.mk | ||
soong.mk | ||
static_java_library.mk | ||
static_library.mk | ||
static_library_internal.mk | ||
static_test_lib.mk | ||
target_test_internal.mk | ||
version_defaults.mk |