Guide to Flash TWRP (Unofficial) and Root Redmi Y2/S2 (YSL)

Novikovmex

Member
Aug 29, 2018
11
4
0
Previous TWRP

I was told, previous versions to TWRP 3.2.1.0 can help against the TWRP asking password problem. I wonder if somebody has any info where to get one suitable for redmi S2. Because this one gets pretty useless if you use the one-step ROM-flasing- magisk-flashing procedure (all the partitions remain encrypted when you enter recovery the next time)
 

Novikovmex

Member
Aug 29, 2018
11
4
0
Finally I wiped all the partitions and flashed the factory rom, in this way I got a factory new phone, with stock recovery.
Then I decided to install magisk over fastboot:
fastboot boot recovery.img
Then I flashed magisk.zip (from SD card) over twrp.
Now have my Redmi s2 rooted, with stock ROM and stock recovery.
I am not sure if magisk will survive the next system update, probably not, - in this case I can reinstall magisk as described
Update: no, it does not survive
And bad news: after upgrading through updated the new OTA miui 10.3.3, I can not boot into recovery as I did before:
"fastboot boot recovery.img " does not boot into recovery. It does display "booting" but nothing happens.
What is wrong? How to solve this?
 
Last edited:
  • Like
Reactions: improbablepotato

Novikovmex

Member
Aug 29, 2018
11
4
0
Could not get solution to the above twrp not booting problem.
But could install magisk flashing boot image.
1. Get boot.img from the installed OTA ROM
2. Patch it with magisk manager
3. Copy patched image to the PC
4. Go to fastboot mode
5. Flash the patched image via fastboot:
fastboot flash boot magisk_patched.img
Then fastboot reboot.
Now my Redmi s2 is rooted with stock recovery and stock ROM
 
  • Like
Reactions: improbablepotato

improbablepotato

New member
Sep 10, 2019
4
0
0
I was wondering if anyone could give me a hand.

When I try to flash TWRP, I get stuck on "booting..." I waited 30 minutes and then rebooted the phone manually. The TWRP Toolkit then says:

FAILED (status read failed (Too many links))
finished. total time: 1882.228s
Press any key to continue . . .

I have all the correct drivers (including adb) and files. My bootloader is unlocked, and the boot img file is in the TWRP file. USB debugging is on, too.

Has anyone else had this issue and solved it?

---------- Post added at 10:23 AM ---------- Previous post was at 10:13 AM ----------

Could not get solution to the above twrp not booting problem.
But could install magisk flashing boot image.
1. Get boot.img from the installed OTA ROM
2. Patch it with magisk manager
3. Copy patched image to the PC
4. Go to fastboot mode
5. Flash the patched image via fastboot:
fastboot flash boot magisk_patched.img
Then fastboot reboot.
Now my Redmi s2 is rooted with stock recovery and stock ROM
Hey pal, do you think this might work for me? I described my issue above.
 

Novikovmex

Member
Aug 29, 2018
11
4
0
I was wondering if anyone could give me a hand.

When I try to flash TWRP, I get stuck on "booting..." I waited 30 minutes and then rebooted the phone manually. The TWRP Toolkit then says:

FAILED (status read failed (Too many links))
finished. total time: 1882.228s
Press any key to continue . . .

I have all the correct drivers (including adb) and files. My bootloader is unlocked, and the boot img file is in the TWRP file. USB debugging is on, too.

Has anyone else had this issue and solved it?

---------- Post added at 10:23 AM ---------- Previous post was at 10:13 AM ----------



Hey pal, do you think this might work for me? I described my issue above.
I think this method is rather universal. The only delicate thing is to have THE SAME boot.img file to submit it for patching via magisk manager. That is you should check the build of the system currently installed on your phone AND find a ROM with exactly the same build number. It should be a zip file. You have to open it and extract the boot.img file. After patching it via magisk manager you obtain the file you can flash via
fastboot flash boot magisk_patched.img
Before flashing check that
fastboot devices
list your device.
BUT if you can not boot the system, you will not be able to patch.
If this is the case, you could flash the entire ROM via fastboot and then proceed as described
 
Last edited:
  • Like
Reactions: improbablepotato

improbablepotato

New member
Sep 10, 2019
4
0
0
I think this method is rather universal. The only delicate thing is to have THE SAME boot.img file to submit it for patching via magisk manager. That is you should check the build of the system currently installed on your phone AND find a ROM with exactly the same build number. It should be a zip file. You have to open it and extract the boot.img file. After patching it via magisk manager you obtain the file you can flash via
fastboot flash boot magisk_patched.img
Before flashing check that
fastboot devices
list your device.
BUT if you can not boot the system, you will not be able to patch.
If this is the case, you could flash the entire ROM via fastboot and then proceed as described
Thank you for your reply. I will try it when I get the chance.
 
Mar 30, 2020
10
0
0
TWRP toolkit default Password.

Dear Support,
What is TWRP toolkit default Password. Pleas help me ASAP

Please help


Here I present you my toolkit for flashing TWRP and rooing Redmi Y2/S2/YSL.

