From 5245a1f90d99f861633ec243a520f2ee257437d9 Mon Sep 17 00:00:00 2001 From: vshcherb Date: Sun, 25 May 2014 12:48:22 +0200 Subject: [PATCH] Fix auth --- OsmAnd/src/net/osmand/plus/osmo/OsMoService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java index c3d3eedafb..6c3d66dc45 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java +++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java @@ -114,10 +114,13 @@ public class OsMoService implements OsMoSender, OsMoReactor { try { // Add your data List nameValuePairs = new ArrayList(2); - nameValuePairs.add(new BasicNameValuePair("android_id", Secure.ANDROID_ID)); + nameValuePairs.add(new BasicNameValuePair("android_id", + Secure.getString(app.getContentResolver(), + Secure.ANDROID_ID))); nameValuePairs.add(new BasicNameValuePair("android_model", Build.MODEL)); nameValuePairs.add(new BasicNameValuePair("imei", "0")); nameValuePairs.add(new BasicNameValuePair("android_product", Build.PRODUCT)); + nameValuePairs.add(new BasicNameValuePair("client", Version.getFullVersion(app))); nameValuePairs.add(new BasicNameValuePair("osmand", Version.getFullVersion(app))); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));