04 November

Manual restore of Android databases fails after upgrade to OpenEve 2.3.7

As described in my earlier post, it is wise to create regular backups of your apps and data to SD card using adb shell or the local Android terminal:
busybox tar cvf /mnt/sdcard/Backup/Full_`busybox date +%Y%m%d`.tar /system /data

The correspondent command to for example restore your text messages would be:
cd /;busybox tar xvf /mnt/sdcard/Backup/Full_20111101.tar data/data/
This worked fine up to Android 2.2, provided that you check file ownership and permissions afterwards, e.g.:
busybox chown radio:radio /data/data/
busybox chmod 660 /data/data/

After the restore has completed, reboot.

This no longer worked when upgrading to OpenEve 2.3.7...
With Android Gingerbread some changes seem to have been introduced for the central databases:
Gingerbread will only pick up the restored databases, if the accompanying files *-shm and *-wal have been deleted before the final reboot (they seem to be recreated when not present).
Thanks to Marius Strompen for the crucial hint.
posted at 16:11:37 on 11/04/11 by lss - Category: Android


No comments yet

Add Comments

You must be logged in as a member to add comment to this blog