Debian Codegraph @

docs/dyn/playintegrity_v1.v1.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="playintegrity_v1.html">Google Play Integrity API</a> . <a href="playintegrity_v1.v1.html">v1</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#decodeIntegrityToken">decodeIntegrityToken(packageName, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Decodes the integrity token and returns the token payload.</p>
83 <p class="toc_element">
84 <code><a href="#decodePcIntegrityToken">decodePcIntegrityToken(packageName, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Decodes the PC integrity token and returns the PC token payload.</p>
86 <h3>Method Details</h3>
87 <div class="method">
88 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90 </div>
91
92 <div class="method">
93 <code class="details" id="decodeIntegrityToken">decodeIntegrityToken(packageName, body=None, x__xgafv=None)</code>
94 <pre>Decodes the integrity token and returns the token payload.
95
96 Args:
97 packageName: string, Package name of the app the attached integrity token belongs to. (required)
98 body: object, The request body.
99 The object takes the form of:
100
101 { # Request to decode the integrity token.
102 &quot;integrityToken&quot;: &quot;A String&quot;, # Encoded integrity token.
103 }
104
105 x__xgafv: string, V1 error format.
106 Allowed values
107 1 - v1 error format
108 2 - v2 error format
109
110 Returns:
111 An object of the form:
112
113 { # Response containing the decoded integrity payload.
114 &quot;tokenPayloadExternal&quot;: { # Contains basic app information and integrity signals like device attestation and licensing details. # Plain token payload generated from the decoded integrity token.
115 &quot;accountDetails&quot;: { # Contains the account information such as the licensing status for the user in the scope. # Required. Details about the Play Store account.
116 &quot;accountActivity&quot;: { # (Restricted Access) Contains a signal helping apps differentiating between likely genuine and likely non-genuine user traffic. # (Restricted Access) Details about the account activity for the user in the scope.
117 &quot;activityLevel&quot;: &quot;A String&quot;, # Required. Indicates the activity level of the account.
118 },
119 &quot;appLicensingVerdict&quot;: &quot;A String&quot;, # Required. Details about the licensing status of the user for the app in the scope.
120 },
121 &quot;appIntegrity&quot;: { # Contains the application integrity information. # Required. Details about the application integrity.
122 &quot;appRecognitionVerdict&quot;: &quot;A String&quot;, # Required. Details about the app recognition verdict
123 &quot;certificateSha256Digest&quot;: [ # The SHA256 hash of the requesting app&#x27;s signing certificates (base64 web-safe encoded). Set iff app_recognition_verdict != UNEVALUATED.
124 &quot;A String&quot;,
125 ],
126 &quot;packageName&quot;: &quot;A String&quot;, # Package name of the application under attestation. Set iff app_recognition_verdict != UNEVALUATED.
127 &quot;versionCode&quot;: &quot;A String&quot;, # Version code of the application. Set iff app_recognition_verdict != UNEVALUATED.
128 },
129 &quot;deviceIntegrity&quot;: { # Contains the device attestation information. # Required. Details about the device integrity.
130 &quot;deviceAttributes&quot;: { # Contains information about the device for which the integrity token was generated, e.g. Android SDK version. # Attributes of the device where the integrity token was generated.
131 &quot;sdkVersion&quot;: 42, # Android SDK version of the device, as defined in the public Android documentation: https://developer.android.com/reference/android/os/Build.VERSION_CODES. It won&#x27;t be set if a necessary requirement was missed. For example DeviceIntegrity did not meet the minimum bar.
132 },
133 &quot;deviceRecall&quot;: { # Contains the recall bits per device set by the developer. # Details about the device recall bits set by the developer.
134 &quot;values&quot;: { # Contains the recall bits values. # Required. Contains the recall bits values.
135 &quot;bitFirst&quot;: True or False, # Required. First recall bit value.
136 &quot;bitSecond&quot;: True or False, # Required. Second recall bit value.
137 &quot;bitThird&quot;: True or False, # Required. Third recall bit value.
138 },
139 &quot;writeDates&quot;: { # Contains the recall bits write dates. # Required. Contains the recall bits write dates.
140 &quot;yyyymmFirst&quot;: 42, # Optional. Write time in YYYYMM format (in UTC, e.g. 202402) for the first bit. Note that this value won&#x27;t be set if the first bit is false.
141 &quot;yyyymmSecond&quot;: 42, # Optional. Write time in YYYYMM format (in UTC, e.g. 202402) for the second bit. Note that this value won&#x27;t be set if the second bit is false.
142 &quot;yyyymmThird&quot;: 42, # Optional. Write time in YYYYMM format (in UTC, e.g. 202402) for the third bit. Note that this value won&#x27;t be set if the third bit is false.
143 },
144 },
145 &quot;deviceRecognitionVerdict&quot;: [ # Details about the integrity of the device the app is running on.
146 &quot;A String&quot;,
147 ],
148 &quot;legacyDeviceRecognitionVerdict&quot;: [ # Contains legacy details about the integrity of the device the app is running on. Only for devices with Android version T or higher and only for apps opted in to the new verdicts. Only available during the transition period to the new verdicts system and will be removed afterwards.
149 &quot;A String&quot;,
150 ],
151 &quot;recentDeviceActivity&quot;: { # Recent device activity can help developers identify devices that have exhibited hyperactive attestation activity, which could be a sign of an attack or token farming. # Details about the device activity of the device the app is running on.
152 &quot;deviceActivityLevel&quot;: &quot;A String&quot;, # Required. Indicates the activity level of the device.
153 },
154 },
155 &quot;environmentDetails&quot;: { # Contains information about the environment Play Integrity API runs in, e.g. Play Protect verdict. # Details of the environment Play Integrity API runs in.
156 &quot;appAccessRiskVerdict&quot;: { # Contains signals about others apps on the device which could be used to access or control the requesting app. # The evaluation of the App Access Risk verdicts.
157 &quot;appsDetected&quot;: [ # List of detected app types signalled for App Access Risk.
158 &quot;A String&quot;,
159 ],
160 },
161 &quot;playProtectVerdict&quot;: &quot;A String&quot;, # The evaluation of Play Protect verdict.
162 },
163 &quot;requestDetails&quot;: { # Contains the integrity request information. # Required. Details about the integrity request.
164 &quot;nonce&quot;: &quot;A String&quot;, # Nonce that was provided in the request (which is base64 web-safe no-wrap).
165 &quot;requestHash&quot;: &quot;A String&quot;, # Request hash that was provided in the request.
166 &quot;requestPackageName&quot;: &quot;A String&quot;, # Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity. For details on application integrity, check application_integrity.
167 &quot;timestampMillis&quot;: &quot;A String&quot;, # Required. Timestamp, in milliseconds, of the integrity application request.
168 },
169 &quot;testingDetails&quot;: { # Contains additional information generated for testing responses. # Indicates that this payload is generated for testing purposes and contains any additional data that is linked with testing status.
170 &quot;isTestingResponse&quot;: True or False, # Required. Indicates that the information contained in this payload is a testing response that is statically overridden for a tester.
171 },
172 },
173 }</pre>
174 </div>
175
176 <div class="method">
177 <code class="details" id="decodePcIntegrityToken">decodePcIntegrityToken(packageName, body=None, x__xgafv=None)</code>
178 <pre>Decodes the PC integrity token and returns the PC token payload.
179
180 Args:
181 packageName: string, Package name of the app the attached integrity token belongs to. (required)
182 body: object, The request body.
183 The object takes the form of:
184
185 { # Request to decode the PC integrity token.
186 &quot;integrityToken&quot;: &quot;A String&quot;, # Encoded integrity token.
187 }
188
189 x__xgafv: string, V1 error format.
190 Allowed values
191 1 - v1 error format
192 2 - v2 error format
193
194 Returns:
195 An object of the form:
196
197 { # Response containing the decoded PC integrity payload.
198 &quot;tokenPayloadExternal&quot;: { # Contains PC device attestation details. # Plain token payload generated from the decoded integrity token.
199 &quot;accountDetails&quot;: { # Contains the account information such as the licensing status for the user in the scope. # Details about the account information such as the licensing status.
200 &quot;appLicensingVerdict&quot;: &quot;A String&quot;, # Required. Details about the licensing status of the user for the app in the scope.
201 },
202 &quot;deviceIntegrity&quot;: { # Contains the device attestation information. # Required. Details about the device integrity.
203 &quot;deviceRecognitionVerdict&quot;: [ # Details about the integrity of the device the app is running on.
204 &quot;A String&quot;,
205 ],
206 },
207 &quot;requestDetails&quot;: { # Contains the integrity request information. # Required. Details about the integrity request.
208 &quot;requestHash&quot;: &quot;A String&quot;, # Request hash that was provided in the request.
209 &quot;requestPackageName&quot;: &quot;A String&quot;, # Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity.
210 &quot;requestTime&quot;: &quot;A String&quot;, # Required. Timestamp, of the integrity application request.
211 },
212 &quot;testingDetails&quot;: { # Contains additional information generated for testing responses. # Indicates that this payload is generated for testing purposes and contains any additional data that is linked with testing status.
213 &quot;isTestingResponse&quot;: True or False, # Indicates that the information contained in this payload is a testing response that is statically overridden for a tester.
214 },
215 },
216 }</pre>
217 </div>
218
219 </body></html>