You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启用Play Integrity API环境详情后仍无法获取对应字段

问题:Play Integrity API 未返回 Environment details 字段

为检测设备上是否存在可捕获屏幕或控制设备的运行中应用,我在项目中集成了com.google.android.play:integrity:1.4.0。

我已按照官方文档指引,在Google Play控制台中启用了Environment details: Play Protect 状态和**Environment details 应用访问风险(测试版)**选项,但解密令牌后,响应里始终没有出现Environment details字段。

当前获取的响应内容如下:

{
    'tokenPayloadExternal': {
        'requestDetails': {
            'requestPackageName': 'com.microsoft.cptest.developer',
            'timestampMillis': '1723717323669',
            'requestHash': 'hashash'
        },
        'appIntegrity': {
            'appRecognitionVerdict': 'UNRECOGNIZED_VERSION',
            'packageName': 'com.microsoft.cptest.developer',
            'certificateSha256Digest': ['RyYGtfQc10IZpIFxOrqcWmYiUnI0-gmCyPwlg6V9ADc'],
            'versionCode': '205'
        },
        'deviceIntegrity': {
            'deviceRecognitionVerdict': ['MEETS_DEVICE_INTEGRITY']
        },
        'accountDetails': {
            'appLicensingVerdict': 'UNEVALUATED'
        }
    }
}

我已在Google Play控制台中完成对应选项的配置,相关设置已开启。

内容的提问来源于stack exchange,提问作者hmmmmm

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.19 15:12:10