Skip to content

Commit

Permalink
uploadDeviceConfig should work properly now
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed Jan 31, 2017
1 parent e2705db commit 3aa4f93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'java'

group = 'com.github.yeriomin'
version = '0.5'
version = '0.6'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,13 @@ public UploadDeviceConfigResponse uploadDeviceConfig() throws IOException {
UploadDeviceConfigRequest request = UploadDeviceConfigRequest.newBuilder()
.setDeviceConfiguration(this.deviceInfoProvider.getDeviceConfigurationProto())
.build();
byte[] responseBytes = getClient().post(UPLOADDEVICECONFIG_URL, request.toByteArray(), getDefaultHeaders());
Map<String, String> headers = getDefaultHeaders();
headers.put("X-DFE-Enabled-Experiments", "cl:billing.select_add_instrument_by_default");
headers.put("X-DFE-Unsupported-Experiments", "nocache:billing.use_charging_poller,market_emails,buyer_currency,prod_baseline,checkin.set_asset_paid_app_field,shekel_test,content_ratings,buyer_currency_in_app,nocache:encrypted_apk,recent_changes");
headers.put("X-DFE-Client-Id", "am-android-google");
headers.put("X-DFE-SmallestScreenWidthDp", "320");
headers.put("X-DFE-Filter-Level", "3");
byte[] responseBytes = getClient().post(UPLOADDEVICECONFIG_URL, request.toByteArray(), headers);
return ResponseWrapper.parseFrom(responseBytes).getPayload().getUploadDeviceConfigResponse();
}

Expand Down

0 comments on commit 3aa4f93

Please sign in to comment.