Clean osmand reinstall

1,825 views
Skip to first unread message

navigatorXL

unread,
Jan 11, 2013, 2:33:39 AM1/11/13
to osm...@googlegroups.com
I like OsmAnd very much and it really evolves fast.
Big Thanks! I definitely consider buying it.

For now I have the problem that after a osmand reinstall some of my settings are still there, which I don't want.

In detail this affects the list of installable maps.
Whatever I do, this list cannot be mofified anymore:
I downloaded the tile_sources.xml file Victor suggests in https://groups.google.com/forum/?fromgroups=#!topic/osmand/A2AAZCIauz0 (the first link in the first posting) and put it in my sdcard0/osmand directory.
After I started osmand I found the data of the xml file in the list of installable maps.
So far so good.

If I now remove this xml file, deinstall (uninstall by the system tools) osmand and reinstall the free osmand version from google play, then after activating online maps, I still find all these ~40 maps in the list of installable maps.

More curiously, if I edit this xml file (change a map name, delete parts, ...), the new file is ignored completely:
the list of installable maps remains unchanged!
I also tried putting the xml file to different locations (sdcard0/osmand/tiles) and under the name custom_tile_sources.xml as some threads suggest, but with no effect on the list.

For editing I used the internal editors of both antek explorer and total commander (both android) with similar results.
One explanation for ignoring the modified file could be the wrong handling of character set or line feed (the original tile_sources.xml has LF only, I couldn't check the edited ones so far) by the above mentioned editors, but that is not very probable since these speak android, they should handle it correctly.

My tablet is not rooted, so I have limited access to the folders where osmand lives.

Are there any ideas how to completely reset osmand?
My basic aim is to activate the google satellite maps.

Thanks,

navigatorXL

My system:
OsmAnd 1.1.0 beta (free)
Acer Iconia A510 (not rooted)
Android 4.1

Areg

unread,
Jan 11, 2013, 4:04:14 AM1/11/13
to osm...@googlegroups.com
Hi

Actually when you are uninstalling the application it deletes the data located in /data/data folder only.

The maps and other downloaded files are located in /sdcard/osmand (/mnt/sdcard/osmand) directory and you need to rename, move away or delete that folder.

Regards,
Areg

navigatorXL

unread,
Jan 11, 2013, 4:36:38 AM1/11/13
to osm...@googlegroups.com
I deleted the folder /sdcard0/osmand.
I also deleted the xml files only.
With the same result: the list remains unchanged.

I will check the /data/data folder for remaining osmand files/folders (if I have access).
Thanks for the hint, I'm a bit lost on android.

nXL


Victor Shcherb

unread,
Jan 11, 2013, 4:39:54 AM1/11/13
to osmand
If you want to delete particular Tile Source, then just delete the folder from /sdcard/osmand/tiles/

Regerds,
Victor


2013/1/11 Areg <vrt...@gmail.com>

Victor Shcherb

unread,
Jan 11, 2013, 4:41:22 AM1/11/13
to osmand
Actually you can not change tile_sources.xml (it is hosted on the server) and local is not used. To create your own tile source, you can create folder in tiles and specific .metainf (take a look at existing tile sources)

Victor


2013/1/11 navigatorXL <tedd...@gmail.com>

Max

unread,
Jan 11, 2013, 5:05:35 AM1/11/13
to osm...@googlegroups.com
On Friday, January 11, 2013 8:33:39 AM UTC+1, navigatorXL wrote:
For now I have the problem that after a osmand reinstall some of my settings are still there, which I don't want.
Clear app data via Android (e.g. Settings -> Applications -> Manage applications -> OsmAnd -> Clear data).

In detail this affects the list of installable maps.
Impossible, this list is not stored on your phone.

Whatever I do, this list cannot be mofified anymore:
Did that ever work for you?
Can't find any evidence in source code or history.
 
If I now remove this xml file, deinstall (uninstall by the system tools) osmand and reinstall the free osmand version from google play, then after activating online maps, I still find all these ~40 maps in the list of installable maps.
The list is downloaded from internet.

Regards,
Max

navigatorXL

unread,
Jan 11, 2013, 5:23:27 AM1/11/13
to osm...@googlegroups.com
Am Freitag, 11. Januar 2013 10:41:22 UTC+1 schrieb Victor Shcherb:
To create your own tile source, you can create folder in tiles and specific .metainf (take a look at existing tile sources)

Thank you, I will try this.
But this means that http://code.google.com/p/osmand/wiki/FAQ#Why_OsmAnd_does_not_have_google_maps? is outdated?
Since this method means, to my understanding, the local manipulation of the tile_sources.xml.

BTW
Why is Google Maps and Google Maps Terrain still supported, but not Google Maps Satellite, then?
Licencing issues?

@Max:

> Did that ever work for you?
I had the impression that after copying this file to the osmand folder my list expanded, but maybe it was my fault.

Everything becomes clearer.

Thanks again,

nXL

navigatorXL

unread,
Jan 15, 2013, 2:18:03 AM1/15/13
to osm...@googlegroups.com
Works, thank you!

As Victor suggested I created a .metainfo file which works great:
--BEGIN--
[url_template]
http://khm1.google.de/kh/v=123&src=app&x={1}&y={2}&z={0}
[ext]
.jpg
[min_zoom]
3
[max_zoom]
20
[tile_size]
256
[img_density]
32
[avg_img_size]
18000
--END--

Google seems to change the server addresses (see url_template section) from time to time.
All addresses I found on the internet worked very unrelieable (only some zoom levels, some tiles missing).
The address here is adapted from the source code of the google maps home page.
Look for text pieces like ["http://khm0.google.de/kh/v=123\x26src=app\x26","http://khm1.google.de/kh/v=123\x26src=app\x26"] and adapt it:
- "\x26" replace with "&"
- append "&x={1}&y={2}&z={0}"

Depending on the country you may have a different country code as URL ending (instead of .de).

I love OsmAnd and I'll buy it.

Thanks again,

nXL

dpuschek

unread,
Apr 5, 2014, 3:37:43 AM4/5/14
to osm...@googlegroups.com


Am Dienstag, 15. Januar 2013 08:18:03 UTC+1 schrieb navigatorXL:

Google seems to change the server addresses (see url_template section) from time to time.
All addresses I found on the internet worked very unrelieable (only some zoom levels, some tiles missing).
The address here is adapted from the source code of the google maps home page.
Look for text pieces like ["http://khm0.google.de/kh/v=123\x26src=app\x26","http://khm1.google.de/kh/v=123\x26src=app\x26"] and adapt it:
- "\x26" replace with "&"
- append "&x={1}&y={2}&z={0}"

Depending on the country you may have a different country code as URL ending (instead of .de).


 I can't use zoomlevel above 18 with this .metainfo. Is there also a way to use the hybrid-map too?

Thanks
Reply all
Reply to author
Forward
0 new messages