• 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

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.
 
  • Like
Reactions: Kreatur3
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
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.
 
  • Like
Reactions: Kreatur3
Upvote 0
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.
 
  • Like
Reactions: russellvone
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones