修改设备名称做如下修改:
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
index a349cba0f..72919117c 100755
--- a/tools/buildinfo.sh
+++ b/tools/buildinfo.sh
@@ -28,6 +28,8 @@ echo "ro.build.user=$BUILD_USERNAME"echo "ro.build.host=$BUILD_HOSTNAME"echo "ro.build.tags=$BUILD_VERSION_TAGS"echo "ro.build.flavor=$TARGET_BUILD_FLAVOR"
+echo "ro.product.model=NV8"
+echo "ro.product.name=NV8"if [ -n "$BOARD_BUILD_SYSTEM_ROOT_IMAGE" ] ; thenecho "ro.build.system_root_image=$BOARD_BUILD_SYSTEM_ROOT_IMAGE"fi
ps: 刚开始做如下修改是如下的,经测试,该修改无效:
diff --git a/uis8581e_5h10/product/uis8581e_5h10_Natv/var.mk b/uis8581e_5h10/product/uis8581e_5h10_Natv/var.mk
index 867df8a..7345563 100644
--- a/uis8581e_5h10/product/uis8581e_5h10_Natv/var.mk
+++ b/uis8581e_5h10/product/uis8581e_5h10_Natv/var.mk
@@ -12,6 +12,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_PROPERTY_OVERRIDES += \
ro.fota.os=Android12 \
ro.fota.projectid=project_18c49b96b83146dd917d7d5f02f3b1df
+ # 配置model name 名称
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.product.product.model=NV8 \
+ ro.product.product.name=NV8
参考文章:
修改Android设备系统的名称