[Q] How to perform nandroid backup with ADB? - myTouch 3G Slide Q&A, Help & Troubleshooting

My LCD went on my slide. Ribbon cable issue. Got a warranty replacement. I believe I have CWM (I actually don't remember if I ever got it to stay on...) but I definitely have Cyanogen. 8 I believe.
So I'd like to perform a nandroid backup using adb since I can not see the screen. Anyone know the steps for 1) getting the device to the appropriate screen (blind) and 2) the commands to use at the adb shell?
I already have drivers installed yada yada adb works.
TIA!

well, it won't be a full nandroid, but you can adb pull the nandroid images and then type adb reboot bootloader and then press the power button on your phone after about 10 secs and on your computer type fastboot flash system <path-to-nandroid-system.img>, fastboot flash boot <path-to-nandroid-boot.img>, fastboot flash cache <path-to-nandroid-cache.img>, fastboot flash data <path-to-nandroid-cache.img> and so on.

Related

[Q] Running Stock Android. Download and Fastboot working. Can't boot OS. What now?

This is a followup to this thread.
I got some help at androidcentral.com and now have Fastboot driver installed. I don't have access to ADB mode or the main Android OS. What can I do now to get my phone back to working. My phone can also enter Download mode if that's useful.
I can enter Recovery from Fastboot but then what do I do?
Edit:
Run this command in ADB.
adb backup -apk -noshared -nosystem -all -f C:\backup.ab
Your phone will ask for a password...
Don't put one in.
Once it's finished...
It will say backup complete.
Or your phone might just boot straight up.
Then navigate to recovery.
And factory reset.
Does your phone now boot?
(If not, stop here, and hit me again)
GOOD!
Now get back in fastboot and run:
adb restore C:\backup.ab
This will give you your applications back.
This MIGHT brick you again...but I doubt it.
If so...simply factory reset.
Thanks for the response.
Can I use ADB from recovery mode because I don't have access to the main OS and It was my understanding that you access ADB from the main OS?
If so, I'm using GNex TOOLKIT V5.6. Would I need to boot to CWM Recovery to use ADB or is the stock recovery ok?
I tried using the command in Fastboot and I get the error "adb: unable to connect for backup"
In GNex TOOLKIT at the top is says:
FASTBOOT MODE
List of devices attached
(the phones serial) fastboot
ADB MODE
List of devices attached
(blank space)
Click to expand...
Click to collapse
When i try "adb devices" in the command prompt, I also get "List of devices attached" with a blank line under it.
OK, I gave up on trying to access my data and attempted to do a restore with the toolkit. I had to unlock the bootloader as the first step and after that the system would boot again.
It would be nice if I could have figured out how to reflash the stock bootloader as a first step but I couldn't figure hot if you can or how.
Anyway, I should have unlocked it from day one. If i had, I would have has access to ADB from CWM recovery and would have been able to backup my stuff and access files even with it in the unbootable state it was in.
I guess not unlocking the bootloader was a mistake I need to learn from.
Jubakuba, thanks for trying to help me out.

[Q] Stuck in bootloop Jellybean

Hello All, I flashed the V2 version of the JB Rom on my CDMA GNex and it was working great until I rebooted my phone. Now It is bootlooping.
I can boot into recovery
This is what I have done:
Battery/Sim Card Pull
Catch Wipe/Factory data reset
Tried to Nanodroid back to an older rom
Tried to install AOKP back
All lead to bootlooping
I am sorry if this is has been addressed but any help would be greatly appreciated.
I got it to boot. After many tries it just turned on. Go figure.
How did you exactly get it to work. You said after many tries it just worked. What kind of "tries" did you do because I'm having the same issue? I tried nandroid restore, full system wipe, reinstall of AOKP build40, etc. It keeps bootlooping. Help
If all else fails, Nexus Factory Images will always be available.
Its been so long since I done the fastboot and stock 4.0.4. I'm afraid I have forgotten. I looked at that page and downloaded the stock image but I'm not sure how to use the fastboot and adb commands anymore.
elusiveaura said:
Its been so long since I done the fastboot and stock 4.0.4. I'm afraid I have forgotten. I looked at that page and downloaded the stock image but I'm not sure how to use the fastboot and adb commands anymore.
Click to expand...
Click to collapse
Well, if you have ADB and fastboot installed, that's a good start. All you need to do is unzip the file and place it where your terminal will recognize it. Then turn on USB debugging on in developer settings, then boot into your boot loader (Power + Volume Up + Volume Down) and type in "sh flash-all.sh" or you can do it manually, "fastboot flash recovery recovery.img, fastboot flash bootloader bootloader.img" etc... This will wipe all your data, including your SD card.

[Q] Unbricking One X with no adb?

Hi all,
I tried to install the Jellybean on my One X following instructions step by step from here - the 'guide to installing' link, under the mirrors
http://forum.xda-developers.com/showthread.php?t=1763240
However when booting up it stuck on the flashing crosses for about 20 minutes before I decided it was probably not working. I read the comments and realised the only part I didn't do was a wipe, so I wanted to try again, but before doing a wipe I wanted to make sure I could then re-send the relevant files to my phone via adb, because I assumed a wipe would wipe those files off. However when I do adb devices it doesn't bring up the phone. However if I go into recovery, (CWmod 5.8.4.0) then run adb devices it does bring up my phone on the list. Also when the phone is apparently trying to boot up and stuck on the splash screen loading and I run adb devices it also sees my phone there too. I can send files across. I tried with a recovery img, but the adb message said it was waiting for the device to respond, which it never did.
I had a CWmod backup made before starting, so I ran that, but all that did was change the splash screen it gets stuck on from the colourful crosses to the HTC One logo screen. But it still gets stuck.
Does anyone know what to do from here? I still have access to the bootloader. Do I do a factory reset from the bootloader? Do I do it from CWrecovery? I'm feeling a little bit worried now
Slaxington said:
Hi all,
I tried to install the Jellybean on my One X following instructions step by step from here - the 'guide to installing' link, under the mirrors
http://forum.xda-developers.com/showthread.php?t=1763240
However when booting up it stuck on the flashing crosses for about 20 minutes before I decided it was probably not working. I read the comments and realised the only part I didn't do was a wipe, so I wanted to try again, but before doing a wipe I wanted to make sure I could then re-send the relevant files to my phone via adb, because I assumed a wipe would wipe those files off. However when I do adb devices it doesn't bring up the phone. However if I go into recovery, (CWmod 5.8.4.0) then run adb devices it does bring up my phone on the list. Also when the phone is apparently trying to boot up and stuck on the splash screen loading and I run adb devices it also sees my phone there too. I can send files across. I tried with a recovery img, but the adb message said it was waiting for the device to respond, which it never did.
I had a CWmod backup made before starting, so I ran that, but all that did was change the splash screen it gets stuck on from the colourful crosses to the HTC One logo screen. But it still gets stuck.
Does anyone know what to do from here? I still have access to the bootloader. Do I do a factory reset from the bootloader? Do I do it from CWrecovery? I'm feeling a little bit worried now
Click to expand...
Click to collapse
First of all take a deep breath. Go get yourself a cup of coffee or whatever your favorite drink is. Preferably non-alcoholic.
In CWM, if you go to mounts & storage and mount your sdcard, you will be able to transfer files to your phone's sdcard. One reminder, reboot your phone to bootloader again after file transfer.
You have to install rom's kernel from your PC using fastboot command (even when restoring from your nandroid backup. Copy the boot.img file to your PC from CWM as I described above)
fastboot flash boot boot.img
fastboot erase cache
As for adb commands, CWM supports adb commands not fastboot commands. You have to use fastboot commands when in bootloader in fastboot usb mode such as
fastboot devices
fastboot reboot-bootloader
etc
eyosen said:
First of all take a deep breath. Go get yourself a cup of coffee or whatever your favorite drink is. Preferably non-alcoholic.
In CWM, if you go to mounts & storage and mount your sdcard, you will be able to transfer files to your phone's sdcard. One reminder, reboot your phone to bootloader again after file transfer.
You have to install rom's kernel from your PC using fastboot command (even when restoring from your nandroid backup. Copy the boot.img file to your PC from CWM as I described above)
fastboot flash boot boot.img
fastboot erase cache
As for adb commands, CWM supports adb commands not fastboot commands. You have to use fastboot commands when in bootloader in fastboot usb mode such as
fastboot devices
fastboot reboot-bootloader
etc
Click to expand...
Click to collapse
Hiya, thanks for that. Just a couple points for clarification. Do I do a wipe first? Or Format? Which wiping option should I go for? There's wipe data/factory reset, and wipe cache partition. Also there's the factor reset option on the first bootloaders screen. And if I do wipe it won't that remove the clockworkmod for recovery?
The rom's kernel... would that be, in this jellybeany case, the file tg_endeavoru-ota-33.zip, and the boot.img file?
I realise these are things I should have learned first, but I thought it seemed rather straight forward, now I'm trying to take no risks so just want to make 100% sure I understand everything involved.
Thanks for your help, knowing I'm not doomed has lifted most of the weight
Slaxington said:
Hiya, thanks for that. Just a couple points for clarification. Do I do a wipe first? Or Format? Which wiping option should I go for? There's wipe data/factory reset, and wipe cache partition. Also there's the factor reset option on the first bootloaders screen. And if I do wipe it won't that remove the clockworkmod for recovery?
The rom's kernel... would that be, in this jellybeany case, the file tg_endeavoru-ota-33.zip, and the boot.img file?
I realise these are things I should have learned first, but I thought it seemed rather straight forward, now I'm trying to take no risks so just want to make 100% sure I understand everything involved.
Thanks for your help, knowing I'm not doomed has lifted most of the weight
Click to expand...
Click to collapse
Since you will be coming back from jb, wiping would prevent any future problems. Even if you decide to stay with JB, do a wipe as below
In cwm,
Wipe cache
Under advanced, wipe Dalvik cache
Under mounts and storage, format system
Cwm will remain intact. Also, I think selecting factory reset from bootloader menu will take you to cwm anyways. It's been awhile.
Yes, it is the boot.img file inside the zip. But you must use the full rom and not the ota. Ota only includes updates to some of the already existing files. It's just an upgrade.
Sent from my HTC One X using xda premium

I think I may have ruined my phone

Hey there
I want to start off by saying I have very little experience with rooting, but am very familiar with jailbreaking apple devices so I figured i could manage.
I have a htc one m8 on rogers network locked. I rooted it and had super user and all that jazz, then flashed AOKP. Then I thought i actually liked the stock HTC sense better, so I tried to "get things back to normal"...lol.
Now im at the point where if i turn my phone on it goes straight to the fastboot screen(?) with all the "fast boot, recovery, factory reset, etc". Since I'm super new to all of this is there anybody that can write some instructions on how to get my phone back to stock? I would really appreciate it after panicking over this for 3 days.
Edit: In the fastboot screen at the top it says ***Tampered*** ***Relocked*** ***security warning**
also when i try to press recovery it shows the htc screen for 1 second then back to the same menu
i found this http://forum.xda-developers.com/showthread.php?t=2710735 but i cannot even get into recovery
haydenrbm said:
Hey there
I want to start off by saying I have very little experience with rooting, but am very familiar with jailbreaking apple devices so I figured i could manage.
I have a htc one m8 on rogers network locked. I rooted it and had super user and all that jazz, then flashed AOKP. Then I thought i actually liked the stock HTC sense better, so I tried to "get things back to normal"...lol.
Now im at the point where if i turn my phone on it goes straight to the fastboot screen(?) with all the "fast boot, recovery, factory reset, etc". Since I'm super new to all of this is there anybody that can write some instructions on how to get my phone back to stock? I would really appreciate it after panicking over this for 3 days.
Click to expand...
Click to collapse
While being an expert with rooting and flashing custom recoveries on Samsung devices, I am also new to the world of HTC. Out of curiosity, what happens when you hit factory reset?
Unlock the boot loader again then install twrp recovery then head over to the stock backup thread and flash one of the nandroids for your cid.
MattMJB0188 said:
While being an expert with rooting and flashing custom recoveries on Samsung devices, I am also new to the world of HTC. Out of curiosity, what happens when you hit factory reset?
Click to expand...
Click to collapse
When i hit factory reset it the screen changes to the HTC in green for 1 second then back to where i started
ashyx said:
Unlock the boot loader again then install twrp recovery then head over to the stock backup thread and flash one of the nandroids for your cid.
Click to expand...
Click to collapse
I would...but when im trying to use ADB devices it isn't found
haydenrbm said:
When i hit factory reset it the screen changes to the HTC in green for 1 second then back to where i started
I would...but when im trying to use ADB devices it isn't found
Click to expand...
Click to collapse
Do fastboot devices ... adb commands itself won't work in bootloader, it has to be fastboot commands.
now you have a locked bootloader which means you cant do anything.. so your first step is to unlock it again then flash a custom recovery (TWRP) after that flash the stock rom+ boot.img ( to be safe) make sure it boots. RELOCK the bootloader then flash your firmware.zip.. hope it helps
mushages said:
now you have a locked bootloader which means you cant do anything.. so your first step is to unlock it again then flash a custom recovery (TWRP) after that flash the stock rom+ boot.img ( to be safe) make sure it boots. RELOCK the bootloader then flash your firmware.zip.. hope it helps
Click to expand...
Click to collapse
How can I unlock the bootloader again without the device showing in adb?
haydenrbm said:
How can I unlock the bootloader again without the device showing in adb?
Click to expand...
Click to collapse
i think you have your unlock token. start from here
http://www.htcdev.com/bootloader/unlock-instructions/page-4/
haydenrbm said:
How can I unlock the bootloader again without the device showing in adb?
Click to expand...
Click to collapse
If it's in bootloader it should show in command prompt when you type fastboot devices after connecting it to PC. If it doesn't then there is a driver problem perhaps. Check to make sure you have HTC drivers installed, or reinstall them. Might as well make sure adb is up to date as well, can do that through the Android SDK Manager. Another possibility might be that the usb cable isn't working correctly, try another cable. Fact of the matter though is, if it's in bootloader and you connect it to the PC adb/fastboot SHOULD pick it up.
So check and fix those things. Also make sure you use the correct commands, in bootloader mode, it'll be fastboot commands, not "adb devices" but "fastboot devices" ... "fastboot reboot" etc etc. Also make sure you're running the commands from within the adb/fastboot folder path(just for in case yeah...)
mushages said:
i think you have your unlock token. start from here
Click to expand...
Click to collapse
Okay it is unlocked, but now it just stays on the AOKP boot screen
Thank you for the help btw, it must be very painful.
haydenrbm said:
Okay it is unlocked, but now it just stays on the AOKP boot screen
Thank you for the help btw, it must be very painful.
Click to expand...
Click to collapse
Press Volume UP + Power button, once the screen goes dead, press Volume DOWN + Power button to get back into bootloader. Then flash a custom recovery (Like TWRP) and start flashing the Stock nandroid backups, can be found from here Collection of Stock backups
BerndM14 said:
Press Volume UP + Power button, once the screen goes dead, press Volume DOWN + Power button to get back into bootloader. Then flash a custom recovery (Like TWRP) and start flashing the Stock nandroid backups, can be found from here Collection of Stock backups
Click to expand...
Click to collapse
Okay i have got into the bootloader now, thanks.
I cannot put the rom into the internal storage because my computer wont detect the phone
haydenrbm said:
Okay i have got into the bootloader now, thanks.
the adb devices will show it if i have it in recovery mode but not bootloader, why is that ?
Click to expand...
Click to collapse
You didn't read any of my posts about that, did you? lol
I already stated adb commands like "adb devices" "adb reboot" etc will NOT work in bootloader, it'll work in the system and yes, it'll work in recovery for sideloading etc, but NOT in bootloader. For bootloader you HAVE to use fastboot commands, "fastboot devices" "fastboot reboot" "fastboot oem lock" "fastboot oem get_identifier_token" "fastboot flash unlocktoken Unlock_code.bin" etc etc
BerndM14 said:
You didn't read any of my posts about that, did you? lol
I already stated adb commands like "adb devices" "adb reboot" etc will NOT work in bootloader, it'll work in the system and yes, it'll work in recovery for sideloading etc, but NOT in bootloader. For bootloader you HAVE to use fastboot commands, "fastboot devices" "fastboot reboot" "fastboot oem lock" "fastboot oem get_identifier_token" "fastboot flash unlocktoken Unlock_code.bin" etc etc
Click to expand...
Click to collapse
Sorry I skipped past your first response, that makes sense now.
So I need to put the rom on my internal storage then go into recovery and install the zip using TWRP..but when I plug my phone into the computer the internal storage wont show up.
I do have sync manager installed also, and it wont show up in that either
haydenrbm said:
Okay i have got into the bootloader now, thanks.
I cannot put the rom into the internal storage because my computer wont detect the phone
Click to expand...
Click to collapse
With that adb devices command again in bootloader? Did you flash TWRP yet? If so, Got to Advanced >>> ADB Sideload >>> Swipe to start sideload.
Place the ROM.zip file in your adb folder then:
Connect phone to PC, while still in recovery mode type adb devices to make sure your device gets picked up, should show you the serial number for device AS WELL as "sideload" next to it, if so then you are hooked up right. Next type adb sideload name_of_zip.zip wait until fully finished.
If sideload fails for one or other reason you can also try to push it. Reboot to recovery again, type adb devices to make sure device gets picked up, type adb push name_of_zip.zip /data/media/0/ or adb push name_of_zip.zip /sdcard/ flash as per usual then.
Yet somehow I don't think you even need to go to these steps
BerndM14 said:
With that adb devices command again in bootloader? Did you flash TWRP yet? If so, Got to Advanced >>> ADB Sideload >>> Swipe to start sideload.
Place the ROM.zip file in your adb folder then:
Connect phone to PC, while still in recovery mode type adb devices to make sure your device gets picked up, should show you the serial number for device AS WELL as "sideload" next to it, if so then you are hooked up right. Next type adb sideload name_of_zip.zip wait until fully finished, once done reboot back into recovery and flash rom.
If sideload fails for one or other reason you can also try to push it. Reboot to recovery again, type adb devices to make sure device gets picked up, type adb push name_of_zip.zip /data/media/0/ or adb push name_of_zip.zip /sdcard/ flash as per usual then.
Yet somehow I don't think you even need to go to these steps
Click to expand...
Click to collapse
haha..thank you for baby steps
The sideload completed and i rebooted then went back into recovery and install but there isn't a zip file anywhere
Edit: wow..some how i reset it and it turned on and got into the phone... and now it connects to the computer so i should be able to follow the other tutorial now...man you are a life saver thank you so much
haydenrbm said:
haha..thank you for baby steps
The sideload completed and i rebooted then went back into recovery and install but there isn't a zip file anywhere
Edit: wow..some how i reset it and it turned on and got into the phone... and now it connects to the computer so i should be able to follow the other tutorial now...man you are a life saver thank you so much
Click to expand...
Click to collapse
I made a small mistake with the sideload though, it actually installs automatically as such you don't have to go back into recovery to flash, as it did it already, sorry. Edited post to fix.
Well as long as you can get into phone now to copy the nandroid backup to the phone all should be in order, can flash back stock from the nandroid then.
Glad it worked out then.:good:
BerndM14 said:
I made a small mistake with the sideload though, it actually installs automatically as such you don't have to go back into recovery to flash, as it did it already, sorry. Edited post to fix.
Well as long as you can get into phone now to copy the nandroid backup to the phone all should be in order, can flash back stock from the nandroid then.
Glad it worked out then.:good:
Click to expand...
Click to collapse
Hello BerndM14, thank you for this baby steps. Mine m8 is a gpe version, it's 4.4.2 google rom, rooted, cwm recovery, s-on. I was trying to flash the full google 4.4.3 zip rom under recovery, however, after that, my m8 automaticlly enter recovery everytime reboot. And I can manually enter the bootloader, my pc can find the m8 both in recovery and bootloader. I searched this post, and do it accordingly, I download the gpe stock backup KOT49H.H16 - 1.16.1700.16 - CWM Philz touch and use adb sideload gpe3.zip to the cell phone sucessfully, then the recovery automaticlly starts installing rom, then, I got below message:
-- Erasing & formatting /system as ext4 (Unmounted system)
system partition formatted!
-- Mounting system partition for writing
Writing rom system to system partition
Rom system written successfully!
@symlinking and permissions
--Creating toolbox symlinks
--creating additional symlinks
Symlinks Set!
--installing busybox
Set_perm: some changes failed
E:Error in /tmp/update.zip
(status 7)
installation aborted.
Install from sideload complete.
then, I reboot it manually. problem still there, still enter the recovery automaticlly.
do you have any comments on this? please.
thanks,

unable to adb reboot recovery reinstall (unable to reinstall twrp)

since this fone was having this issue i decided to try and restore from a working backup:
http://forum.xda-developers.com/g4/help/unable-to-make-phone-calls-dialer-t3278827
i am starting to think that this fones hardware is broken/defective somehow. the key combo to boot into recovery never works.
its supposed to be power+volume-down but it just boots normally.
power+vol-down/release power for 1 second goes into the erase all data: yes/no screen.
whether using android-5.1 or cyanogenmod, adb devices returns nothing; we tried on both windows and fedora; we enabled developer options/adb debugging/oem unlock.
so to test whether the original os could make fone calls i did a twrp wipe/restore of a previous backup. when it booted up it was very unstable/unusable; took a few minutes to respond to touches sometimes; process system has quit errors; random restarts; ...
no apps could launch so that meant i couldnt use quick boot to reboot recovery. adb and key combos dont work so there was no way to get back into recovery.
i put the fone in download mode (volume-up while plugging in usb) and we used LGUP_8994_DLL_Ver_0_0_3_23.msi/LGUP_Store_Frame_Ver_1_14_3.msi to install H81120i_00_0201.kdz which is the lg version of googles version of android-6.0. and we were able to make a fone call. we wanted to boot into twrp to backup but quick boot said that we are no longer rooted. ironically, adb devices now shows the serial-number of the fone so i did sudo adb reboot recovery but when it rebooted instead of going to twrp it showed a green android with a spinning blue cube thingy and rebooted into lg/google-android-6.0 where i had to sign/register for the first time and all our apps/settings were gone.
we origianlly installed twrp using the send_command.exe command on windows awhile back but it no longer works. we installed LGUnitedMobile_Win_Driver_Ver_3.14.1.exe; i run ports.bat and it tells me that the diag port is on COM5; i run Send_command \\.\COM5; it shows me the linux su prompt: #, but when i type in ENTER, it exits back to the windows-dos prompt (i also tried without first typing ENTER, if i try to run something like ls or whoami, it will display: fail).
do all these models have adb/recovery disabled or is this particular unit fubar in that regard ?
any alternative ways to install twrp/ cyanogenmod ?
It is my understanding according to autoprime's thread that you must reinstall twrp after you install the kdz as it wipes that partition as well.
bbenz3 said:
It is my understanding according to autoprime's thread that you must reinstall twrp after you install the kdz as it wipes that partition as well.
Click to expand...
Click to collapse
thanks, how does one install twrp without using send_command.exe.

Categories

Resources