Don't use lower case device names when requesting the updates list

URLs are case sensitive, the server expects the same exact value
stored in the system property, so don't change it.
This commit is contained in:
Gabriele M
2017-08-08 19:08:37 +02:00
parent ea3ac38e25
commit ca5b75ebd1

View File

@@ -148,7 +148,7 @@ public class Utils {
serverUrl = context.getString(R.string.conf_update_server_url_def); serverUrl = context.getString(R.string.conf_update_server_url_def);
} }
String incrementalVersion = SystemProperties.get(Constants.PROP_BUILD_VERSION_INCREMENTAL); String incrementalVersion = SystemProperties.get(Constants.PROP_BUILD_VERSION_INCREMENTAL);
String device = SystemProperties.get(Constants.PROP_DEVICE).toLowerCase(); String device = SystemProperties.get(Constants.PROP_DEVICE);
String type = SystemProperties.get(Constants.PROP_RELEASE_TYPE).toLowerCase(); String type = SystemProperties.get(Constants.PROP_RELEASE_TYPE).toLowerCase();
return serverUrl + "/v1/" + device + "/" + type + "/" + incrementalVersion; return serverUrl + "/v1/" + device + "/" + type + "/" + incrementalVersion;
} }