Requirements
1. PC
2. Fastboot Drivers
3. Unlocked Bootloader (Guide)
4. Flashing TWRP Toolkit
5. Magisk flashable file

Steps for Flashing TWRP
1. Download the file. Link given in the end of the threads.
2. Boot your device into Fastboot mode (in power off state press power button + volume down button).
3. Connect your device from pc.
4. Now open the downloaded folder and run the file "Flash.bat".
5. Then press any key to continue.
6. Now your phone will automatically boot into TWRP.
7. Now you have sucessfully flashed Twrp.8. Before rebooting your device do flash lazyflasher-no-verity-opt-encrypt.zip.

Note :-
* If you don't flash Lazy Flasher then the Custom recovery will be replaced with stock recovery in next Boot.

Steps for Rooting
1. Download and place the Magisk zip fiile into your device.
2. Boot your device into TWRP Recovery (in power off state press power button + volume up button).
3. Select the option of 'Install' and then locate the directory where you have placed the Magisk file and select it.
4. After selecting the file, swipe the arrow loacted at the bottom.
5. When the flashing is completed click on 'Reboot System'.
6. After the phone has booted successfully install magisk apk.


Congrats you have rooted your device !!

Note :-
* This is Exclusively for Redmi Y2/S2/YSL and if you try this on any other device probably you may be bricking your device!!
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed.
* First boot may take upto 15-20 mins. So don't panic.

Links :-
* TWRP Toolkit - Click here
* Lazy Flasher - Click here
* Magisk - Click here
 
Mar 30, 2020
10
0
0
Help required in RedmiY2 root

Dear All,
On my Redmi Y2 after unlocking I flashed TWRP 3.2.1-0-ysl.



On TWRP 3.2.1-0-ysl Lazyflasher flashed

But it asking for password to decrypt data. I removed device PIN & Patterns before flashing. But may be inbuilt App lock & hide pattern & pin not removed.

So, I tried to enter App lock & hide PIN & Pattern individually. Also, Pin+Pattern & Pattern+Pin (Considered 3*3 matrix for pattern input). But it not unlocked.




I could see some folders with memory under Back Up Option of TWRP. (TWRP 3.2.1-0-ysl)




what should I do?

To remove such password, I again flashed another TWRP 3.2.3

Now after from TWRP 3.2.1-0-ysl when I click Reboot & then fastboot it goes to TWRP 3.2.3.

Password not asking here now for decrypt.
And here I could not see any folders with data/memory under back up.

Also, storage shows 0MB internal storage & NO OS installed errors.


After reboot & recovery, pressing Up volume & Power button I could go to TWRP 3.2.1-0-ysl

I want to save my data & root the device.

Can I do back up & save data. Then do flash Factory ROM & restore back up? Is it possible? How?

What should I do?

Please help ASAP.
 
Mar 30, 2020
10
0
0
use xiaomi eu roms they dont ask twrp password
Means After flashing official ROM no password will be asked, Right?
And what about data? Will it be erased or I will get data back?
Please reply ASAP.

---------- Post added at 11:15 AM ---------- Previous post was at 11:13 AM ----------

So I got stuck on Bootscreen. :(
I flashed MIUI with TWRP and was back on stockrom with stockrecovery. :)
Then I booted TWRP temporarely with ADB. (adb command: fastboot boot twrp.img )
Now I installed Magisk and I am happy now ;)
Just DON´T install TWRP. Boot it temporarely !

I used MIUI from here: https://www.theandroidsoul.com/download-miui-10/
==========
In this case did you got your data back or it was erased?
Please reply

---------- Post added at 11:16 AM ---------- Previous post was at 11:15 AM ----------

So I got stuck on Bootscreen. :(
I flashed MIUI with TWRP and was back on stockrom with stockrecovery. :)
Then I booted TWRP temporarely with ADB. (adb command: fastboot boot twrp.img )
Now I installed Magisk and I am happy now ;)
Just DON´T install TWRP. Boot it temporarely !

I used MIUI from here: https://www.theandroidsoul.com/download-miui-10/
==========
In this case did you got your data back or it was erased?
Please reply
 

Skyfire1

Senior Member
Jan 2, 2015
119
20
0
Sorry man, this is so long ago that I can't remember. Wasn't my daily driver anyway... Afaik to fix zhe password issue you have to format data partition...
 
Mar 30, 2020
10
0
0
Thanks & help me

Sorry man, this is so long ago that I can't remember. Wasn't my daily driver anyway... Afaik to fix zhe password issue you have to format data partition...
Thanks First of all,
I am not facing any password issue right now. So what should I do?
Proceed as per regular process?
But I could not go to regular Android Boot.
So should I flash Regular ROM downloaded from Xiaomi website?

Please reply me.
What ever it is. No issue. Thanks in advance.
 

Skyfire1

Senior Member
Jan 2, 2015
119
20
0
I'll try to help but data on your phone will be erased! First some questions...
Does your pc recognize your phone when you plug it in by usb? Is twrp on the phone installed? Did you install 32 or 64 bit android? Is your phone registered with xiomi account? Is your phone officially unlocked ( bootloader )? There are some ways to revive your phone. Maybe intalling xiaomi rom with miflash tool or installing custom firmware like xiaomi.eu or cr droid ( new 64 bit operating system much better than 32 bit but needs new firmware) Maybe istalling twrp temporarily by adb and use it to flash custom rom.
 
