记录日常问题
清理make clean; make clobber 更严格。
1 替换framework.jar不起作用
使用nexus 烧录system后,单独替换framework.jar不起作用。
研究出两种解决方案。亲自测试有效。
第一种方法:不编译优化成odex
缺点:开机非常慢
默认情况在linux编译系统 会开启odex的。
build/make/core/dex_preopt.mk
# The default values for pre-opting: always preopt PIC.
# Conditional to building on linux, as dex2oat currently does not work on darwin.
ifeq ($(HOST_OS),linux)
WITH_DEXPREOPT ?= true
# For an eng build only pre-opt the boot image. This gives reasonable performance and still
# allows a simple workflow: building in frameworks/base and syncing.
ifeq (eng,$(TARGET_BUILD_VARIANT))
WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
endif
# Add mini-debug-info to the boot classpath unless explicitly asked not to.
ifneq (false