I have a app installed on my old phone with a lot of settings and data that I want to transfer to my new phone. So I tried using
$ sudo adb backup -f org.secuso.privacyfriendlynotes.ab -apk org.secuso.privacyfriendlynotes WARNING: adb backup is deprecated and may be removed in a future release Now unlock your device and confirm the backup operation...
Which worked fine:
$ ls -la ... -rw-r-----. 1 root root 5057212 Jul 16 10:59 org.secuso.privacyfriendlynotes.ab
But then to import the data on my new phone, I tried using
sudo adb restore org.secuso.privacyfriendlynotes.ab WARNING: adb restore is deprecated and may be removed in a future release Now unlock your device and confirm the restore operation.
I unlocked and confirmed and the phone said "Restore starting..." and then "Restore ended", so everything seem fine. But the data was not restored.
/data/data/org.secuso.privacyfriendlynotes on both phones clearly shows that my data wasn't restored at all.
I realize that
abd backup and
adb restore are deprecated. What are the alternatives now? (I don't want to use Titanium Backup etc. I only use open source software.)
Is there an official alternative way to do this?