1. Download our Official Android App: Forums for Android!

Root [Q] recovery flashing through phone

Discussion in 'Android Devices' started by Kreatur3, Feb 2, 2014.

  1. Kreatur3

    Kreatur3 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    353
    Joined:
    Mar 4, 2011

    Mar 4, 2011
    353
    139
    68
    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
     

    Advertisement

  2. ModdingMyMind

    Rank:
    None
    Posts:
    0
    Joined:

    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.
     
    Kreatur3 likes this.
  3. Kreatur3

    Kreatur3 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    353
    Joined:
    Mar 4, 2011

    Mar 4, 2011
    353
    139
    68
    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.
     
  4. ModdingMyMind

    Rank:
    None
    Posts:
    0
    Joined:

    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 (Text):
    1. 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.
     
    palmtree5 and Kreatur3 like this.
  5. Kreatur3

    Kreatur3 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    353
    Joined:
    Mar 4, 2011

    Mar 4, 2011
    353
    139
    68
    Awesome man. You're a great help to the community and always kind. Much appreciated.
     
  6. Kreatur3

    Kreatur3 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    353
    Joined:
    Mar 4, 2011

    Mar 4, 2011
    353
    139
    68
    Worked like a charm. Just wanted to confirm I didn't mess anything up with your spot on information. :)
     
  7. ModdingMyMind

    Rank:
    None
    Posts:
    0
    Joined:

    I wouldn't steer you in the wrong direction lol. Glad it helped you out.
     
    Kreatur3 likes this.
  8. Kreatur3

    Kreatur3 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    353
    Joined:
    Mar 4, 2011

    Mar 4, 2011
    353
    139
    68
    I know you wouldn't but I could easily screw it up. User error can be high with this one lol. ;)
     
  9. ModdingMyMind

    Rank:
    None
    Posts:
    0
    Joined:

    You can also use the cat command too. It would be as followed given what was discussed earlier:
    Code (Text):
    1. 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.
     
    Kreatur3 likes this.
  10. ModdingMyMind

    Rank:
    None
    Posts:
    0
    Joined:

    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'. :)
     
    Kreatur3 and palmtree5 like this.
  11. Kreatur3

    Kreatur3 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    353
    Joined:
    Mar 4, 2011

    Mar 4, 2011
    353
    139
    68
    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.
     
    russellvone likes this.
  12. russellvone

    russellvone Android Enthusiast
    Rank:
    None
    Points:
    123
    Posts:
    660
    Joined:
    May 23, 2013

    May 23, 2013
    660
    177
    123
    Male
    fabricator
    lol,

    I have ridiculously small hands

    "the whopper just make my hands look so tiny"
     
    Kreatur3 likes this.
  13. Kreatur3

    Kreatur3 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    353
    Joined:
    Mar 4, 2011

    Mar 4, 2011
    353
    139
    68
    I need a galaxy note for that problem. Even then it might be questionable. Typing is always a pain for me. Big old caveman hands haha.
     
Tags:

Share This Page

Loading...