Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support New Opt In Filed values #5

Open
herzhenr opened this issue Dec 11, 2023 · 1 comment
Open

Support New Opt In Filed values #5

herzhenr opened this issue Dec 11, 2023 · 1 comment

Comments

@herzhenr
Copy link
Owner

herzhenr commented Dec 11, 2023

Google has added two opt in fields recentDeviceActivity and playProtectVerdict (see Docs). The app has to be adjusted to show the new files within the UI.

@herzhenr
Copy link
Owner Author

herzhenr commented Dec 11, 2023

I have activated the opt in fields within the Google Play Console. The new structure of the json response looks like this:

{
  "requestDetails": {
    "requestPackageName": "com.package.name",
    "timestampMillis": "1617893780",
    "nonce": "aGVsbG8gd29scmQgdGhlcmU"
  },
  "appIntegrity": {
    "appRecognitionVerdict": "PLAY_RECOGNIZED",
    "packageName": "com.package.name",
    "certificateSha256Digest": [
      "6a6a1474b5cbbb2b1aa57e0bc3"
    ],
    "versionCode": "42"
  },
  "deviceIntegrity": {
    "deviceRecognitionVerdict": [
      "MEETS_DEVICE_INTEGRITY",
      "MEETS_BASIC_INTEGRITY",
      "MEETS_STRONG_INTEGRITY"
    ],
    "recentDeviceActivity": {
      "deviceActivityLevel": "LEVEL_3"
    }
  },
  "accountDetails": {
    "appLicensingVerdict": "LICENSED"
  },
  "environmentDetails": {
    "playProtectVerdict": "NO_ISSUES"
  }
}

Example Request form an unrecognised device:

{
  "requestDetails": {
    "requestPackageName": "com.henrikherzig.playintegritychecker",
    "timestampMillis": "1703946171154",
    "nonce": "QmlvUXpDNHZtQkdKdGtCZ2o2Yk1ibWFkQ2VCakJoaGhjMDFtclNIY0w1eVpiaG44R2g\u003d"
  },
  "appIntegrity": {
    "appRecognitionVerdict": "UNEVALUATED"
  },
  "deviceIntegrity": {
    "recentDeviceActivity": {
      "deviceActivityLevel": "UNEVALUATED"
    }
  },
  "accountDetails": {
    "appLicensingVerdict": "UNEVALUATED"
  },
  "environmentDetails": {
    "playProtectVerdict": "UNEVALUATED"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant