Backup osmand settings

372 views
Skip to first unread message

Yves Klein

unread,
Nov 5, 2018, 7:44:28 AM11/5/18
to Osmand
I want to transfer my Osmand settings to other android devices. Since my phone has no root access, I cannot make a copy of  /data/data/net.osmand.net/shared_prefs/net.osmand.settings.xml

Is there an alternative way to backup osmand settings?

Many thanks for hints and explanations.
Yves

Majka

unread,
Nov 6, 2018, 4:01:49 PM11/6/18
to Osmand
Do you think you can manage few adb commands? There is a way in Android but you need to use adb to allow adb backup. How to do it is already described here somewhere, but let me know if you want to try this way and need a description.
Alternatively, you could try oandbackup app on fdroid, if it would work without any other modifications.

This uses the system's backup and restore.

xav...@dp100.com

unread,
Nov 6, 2018, 5:09:00 PM11/6/18
to osm...@googlegroups.com
On Tue, Nov 06, 2018 at 01:01:49PM -0800, Majka wrote:
>On Monday, 5 November 2018 13:44:28 UTC+1, Yves Klein wrote:
>>
>> I want to transfer my Osmand settings to other android devices.
>> Since my phone has no root access, I cannot make a copy of
>> /data/data/ net.osmand.net/shared_prefs/net.osmand.settings.xml
>>
>> Is there an alternative way to backup osmand settings?
>>
>> Many thanks for hints and explanations.
>> Yves

>Do you think you can manage few adb commands? There is a way in
>Android but you need to use adb to allow adb backup. How to do it is
>already described here somewhere, but let me know if you want to try
>this way and need a description.

If you mean "adb backup", when I tried that once it appeared that
Osmand had marked itself as "do not backup" because I didn't see
anything for Osmand when I decrypted the resulting backup file. My
Osmand is installed from F-Droid (so it is the version that F-Droid
builds) so maybe that makes a difference.

Otherwise, if there is something different about 'how' to run the adb
backup, I'd be interested in knowing the steps you propose.

>Alternatively, you could try oandbackup app on fdroid, if it would
>work without any other modifications.
>
>This uses the system's backup and restore.

The page for oandbackup says it needs root access on the phone. Note
I've not tested it yet to see if that assertion on the f-droid page is
accurate.

Majka

unread,
Nov 6, 2018, 6:40:21 PM11/6/18
to Osmand
On unrooted phone, the Helium backup and restore app from Play store is (was) working. I didn't test it recently but on my old phone with Android 7 it did work just fine, all the settings were backed up.

All the apps are using the adb backup, but you cannot use it on unrooted phone without the need to to connect phone to the computer, even if the backup is done to the phone itself or to the SD card. 
You need to connect to a computer once and allow the adb backup. After this, you could backup the Osmand app on unrooted phone as well and didn't need to connect to the computer any more. The Helium app does guide you how to do it - no idea what the difference is, simple adb backup didn't work for me either when I had tried it. 

Alternatively, can you live without the app settings? Everything else can be backed up, just the settings, favourites and filters are in the data/data folder. The favourites are in the favourites.gpx as well, in the normal data folder you can access, or you can make a manuall backup prior the move. 
If you install Osmand on the new phone, let it create the file structure and grab the data folder (shown in menus) and copy it into the newly created folder - everything except the settings and favourites should be there. The favourites.gpx in the top level of this folder needs to be opened and imported into Osmand from filesystem, in the last Osmand version it doesn't automatically get imported. You can even avoid the use of favourites and simply copy the file into the track folder and open it as needed.

Majka 

Yves Klein

unread,
Nov 7, 2018, 2:18:35 AM11/7/18
to Osmand


Am Dienstag, 6. November 2018 22:01:49 UTC+1 schrieb Majka:
Do you think you can manage few adb commands? There is a way in Android but you need to use adb to allow adb backup.

Thank you so much, Majka. I had not thought of adb at all, and I never made use of it. So I downloaded the standalone tools for windows from android.com, and I enabled debug mode on my Android 6 phone. Now I would be glad to get guidance for a selective backup of data/data/net.osmand . (As for favourites.gpx and other accessible data, I am used to use copy-paste). Thank you again.
Reply all
Reply to author
Forward
0 new messages