Hello all. I'm am trying to flash a recovery but I don't know the commands to do it through terminal emulator. Is this even possible on the Nexus 7 or do I have to do it through fastboot? If possible to do, what are the commands? Thank you in advance.
...I Lost The Game...
Hi, codyahiggins...
Yes... it's possible, but you need root to do it.
If you're flashing a Custom Recovery via terminal emulator with the intention of rooting, you're out of luck I'm afraid. You'll need to use
fastboot to flash the Custom Recovery of your choice; TWRP or CWM. This of course requires unlocking the bootloader first (and the subsequent wipe/factory reset)... and with your installed Custom Recovery, you can then root.
But assuming you already have root, the syntax is as follows...
Code:
su
dd if=/sdcard/your_custom_recovery.img of=/dev/block/platform/sdhci-tegra.3/by-name/SOS
Here you're
'writing' your Custom Recovery.img to the SOS partition (recovery) and where...
if stands for INPUT FILE (your Custom Recovery .img file - TWRP or CWM)
of stands for OUTPUT FILE (your target/destination partition).
-----------------------------------------------
Whilst this is possible, and it certainly works... it can be a pain typing the PRECISE command.
You might be better of checking out these two apps...
Flash Image GUI or
Flashify.
Both of these will flash a Custom Recovery without resort to fastboot... but again, you'll first need to be rooted to use them.
Hope this helps.
Rgrds,
Ged.