Play Integrity本地验证

Play Integrity local verification

我正在尝试将播放完整性检查集成到我的应用程序中,以确保我的应用程序没有安装在获得 root 权限的 Android 设备上。我可以按照 google document. But I am trying to verify it in my locally and close the app if its installed on a rooted device. For that local verification, I am following the document Decrypt and verify locally 中的指导成功获得完整性令牌响应。但是我不明白什么是 Base64OfEncodedDecryptionKey 和 Base64OfEncodedVerificationKey 以及从哪里可以获得。

您需要前往Google Play Console -> Release -> Setup -> AppIntegrity -> Response encryption -> Change,选择“Manage and download my response encryption keys”,生成密钥文件(按照“显示说明”中的说明),上传此文件。