[Q] Problem with ADB Backup and KitKat - Android Q&A, Help & Troubleshooting

Hi! Im developing a software who automatize some process in Android, but i have a really big problem.
Few week ago i bought a Dooggee with Android 4.4.2, and when i run this command:
Code:
adb backup com.whatsapp -f backup.ab
There isnt a backup! Only the file backup.ab empty! With only 1 kb! ¿This backup method works in android 4.4.2? Its very important to me to know this, this is my work!
Thanks, and sorry for bad english.
Regards.

Related

[Q] How to restore a full backup - Nokia Lumia 800

Hi all,
This morning I have installed the RainbowMod ROM in my Nokia Lumia 800. All seem very beautiful but I have a big problem for me, I can't use my Windows Live ID account, Authentication failed error is always showed.
This is the main reason because I need to restore the full backup that was generated before to install this custom ROM. To generate the full backup I executed the following command:
sudo dd if=/dev/sdc of=~/fulldump
Now, I would like to know how I could to restore this fulldump. Could you tell me the steps to restore it, please?
I have another doubt about the restore procedure: during the RainbowMod flashing I had to flash the amssadsp.img_part3 file on /dev/sdc3. When the fulldump will be restored, will /dev/sdc3 be restored too, please?
Thanks in advance.
Cheers
David Ortega.
Did you end up with one single file or with on file of each partition? Have you created a Zune backup as well?
Hi ChrisKringel,
I only have one file (16GB). I didn't generated a backup using Zune so my only way is try to restore the file (fulldump).
Thanks a lot.
Cheers.
David Ortega.
Have you tried to DD it back onto the device?
I found that the following command should resolve my problem:
sudo dd if=~/fulldump of=/dev/sdX
But I would like to confirm it with the gurus
Thanks a lot
David Ortega.

Please provide me your backup.ab

Hey guys, as you all know from several threads : I semi-bricked my tablet s. especially with missing shell commands, missing location information and no possibility to root with the new convinient method.
But maybe there is a chance. Since my tab still restores the settings.ab , it should be able to restore a complete backup.ab aswell. Targeting at the system, i need your help here to get a clean system-image.
Please try out, this adb command and provide me your backup.ab.
" adb backup –all –f c:\backup.ab "
thx in advance.

Alcatel One Touch Fire E 6015X

Hello,
I've just received new phone, Alcatel One Touch Fire E (6015X).
This phone has got installed FirefoxOS,
my question is can I install android somehow?
I was looking for that information however not found anything what would help me.
kmlnvm said:
Hello,
I've just received new phone, Alcatel One Touch Fire E (6015X).
This phone has got installed FirefoxOS,
my question is can I install android somehow?
I was looking for that information however not found anything what would help me.
Click to expand...
Click to collapse
Hello,
I'm looking for a recovery image of this phone, do you know of any location to find one? Or could you possibly make one very please to help such people out? Hamachi (Flame) builds dont work.
uxuxux said:
Hello,
I'm looking for a recovery image of this phone, do you know of any location to find one? Or could you possibly make one very please to help such people out? Hamachi (Flame) builds dont work.
Click to expand...
Click to collapse
if you could tell me how to extract it from my phone, i can make it for you
jecustoms said:
if you could tell me how to extract it from my phone, i can make it for you
Click to expand...
Click to collapse
Hey, thanks for your offer. I found a guide for the Alcatel Flame, but I think we are interested in Step 5 only.
Code:
Step 5: Create backup images
Now start shell on the phone using adb shell command and dump backup images to SD card:
$ cat /dev/mtd/mtd0 >/mnt/sdcard/boot.img
$ cat /dev/mtd/mtd1 >/mnt/sdcard/system.img
$ cat /dev/mtd/mtd5 >/mnt/sdcard/userdata.img
$ cat /dev/mtd/mtd7 >/mnt/sdcard/recovery.img
When finished (you may also dump some more MTD partitions if you like), transfer those files to your computer. You may again use ADB for that:
$ mkdir hamachi-backup
$ I="boot.img system.img userdata.img recovery.img"
$ for i in $I; do adb pull /mnt/sdcard/$i hamachi-backup/; done
I can't link yet but it's from Krzysztof Adamski's blog, the full post is titled Alcatel One Touch Fire Hacking (Mini)Guide.
Maybe it would be enough, as the alcatel source for this device is not available yet on their sourceforge page, I'm not sure if it's possible to make a full recovery image without that.
I found another mention of such thing on the b2g-dev mail list
Code:
> You can backup the partitions from a working phone using 'dd' to dump
> them (you can find the relevant devices under /dev/block) and then use
> fastboot to flash them on the bricked phone (provided that fastboot
> still works).
first of all, i am a total noob..
"Now start shell on the phone using adb shell command"
what does it mean? how can start it?

