Pls help
you need to flash recovery image by dd command via terminal or adb shell.
first Download the latest TWRP image file (.img) from the download linkhttps://dl.twrp.me/yuga/
Place it in the root of your /sdcard folder and rename it to twrp.img
Run the following commands via adb shell or a terminal emulator app:
Code:
su
and then
Code:
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
and its done.
press thanks if it was helpful.
It works
Sent from my Xperia Z using XDA Free mobile app
says if=illegal argument or already set
using cm 12.1 nightly
device: xperia z c6602
Work om 6.0?
Just use the TWRP Manager.
https://play.google.com/store/apps/details?id=com.jmz.soft.twrpmanager
Related
I currently am running an older version of jf's recovery image and would like to upgrade to Cm recovery 1.4.
I have looked through the fourms and can't find any help on installing a new recovery image over the old one. I was just wondering if I would have to install it like I did with the first one, downgrade my phone and all that or is there a way I can insatll it with out having to do all those steps over again.
Thanks for you help in advance
Ps. Didn't really know where to post this thread sorry if it is in the wrong area..
Hi,
This should really be in the Q&A section.
To answer your question, save the .img on to your SD card, do not rename it, go to your terminal emulator and type flash_image recovery /sdcard/cm-recovery-1.4.img
As long as you did not rename the file, and you spell the commands right, then you should be golden.
QUESTION !!!!!!!!!! >>>> Q&A Section !!!
don't forget the su. also you will want to do reboot recovery so you can see your pretty new recovery image.
thanks
Thanks for all the help guys
ps
And I guess I brain farted not putting it in the Q&A section, my bad
still not working
ironnius said:
Hi,
This should really be in the Q&A section.
To answer your question, save the .img on to your SD card, do not rename it, go to your terminal emulator and type flash_image recovery /sdcard/cm-recovery-1.4.img
As long as you did not rename the file, and you spell the commands right, then you should be golden.
Click to expand...
Click to collapse
I did what you said it it didn't work, it gave me the message, this was all done in terminal emulator.
"error writing recovery : Permission denied"
Is there something i have to do to allow this?
do the following in terminal emu
su
flash_image recovery /sdcard/cm-recovery-1.4.img
Put the recovery img on the root of your ad card
Installing the CyangenMod Recovery IMG
1. Open up the Terminal App on your phone
2. Type in su then press on "Always Allow"
3. Type in the following:
Code:
cd /sdcard
wget http://n0rp.chemlab.org/android/cm-recovery-1.4.img
flash_image recovery /sdcard/cm-recovery-1.4.img4. Done! Easy as Pie
Fingerlickin said:
do the following in terminal emu
su
flash_image recovery /sdcard/cm-recovery-1.4.img
Click to expand...
Click to collapse
thank you that worked
1sickat said:
Put the recovery img on the root of your ad card
Installing the CyangenMod Recovery IMG
1. Open up the Terminal App on your phone
2. Type in su then press on "Always Allow"
3. Type in the following:
Code:
cd /sdcard
wget http://n0rp.chemlab.org/android/cm-recovery-1.4.img
flash_image recovery /sdcard/cm-recovery-1.4.img4. Done! Easy as Pie
Click to expand...
Click to collapse
yes please download the recovery image and put it on the sdcard, THEN download the recovery image AGAIN using the wget command and replace the first one. THEN use the flash_image command which requires su permissions WITHOUT getting those permissions first.
Sorry, in a bad mood today.
Hi there,
I want To flash the recovery needed for the multirom mod, but i'm not sure how To do it. in the multirom thread i can download the recovery but its a ZIP file.
I did also installed cwm and normal twrp before, but i did it through the terminal APP. I just placed an image file in the root of my SD and typed this Command:
su
cat /mnt/sdcard/recovery-6028.img >/dev/block/mmcblk0p1
sync
And it worked.
But in other thread i also saw this Command:
su
flash_image recovery /sdcard/recovery.img
Where are the diffrences? Which one will work?
And one more, can i use all ADB Commands in thE terminal app? Does the terminal APP acces ADB like through fast Boot?
Thx for some help, hope my english is good enough ^_^
Sent from my LG-P880 using xda app-developers app
noobiei5 said:
Hi there,
I want To flash the recovery needed for the multirom mod, but i'm not sure how To do it. in the multirom thread i can download the recovery but its a ZIP file.
I did also installed cwm and normal twrp before, but i did it through the terminal APP. I just placed an image file in the root of my SD and typed this Command:
su
cat /mnt/sdcard/recovery-6028.img >/dev/block/mmcblk0p1
sync
And it worked.
But in other thread i also saw this Command:
su
flash_image recovery /sdcard/recovery.img
Where are the diffrences? Which one will work?
And one more, can i use all ADB Commands in thE terminal app? Does the terminal APP acces ADB like through fast Boot?
Thx for some help, hope my english is good enough ^_^
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
You can flash the TWRP as a zip in CWM/TWRP or whichever recovery your using!
However if it doesn't work, Boot to boot loader/fastboot, theres a thread on this, put the TWRP recovery.img in the directory with the adb and fastboot.exe's, make sure you have drivers installed, and do this command when in fastboot
Code:
fastboot flash recovery [Name of recovery].img
Check the multirom thread, i have a tutorial posted :3
Oh man !
So easy, can't believe xD
Ty for the other step by step guide, but isn't it the same as if i extract the Boot.IMG, Place it on root and type one oft the commands above?
But THX anyways for the fast answear
Sent from my LG-P880 using xda app-developers app
Hey guys, today I'm going to tell you how to backup & restore few things of your phone without using a pc. This guide is divided into two parts: 1st post contains a guide to backup things & 2nd post contains two methods two restore the backup. So let's get started without wasting any time...
Things you gonna need:
1) Busybox installed (Stericson is recommended)
3) A SD-Card inserted to your phone with some free space to backup things
2) Any terminal emulator
3) Patience & some common sense (not HTC Sense )
First I'll say you how to backup things & later I'll say how to restore them...
How To Backup:
• Boot.img :
In terminal emulator type the following:
dd if=/dev/block/mmcblk0p7 of=/sdcard/backups/boot.img
• Cache.img :
In terminal emulator type the following:
dd if=/dev/block/mmcblk0p15 of=/sdcard/backups/cache.img
• Logo.bin :
In terminal emulator type the following:
dd if=/dev/block/mmcblk0p11 of=/sdcard/backups/logo.bin
• Nvram.img :
In terminal emulator type the following:
dd if=/dev/block/mmcblk0p2 of=/sdcard/backups/nvram.img
• Recovery.img :
In terminal emulator type the following:
dd if=/dev/block/mmcblk0p8 of=/sdcard/backups/recovery.img
• System.img :
In terminal emulator type the following:
dd if=/dev/block/mmcblk0p14 of=/sdcard/backups/system.img
• Userdata.img :
In terminal emulator type the following:
dd if=/dev/block/mmcblk0p16 of=/sdcard/backups/userdata.img
Click to expand...
Click to collapse
If this post helped you then please hit thanks, & feel free to ask any doubts or questions...
Restoring in 2 methods
In this second post I'll tell you how to restore the backups in two different methods...
How To Restore in 1st Method:
• Boot.img* :
In terminal emulator type the following:
dd if=/sdcard/backups/boot.img of=/dev/block/mmcblk0p7
• Cache.img* :
In terminal emulator type the following:
dd if=/sdcard/backups/cache.img of=/dev/block/mmcblk0p15
• Logo.bin :
In terminal emulator type the following:
dd if=/sdcard/backups/logo.bin of=/dev/block/mmcblk0p11
• Nvram.img :
In terminal emulator type the following:
dd if=/sdcard/backups/nvram.img of=/dev/block/mmcblk0p2
• Recovery.img :
In terminal emulator type the following:
dd if=/sdcard/backups/recovery.img of=/dev/block/mmcblk0p8
• System.img* :
In terminal emulator type the following:
dd if=/sdcard/backups/system.img of=/dev/block/mmcblk0p14
• Userdata.img* :
In terminal emulator type the following:
dd if=/sdcard/backups/userdata.img of=/dev/block/mmcblk0p16
(* = Not recommended to restore while your phone is on, unless you know what you are doing)
Click to expand...
Click to collapse
How To Restore in 2nd Method(Recommended):
1) Download the attachment below, named 'Restore.zip'
2) Extract the contents of the zip somewhere on your SD card.
3) Replace the dummy files,which you find when you extract the zip, with the backups you made above.
4) Don't forget to delete the dummy files which you don't need to restore.
5) Again compress the contents.
6) Boot to recovery & flash the zip which you just compressed with the backups.
7) Your backup will be restored, enjoy... :good:
Click to expand...
Click to collapse
F.A.Qs
Frequently Asked Questions:
Q: Where does the backup gets stored?
A: It's in sdcard/backups/
Q: While backuping/restoring in terminal emulator I get Access Denied or something message like that.
A: Make sure your phone is rooted & don't forget to type "su" in terminal emulator before following any of the steps above.
Q: Why is second method of restoring recommended?
A: Because it restores the backup in recovery, so that you don't brick up your device while restoring system.img or few other backups while phone is on.
Q: Then why did you posted the first method?
A: First method of restoring is only for advanced users, who knows what they are doing.
Q: Can I use this method of backuping in my non-mtk device?
A: No, you can't, this guide is strictly only for MTK devices.
Q: I want to contribute/donate to you, where can I?
A: I'm still 14,& I don't need any money. Instead you can hit thanks. And if you liked my work that's enough for me.
Q: I have some "xxxx" question/doubt.
A: Feel free to comment below.
there is no way to backup without root or unlock the bootloader? even if it requires a pc its ok
austinpinto said:
there is no way to backup without root or unlock the bootloader? even if it requires a pc its ok
Click to expand...
Click to collapse
I'll make a new guide on that very soon, maybe this coming Sunday...
Taking a nandroid will cover all this right?
I am on cwm recovery, cm11-3. My sdcard path is '/storage/sdcard0' in stead of '/sdcard'. Replaced the correct path and took backup. Thanks for the nice post.
Sent from my A1 using XDA Free mobile app
miscos said:
I am on cwm recovery, cm11-3. My sdcard path is '/storage/sdcard0' in stead of '/sdcard'. Replaced the correct path and took backup. Thanks for the nice post.
Sent from my A1 using XDA Free mobile app
Click to expand...
Click to collapse
Welcome my friend...
akhil1999 said:
Taking a nandroid will cover all this right?
Click to expand...
Click to collapse
Yeah, it'll...
can you please make a guide to backup non rooted devices with bootloader locked? even if it requires a pc its ok
Download a custom recovery.
Boot into fastboot.
Code:
fastboot boot recovery.img
Then backup!
Sent from my A1 using XDA Free mobile app
akhil1999 said:
Download a custom recovery.
Boot into fastboot.
Code:
fastboot boot recovery.img
Then backup!
Sent from my A1 using XDA Free mobile app
Click to expand...
Click to collapse
i did this.
the backup finished properly.
i got 2 .img files 1 md5 file and some .tar files some .tar.a files and 1.tar.b file.
now i tried opening .tar file with 7zip i get error no trailing records 0 filled records found then i tried opening .tar.a files the files open properly but when i go to extract something it shows error unable to open output file when i open .tar.b files i get 7zip cannot open.tar.b as archive.
can some1 tell me what is the problem?
i did using touch recovery is this the best recovery to do backup? if no please give link for some other recovery
Why are you opening it?
If you have to restore then boot into recovery again and restore.
If you want apps, etc. there's an app that can extract apps from a nandroid
Sent from my A1 using XDA Free mobile app
akhil1999 said:
Why are you opening it?
If you have to restore then boot into recovery again and restore.
If you want apps, etc. there's an app that can extract apps from a nandroid
Sent from my A1 using XDA Free mobile app
Click to expand...
Click to collapse
Just to view the contents of the tar files I tried opening
Sent from my Spice Mi-498 using XDA Free mobile app
---------- Post added at 10:57 AM ---------- Previous post was at 10:50 AM ----------
Can u give link for that app that extract apps from the tar
Sent from my Spice Mi-498 using XDA Free mobile app
Its called "Nandroid Manager * Root"
Sent from my A1 using XDA Free mobile app
Great
Devam03 said:
Great
Click to expand...
Click to collapse
Thanks & if you liked please don't forget to hit thanks...
EDIT: It works with the 8GB versions of Android One.
I implemented this method using built in twrp's terminal. I did it without root my device.
nothinkinc said:
I implemented this method using built in twrp's terminal. I did it without root my device.
Click to expand...
Click to collapse
how did u do.
i want a way of backuping which i can later restore using fastboot
I've installed CM12 on my Xperia Z and with this Rom CM Recovery was also installed, to finish the installation I tried to flash gapps, but CM recovery said: "Cannot load volume/misc" so I tried to install another Recovery and got the error: " sending 'recovery' (4876 KB)...
OKAY [ 1.131s]
writing 'recovery'...
FAILED (remote: not allowed)
finished. total time: 1.458s
Rom manager says that CWM is already installed, but there's only CM recovery. I can use another recovery when I flash CWM as boot. So how can I get CWM or TWRP back?
Thanks in advance
Flatric
Try to flash different ROM
revel_onetime said:
Try to flash different ROM
Click to expand...
Click to collapse
I already tried that, didn't work. Any other ideas?
which CM12 have you installed, you may want to install TWRP Recovery. If you prefer
http://teamw.in/project/twrp2/187
download openrecovery-twrp-2.8.5.0-yuga.img from the above link.
then do this
adb push openrecovery-twrp-2.8.5.0-yuga.img /sdcard/
adb shell
su
dd if=/sdcard/openrecovery-twrp-2.8.5.0-yuga.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
exit
exit again
adb reboot recovery
RohitBopnna said:
which CM12 have you installed, you may want to install TWRP Recovery. If you prefer
http://teamw.in/project/twrp2/187
download openrecovery-twrp-2.8.5.0-yuga.img from the above link.
then do this
adb push openrecovery-twrp-2.8.5.0-yuga.img /sdcard/
adb shell
su
dd if=/sdcard/openrecovery-twrp-2.8.5.0-yuga.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
exit
exit again
adb reboot recovery
Click to expand...
Click to collapse
Thank you
RohitBopnna said:
which CM12 have you installed, you may want to install TWRP Recovery. If you prefer
download openrecovery-twrp-2.8.5.0-yuga.img from the above link.
then do this
adb push openrecovery-twrp-2.8.5.0-yuga.img /sdcard/
adb shell
su
dd if=/sdcard/openrecovery-twrp-2.8.5.0-yuga.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
exit
exit again
adb reboot recovery
Click to expand...
Click to collapse
thx for your reply
but it didn't work. tried 4 times but always when it comes to the dd if=/sdcard/openrecovery-twrp-2.8.5.0-yuga.img command the cmd window frozes and the adb shell crashes. no idea what is the problem. Reinstalled the whole software on my computer (adb, fastboot, drivers) but still the same. I think i'm gonna try it again on Saturday on another computer. But thanks for helping!
RohitBopnna said:
which CM12 have you installed, you may want to install TWRP Recovery. If you prefer
http://teamw.in/project/twrp2/187
download openrecovery-twrp-2.8.5.0-yuga.img from the above link.
then do this
adb push openrecovery-twrp-2.8.5.0-yuga.img /sdcard/
adb shell
su
dd if=/sdcard/openrecovery-twrp-2.8.5.0-yuga.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
exit
exit again
adb reboot recovery
Click to expand...
Click to collapse
I've followed this, and it's solved all my recovery problems, I've got just one question. (I'm on Latest CM12 Validus build), when flashing newer builds, will I need to do this again or will recovery remain?
Shro said:
I've followed this, and it's solved all my recovery problems, I've got just one question. (I'm on Latest CM12 Validus build), when flashing newer builds, will I need to do this again or will recovery remain?
Click to expand...
Click to collapse
as long as you are on any of the CM12 builds even custom builds based on CM you do not need to reflash, unless you want to update TWRP itself.
---------- Post added at 10:58 AM ---------- Previous post was at 10:56 AM ----------
therealzlatan said:
thx for your reply
but it didn't work. tried 4 times but always when it comes to the dd if=/sdcard/openrecovery-twrp-2.8.5.0-yuga.img command the cmd window frozes and the adb shell crashes. no idea what is the problem. Reinstalled the whole software on my computer (adb, fastboot, drivers) but still the same. I think i'm gonna try it again on Saturday on another computer. But thanks for helping!
Click to expand...
Click to collapse
I had issues with ADB crashing too, all i had to do was to set the Sleep time to 10 min or more and make sure the phone does not lock
How can i re-install recovery on CM 11 Xperia Z
aazamsajid said:
How can i re-install recovery on CM 11 Xperia Z
Click to expand...
Click to collapse
here you go
dd Install Method (Requires Root):
Download the latest image file (.img). Place it in the root of your /sdcard folder and rename it to FOTAKernel.img. Run the following commands via adb shell or a terminal emulator app:
su
dd if=/sdcard/FOTAKernel.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Then you have your recovery back.
ExCuTioN said:
here you go
dd Install Method (Requires Root):
...
Click to expand...
Click to collapse
Yes, the most elegant and satisfying way of doing it. Rashr from play store is another option. Select the. img and flash it to recovery (in reality - fotakernel)