[GUIDE] [Universal] Backuping & Restoring IMG files [W/O PC] - Android One (First-Generation) Cross-Device Genera

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

Related

[GUIDE] How to get root on the 10.1v

BEFORE YOU BEGIN
As always, mucking with your device at this level is risky. If you follow this process, you do so entirely at your own risk. I accept no responsibility for any detrimental effects resulting from following this process, or for any problems associated with the updated files. Only if you accept these risks should you use these instructions.
PREREQUISITES
Unlocked bootloader (see my guide to do this)
Working fastboot (also see my guide )
Patience
NOTES
I developed and followed this process on Ubuntu Natty, 64bit. I see no reason why it should not work on any other platform, since the only tool used is fastboot and the syntax for fastboot is the same on any platform. if you need to know how to get fastboot working, there are already many guides for that (see my how to unlock your bootloader thread, for example)
BUTTON CONFUSION
When in landscape mode, with the camera at the top, the power button is on the left 'vertical' side of the tab. On the top is the volume rocker. In this orientation:
- The LEFT side of the volume rocker is VOLUME DOWN
- The RIGHT side of the volume rocker is VOLUME UP
This might seem obvious, but to anyone who is used to phones, this is the opposite, since they were designed to be used in Portrait mode.
PREPARE
1) With your Tab in fastboot mode (step 1 of "GETTING ROOT" below), make sure you have a working fastboot implementation:
Code:
fastboot devices
If all is well, you should see your device serial number. If there is a problem, you won't get any response.
2) Downlad View attachment skitzandroid-10-1v-root_0.2.zip and View attachment skitzandroid-stock-recovery.zip
3) Create a folder on your desktop called "root"
Code:
mkdir ~/Desktop/root
for Ubuntu or
Code:
md %userprofile%\desktop\root
for Windows
This will be referred to as the working directory throughout the rest of this guide
4) Copy skitzandroid-10-1v-root.zip to your working directory (DO NOT UNZIP!)
5) Extract the skitzandroid-recovery.img file from skitzandroid-stock-recovery.zip to your working folder. Your working folder should now have 1 IMG file and one ZIP file.
6) This was an afterthought - Make sure fastboot is somewhere in your path (ie can be executed from anywhere). To test, 'cd' to any random folder and type 'fastboot' and make sure it runs.
7) Copy the skitzandroid-10-1v-root.zip file to the root of your sdcard. You can eithe drag/drop, or run:
Code:
adb push skitzandroid-10-1v-root.zip /sdcard/
from your working directory
...now the easy part
GETTING ROOT
1) Power off your Tab and power it back on, while holding the VOLUME DOWN button.
2) When the DOWNLOAD / FASTBOOT icons appear, press VOLUME DOWN again to select FASTBOOT icon (the one with the USB logo) and press VOLUME UP to confirm selection.
3) Confirm you are now in fastboot mode and do a:
Code:
fastboot devices
If all is well, you should see your device serial number.
4) Open a terminal / CMD prompt and CD to your working folder
Code:
cd ~/Desktop/root
for Ubuntu or
Code:
cd %userprofile%\desktop\root
for Windows
5) Run the following command:
Temp Root:
Code:
fastboot boot skitzandroid-recovery.img
..and wait. It might not look like anything is happening but it is.
Permanent Root:
Code:
fastboot flash recovery skitzandroid-recovery.img
6) You should now have a recovery menu. Use the volume rocker (up/down navigates menu options) to select "Install zip from SDCARD" (or something like that - if someone can post the exact menu item wording, I will update the guide). Press (tap!) the POWER button to confirm the menu selection
7) Navigate to the root of your internal storage (/sdcard), select the skitzandroid-10-1v-root.zip file and press (tap!) the POWER button to confirm selection.
8) Once complete, use the Volume rocker to select "REBOOT" from the menu and press (tap!!!) the POWER button to confirm selection.
9) You're done! Press the thanks button on this thread to continue
TESTING
1) Once your Tab boots up, check your apps menu to confirm the existence of SuperUser app.
2) With the Tab attached to your PC via USB cable, do the following:
Code:
adb shell
su
..and watch the screen on your Tab for a SuperUser prompt. If you see this, congratulations!
If you have never rooted a phone/tablet before, go get Titanium Backup Pro and ROM Manager from the market. As soon as the custom ROMs start flowing in, you'll be all set to go.
Edit: How about thanking smaskell who was very patient and persistent in dumping the image from his Google IO 10.1 - for the good of his fellow XDA members. Without his help, this would not be possible.
Note that the above process doesn't flash the recovery, just loads it.
If you want to flash the recovery permanently, all you need to do is follow the guide above and then, in step 5, use this command instead:
Code:
fastboot flash recovery skitzandroid-recovery.img
You will then have a permanent recovery which you can get to by doing:
Code:
adb shell
su
reboot recovery
at any time.
Note that doing just
adb reboot recovery
Click to expand...
Click to collapse
...for some bizarre reason does not boot to recovery. Open up a shell first, as shown above.
I will also give you credit in the guide for having "Balls of Steel" to steal a phrase from PaulObrien
EDIT:
...and the Balls of Steel award goes to *drumroll*
Egan
...for having the balls to flash the recovery. Thanks egan. If I was in a battle, I'd definitely want you in our squad
FAQ
Does it need unlocked bootloader? Yes, see my other guide for this.
Do I need to wipe, or will it wipe my device? No and No.
Can I return my device to factory default config? Yes. This process does not flash the partition unless you follow the process in post 2 which is optional.
Changelog
0.2 - Added busybox (can be flashed over the top of 0.1 without wipe)
0.1 - Initial Relase
Factory Voda Tab Images
Recovery
Boot
System
Awesome news! Thanks to everyone who worked on this - I can't wait!
Great, great job you guys! This thing needs root so it can grow
Thanks a lot bcmobile and smaskell! Ill give it a go around launch.
Sent from my LG-P990 using XDA Premium App
Thank you guys, it's working great on my 10.1v
I'm pretty sure I know the answer to this already - but is there anyway of getting temp root on these devices so I can backup all my apps and data (properly) before unlocking / flashing recovery / rooting??
This wont make any changes to the partitions. You could undo the whole process by just deleting a few files.
The process in my second post would actually flash the image, and would be permanent if you had no 'factory' recovery image to flash back.
The 'standard' process in post 1 is normally used for testing and doesn't overwrite the recovery partition
Thanks a lot. Works like a charm
Now to make a full "original" fastboot flashable restore fileset:
Boot: dd if=/dev/block/mmcblk0p5 of=/sdcard/boot.img
System: dd if=/dev/block/mmcblk0p4 of=/sdcard/system.img
Would this be enough to have a proper "original" image? (With the small addition of root offcourse)
(Did a dd of dd if=/dev/block/mmcblk0p1 of=/sdcard/efs.img too, just to have a backup
Will see if I can make a full nandroid back-up now
Before flashing any recovery images etc..
gjroeleveld said:
Thanks a lot. Works like a charm
Now to make a full "original" fastboot flashable restore fileset:
Boot: dd if=/dev/block/mmcblk0p5 of=/sdcard/boot.img
System: dd if=/dev/block/mmcblk0p4 of=/sdcard/system.img
Would this be enough to have a proper "original" image? (With the small addition of root offcourse)
(Did a dd of dd if=/dev/block/mmcblk0p1 of=/sdcard/efs.img too, just to have a backup
Will see if I can make a full nandroid back-up now
Before flashing any recovery images etc..
Click to expand...
Click to collapse
That's all the backup I have done so I hope so
Just uploading a new version of the update zip (v0.2) which includes busybox
bcmobile said:
This wont make any changes to the partitions. You could undo the whole process by just deleting a few files.
The process in my second post would actually flash the image, and would be permanent if you had no 'factory' recovery image to flash back.
The 'standard' process in post 1 is normally used for testing and doesn't overwrite the recovery partition
Click to expand...
Click to collapse
Sorry, I realise that applying the root won't wipe anything, but unlocking the bootloader comes with a nice factory reset if I'm not mistaken..
gjroeleveld said:
Now to make a full "original" fastboot flashable restore fileset:
Boot: dd if=/dev/block/mmcblk0p5 of=/sdcard/boot.img
System: dd if=/dev/block/mmcblk0p4 of=/sdcard/system.img
Click to expand...
Click to collapse
Sorry for the ignorance, but are these fastboot or a adb commands?
Good work!
You should mention that you can't unlock and flash the Root-Update in one step.
The recovery complains then that /data/media is missing
Regards
EDIT:
black beard said:
Sorry for the ignorance, but are these fastboot or a adb commands?
Click to expand...
Click to collapse
These are adb commands you need to do with su!
black beard said:
Sorry, I realise that applying the root won't wipe anything, but unlocking the bootloader comes with a nice factory reset if I'm not mistaken..
Click to expand...
Click to collapse
That is part of the recovery image, not the unlocked bootloader.
You can always put back a stock image using fastboot which is one of the really nice things about fastboot unlocking vs bootloader exploits. "fastboot oem unlock" can then be undone by "fastboot oem lock" and nobody would know the diff.
seraphimserapis said:
Good work!
You should mention that you can't unlock and flash the Root-Update in one step.
The recovery complains then that /data/media is missing
Click to expand...
Click to collapse
Thanks!
Yeah, oem unlock doesn't actually do anything until the next boot
Egan said:
Thanks a lot bcmobile and smaskell! Ill give it a go around lunch.
Sent from my LG-P990 using XDA Premium App
Click to expand...
Click to collapse
Works like a charm! Now lets backup the original recovery and then flash the stock recovery .
Egan said:
Works like a charm! Now lets backup the original recovery and then flash the stock recovery .
Click to expand...
Click to collapse
Are you going to flash it?
You will earn the official "Balls of steel" badge
Thanks,
Also remember to enable USB debugging after you have done the unlocked bootloader, took me 5 min to to realize why adb did not want to work, 5 scary min after the reboot.
I've tried to make a proper nandroid backup but haven't been able too.
Tried with romdump 0.72 but that crashes :-(
Most tutorials use Rom Manager, but that needs some work from @koush before we can use it.
I'll google on
Sent from my GT-I9000 using XDA Premium App

[How-To] Restoring Recovery when Device running - An easy way (CWM / Stock)

Restoring stock recovery: (without Download mode)
[Preparation]
Our FIH partition which you could see in download mode is huge. (Size: 105 MB Used: 43 MB only)
You could easily keep loads of file in this partition without any problem to your device. (I have not faced any, as of yet!)
Just keep a backup of stock recovery in the "image" folder itself with the name "stock_recovery.img" (size: 4.5 MB only)
[Optional] And backup of CWM recovery too with the name "cwm_recovery.img" (size: 5 MB)
[Requirement]
Rooted phone
Apps like: GScripts Lite or Any script manager or Terminal emulator
[How to restore]
Just run following commands using any script manager or save them in a ".sh" file and use
"sh script.sh" in terminal emulator.
Commands:
Code:
mkdir /sdcard/fih
mount -t vfat /dev/block/mmcblk0p1 /sdcard/fih/
cd /sdcard/fih/image/
mv ./stock_recovery.img ./recovery.img
cd /
umount /sdcard/fih
rm -r /sdcard/fih/
(You can use "cp" instead of "mv" if you are not going for warranty claiming and just wants to use stock recover.img. Replace "stock" with "cwm" if you want to use that)
Thats it!
Now restart your phone in recovery using any reboot apps with recovery reboot option or just type in terminal "reboot recovery". You will boot into your desired recovery.
[Note]
When you install any official "fb0" ROM your phone is no more rooted, so you will need to root your phone first before using these steps again.
[Disclaimer]
I am not to be held liable/responsible if you damage your phone by following/not following this thread.
Napstar said:
Restoring stock recovery:
[Preparation]
Our FIH partition which you could see in download mode is huge. (Size: 105 MB Used: 43 MB only)
You could easily keep loads of file in this partition without any problem to your device. (I have not faced any, as of yet!)
Just keep a backup of stock recovery in the "image" folder itself with the name "stock_recovery.img" (size: 4.5 MB only)
[Optional] And backup of CWM recovery too with the name "cwm_recovery.img" (size: 5 MB)
[Requirement]
Rooted phone
Apps like: GScripts Lite or Any script manager or Terminal emulator
[How to restore]
Just run following commands using any script manager or save them in a ".sh" file and use
"sh script.sh" in terminal emulator.
Commands:
Code:
mkdir /sdcard/fih
mount -t vfat /dev/block/mmcblk0p1 /sdcard/fih/
cd /sdcard/fih/image/
mv ./stock_recovery.img ./recovery.img
cd /
umount /sdcard/fih
rm -r /sdcard/fih/
(You can use "cp" instead of "mv" if you are not going for warranty claiming and just wants to use stock recover.img. Replace "stock" with "cwm" if you want to use that)
Thats it!
Now restart your phone in recovery using any reboot apps with recovery reboot option or just type in terminal "reboot recovery". You will boot into your desired recovery.
[Note]
When you install any official "fb0" ROM your phone is no more rooted, so you will need to root your phone first before using these steps again.
[Disclaimer]
I am not to be held liable/responsible if you damage your phone by following/not following this thread.
Click to expand...
Click to collapse
i have much more easier way..
try this
put this phone in the download mode (power + volume up key)
connect to pc
open the drive as it will be shown as a usb storage
go to image folder..
copy your phone's stock version of recovery.img file paste to any drive of your pc .. woho backed up
now copy cwm recovery image
before copying rename it to recovery insteed to cwmrecovery
past to image folder of fih drive overwrite
done... you are now on clock work mode recovery
kshitij_bhatt said:
i have much more easier way..
try this
put this phone in the download mode (power + volume up key)
connect to pc
open the drive as it will be shown as a usb storage
go to image folder..
copy your phone's stock version of recovery.img file paste to any drive of your pc .. woho backed up
now copy cwm recovery image
before copying rename it to recovery insteed to cwmrecovery
past to image folder of fih drive overwrite
done... you are now on clock work mode recovery
Click to expand...
Click to collapse
True...
That's the most generic way to that, but it requires those tedious button pressings.
And also it requites a PC!!
My method can be used if you are on the go and still wants to restore any recoveries.
Sent from my CSL-MI410
Napstar said:
True...
That's the most generic way to that, but it requires those tedious button pressings.
And also it requites a PC!!
My method can be used if you are on the go and still wants to restore any recoveries.
Sent from my CSL-MI410
Click to expand...
Click to collapse
hehehe i found a on the go method too...
if you have root access and can install root explorer then just do this
go to root explorer
locate sdcard
select the image file you copied on it and press and hold over it
now select copy
press back now you r in root menu .. locate fih
find iamge folder in it
and paste if asked over write if not backup old one and chage present one as recovery Remember recovery and NOT Recovery
and you r done
kshitij_bhatt said:
hehehe i found a on the go method too...
if you have root access and can install root explorer then just do this
go to root explorer
locate sdcard
select the image file you copied on it and press and hold over it
now select copy
press back now you r in root menu .. locate fih
find iamge folder in it
and paste if asked over write if not backup old one and chage present one as recovery Remember recovery and NOT Recovery
and you r done
Click to expand...
Click to collapse
Well, that's good news then..
But as far as I remember there is no fih folder in root of the system unless it is mounted by some init script.
Which is your current rom?
Sent from my CSL-MI410 using Tapatalk
Napstar said:
Well, that's good news then..
But as far as I remember there is no fih folder in root of the system unless it is mounted by some init script.
Which is your current rom?
Sent from my CSL-MI410 using Tapatalk
Click to expand...
Click to collapse
You can only access it in download mode as far as I know.
Sergekarol said:
You can only access it in download mode as far as I know.
Click to expand...
Click to collapse
No. Thats not the only way.
Thats why I have created this thread to show the other possible way to access it when your phone is booted and running.
Napstar said:
Well, that's good news then..
But as far as I remember there is no fih folder in root of the system unless it is mounted by some init script.
Which is your current rom?
Sent from my CSL-MI410 using Tapatalk
Click to expand...
Click to collapse
well at that time i was on the tj_style's custom rom rc2 and i found that folder in root explorer ... i think .. confused..
aannnn any way i m a new B what else can u expect
kshitij_bhatt said:
well at that time i was on the tj_style's custom rom rc2 and i found that folder in root explorer ... i think .. confused..
aannnn any way i m a new B what else can u expect
Click to expand...
Click to collapse
No problem dude!
Anyway I will be posting a completely new recovery soon. This will have both stock recovery and cwm recovery access simultaneously. (Hopefully )
So this How-To wont be required then...
Napstar said:
No problem dude!
Anyway I will be posting a completely new recovery soon. This will have both stock recovery and cwm recovery access simultaneously. (Hopefully )
So this How-To wont be required then...
Click to expand...
Click to collapse
Coool .... koi mujhe bhi accha sa teacher bata do jo ye saab developing and all mujhe bhi sikha de... Vb se aage kabhi kuch sikh hi nahi paya main to
kshitij_bhatt said:
Coool .... koi mujhe bhi accha sa teacher bata do jo ye saab developing and all mujhe bhi sikha de... Vb se aage kabhi kuch sikh hi nahi paya main to
Click to expand...
Click to collapse
Google
kshitij_bhatt said:
Coool .... koi mujhe bhi accha sa teacher bata do jo ye saab developing and all mujhe bhi sikha de... Vb se aage kabhi kuch sikh hi nahi paya main to
Click to expand...
Click to collapse
What does this mean?
ardX said:
What does this mean?
Click to expand...
Click to collapse
He is asking napster for a teacher to teach development...
Sent from my CSL-MI410 using XDA App
bandukia said:
He is asking napster for a teacher to teach development...
Sent from my CSL-MI410 using XDA App
Click to expand...
Click to collapse
hehehe yaa i wanna learn development programming and i got my teacher GOOGLE
nb0 files through CWM????
when napstar???
bandukia said:
nb0 files through CWM????
when napstar???
Click to expand...
Click to collapse
Finally its done!!
[RecoveryMenu] CWM based Recovery menu to enter stock or CWM recovery
Enjoy!!
Napstar said:
Finally its done!!
[RecoveryMenu] CWM based Recovery menu to enter stock or CWM recovery
Enjoy!!
Click to expand...
Click to collapse
@Napstar .... You are Gr8 nicely done work...
Napstar said:
Finally its done!!
[RecoveryMenu] CWM based Recovery menu to enter stock or CWM recovery
Enjoy!!
Click to expand...
Click to collapse
lol..that was fast.. thnx
bandukia said:
lol..that was fast.. thnx
Click to expand...
Click to collapse
Was debugging it for last few days. It was just finished yesterday and since you asked so here it is.
Napstar said:
Restoring stock recovery: (without Download mode)
[Preparation]
Our FIH partition which you could see in download mode is huge. (Size: 105 MB Used: 43 MB only)
You could easily keep loads of file in this partition without any problem to your device. (I have not faced any, as of yet!)
Just keep a backup of stock recovery in the "image" folder itself with the name "stock_recovery.img" (size: 4.5 MB only)
[Optional] And backup of CWM recovery too with the name "cwm_recovery.img" (size: 5 MB)
[Requirement]
Rooted phone
Apps like: GScripts Lite or Any script manager or Terminal emulator
[How to restore]
Just run following commands using any script manager or save them in a ".sh" file and use
"sh script.sh" in terminal emulator.
Commands:
Code:
mkdir /sdcard/fih
mount -t vfat /dev/block/mmcblk0p1 /sdcard/fih/
cd /sdcard/fih/image/
mv ./stock_recovery.img ./recovery.img
cd /
umount /sdcard/fih
rm -r /sdcard/fih/
(You can use "cp" instead of "mv" if you are not going for warranty claiming and just wants to use stock recover.img. Replace "stock" with "cwm" if you want to use that)
Thats it!
Now restart your phone in recovery using any reboot apps with recovery reboot option or just type in terminal "reboot recovery". You will boot into your desired recovery.
[Note]
When you install any official "fb0" ROM your phone is no more rooted, so you will need to root your phone first before using these steps again.
[Disclaimer]
I am not to be held liable/responsible if you damage your phone by following/not following this thread.
Click to expand...
Click to collapse
But then I cannot start up my phone! It vibrates and the download screen show up! Help! ( csl mi410 )
Any advices is really appreciated!

[GUIDE] [Simple] md5 mismatch fix

I guess you guys restoring roms like i just did, and eventually got into problem/error message that md5 mismatch.
I managed to fix it without using adb shell or terminal emulator on phone etc. In case that you can not boot into rom and you want to restore previous rom.
1. Download notepad ++ (it is free)
2. Put your SD card into PC
3. Navigate to folder "clockworkmod/backup/DateWhenBackupCreated"
IMPORTANT First try to rename your backup folder without spaces, and then try to restore.
If it is already without spaces, continue
4. In notepad++ open file "nandroid.md5" , delete all content of that file (simply by selecting it and "delete") , after that "save".
5. Put SD card back to phone and try to restore again. Should work fine. :victory:
Correct me if im wrong
Will try really soon..
Thanks a lot.
Good, post result how it went :good: :fingers-crossed:
I fix it this way:
Open ADB or Terminal Emulator
Code:
adb shell(for adb) or su(for Terminal Emulator)
# cd /sdcard/clockworkmod/backup/insert backup folder name
# rm nandroid.md5
# md5sum *img > nandroid.md5
Its about fixing it easy way not complicated one but ok, your choice
Sent from my super cool HTC Wildfire using xda app-developers app

[GUIDE] LG L90 D415 (US - Lollipop) - Install TWRP

My terrible video guide to follow: http://youtu.be/1UkPPqfz3kE (really really bad video guide that i just winged but it explains the basics of what you need and what you do)
Here's the textual guide:
Requirements:
1. Rooted Lollipop D415 - http://forum.xda-developers.com/lg-l90/general/guide-root-lg-l90-running-d41510e-t3072568
2. Terminal App (Must have SuperUser Enabled to work)
3. twrp.img - https://drive.google.com/file/d/0B08SrD985jkQMko3LTFZRFpZdG8/view?usp=sharing
4. Unlocked Bootloader (Supposedly) http://forum.xda-developers.com/lg-l90/general/guide-unlock-bootloader-t-mobile-l90-t2836457
(Hopefully those are all)
Steps:
1. Turn on the phone (no brainer)
2. Ensure your phone is rooted
2.5. Put twrp.img into /sdcard
3. Go to your terminal app and type in this command (WITH SU): dd if=/sdcard/twrp.img of=/dev/block/mmcblk0p17
It should take a few seconds before it gives out a little output saying so and so was transferred.
4. Type in 'reboot recovery' with SU and you should boot right into a fresh custom recovery.
I do not take credit for any of the stuff made here. I just made the guide, not the .img, or the apps. Just the guide.
(TWRP on KitKat 4.4: http://forum.xda-developers.com/lg-l90/general/video-guide-installing-twrp-custom-t2975417)
Disclaimer: I do not take responsibility for damage done to your phone. You do this at your own risk.
TWRP will not flash no matter what flash tool I use, I'll flash the img. & boot to recovery but no TWRP. Any suggestions?
Sent from my LG-D415 using XDA Premium 4 mobile app
GENIUS!
Sadcamp said:
My terrible video guide to follow: http://youtu.be/1UkPPqfz3kE (really really bad video guide that i just winged but it explains the basics of what you need and what you do)
Here's the textual guide:
Requirements:
1. Rooted Lollipop D415 - http://forum.xda-developers.com/lg-l90/general/guide-root-lg-l90-running-d41510e-t3072568
2. Terminal App (Must have SuperUser Enabled to work)
3. twrp.img - https://drive.google.com/file/d/0B08SrD985jkQMko3LTFZRFpZdG8/view?usp=sharing
4. Unlocked Bootloader (Supposedly) http://forum.xda-developers.com/lg-l90/general/guide-unlock-bootloader-t-mobile-l90-t2836457
(Hopefully those are all)
Steps:
1. Turn on the phone (no brainer)
2. Ensure your phone is rooted
2.5. Put twrp.img into /sdcard
3. Go to your terminal app and type in this command (WITH SU): dd if=/sdcard/twrp.img of=/dev/block/mmcblk0p17
It should take a few seconds before it gives out a little output saying so and so was transferred.
4. Type in 'reboot recovery' with SU and you should boot right into a fresh custom recovery.
I do not take credit for any of the stuff made here. I just made the guide, not the .img, or the apps. Just the guide.
(TWRP on KitKat 4.4: http://forum.xda-developers.com/lg-l90/general/video-guide-installing-twrp-custom-t2975417)
Disclaimer: I do not take responsibility for damage done to your phone. You do this at your own risk.
Click to expand...
Click to collapse
You my friend are a freaking genius! this saved my D415 and I was so worried. It works just awesome!
Thanks once again!
stevenDROID said:
TWRP will not flash no matter what flash tool I use, I'll flash the img. & boot to recovery but no TWRP. Any suggestions?
Sent from my LG-D415 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Extremely sorry for my late reply, but
are you sure you have not tried the terminal app i suggested in the video?
I used flashify. No computer. From stock to cm 13 in 10 minutes. Lol. This is one of my many fun hack phones all budget. My note 5 is staying unrooted
Another really simple way is a rooted device and LG L90 utilities app. Search XDA it's made by member shinobisoft
Wonderful app. Doesn't work on 6.0 & 6.0.1
TWRP version
Can I use another (recent) version of TWRP or this way is just functional with the linked twrp.img?
AlexJSK said:
Can I use another (recent) version of TWRP or this way is just functional with the linked twrp.img?
Click to expand...
Click to collapse
Any TWRP in IMG format should work. Just mke sure you have a D415 since it has a partition map that's is different from other models and this tutorial uses an adb command that is suitable to D415 only.
Need help i put in the command exactly as posted "dd if=/sdcard/twrp.img of=/dev/block/mmcblk0p17" and it keeps giving an error that it doesn't exist i did move the file to the sdcard after installing it but still same thing. The fileyou linked once downloaded actually downloads as "0B08SrD985jkQMko3LTFZRFpZdG8.bat" should i replace the twrp.img line with this name or rename the file to twrp.img or what? Im confused as im trying to learn but not fluent in this process.
---------- Post added at 11:09 AM ---------- Previous post was at 11:02 AM ----------
xxlcountryguy83 said:
Need help i put in the command exactly as posted "dd if=/sdcard/twrp.img of=/dev/block/mmcblk0p17" and it keeps giving an error that it doesn't exist i did move the file to the sdcard after installing it but still same thing. The fileyou linked once downloaded actually downloads as "0B08SrD985jkQMko3LTFZRFpZdG8.bat" should i replace the twrp.img line with this name or rename the file to twrp.img or what? Im confused as im trying to learn but not fluent in this process.
Click to expand...
Click to collapse
0B08SrD985jkQMko3LTFZRFpZdG8.bin sorry it downloads as .bin not .bat
xxlcountryguy83 said:
Need help i put in the command exactly as posted "dd if=/sdcard/twrp.img of=/dev/block/mmcblk0p17" and it keeps giving an error that it doesn't exist i did move the file to the sdcard after installing it but still same thing. The fileyou linked once downloaded actually downloads as "0B08SrD985jkQMko3LTFZRFpZdG8.bat" should i replace the twrp.img line with this name or rename the file to twrp.img or what? Im confused as im trying to learn but not fluent in this process.
---------- Post added at 11:09 AM ---------- Previous post was at 11:02 AM ----------
0B08SrD985jkQMko3LTFZRFpZdG8.bin sorry it downloads as .bin not .bat
Click to expand...
Click to collapse
Are you still on KitKat? If you are already rooted, and probably are, you can use an app like Hashr or Flashfy to flash recovery, both free from Play Store. I haven't tested the file but I recommend that you flash img only, double check the download procedure, there are many ads that lead to wrong downloaded files...

full-backup partition tool - script for terminal

I made a script to backup any partition in our A7:
YOU HAVE TO BE ROOT, TO USE IT.
To run it simply push to the sdcard fire up adb shell to launch the script.
from the computer while connected to the A7 with usb debugging turned on
Code:
adb push PATH_to_the_script/full-backup.sh /sdcard
and
Code:
adb shell
su
cd /sdcard/
sh full-backup.sh
you will see a menu to choose which partition to backup.
As in the attachment.
enjoy, and please hit the thanks button.
the script v1.00
and a terminal screenshot.
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
ultramag69 said:
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
Click to expand...
Click to collapse
yes you could run it directly form the device:
fire up a terminal emulator app:
RUN IT AS ROOT
Code:
su
sh /sdcard/full-backup.sh
thank you. we can backup unmodified firmware via this tool right?
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
So you need to be root to use this script, so not really..
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
manu7irl said:
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
Click to expand...
Click to collapse
we can backup all images except boot.img with this tool but we can find boot.img from other topic. so we have full stock images right?
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
manu7irl said:
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
Click to expand...
Click to collapse
So what is the process to restore these images? Is it as simple as flashing in twrp?
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Sure that would be great. Thanks.
manu7irl said:
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Click to expand...
Click to collapse
Been waiting for just that.

Categories

Resources