GMS

自测基本功能(DDR大于2G是非Go,DDR小于或等于2G的是GO版本)

1.先拿到客制化工程师的补丁包合代码
2.项目整编
3.打包测试
4.如果有基本功能没有完成,先修改然后再编译打包
5.执行 CTS预测-V1.9.bat 进行自动化测试观察数据
6.查看数据是否符合
-model,brand,product.name,product.devicebuild.version.release,build.id,ro.build.tags和fingerprint的一一对应
-ro.build.type必须是user,manufacturer:一般都是incar

image.png

7.分别对应的位置:
-build\make\tools\buildinfo.sh:

echo "ro.build.display.id=`date +ACCENT_FAST_10_%m%d%Y`"
echo "ro.build.version.incremental=20200814"
echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
echo "ro.build.version.preview_sdk_fingerprint=$PLATFORM_PREVIEW_SDK_FINGERPRINT"
echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES"
echo "ro.build.version.release=$PLATFORM_VERSION"
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
echo "ro.build.version.base_os=$PLATFORM_BASE_OS"
echo "ro.build.version.min_supported_target_sdk=$PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION"
echo "ro.build.date=`$DATE`"
echo "ro.build.date.utc=`$DATE +%s`"
echo "ro.build.type=$TARGET_BUILD_TYPE"
echo "ro.build.user=$BUILD_USERNAME"
if [ -n "$BRANCH_BUILDTYPE" ] ; then
  echo "ro.sprd.extrainfo=$BRANCH_BUILDTYPE"

-build\make\tools\buildinfo_common.sh:

echo "# autogenerated by $0"

echo "ro.${partition}.build.date=`$DATE`"
echo "ro.${partition}.build.date.utc=`$DATE +%s`"
echo "ro.${partition}.build.fingerprint=$BUILD_FINGERPRINT"
echo "ro.${partition}.build.id=$BUILD_ID"
echo "ro.${partition}.build.tags=$BUILD_VERSION_TAGS"
echo "ro.${partition}.build.type=$TARGET_BUILD_TYPE"
echo "ro.${partition}.build.version.incremental=20200814"
echo "ro.${partition}.build.version.release=$PLATFORM_VERSION"
echo "ro.${partition}.build.version.sdk=$PLATFORM_SDK_VERSION"

echo "ro.product.${partition}.brand=ACCENT"
echo "ro.product.${partition}.device=FAST_10"
echo "ro.product.${partition}.manufacturer=incar"
echo "ro.product.${partition}.model=FAST_10"
echo "ro.product.${partition}.name=FAST_10"

-build\make\core\Makefile

  ifeq ($(strip $(HAS_BUILD_NUMBER)),false)
#    BF_BUILD_NUMBER := $(BUILD_USERNAME)$$($(DATE_FROM_FILE) +%m%d%H%M)
    ifeq ($(strip $(TARGET_BUILD_VERSION)),gms)
      BF_BUILD_NUMBER := $(shell echo $$(( $(shell $(DATE) +%W%w%H)+24)))
    else
      BF_BUILD_NUMBER := $(shell $(DATE) +%W%w%H)
    endif
  else
    BF_BUILD_NUMBER := $(file <$(BUILD_NUMBER_FILE))
  endif
  BUILD_FINGERPRINT := ACCENT/FAST_10/FAST_10:$(PLATFORM_VERSION)/$(BUILD_ID)/20200814:$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS)
  #BUILD_FINGERPRINT := rockchip/rk312x/rk312x:6.0.1/MXC89K/user.fyl.20170927.202757:userdebug/test-keys
endif 

-device\sprd\sharkl3\common\DeviceCommon.mk

ifneq ($(wildcard vendor/partner_gms),)
  #ifeq ($(strip $(TARGET_BUILD_VERSION)),gms)
    ifeq ($(strip $(PRODUCT_GO_DEVICE)),true)
      $(call inherit-product, vendor/partner_gms/products/gms_go.mk)
      FEATURES.PRODUCT_PRODUCT_PROPERTIES += \
              ro.com.google.clientidbase=android-unisoc
    else
      $(call inherit-product, vendor/partner_gms/products/gms.mk)
      FEATURES.PRODUCT_PRODUCT_PROPERTIES += \
              ro.com.google.clientidbase=android-incar//对应的是clientID
    endif
  #endif
endif

申请白名单(邮箱是FIH指的是富智康实验室)

-先填GTM对应的表
-执行命令: ./SNBoX.sh 2;SNBoX.sh是文件,2是预计销售数量,生存的文件务必要删除最后的空格
-编译一个版本 修改一下时间 与内测跑的版本保持不一致
-跑两项CTS拿到测试报告压缩,
-如果客户没指定送测地方,我们自己决定,一般是展讯或者南京
-发送邮件到指定的实验室,并将GTS和CTS的单跑结果和申请白名单的文件和表作为附件发送

跑第一轮

-提取文件
image.png

-发给指定的测试人员测试

欧盟和非欧盟

1.
image.png

欧盟选最后一个 非欧盟选第一个

2.version_default.mk文件下:
image.png

欧盟:PRODUCT_NAME_WJW = name+_EA
非欧盟:PRODUCT_NAME_WJW =name

3.非欧盟的非go版本需要将虚拟按键中间按钮改成花瓣的
4.非欧盟需要在DeviceCommon.mk上修改gms的包, 根据DDR配置:


image.png

刷Key

1.拿到Key
2.SecureToolBox.exe 选中自己的申请的key 输出一个目标key.db{选择Attestation KeyBox格式}
3.SecureCenter.ini:KeyBoxPath:{} 填写对应的key生成文件
4.WriteIMEI_R19.18.2101\Bin\WriteIMEI.ini:Server IP=上填写自己主机的IP
5.打开SecurityServer_R4.18.2101\Bin\SecurityServer\SecurityServer.exe点击OK
6.已经通过GMS的机器正常关机链接USB
7.打开WriteIMEI.exe,点击写入不需要更多的操作等待成功
8.在成功后需要验证,开机拨号##73789## 查看测试结果key is ok就行

查看信息:

1.执行CTS预测-V1.9.bat可以看基本信息
2.查看GMS版本 :git log --grep "GMS",或者vendor\partner_gms\products{gms.mk}: ro.com.google.gmsversion=10_202005.go
3.查看安全补丁:git log --grep "安全补丁"或者build\make\core\version_default.mk: PLATFORM_SECURITY_PATCH := 2020-08-05
4.adb shell "getprop | grep patch" 查看手机的指纹信息

送测

1.cdd
2.桌面布局
3.开机logo给相关人员确定
4.把相关文件上传云盘
user版本
userdebug版本
boot-debug.img
gsi32/64.img
gms测试报告压缩包
5.发送邮件给项目负责人

你可能感兴趣的:(GMS)