Last edited:
Mar 30, 2020
10
0
0
Help required

I'll try to help but data on your phone will be erased! First some questions...
Does your pc recognize your phone when you plug it in by usb? Is twrp on the phone installed? Did you install 32 or 64 bit android? Is your phone registered with xiomi account? Is your phone officially unlocked ( bootloader )? There are some ways to revive your phone. Maybe intalling xiaomi rom with miflash tool or installing custom firmware like xiaomi.eu or cr droid ( new 64 bit operating system much better than 32 bit but needs new firmware) Maybe istalling twrp temporarily by adb and use it to flash custom rom.


Hi,
Does your pc recognize your phone when you plug it in by usb?
Ans- Yes when I connect my phone in to fastboot & gives command 'fastboot devices', i can see my device

Is twrp on the phone installed?
Ans- Yes TWRP 3.2.1-0-ysl installed but faced password error so again flashed TWRP 3.2.3. Now I can see both on mobile.

Did you install 32 or 64 bit android?
I just updated my software /OS in march 2020. But not sure about OS bit system. It was purchased in Aug 2018 approx. and i never changed OS/ROM. just udated. May be its by default 32 bit.

Is your phone registered with xiomi account?
Ans - My phone is registered with Xiomi account

Is your phone officially unlocked ( bootloader )?
Ans- My boot loader is officially unlocked by myself.
 

Skyfire1

Senior Member
Jan 2, 2015
119
20
0
Ok, so you can't use twrp right and installing a rom leads to bootloop? Are you using lazy flasher with miui rom?
Afaik when twrp asks for password then it is for the data partition. To fix it you need to format ( not wipe ) data partiton. If the password is for twrp itself , that's new to me.
But trying a different twrp could help. If twrp is up and running you can download any 32 bit rom from xda and try installing it. If that fails try a 64 bit. Twrp versions are different for 32 and 64 bit roms. You can always try flashing original xiaomi rom with miflash too. You may need to try different versions of miflash. Newest one first. Flashing with miflash will restore all partitions to factory settings.
Lazy flasher always made my s2 bootloop, this is because of miui. Never had to use lf on customroms.

---------- Post added at 01:15 PM ---------- Previous post was at 01:04 PM ----------

Just reread your last post. I think I misunderstood you. It's just the bootloop now that's the problem? I only have bad mobile connection now and reading on the screen is difficult for me so I'm missing some clues...
 
Last edited:
Mar 30, 2020
10
0
0
Need Help

Ok, so you can't use twrp right and installing a rom leads to bootloop? Are you using lazy flasher with miui rom?
Afaik when twrp asks for password then it is for the data partition. To fix it you need to format ( not wipe ) data partiton. If the password is for twrp itself , that's new to me.
But trying a different twrp could help. If twrp is up and running you can download any 32 bit rom from xda and try installing it. If that fails try a 64 bit. Twrp versions are different for 32 and 64 bit roms. You can always try flashing original xiaomi rom with miflash too. You may need to try different versions of miflash. Newest one first. Flashing with miflash will restore all partitions to factory settings.
Lazy flasher always made my s2 bootloop, this is because of miui. Never had to use lf on customroms.

---------- Post added at 01:15 PM ---------- Previous post was at 01:04 PM ----------

Just reread your last post. I think I misunderstood you. It's just the bootloop now that's the problem? I only have bad mobile connection now and reading on the screen is difficult for me so I'm missing some clues...
==========
Ok. No Problem,
You can see short video of problem described in link. See it properly, as it is very short.
https://drive.google.com/file/d/13UPU7qnPlWvltt4e-C4L35wa0cwYu6gq/view?usp=sharing

What I done?
I unloacked my mobile bootloader for root.
Installed TWRP 3.2.1-0 & faced issue of password for decrypt. After skip step of password still can't boot in to system of MIUI. (May be)
Then I installed another TWRP 3.2.3 but still no boot in to MIUI.
After this I flashed Lazyflasher from TWRP 3.2.1-0

My mobile is Redmi Y2 updated to latest version MIUI 11 in March 2020.

I think, this will clear all situation about my mobile.
Waiting for your reply.
Others also can help me.
 

Skyfire1

Senior Member
Jan 2, 2015
119
20
0
That's weird, booting system starts a different twrp. Maybe the second one is installed as system? My guess would be to format data and system in advanced menu of twrp wipe and install a new OS . If all fails start from scratch with miflash as mentioned above.
 
  • Like
Reactions: [email protected]
Mar 30, 2020
10
0
0
Ok. Now I flashed stock tom with mi flash tool. Now will try for root.
Any idea about redmi y2 android 9 version with miui 11 face any problem with root?
Using TWRP OR ORANGEFOX recovery.
Now I don't want to use twrp.

Also please tell me. After flash ROM , all data /apps gone. After root can I get chat & sms backup?