Go Back   Android Forums > Android Phones > Micromax A70 > A70 - All Things Root

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old December 28th, 2011, 10:23 PM   #1 (permalink)
Member
Thread Author (OP)
 
Join Date: Aug 2011
Posts: 124
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 40 Times in 22 Posts
mohittokas@gmail.com
Post An alternative to fastboot and clockworkmod recovery to backup and restore ROMs

If anyone has problems with fastboot or clockworkmod recovery one can use the flash_image and dump_image commands to backup and restore partitions.

These commands are currently not built in the Micromax A70 so you'll need to download the binaries attached as flash_image.zip and dump_image.zip. Also you'll need to download Android Terminal Emulator(or adb or a similar app) from the market.

Oh and one more thing your phone should be rooted for this procedure to work :-)

1. Extract the zip files attached with this post to the sd card root.(You can probably extract it elsewhere but then the commands below should be changed accordingly)
2. Open Android Terminal Emulator(or adb or a similar app) in the phone.
3. First Of All type
Code:
su
in the Android Terminal Emulator(or adb or a similar app) to get superuser privileges or permissions
4. Now type the following code to dump or backup a partition.

Code:
mount -o remount,exec /dev/block//vold/179:1 /sdcard
cd /sdcard
./dump_image <partition> <location of file to be dumped>
For example the code to dump the recovery partition in sd card root is :

Code:
mount -o remount,exec /dev/block//vold/179:1 /sdcard
cd /sdcard
./dump_image recovery /sdcard/recovery.img
5. Similarly to flash or restore a partition, type the following code :

Code:
mount -o remount,exec /dev/block//vold/179:1 /sdcard
cd /sdcard
./flash_image <partition> <location of file to be flashed>
For example the code to flash the recovery partition in with a file named recovery.img located in sd card root is :

Code:
mount -o remount,exec /dev/block//vold/179:1 /sdcard
cd /sdcard
./flash_image recovery /sdcard/recovery.img
Note(s):

1. If you encounter out of memory or a similar error, just restart the phone and it'll work :-)
2. Personally i don't recommend these commands to flash anything other than recovery and data partition, as the phone may be operating on files at that instant.
Attached Files
File Type: zip dump_image.zip (48.0 KB, 133 views)
File Type: zip flash_image.zip (12.0 KB, 98 views)

theperfectpunk is offline  
Reply With Quote
The Following 3 Users Say Thank You to theperfectpunk For This Useful Post:
ninadchaudhari (January 5th, 2012), sourru250 (May 26th, 2012), varun.chitre15 (January 9th, 2012)
sponsored links
Old January 5th, 2012, 05:17 AM   #2 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

Amazing !
ninadchaudhari is offline  
Last edited by ninadchaudhari; February 7th, 2012 at 03:51 AM.
Reply With Quote
Old January 5th, 2012, 08:48 AM   #3 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

There must be a correction in your post there is no need of restart !
you just go into System tuner pro and then click on kill all and keep on clicking it then use the tool from adb !

plz do the change also bcaz it was giving the error even after many reboots i posted my previous post !!
ninadchaudhari is offline  
Reply With Quote
Old January 9th, 2012, 12:22 AM   #4 (permalink)
Member
Thread Author (OP)
 
Join Date: Aug 2011
Posts: 124
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 40 Times in 22 Posts
mohittokas@gmail.com
Thumbs up

Quote:
Originally Posted by ninadchaudhari View Post
There must be a correction in your post there is no need of restart !
you just go into System tuner pro and then click on kill all and keep on clicking it then use the tool from adb !

plz do the change also bcaz it was giving the error even after many reboots i posted my previous post !!
Restarting is the simplest and the easiest,
i don't want anyone to end a system task.
theperfectpunk is offline  
Reply With Quote
Old January 9th, 2012, 03:14 AM   #5 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

Quote:
Originally Posted by theperfectpunk View Post
Restarting is the simplest and the easiest,
i don't want anyone to end a system task.
Nope !
Restarting will surely close the running programs and free up memory but phone after it starts again will again start up programs that it starts up on boot !!!
hence there will be problem !! it was in case of me - i have many programs to run at start up
but doing that solved my program ...

and anyways what do you exactly mean by closing system task ...
ninadchaudhari is offline  
Last edited by ninadchaudhari; January 9th, 2012 at 03:21 AM.
Reply With Quote
Old January 18th, 2012, 05:12 AM   #6 (permalink)
Member
Thread Author (OP)
 
