[Miscellaneous Android Development] Naveen56:
​

Team Win Recovery Project (TWRP) is an open-source software custom recovery image for Android-based devices. It provides a touchscreen-enabled interface that allows users to install third-party firmware and back up the current system which are functions often unsupported by stock recovery images. It is, therefore, often installed when flashing, installing, or rooting Android devices, although it isn't dependent on a device being rooted prior to installation.

In my view you have already enabled Developer Options and unlocked bootloader. Also you have ADB drivers installed.

Note: This is not a port and the recovery is built from Omni Source. So you will not faces any issues (atmost). Everything you do to your smartphone is your responsibility and we (and I) are here to help you. Follow instructions properly to customize your device.

Important:

This recovery is based on November 2018 update. We have 3 updates (December 2019, July 2020 and October 2020) so TWRP will be overwritten. To fix this.

1. Either we have to update twrp OR

2. Root first then flash TWRP (this worked for me with December update but I highly doubt if it works with October 2020 update) OR

3. Someone share stock recovery of latest October update so I can update source and TWRP. You can PM me for instructions on this.

OEM Unlock

1. First enable OEM Unlock available in the developer settings.

2. Install ADB drivers and use this command to enter into fastboot mode.

adb reboot bootloader

or

use Power + Volume Up buttons after shutdown/power off. Then choose fastboot mode with volume key as navigation.​

3. Use the below command to unlock OEM.

fastboot oem unlock

Follow onscreen instructions.

4. For flashing TWRP go on reading.

Download:

1. AndroidFileHost

2. Github

Instructions:

1. Download the TWRP. Open Command Prompt (CMD) or Terminal and connect your mobile to PC using USB cable.

2. Enable USB Debugging, then type the below command and hit enter.

adb reboot bootloader

3. Use the below command if your device is recognized in the fastboot mode by issuing below command:

fastboot devices

If your device is not recognized then disconnect and reconnect the cable properly.

4. Now flash the img file you have downloaded from the link above and it is named as TWRP_recovery.img, use below command.

fastboot flash recovery TWRP_recovery.img

5. It takes few seconds to flash and after that you can enter Recovery mode by using below command.

fastboot oem reboot-recovery

6. It takes 5 - 10 sec at TWRP main screen and you need not worry about that.

7. TWRP will ask for Decryption password. Tap on cancel.

8. You have to Format Data if you want to access Internal Storage.

9. You have to flash Magisk if boot.img is not patched (I can extend this thread on this on user request).

10. To take back-ups you first need to Format, otherwise TWRP won't work to its potential.

Happy TWRPing.

Update: Android 10 GSIs are working. (Need update on Android 11)

Working:

1. OTG will recognize.

2. You can push or pull files between smartphone and PC.

Issues:

1. MTP wont work.

2. Decryption does not work. So take backups into Micro Sdcard.

3. You can post them here.

Need:

1. I need one or two testers to check whether this recovery is working (for me it is working) to its full extent and can flash GSIs. Working.

2. I have unlocked this device long ago so I forgot the command used earlier. Anyone of you can share that command to help others and also I will extent this thread from unlocking to flashing GSIs. (I know 3 commands but don't know which one I used)

Sources:

1. Minimal TWRP: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni

2. YU5014 device tree: https://github.com/buddi56/android_device_YU_YU5014

TWRP Version: 3.3.1-0

Thanks to:

YU Team,

TWRP Team,

XDA Team.

Build Date: 19 Dec, 2019

Status: Stable

Made by: Me

Thread Created: 21 Oct, 2019

Last Updated: 23 March, 2021