Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#1148 closed enhancement/feature request (fixed)

Backup / Restore Function for Android Devices

Reported by: kamikaaze Owned by: cp15
Priority: minor Milestone: version 0.5.1
Component: port/android Version: git master
Severity: normal Keywords: backup, security, user, android, patches
Cc: cp15

Description

This Patch will add a Backup and Restore function to the Android Version.

This may be usefull for Users with many Bookmarks, that are trying to switch from Google Play Store to Navit, which forces them to uninstall Navit, because the Packages have been signed with different Keystores.

A Backup consists of the following Files:

  • /data/data/org.navitproject.navit/home/bookmark.txt
  • /data/data/org.navitproject.navit/home/destination.txt
  • /data/data/org.navitproject.navit/home/gui_internal.txt
  • The Android specific Shared Preferences

A folder in the Navit Folder on the Users SD-Card will be created where those files are then stored.

Attachments (2)

android_backup_restore.diff (27.5 KB) - added by kamikaaze 7 years ago.
android_backup_restore_v2.diff (25.0 KB) - added by kamikaaze 7 years ago.

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by kamikaaze

comment:1 Changed 7 years ago by tryagain

Hi!

Backup of android internal state is quite a useful feature.

One suggestion, can you please put each backup in a separate folder, named by date and serial number (2013-07-20-01). Otherwise, its too easy to overwrite existing backup.

And, please do not touch unrelated parts of the code when you suggest a new feature patch: it makes reviewing harder and can introduce errors. I'm talking about imports reordering, indentation fixes and so on.

tryagain.

Changed 7 years ago by kamikaaze

comment:2 Changed 7 years ago by kamikaaze

Hi,

i uploaded a new version of the Patch which will no longer reformat any Code not related to the Backup functionality. Also Backups will now be stored in a subdirectory in for example: /sdcard/navit/backup/2013-07-26-1.

Kamikaaze

comment:3 Changed 7 years ago by usul

  • Cc cp15 added
  • Keywords backup security user android added
  • Milestone set to version 0.5.1

So as you both are busy on that (thank you! :) ), I guess we can schedule it already for the next hotfix.

comment:4 Changed 7 years ago by tryagain

kamikaaze, why have you added English phrases as translations to values-ft/strings.xml, values-nl/strings.xml?

Android will get the string from the default file values/strings.xml if resource does not exist in language-specific file.

comment:5 Changed 7 years ago by tryagain

I have applied your patch with a few fixes in r5562.

comment:6 Changed 7 years ago by tryagain

  • Resolution set to fixed
  • Status changed from new to closed

comment:7 Changed 7 years ago by usul

great! thank you very much :)

comment:8 Changed 7 years ago by usul

  • Keywords patches added
  • Severity set to normal

comment:9 Changed 6 years ago by kazer

We are preparing a long-overdue update for android in the google play store.

To get the ball rolling, I have pushed a new version ( r6021 ) as Beta in the store.

You can join the brand new beta program by subscribing to this group : https://groups.google.com/forum/#!forum/navit-beta

Once we get enough user feedback about this build we can start updating the production release.

Note: See TracTickets for help on using tickets.