[HOWTO] Flash custom recovery from phone using Terminal(Root) - YU Yuphoria

Requirements:
1. Rooted Yuphoria phone
2. Any custom recovery image (.img) file like TWRP or CWM placed in phone/SD card.
3. Terminal Emulator app
Steps:
1. Open Terminal Emulator app..
2. Enter
Code:
su
and grant it root permissions.
3. To backup current recovery (to memory card), enter the following:
Code:
dd if=/dev/block/bootdevice/by-name/recovery of=/storage/sdcard1/recovery_backup.img
4. To flash a recovery (for example, if it is named TWRP.img and placed in Internal Storage's root), Enter the following:
Code:
dd if=/sdcard/TWRP.img of=/dev/block/bootdevice/by-name/recovery
Or for example, if the recovery to flash is placed in Memory Card's root and named TWRP.img, enter the following:
Code:
dd if=/storage/sdcard1/TWRP.img of=/dev/block/bootdevice/by-name/recovery
That's It!! The recovery is flashed from phone itself..
To boot into recovery from Terminal, use:
Code:
su
reboot recovery
Reply if you have any issues/doubts

Does this work in yuphoria 5010a pure android
Sent from my YU5010A using XDA-Developers mobile app

arun531 said:
Does this work in yuphoria 5010a pure android
Sent from my YU5010A using XDA-Developers mobile app
Click to expand...
Click to collapse
Yes..
Or else you can also use "Flashify" app from Play Store

did it need to unlock bootloader first in yuphoria stock android...?

Related

help flashing twrp 2.2.2 via terminal

Alright so I put twrp recovery image on the root of my sd ... I open terminal type
Su
Cd sdcard
Flash_image recovery recoveryname(Der the name of it).img
And it says command not found
deleted
omario8484 said:
Alright so I put twrp recovery image on the root of my sd ... I open terminal type
Su
Cd sdcard
Flash_image recovery recoveryname(Der the name of it).img
And it says command not found
Click to expand...
Click to collapse
If you want to do it from terminal emulator on android, say name of recovery is twrp.img and is on root of sd....
Open terminal emulator
Type - su
Allow superuser permission,
Type -
dd if=sdcard/twrp.img of=/dev/block/mmcblk0p22
It will push, then do it again for good measure-
dd if=sdcard/twrp.img of=/dev/block/mmcblk0p22
Now power off, boot to bootloader and select recovery
as long as your rooted w. Bootloader unlocked you will have twrp recovery installed

[Q] deleting a recovery

hello guys
I want to delete cwm (v6.0.1.9) to install twrp (v2.5.0.0).can anyone help me?
how i can delete CWM?
nasiroddin said:
hello guys
I want to delete cwm (v6.0.1.9) to install twrp (v2.5.0.0).can anyone help me?
how i can delete CWM?
Click to expand...
Click to collapse
Whoa! You don't delete a recovery Just install TWRP and it will overwrite CWM.
Follow the instructions in the TWRP thread using goomanager or download the CORRECT version for your device form the teamwin web site and use the following from a PC
rename the downloaded file to twrp.blob and reboot to the bootloader / fastboot screen
Code:
fastboot -i 0x0B05 flash recovery twrp.blob
fastboot -i 0x0B05 reboot
or from a terminal emulator on the device:
Save it to the root of your /sdcard directly (internal memory only) and rename it to twrp.blob
Launch terminal emulator or connect to your computer and open an adb shell, then type the following:
Code:
su
dd if=/sdcard/twrp.blob of=/dev/block/mmcblk0p4
Then reboot to complete installation.
sbdags said:
Whoa! You don't delete a recovery Just install TWRP and it will overwrite CWM.
Follow the instructions in the TWRP thread using goomanager or download the CORRECT version for your device form the teamwin web site and use the following from a PC
rename the downloaded file to twrp.blob and reboot to the bootloader / fastboot screen
Code:
fastboot -i 0x0B05 flash recovery twrp.blob
fastboot -i 0x0B05 reboot
or from a terminal emulator on the device:
Save it to the root of your /sdcard directly (internal memory only) and rename it to twrp.blob
Launch terminal emulator or connect to your computer and open an adb shell, then type the following:
Code:
su
dd if=/sdcard/twrp.blob of=/dev/block/mmcblk0p4
Then reboot to complete installation.
Click to expand...
Click to collapse
thanks
now I install twrp and i want to update from jb 4.1 to jb 4.2 and i downloaded jb 4.2 frimware (WW_epad-user-10.6.1.14.8) from asus global site.can you help me how to update my tablet to this version?(my tablet is unlocked so suggest me a way that doesn't cause a (hard or soft) brick) thanks a lot
nasiroddin said:
thanks
now I install twrp and i want to update from jb 4.1 to jb 4.2 and i downloaded jb 4.2 frimware (WW_epad-user-10.6.1.14.8) from asus global site.can you help me how to update my tablet to this version?(my tablet is unlocked so suggest me a way that doesn't cause a (hard or soft) brick) thanks a lot
Click to expand...
Click to collapse
You can just flash the update file from TWRP. You will loose your custom recovery and root if you flash the stock rom. So you would have to re-install TWRP and root again.
If you come from any kind of custom rom it's highly recommended to do a clean install of the stock rom. Wipe everything, don't restore apps from a backup (their data should be ok to restore), install all your apps from the Play Store.
Sent from my DROID4 using Tapatalk 2

flash any recovery for any android device (root) from terminal EMULATOR

SOME OF YOU HAVE PROBLEM WITH ROM MANAGER(LIKE ME) AND SOME WITH COMPUTER THATS WHY ITS THE PERFECT(99.9 % WORKING METHOD) TO FLASH CUSTOM RECOVERY VIA TE
TUTORIAL
YOU SHOULD BE ROOTED
I DONT HELD RESPONSIBLE IF SOMETHING HAPPENS TO UR BELOVED phone
1 NOW DOWNLOAD FLASH_IMAGE( http://www.mediafire.com/?7pkcte8gcyn9pet)
2 now download any recovery for your device and extract the "RECOVERY.IMG" ONLY and place it in /sdcard/
3 extract the flash_image
4 USING ROOT MANAGER OR ANY OTHER FILE MANAGER(THAT GIVES YOU ROOT ACCESS) PUT FLASH_IMAGE IN /SYSTEM/BIN ya change ots permission to rwxr-xr-x(thanka for rembering coodingdroid)
5 IN TERMINAL EMULATOR
TYPE
su
it will prompt for root access allow it
then type this
flash_image recovery /sdcard/recovery.img
(and press enter)
you will now get this
#
now type reboot recovery
and you have got a new recovery for your phone
press thanks if i helped you

upgrade recovery

how to upgrade recovery plz
ajstyles667 said:
how to upgrade recovery plz
Click to expand...
Click to collapse
its simple
the same way you install ur 1st recovery flash via fastboot
ajstyles667 said:
how to upgrade recovery plz
Click to expand...
Click to collapse
The simplest way.
Download terminal emulator from play store..
Rename the recovery to recover.img and place it in root of your sd card .i.e /sdcrad.
Open terminal emulator..
type su
allow permission
type cd /sd card
Type flash_image recovery recovery.img
Reboot recovery Recovery updated.. :good:
Thanx bro
Sent from my HTC Explorer A310e using xda app-developers app
shubhojit89 said:
The simplest way.
Download terminal emulator from play store..
Rename the recovery to recover.img and place it in root of your sd card .i.e /sdcrad.
Open terminal emulator..
type su
allow permission
type cd /sd card
Type flash_image recovery recovery.img
Reboot recovery Recovery updated.. :good:
Click to expand...
Click to collapse
may be its 'flash_image flash recovery recovery.img' or you can install via recovery installer app. It's much easier.

Can't flash latest TWRP, and lost my old install of it. Help?

Hi all,
I was running LineageOS 14.1 on my H830 with TWRP 3.2.1.0. Installed the newest nightly release via the OTA updater, which screwed up. System wouldn't boot, but I could get into TWRP. I ended up having to install it via the TWRP install option, and then had to run this code in TWRP's terminal:
dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc
to get out of the boot loop that I had.
Now I have the latest LineageOS, but I cannot boot into TWRP recovery. I have the TWRP app and have root from Magisk. I tried flashing via the app, and it gives me a success message, but when I try to boot into recovery either via the app or using power + volume, it takes me to fastboot mode. I tried flashing via adb, but this still didn't work (was getting Failed: remote: unknown command). Really need TWRP back, as I want to switch to XenonHD. Any help?
Update:
Solved thanks to @autoprime
Method (flash via dd):
dl latest twrp from h830 page on twrp.me
rename to twrp.img
place in same folder as install location for adb client (i use Minimal ADB + Fastboot)
push to /sdcard using adb client (adb push twrp.img /sdcard/twrp.img)
open adb shell (type adb shell)
type su
type appropriate dd command found on install guide on device page on twrp.me (in this case: dd if=/sdcard/twrp.img of=/dev/block/platform/soc/624000.ufshc/by-name/recovery)
if permissions denied even if you have root:
go to developer settings
enable local terminal app
open and type su
grant super user permissions
type dd if=/sdcard/twrp.img of=/dev/block/platform/soc/624000.ufshc/by-name/recovery
reboot into recovery via adb (adb reboot recovery) or via key combo (turn off, then hold power + volume down till lg logo, then let go of power for a second and then hold again until twrp appears)
and you're good to go!

Categories

Resources