向google申请白名单

如何向google申请白名单:

1.fingerprint

配置好项目的fingerprint,fingerprint的各个组成部分都要确定好,一旦该fingerprint申请白名单之后,如果后续修改导致fingerprint变化,则需要重新向google申请白名单和google key

BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_PRODUCT)/$(TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/$(BF_BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS)

属性变量                             属性值                                  说明

PRODUCT_BRAND          ro.build.brand                           客户名

TARGET_PRODUCT       ro.product.name                        产品名

TARGET_DEVICE            ro.product.device                       设备名

PLATFORM_VERSION     ro.build.version.release           安卓版本

BUILD_ID                           ro.build.id                                  显示版本号

BF_BUILD_NUMBER        ro.build.version.incremental           编译版本号

TARGET_BUILD_VARIANT  ro.build.type                        user or userdebug

BUILD_VERSION_TAGS       ro.build.tags                     正式版本要为 release-keys

PRODUCT_BRAND:客户品牌名

TARGET_PRODUCT:产品名

TARGET_DEVICE:设备名

以上 3 个部分是决定申请白名单的 fingerprint 的最主要的部分,一定要提前和客户确认好,避免后期修改需要重新申请白名单

注意:fingerprint 不允许存在空格,可用字符包括:字母数字下划线和短横线,故fingerprint中的字段自然也不能包含除了“字母数字下划线和短横线”以外的其他字符。fingerprint的值的长度不能超过 91 个字符(为什么是91?因为SystemProperties.java中

public static final int PROP_VALUE_MAX = 91限制)。

compatibility-tradefed.jar 中可以看出

cts 报告中读取的fingerprint是ro.build.fingerprint,cts-on-gsi 和vts 去读的fingerprint是ro.vendor.build.fingerprint

2.跑测报告

配置好fingerprint及各个组成部分之后,可以跑如下cts单项和GTS module生成对应的报告,之后将报告递交google,跑测工具需要是对应平台的最新版本的正式工具(R项目使用11_Rx, S项目使用12_RX)。

1)run gts -m GtsEdiHostTestCases   (GTS 工具)

2)run cts -m CtsCurrentApiSignatureTestCases -t android.signature.cts.api.SignatureTest#testSignature  (cts 工具)

注意:不能跳过device info 收集步骤,即所有递交google的报告都不能跳过该步骤

3.递交google

提交google分两种情况:

1)如果公司可以直接递交google,则可以直接在APA网站注册产品信息并递交google gms报告;

2)如果贵司没有该资格,那么可以递交签约的3pl,请3pl帮忙申请,那么之后跑gts的时候,需要该3pl的BL key json文件才能跑起来。

4. 常见白名单及google key问题

如果已经在APA网站注册过该产品,但是仍然GTS 测试fail类型总结:

1)GTS error type 1: "Unable to execute because authorization failed, please
ensure the service account key is properly installed."

请检查在跑测的终端APE_API_KEY 是否设置正确,这个APE_API_KEY 就是3pl的对应key文件,如果设置正确的话,在./gts-tradf之后,终端界面会显示APE_API_KEY

2)GTS error type 2: "Unable to execute because service account is not authorized to access information for this device. Please verify device properties are set correctly and account permissions are configured to the Business Logic Api."

请检查APA上配置的项目信息是否正确

3)GTS error type 3: "Cannot connect to business logic service for suite GTS. If
this problem persists, re-invoking with option '--ignore-business-logic-failure' will cause tests to execute anyways (though tests depending on the remote configuration will fail)."

GTS测试是需要连接google 服务器的,这个报错是连接google service fail,请等待一会重试,如果还存在这个问题,可以联系google对接人确认。

注意:google的requirement一直在变化,本文可能不适用于新平台google要求,请及时关注google最新要求。

2. device和product的区别:

  device:由ro.product.brand 和ro.product.device 确定的一组硬件相似的设备

product:由ro.product.name 和隶属的ro.product.device 确定,一个device可以包含多个product

3.

IR: Initial Release

LR: Letter Upgrade Release

MR: Maintenance Release

SMR: Security Maintenance Release

EMR: Emergency Maintenance Release

Mainline 要求: IR/LR :60天之内,MR:一年之内;如果SMR中以下apk和security patch 相关联,则可以更新如下module,而非整个mainline包

  • Permission Controller - APK
  • Ext Services - APK
  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Android白名单是对具有package="android"的应用程序声明的权限进行管理的一种机制。只有这些应用程序才需要加入白名单Google Play使用com.example和com.android命名空间。 另外,白名单是一种管理模式,允许特定的应用程序在手机中享有更高的权限,例如应用后台运行联网、定位、传感器使用或CPU占用等。当应用程序被添加到白名单时,手机将不对其施加任何限制措施。不同手机型号的白名单设置位置可能不同,因此具体设置需要根据手机型号进行操作。 [2<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Android 特权许可白名单](https://blog.csdn.net/wjky2014/article/details/93067239)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* [Android 不同机型白名单如何设置,小米、华为、oppo、乐视](https://blog.csdn.net/csdn_aiyang/article/details/89250278)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值