@@ -170,22 +170,22 @@ public void verify(PublicKey publicKey, int responseCode, String signedData, Str
170
170
case LICENSED :
171
171
case LICENSED_OLD_KEY :
172
172
int limiterResponse = mDeviceLimiter .isDeviceAllowed (userId );
173
- handleResponse (limiterResponse , data );
173
+ handleResponse (limiterResponse , data , signedData , signature );
174
174
break ;
175
175
case NOT_LICENSED :
176
- handleResponse (Policy .NOT_LICENSED , data );
176
+ handleResponse (Policy .NOT_LICENSED , data , signedData , signature );
177
177
break ;
178
178
case ERROR_CONTACTING_SERVER :
179
179
Log .w (TAG , "Error contacting licensing server." );
180
- handleResponse (Policy .RETRY , data );
180
+ handleResponse (Policy .RETRY , data , signedData , signature );
181
181
break ;
182
182
case ERROR_SERVER_FAILURE :
183
183
Log .w (TAG , "An error has occurred on the licensing server." );
184
- handleResponse (Policy .RETRY , data );
184
+ handleResponse (Policy .RETRY , data , signedData , signature );
185
185
break ;
186
186
case ERROR_OVER_QUOTA :
187
187
Log .w (TAG , "Licensing server is refusing to talk to this device, over quota." );
188
- handleResponse (Policy .RETRY , data );
188
+ handleResponse (Policy .RETRY , data , signedData , signature );
189
189
break ;
190
190
case ERROR_INVALID_PACKAGE_NAME :
191
191
handleApplicationError (LicenseCheckerCallback .ERROR_INVALID_PACKAGE_NAME );
@@ -208,14 +208,14 @@ public void verify(PublicKey publicKey, int responseCode, String signedData, Str
208
208
* @param response
209
209
* @param rawData
210
210
*/
211
- private void handleResponse (int response , ResponseData rawData ) {
211
+ private void handleResponse (int response , ResponseData rawData , String signedData , String signature ) {
212
212
// Update policy data and increment retry counter (if needed)
213
213
mPolicy .processServerResponse (response , rawData );
214
214
215
215
// Given everything we know, including cached data, ask the policy if we should grant
216
216
// access.
217
217
if (mPolicy .allowAccess ()) {
218
- mCallback .allow (response );
218
+ mCallback .allow (response , rawData , signedData , signature );
219
219
} else {
220
220
mCallback .dontAllow (response );
221
221
}
0 commit comments