- 1. Foreword
- 2. Solution
Bypassing Android FRP and Setup Wizard with TWRP and Magisk
If you want to go directly to the solutions, click here.
This post is not for those who are unfamiliar with modding their phones.
I’ve got a Redmi Note 5 (a.k.a.: Redmi Note 5 Pro (India), codename
I used a special Mi Account and directly unlocked the bootloader without 360h wait time.
Flash TWRP Recovery with fastboot, reboot to recovery, dual-wipe, flash: RR -> GApps -> Magisk.
But this version or ResurrectionRemix is not perfect: USB OTG is not detecting anything, random freezing…
Soon after that, I decided to flash back to MIUI Global again.
Dual-wipe, flash, reboot, finish the setup wizard.
But one thing is beyond my expectation:
! Not signed in
To use this phone, you first have to sign in to an owner’s Google Account in use on this phone when it was last reset.
Because you haven’t done so, you have to set up the phone again.
[SET UP PHONE]
Most of the instructions about “Bypassing Google FRP” on the Internet is generally:
- Trying to open a browser in the setup wizard.
- Opening the Google app.
- Entering settings.
But there’s no “Vision Settings” on MIUI. So I decided to remove the setup wizard.
How to do, then?
Following the old way into recovery, I found that the TWRP that I flashed in before, was overriden by MIUI.
That’s not a problem, perform these following commands:
fastboot flash twrp.img
After entering the TWRP, select the
Mount menu, and mount the
Back to the
Advanced menu, select
Enter this folder:
Find the file called
install-recovery.sh, rename it to
install-recovery.sh.bak (of course, you can delete it safely if you like).
Now the system wouldn’t be able to replace our lovely TWRP.
After that, back to the parent folder, and go to this folder:
Please make sure that MagiskSU has been flashed on your device. Or the following instructions cannot be completed.
Reboot to system.
We could find something different when we boot into the system: because the Setup Wizard was killed by us, you cannot slide down the status bar (AOSP), or use neither the home key nor the multitask key.
Let’s solve the problem now.
We need to install a
You can find the application package at APKMirror.
Terminal Emulator, type in this command.
Confirm the pop-up of the Magisk Manager.
And do these following commands in order:
After that, your phone will reboot itself.
And it’s done!
Enjoy your journey!