Android Backup Manager only works on local transport

I’ve been trying to back up in my application for more than a month, but have not yet succeeded. I took all the steps that Google reports: Registered in Google service Changes to Manifest (allowBackup, backupAgent and backup.api_key (google service register), etc ...

Parts of the manifest:

<application android:allowBackup="true" android:backupAgent="my.package.MyBackupManagerClass"> <meta-data android:name="com.google.android.backup.api_key" android:value="my-generated-key-by-google-service" /> 

In fact, the backup works, but only using the local transport , I tested with bmgr backup / run / restore:

 bmgr list transports * android/com.android.internal.backup.LocalTransport com.google.android.gms/.backup.BackupTransportService 

But when you try to use the Google transport (cloud: com.google.android.gms/.backup.BackupTransportService ) it does not work, do not even call my onCreate() from MyBackupAgentHelper .

One point that I want to mention is that when I run: backup bmgr bmgr run

After executing the command on logcat, a lot of "Current intermediate backup" is displayed (my application package is also displayed on this list), but it happens very quickly and it does not seem that the backup is actually performed after everything, even my MyBackupHelper.onCreate () is not called :

 02-12 21:13:28.889: D/BackupManagerService(547): Now staging backup of com.google.android.talk 02-12 21:13:28.904: D/BackupManagerService(547): Now staging backup of com.google.android.dialer 02-12 21:13:28.907: D/BackupManagerService(547): Now staging backup of com.android.providers.settings 02-12 21:13:28.910: D/BackupManagerService(547): Now staging backup of com.sirma.mobile.bible.android 02-12 21:13:28.914: D/BackupManagerService(547): Now staging backup of com.android.sharedstoragebackup 02-12 21:13:28.919: D/BackupManagerService(547): Now staging backup of com.google.android.gm 02-12 21:13:28.922: D/BackupManagerService(547): Now staging backup of com.android.providers.userdictionary 02-12 21:13:28.926: D/BackupManagerService(547): Now staging backup of com.google.android.apps.genie.geniewidget 02-12 21:13:28.963: I/GmsBackupTransport(1409): Next backup will happen in 86399923 millis. 02-12 21:13:28.967: I/BackupManagerService(547): Backup pass finished. 
+7
android android-backup-service
source share
1 answer

I had the same situation - when I start a manual backup (via the adb shell command), but only using local transport. For me, the solution was to publish Google Play services because I tested the data backup service without published GP services. Check your proguard configuration as well if you are using Proguard

0
source share

All Articles