1. alpsuildcoreMakefile文件:(参照CUSTOM_BUILD_VERNO)
ifeq "" "$(SURPLUS_BUILD_VERNO)"
SURPLUS_BUILD_VERNO := $(BUILD_NUMBER)
SURPLUS_BUILD_VERNO := $(subst eng.$(USER).,,$(SURPLUS_BUILD_VERNO))
endif
surplus_build_desc:= $(TARGET_PRODUCT)-$(TARGET_BUILD_VARIANT)-$(PLATFORM_VERSION)-$(SURPLUS_BUILD_VERNO)
$(INSTALLED_BUILD_PROP_TARGET): SURPLUS_PRIVATE_BUILD_DESC:= $(surplus_build_desc)
SURPLUS_PRIVATE_BUILD_DESC="$(SURPLUS_PRIVATE_BUILD_DESC)"
2.alpsuild oolsuildinfo.sh文件:(参照CUSTOM_BUILD_VERNO)
echo "ro.custom.build.version=$SURPLUS_PRIVATE_BUILD_DESC"
3.xshell编译命令:
./mk -opt=TARGET_BUILD_VARIANT=user,SURPLUS_BUILD_VERNO=v0.08 a9 new
4. alpsoutproducta9systemuild.prop文件中:
ro.custom.build.version=a9-user-4.1.2-v0.08
5.可以进入终端查看版本号,验证修改效果。