赞
踩
- 最终写到android的ro属性里面
- abd shell getprop | grep ro
-
- 相关文件:
-
- build/make/tools/buildinfo.sh
- build/make/core/Makefile
- device/qcom/msm8953_64/msm8953_64.mk
-
- buildinfo.sh:
- echo "ro.product.model=$PRODUCT_MODEL"
- echo "ro.build.display.id=$BUILD_DISPLAY_ID"
-
-
- userdbug版本:
- BUILD_DISPLAY_ID := $(build_desc)
-
- build_desc := $(TARGET_PRODUCT)-$(TARGET_BUILD_VARIANT) $(PLATFORM_VERSION) $(BUILD_ID)
- $(BUILD_NUMBER_FROM_FILE) $(BUILD_VERSION_TAGS)
-
- ----------------------
- 例如版本号:
- msm8953_64-userdebug 9 PKQ1.181105.001 eng.root.20190923.144017 test-keys
-
- TARGET_PRODUCT:
- msm8953_64
-
- TARGET_BUILD_VARIANT:
- userdebug
- PLATFORM_VERSION:
- 9
- BUILD_ID:
- PKQ1.181105.001
- BUILD_NUMBER_FROM_FILE:
- BUILD_NUMBER_FROM_FILE
- BUILD_VERSION_TAGS(BUILD_KEYS):
- test-keys
-
-
2020.4.25修改 简单的事也要记录一下,容易忘记
grep关键词:PRODUCT_MODEL, BUILD_DISPLAY_ID
删除out下build.prop文件,以防未编译到。
-----------------------------
实际之中,原始的设置里的版本号太长了,$(BUILD_ID)和后面的直接去掉,太长了
对user版本的判断:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。