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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user