• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Q] recovery flashing through phone

Kreatur3

Android Enthusiast
Is it possible to flash the recovery while on the phone with this phone? I know you can with an app or terminal emulator on others. I haven't seen anything for this one.
TIA
 
Is it possible to flash the recovery while on the phone with this phone? I know you can with an app or terminal emulator on others. I haven't seen anything for this one.
TIA

When you say flash the recovery you mean to replace the current recovery with another recovery without the need of a computer? If so, then yes it can be done. I can tell you, but not till after you confirm that I am on the same page with you lol.
 
When you say flash the recovery you mean to replace the current recovery with another recovery without the need of a computer? If so, then yes it can be done. I can tell you, but not till after you confirm that I am on the same page with you lol.

Yes. That's exactly what I mean. I'm out and about and have stock recovery. I want to flash something but can't Lol.
 
Yes. That's exactly what I mean. I'm out and about and have stock recovery. I want to flash something but can't Lol.

Its easy. Just need to know which partition holds the recovery. Thankfully, all our K2 variants holds the recovery on the same one, which is mmcblk0p21.

Place your custom recovery on the root of your internal sdcard so it will be quicker to type up the directory in the terminal emulator.

- Open the terminal emulator.

- Gain root, su.

- Type and enter:
Code:
dd if=/sdcard/customrecovery.img of=/dev/block/mmcblk0p21

Once it is done you are good to go. You can do the same with the boot.img as well given the boot partition.
 
Its easy. Just need to know which partition holds the recovery. Thankfully, all our K2 variants holds the recovery on the same one, which is mmcblk0p21.

Place your custom recovery on the root of your internal sdcard so it will be quicker to type up the directory in the terminal emulator.

- Open the terminal emulator.

- Gain root, su.

- Type and enter:
Code:
dd if=/sdcard/customrecovery.img of=/dev/block/mmcblk0p21

Once it is done you are good to go. You can do the same with the boot.img as well given the boot partition.

Awesome man. You're a great help to the community and always kind. Much appreciated.
 
Worked like a charm. Just wanted to confirm I didn't mess anything up with your spot on information. :)
 
I know you wouldn't but I could easily screw it up. User error can be high with this one lol. ;)

You can also use the cat command too. It would be as followed given what was discussed earlier:
Code:
cat /sdcard/customrecovery.img > /dev/block/mmcblk0p21

Some say you should use cat instead of dd because it is safer. But realistically, if you are using such commands for that type of scenario, they are both the same concept and are both just as dangerous if there is a slight typo to be made. Common sense should apply of course lol.
 
Also, to further expand your mind. If you reverse the given directories in either of those commands; it is how you can pull your boot.img, system.img, data.img, and so forth. Also known as a 'dump'. :-)
 
Also, to further expand your mind. If you reverse the given directories in either of those commands; it is how you can pull your boot.img, system.img, data.img, and so forth. Also known as a 'dump'. :-)

Thanks man. Good stuff to know. I just copied your command line to txt document on my phone. I'm not about to try to type that with my big fingers on my phone. Brrrrrrrick. Lol.
 
Back
Top Bottom