adrian-bl-yuga / device-sony-c6603

9 stars 7 forks source link

Google Backup Transport does not work #17

Closed hexchain closed 9 years ago

hexchain commented 10 years ago

Steps to reproduce:

  1. Full wipe
  2. Install ROM and Google Apps as stated here
  3. Set up account and enable "Backups"

Then a toast comes up saying "Couldn't restore from backup", and in "Backup & restore" settings "Backup account" defaults to "local private backup" and is not selectable.

Logcat: https://paste.xinu.at/FCL0o/ (Useful lines should be around L750, but I'm not quite sure)

My workaround:

  1. Start an ADB shell
  2. Enter bmgr list transports. Output should be identical to the following:
    com.google.android.backup/.BackupTransportService
  * android/com.android.internal.backup.LocalTransport
  1. Enter bmgr transport com.google.android.backup/.BackupTransportService
  2. Enter bmgr list sets and choose the correct set you want to restore from, remember the hex-digit token
  3. Enter bmgr restore <TOKEN_FROM_STEP4> to trigger a full restore.

This works for me, as can be seen that wallpaper and desktop icons are restored.

alex3305 commented 10 years ago

Maybe it is a possibility to include the bmgr transport com.google.android.backup/.BackupTransportService in the GApps installation script, just after installing GApps? Because I think that Google backup will automatically work when doing the first time setup..

adrian-bl-yuga commented 10 years ago

Hmm.. this is a little bit tricky:

AOSP includes a config option to define the default transport (and, by default, uses the internal dummy transport). However: There can only be ONE transport defined and specifing a transport that may not exist (gapps may not be installed) is out of question.

Including this in the gapps installation script sounds like a good idea - but on the other hand i dislike automatic configuration changes.

Maybe we should just include the required adb command into the gapps installation instructions?

hexchain commented 10 years ago

I'm not quite a ROM dev, but still wonder how did this work in 4.4 days? People just flash GApps package and setup their account, and everything works. Is there any specific hack in use?

alex3305 commented 10 years ago

Unfortunately the Google Backup Transport didn't work in 4.4 either. Which wasn't really an issue for me though.

@adrian-bl-yuga I think you have a valid point. Although I think that when you install GApps you can also expect having the Google Backup available to you by default. But that's just my humble opinion.

adrian-bl-yuga commented 9 years ago

I'm closing this bug as the instructions on how to enable googles backup transport have been added to the 'installing gapps' documentation.

hexchain commented 9 years ago

On Dec 27, 2014 11:18 PM, "Adrian Ulrich" notifications@github.com wrote:

I'm closing this bug as the instructions on how to enable googles backup transport have been added to the 'installing gapps' documentation.

I think people should also know how to restore from an existing Google backup. So could you please add that as well?

— Reply to this email directly or view it on GitHub.

adrian-bl commented 9 years ago

I never used the google backup transport myself - but shouldn't it automatically restore after the transport has been choosen?

hexchain commented 9 years ago

Doesn't seem so, at lease for me it didn't until I manually triggered a restore.

adrian-bl commented 9 years ago

hmm, ok: i added the restore steps to the installations instructions.

thanks for documenting this!