Join Date: Aug 2011
Posts: 124
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 40 Times in 22 Posts
mohittokas@gmail.com
Default

system tasks/services running in the background should not be altered as it may result in malfunction. :-)
theperfectpunk is offline  
Reply With Quote
Old January 18th, 2012, 08:17 AM   #7 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

Quote:
Originally Posted by theperfectpunk View Post
system tasks/services running in the background should not be altered as it may result in malfunction. :-)

umm...
I never meant system tasks or programs just open system tuner pro and you will notice many programs running in background ! those can be easily killed ...
ninadchaudhari is offline  
Reply With Quote
Old February 29th, 2012, 11:23 AM   #8 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi,

I've managed to extract 'boot', 'recovery' and 'system' images with dump_image. 'data' was not found. What other partitions should I try to get a full set of images of my phone?

As flash_image would be unreliable for 'boot' and 'system', how could I restore these images?
Marctwo is offline  
Reply With Quote
Old February 29th, 2012, 12:22 PM   #9 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

Quote:
Originally Posted by Marctwo View Post
Hi,

I've managed to extract 'boot', 'recovery' and 'system' images with dump_image. 'data' was not found. What other partitions should I try to get a full set of images of my phone?

As flash_image would be unreliable for 'boot' and 'system', how could I restore these images?
I am 100% u r on A75
data will not work on it
u need a different command !
use userdata ! instead any ways i have made a better one click solutions for u guys ! just see the A75 -all things root forum
ninadchaudhari is offline  
Reply With Quote
Old February 29th, 2012, 06:56 PM   #10 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ninadchaudhari View Post
I am 100% u r on A75
No... But I'm not on A70 either.

As I can't find any info at all about my phone, I have to grab bits and pieces where I can find them. Blame Google.

I did find a command that shows my partitions ('cat /proc/mtd') and you're right, 'userdata' was one of them.
Marctwo is offline  
Reply With Quote
sponsored links
Old March 1st, 2012, 01:54 PM   #11 (permalink)
Senior Member
 
mastermind1024's Avatar
 
Join Date: Oct 2011
Location: India
Posts: 1,000
 
Device(s): Micromax A75 ROM: Own Ported+Modded
Carrier: Not Provided

Thanks: 67
Thanked 414 Times in 215 Posts
Default

Why blame Google???thanks to google only that we are getting smartphones at so cheaper rates n also able to mod them as its opensource...that's y we are able to have great custom roms like cyanogen..
Rather blame ur manufacturer...btw which phone it is?
__________________
To born free is an accident, To live free is privilege, But To die free is responsibility...
mastermind1024 is offline  
Reply With Quote
Old March 1st, 2012, 02:35 PM   #12 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mastermind1024 View Post
Why blame Google???
I was saying blame Google (the search engine) that I ended up finding and posting to this thread.

The phone is a W008+ iClone. Well actually, it's currently a bricked W008+ iClone. Not related to dump/flash image, I might add.
Marctwo is offline  
Reply With Quote
Old March 1st, 2012, 08:59 PM   #13 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

Quote:
Originally Posted by Marctwo View Post
I was saying blame Google (the search engine) that I ended up finding and posting to this thread.

The phone is a W008+ iClone. Well actually, it's currently a bricked W008+ iClone. Not related to dump/flash image, I might add.
Well sure then u can have it unpicked if it is a clone of A70
Just boot to Fastboot mode mode and flash individual images and voila !!
u r un bricked
ninadchaudhari is offline  
Reply With Quote
Old March 2nd, 2012, 04:20 AM   #14 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ninadchaudhari View Post
Well sure then u can have it unpicked if it is a clone of A70
Just boot to Fastboot mode mode and flash individual images and voila !!
u r un bricked
If only... I haven't been able to get Fastboot working even before it was bricked. It'd be great if I could as I could just boot with and external image and sort it out from there.

It also won't get as far as factory/recovery.
Marctwo is offline  
Reply With Quote
Old March 2nd, 2012, 05:09 AM   #15 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

Quote:
Originally Posted by Marctwo View Post
If only... I haven't been able to get Fastboot working even before it was bricked. It'd be great if I could as I could just boot with and external image and sort it out from there.

It also won't get as far as factory/recovery.
Well for anything now u need fastboot or the custom recovery ...
if u have custom recovery you can easily flash the stuff ..
else fastboot always works

