TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.96k stars 741 forks source link

adb backup for hammerhead/Nexus 5 #877

Open creeve4 opened 7 years ago

creeve4 commented 7 years ago

adb backup is not working for me.

M:\Cell Phone\>adb backup --twrp
Now unlock your device and confirm the backup operation...

All I get is an empty backup.ab file; no prompt or anything to confirm. I've tried from within recovery and when booted into Android. What am I doing wrong?

I have also tried: adb backup -f backup --twrp --compress system data I do get a prompt with this, but after selecting Back Up My Data, I only get a 1KB backup.ab file with the contents:

ANDROID BACKUP
3
1
none
xÚc`£`ŒT

I'm running stock rooted m4b30x. Windows 10 Home 64bit.

CaptainThrowback commented 7 years ago

This isn't working on several devices due to a missing patch in a few of the Android trees. I believe this has been updated now. At some point in the future, new builds will have to be pushed for these devices to fix it, but I don't have the timetable for when they might happen.

CaptainThrowback commented 7 years ago

@creeve4 My apologies - you're actually having a different issue than the one I thought. You'll need to adb pull your adb and recovery logs and upload them so that @bigbiff can debug. Thanks!

creeve4 commented 7 years ago

Attached is the recovery log and the back.ab file that was generated. I entered the command adb backup --twrp while booted into recovery. I am unable to get a logcat from recovery, I get the following error: /sbin/sh: exec: line 1: logcat: not found backup.ab.txt recovery.log.txt

CaptainThrowback commented 7 years ago

@creeve4, was there no adb.log in /tmp?

creeve4 commented 7 years ago

Nope, just recovery.log

creeve4 commented 7 years ago

Any progress on this?

adb logcat gives the following error

CANNOT LINK EXECUTABLE: cannot locate symbol "__register_atfork" referenced by "logcat"...
page record for 0xb6f8402c was not found (block_size=32)
sz4bi commented 7 years ago

i have similar problem on Nexus 6, adb backup --twrp creates the following backup.ab file

backup.ab.txt: /sbin/sh: /system/bin/bu: not found

adb logcat gives the same error as yours

CaptainThrowback commented 7 years ago

@creeve4 @sz4bi logcat isn't available in recovery. And fixes for adb backup are in progress.

momcilo78 commented 7 years ago

No reaction from nexus 7 (2012) grouper...

FlyingPumba commented 7 years ago

@CaptainThrowback any progress on this ? I'm having the same problem with Moto G 4G

nomeata commented 6 years ago

Same here on a Pixel 2, with TWRP 3.2.2 booted via fastboot boot twrp-3.2.2-0-walleye.img.

bigbiff commented 6 years ago

Hi, @nomeata you are getting the bu command not found error?

nomeata commented 6 years ago

Hi, @nomeata you are getting the bu command not found error?

Yes