diff --git a/OsmAnd/AndroidManifest.xml b/OsmAnd/AndroidManifest.xml
index e3cb204729..39ac9a5123 100644
--- a/OsmAnd/AndroidManifest.xml
+++ b/OsmAnd/AndroidManifest.xml
@@ -1,194 +1,200 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
-
-
+
+
-
-
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
-
+
+
diff --git a/OsmAnd/bidforfix.xml b/OsmAnd/bidforfix.xml
index 27dd8c49b1..6ba74d490b 100644
--- a/OsmAnd/bidforfix.xml
+++ b/OsmAnd/bidforfix.xml
@@ -1,9 +1,10 @@
-
+
-
-
-
- ]]>
+
+
+
+ ]]>
+
diff --git a/OsmAnd/build.xml b/OsmAnd/build.xml
index 6a4e204870..01905eba35 100644
--- a/OsmAnd/build.xml
+++ b/OsmAnd/build.xml
@@ -7,9 +7,8 @@
+ message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
+ unless="sdk.dir" />
@@ -19,45 +18,45 @@
-
-
-
+
+
+
-
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -76,7 +75,6 @@
-
@@ -89,24 +87,24 @@
-
-
-
-
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -116,9 +114,9 @@
+ replace='xmlns:custom="http://schemas.android.com/apk/res/${package.name}"' byline="true" />
+ replace='xmlns:custom="http://schemas.android.com/apk/res/${package.name}"' byline="true" />
@@ -128,7 +126,6 @@
-
@@ -142,10 +139,10 @@
-
-
-
-
+
+
+
+
@@ -153,13 +150,13 @@
-
+
-
+
@@ -171,7 +168,7 @@
-
+
@@ -206,7 +203,7 @@
+ setup already if this is a library -->
@@ -251,45 +248,45 @@
+ ***********************
+ ****** IMPORTANT ******
+ ***********************
+ In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
+ in order to avoid having your file be overridden by tools such as "android update project"
+ -->
-
+
-
+ ignoreLiterals="true" ignoreIdentifiers="true">
+
-
+
-
+
-
+