Adb Commands help! ( WhatsappExtractor)

Hi , I know close to nothing about adb commands , but i do know about rooting and changing ROMs . My problem is im trying to run an adb command . I got into an error , luckily someone hopefully gave the solution . My problem is he said to replace the commands inside the adb backup , i tried but didnt work .
Im trying to follow this solution for my problem stated here https://forum.xda-developers.com/showpost.php?p=70801840&postcount=418
ferraro.dav said:
I noticed that I'm not the only one who's having the tar errors "tar: apps/com.whatsapp/f/key: Not found in archive", the problem is with the backup file given by adb that is empty. I found on stackexchange (android.stackexchange .com /a/143481/207500) that it has to do with a backup command bug and a simple solution. You just need to use the phone shell instead of letting abd take care of it.
On unix open the ssh file and change this:
Code:
if [ $sdkver -ge 23 ]; then
adb backup -f tmp/whatsapp.ab com.whatsapp
else
adb backup -f tmp/whatsapp.ab -noapk com.whatsapp
fi
to this:
Code:
if [ $sdkver -ge 23 ]; then
adb shell "bu 1 backup com.whatsapp" > tmp/whatsapp.ab
else
adb shell "bu 1 backup -noapk com.whatsapp" > tmp/whatsapp.ab
fi
Also, it kept giving me empy backup files until I didn't put a "desktop backup password" and wrote it in BOTH the boxes (even if it says that leaving the second blank will make it use the default password).
Hope this helps and that the developers put this change in the script so that no one else has this problem.
Click to expand...
Click to collapse
I think its a really easy step but i cant seem to do it . Please can someone help me ? Maybe download the file and upload it after going through the instructions ? That would help me alot . Thank u
P.s Ive uploaded the file that needed to be edited .

adb backup problems. please help.

I'm trying to backup my unrooted Moto G7 phone (android 9) to my windows 10 laptop before I unlock its bootloader and root it. I need the ability to restore either everything or at least the installed apps. For privacy reasons I do not sync with Google.
So, using the command, either
adb backup -all
or
adb backup -apk
I get a popup on the phone to allow the backup, which I do, but the produced file
'Backup.ab' either has 0 bytes or a small number. Certainly not a full backup.
Please help so I can root the phone.
Thank you.
P.S. is there another way to backup an unrooted phone?
Nobody offered to help. So in case someone else is frustrated like me here is what worked for me. Quotations and -f.
Example:
adb backup "-apk -shared -all -f"
works. Note the 2 " and the -f
This also works
adb backup "-apk -shared -all -f E:\path\backup.ab"
I hope this helps someone else.
Backup doesn't start.
Phone: Nexus 5x Android 7.1.2. Phone has not been rooted.
I bought this second hand about eighteen months ago. I know all about the bootloop problem, but this one is OK. I unlocked it and flashed 7.1.2 and it's been as right as rain ever since. However, at the time I didn't relock the boot loader.
I want to lock now, but that will cause it to do a factory reset.
I've downloaded installed the platform tools. (Version: 29.0.1 - June 2019) When I run the command:
Code:
adb backup -apk -shared -all -f D:\Android\20190629.backup
on my Windoze 7 box, the dialog to start the backup pops up on the phone.
The Backup Now button is disabled until I enter a password. This enables the button, but there is no response when I tap it.
Fairly quickly, the command quits, and I am left with a zero sized file on the PC.
One thing that turned up is that it might be necessary to have a desktop backup set in developer options.
I am sure that I have never set one up before. However, I tried this, and it appears to be found by the dialog. However, still no go.
Update: adb backup runs immediately after a reboot.
I have determined that if I follow these steps the backup runs.
Connect through adb
Run
Code:
adb reboot
After the phone comes up, set the correct USB mode (File transfer)
Start adb
Run
Code:
adb devices
Run
Code:
adb backup [I]options[/I] ...
The Backup dialog will pop up on the phone. If necessary, enter your backup password. Tap
Code:
Back up my Data
The backup now runs.
The only thing that I've done differently is the reboot. I've tried this successfully three times now.
I discovered this accidently after installing TWRP. I had to eliminate the possibility that somehow TWRP had shuffled some critical bits, or that the reboot fixed the problem.
- oops wrong post
unixwolf said:
I have determined that if I follow these steps the backup runs.
The backup now runs.
Click to expand...
Click to collapse
That part runs.
Have you tried the restore?
Adb backup has given many users trouble.

Categories

Resources