u HAVE to get fastboot working
ninadchaudhari is offline  
Reply With Quote
Old March 2nd, 2012, 05:34 AM   #16 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ninadchaudhari View Post
u HAVE to get fastboot working
Yeah, but that's easier said than done... Especially for a n00b like me.

I did happen to extract all partitions with dump_image before this so I'm hoping I can restore them with Mediatek Flash Tool.... but I've got to wait for a serial->usb cable to be delivered.

This all started from creating /etc/gps.conf. Any idea which partition that would be on?
Marctwo is offline  
Reply With Quote
Old March 4th, 2012, 02:15 AM   #17 (permalink)
Senior Member
 
mastermind1024's Avatar
 
Join Date: Oct 2011
Location: India
Posts: 1,000
 
Device(s): Micromax A75 ROM: Own Ported+Modded
Carrier: Not Provided

Thanks: 67
Thanked 414 Times in 215 Posts
Default

Quote:
Originally Posted by Marctwo View Post
This all started from creating /etc/gps.conf. Any idea which partition that would be on?
It will be on system partition..
can't say which mtdblock,it's device specific.we can find it out if u have come unbricked..
mastermind1024 is offline  
Reply With Quote
The Following User Says Thank You to mastermind1024 For This Useful Post:
Marctwo (March 4th, 2012)
Old March 4th, 2012, 06:33 AM   #18 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mastermind1024 View Post
It will be on system partition..
can't say which mtdblock,it's device specific.we can find it out if u have come unbricked..
Thanks for that.

I believe 'system' is on mtdblock8 on my phone... I can't think how to use that info though.

Still bricked BTW.
Marctwo is offline  
Reply With Quote
Old March 5th, 2012, 03:32 PM   #19 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Well it's only a semi-brick now.

I've been using MTK Flash Tool to flash the images I extracted with dump_image. The ones from FAT partitions like recovery, boot, etc. seem to flash ok. But the images from yaffs2 partitions like system, secstatic, etc. are not working. I think the problem is that they are not yaffs2 images...

So I'm now looking for a way to convert these images to yaffs2.
Marctwo is offline  
Reply With Quote
Old March 5th, 2012, 03:41 PM   #20 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,806
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 528 Times in 308 Posts
Default

Quote:
Originally Posted by Marctwo View Post
Well it's only a semi-brick now.

I've been using MTK Flash Tool to flash the images I extracted with dump_image. The ones from FAT partitions like recovery, boot, etc. seem to flash ok. But the images from yaffs2 partitions like system, secstatic, etc. are not working. I think the problem is that they are not yaffs2 images...

So I'm now looking for a way to convert these images to yaffs2.
All images used by Droid are yaffs2 except for sd-card !! [and some if configured by OEM]
boot, recovery are like 101% yaffs2
else it won't boot
btw u should NEVER flash secstatic image ...
flashing it causes brick as the image is encrypted when in phone
Hope ur device boots now else u will have to get something official image of secstatic ...
DSP_BL AND SEC_STATIC must NEVER be flashed
and userdata.img and nvram.img contain user info hence NEVER publish unless u have done a factory reset ...

u do not have perfect images ...
whch phone u r using ?
ninadchaudhari is offline  
Reply With Quote
sponsored links
Old March 5th, 2012, 04:14 PM   #21 (permalink)
Junior Member
 
Join Date: Feb 2012
Posts: 17
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

The phone I'm 'NOT' using is W008+ mt6516 based iClone.

According to the mtk flash tool config files, secstatic is to be flashed but seccnfg (along with some others) is not. Also, of the images to be flashed, system, secstatic and userdata are configured as yaffs2 and most of the others are configured as FAT.

I've flashed boot and recovery and they seem fine. I can now boot to recovery - it does me no good though as I don't have the home key that I believe is necessary to get past the triangle screen. I can also adb the phone when booting normally but system is unreadable and the normal file structure is not there.

I can flash system as a FAT image in which case the file structure seems to be there but the permisions are messed up so I can't view it and it doesn't boot fully.

So I think if I can convert the images to yaffs2 then that may solve my problem.
Marctwo is offline  
Reply With Quote
Reply
Tags
dump_image, fastboot alternative, flash_image, micromax a70


Go Back   Android Forums > Android Phones > Micromax A70 > A70 - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:48 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.