• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] Unlock permission + Unlock bootloader + TWRP + LineageOS + Open GApps

Search This thread

parphane

Member
Apr 11, 2012
27
8
Updated post for Lineage OS 14.1
Thanks a lot to @Anik_khan , @P.Kosunen , TWRP and CM team and all XDA forumers who asked questions that allowed me to update my phone.

I am not responsible for any trouble you might run into, always cross-check your sources.
Whole process took me 1h15 / 1h30

Will rework/add links upon request, will quote names upon request,

Thanks,

Sources/Links:

Request unlocking permission:
  • Go to http://en.miui.com/unlock/
  • "Unlock Now" (refresh if page fails to load)
  • Create a "Mi Account ID" (you can also create it from your phone Miui app)
  • Apply for unlocking permission: Your Name, Phone number, Justification "Android developer"
  • Download "Mi Unlock": http://en.miui.com/unlock/download_en.html
  • Extract "Mi Unlock" file ("MiFlashUnlock")

Install developer ROM:
  • Download Miflash tool http://api.bbs.miui.com/url/MiFlash
  • Install Miflash tool
  • Restart computer as per section: Windows 10 "Disable driver signature enforcement"
  • Download last Chinese developer ROM for Xiaomi Redmi 3 http://en.miui.com/a-234.html
  • Note: Global ROM does not allow for ROOT activation
  • Extract ROM, tgz, then tar
  • Reboot to recovery, power off, power on "Vol. up" + "Power"
  • Touch "Download" button (screen goes black)
  • Plug-in USB cable
  • Open Miflash tool
  • Click "Browse" and select directory from ROM extract
  • Select "Flash all" at the bottom
  • Click "Refresh" and then "Flash", wait for install
  • ...
  • Maintain "Power" to reset the phone, let it boot
  • (You can also install whatever official MIUI ROM you want from there http://en.miui.com/a-234.html)

Windows 10 "Disable driver signature enforcement":
  • Maintain "Shift" key while you click the "Restart" option in Windows
  • "Troubleshoot" > "Advanced options" > "Startup settings" > "Restart"
  • ...restarting...
  • F7 "Disable driver signature enforcement"

Unlock Bootloader:
  • AFTER YOU GET APPROVAL SMS (last request took 15 minutes to be accepted)
  • Ensure you installed a developer ROM ("Flash all")
  • Skip everything
  • Note: Login with your MIUI account if you have never done it, do NOT activate FIND application
  • Power OFF device
  • Start fastboot, hold "Vol. down" + "Power"
  • Execute "MiFlashUnlock.exe" from "Mi Unlock" extract
  • Agree and "Sign in" with your created "Mi Account ID"
  • Connect phone
  • Unlock
  • Restart...

Install TWRP:
  • Connect device to computer
  • Connect to WIFI
  • Activate Root on the phone (different from TWRP): Setting > Permissions > Root access
  • Activate root access
  • Phone will install and restart
  • ...meanwhile...
  • Install Android tools https://developer.android.com/studio/index.html#linux-bundle-size
  • (Install Java SDK)
  • ...phone restarted...
  • Run Windows command prompt as administrator
  • "Windows" key, type "CMD", right click "Run as administrator"
  • Execute "cd C:\Program Files (x86)\Android\android-sdk\platform-tools"
  • Or whatever is your path to Android SDK
  • Execute "adb devices", ensure that your phone is listed
  • Execute "adb root"
  • Execute "adb disable-verity" (Note: You do not need to perform this step again if you want to UPDATE TWRP version)
  • Restart... (disable verity to take effect)
  • Download TWRP application
  • http://download.jmzsoftware.com/TWRPManager.apk
  • Copy it at the root of your phone
  • Install it from MIUI embedded file explorer
  • Start TWRP application and wait for phone to prompt for root access
  • Give TWRP Root acess: Settings > Permissions (Device) > Root access
  • Allow TWRP root access (Next to all, long...)
  • Launch TWRP
  • Click sandwich menu ///
  • Install TWRP
  • DEVICE INFO > Device name: Xiaomi Redmi 3 / ido
  • INSTALL > Recovery version to install > click latest
  • INSTALL > Install Recovery
  • TWRP will download and install itself (Click Yes to try flash, Yes to reboot to recovery)

Install CM and GApps:

Recovery reboot:
- On CM
- Using ADB
  • Run command prompt as administrator
  • cd C:\Program Files (x86)\Android\android-sdk\platform-tools
  • adb reboot recovery
 
Last edited:

Rotpeter

Member
Feb 8, 2016
27
6
Hey guys. Thanks for the guide, I'm stuck however. I installed the latest global developer ROM in order to root and flash twrp, but there is no native option to root the ROM. What am I doing wrong? Bootloader is unlocked with xiaomi approval. Or is root China Rev ROM exclusive? If yes, the op should make that very clear, so that even dimwits like me understand it. :)
 

parphane

Member
Apr 11, 2012
27
8
Hey guys. Thanks for the guide, I'm stuck however. I installed the latest global developer ROM in order to root and flash twrp, but there is no native option to root the ROM. What am I doing wrong? Bootloader is unlocked with xiaomi approval. Or is root China Rev ROM exclusive? If yes, the op should make that very clear, so that even dimwits like me understand it. :)

Hi there,
I did not use global ROM, true, don't know if possible with it.
Did you perform this step?
- Connect to WIFI
- Setting > Permissions > Root access
- Activate root access
The phone will then download a bunch of things and reboot.
After that you will be able to install TWRP and give it root access.

If not, tell me, I will update guide,
and you can reinstall Chinese ROM, to complete process, a matter of a few minutes. ;)

Let me know
 
Last edited:

Rotpeter

Member
Feb 8, 2016
27
6
Thanks for your help! I already fixed in in the meantime, though. The permissions app only shows the root-button, if you are on the Chinese dev ROM. Which I wasn't (global one instead). Maybe you should add some extra weight to that in the guide. Other than that, it worked like a charm! Thanks buddy!

Edit: Sorry, didn't see that you pretty much already wrote all of that. :D
 
Last edited:

potkan-ds9

New member
Aug 6, 2015
2
0
Hi,
I have problem after this step
Install TWRP:
TWRP will download and install itself (Click Yes to try flash, Yes to reboot to recovery)

Answer from TWRP is Success, but after reboot to recovery there is no TWRP, just MI logo all the time.

Model is Redmi 3S Global

and of course:
C:\xx\platform-tools>adb disable-verity
Verity already disabled on /system
 
Last edited:

parphane

Member
Apr 11, 2012
27
8
Have you downloaded the TWRP version for the 3 S? Not the Redmi 3?
I am not sure what are the differences here, but maybe the phone cannot boot if it is the wrong version.
 

parphane

Member
Apr 11, 2012
27
8
Hi all,
I am on:
- 02-06 nightly (https://download.lineageos.org/ido)
- ARM64 7.1 Stock GApps (http://opengapps.org/)

Camera app is not working at all, crashing instantly,

Do you know what could I have missed? Maybe not wiped correctly?
What could I do to troubleshoot/fix?

Thanks,

Answered: Inhibit Camera app automatic updates for the moment...
 
Last edited:

Galdanor

Member
Feb 22, 2011
6
0
Hello there,

I need a little help : I get stuck trying to install the latest Chinese developper ROM.
I get a "ping target failed" error, as seen in the pic here : http://hpics.li/32bd109

Can you help me please ?

Galdanor
 
Last edited:

parphane

Member
Apr 11, 2012
27
8
Hello there,

I need a little help : I get stuck trying to install the latest Chinese developper ROM.
I get a "ping target failed" error, as seen in the pic here : http://hpics.li/32bd109

Can you help me please ?
Galdanor

Hmm, never seen that one,
Just to be sure, you did the following steps:
- Restart computer as per section: Windows 10 "Disable driver signature enforcement"
[...]
- Reboot to recovery, power off, power on "Vol. up" + "Power"
- Touch "Download" button (screen goes black)
- Plug-in USB cable
- Open Miflash tool... (this I know you did cause of the screen capture)

Do you have any devices identified as not properly installed in the Window peripherals?
Maybe try and install Android tools (also in the tuto) before and try to issue commands to your device.

Also, Googling "ping target failed xiaomi" I found that: http://en.miui.com/thread-354050-1-1.html
You might want to use older tool version.

Let us know
 
Last edited:

parphane

Member
Apr 11, 2012
27
8
This rom drain my battere a lot. It's a Shame. 8 hours in aeroporto mode, 20% battery less
Maybe you did something wrong cause most of the people here on XDA have no issue.
Try using an older ROM, or clean install... let us know!

By the way, this is just a guide to flashing,
Which I believe was useful for you cause you were able to change ROM.

Don't report bugs/issues on the ROM here, it is just a guide, report them on the ROM thread itself: https://forum.xda-developers.com/redmi-3/development/rom-cyanogenmod-14-0-t3481701
 

qwerqw

Member
Oct 6, 2015
12
0
Hey guys,

I really do not know what to do.

with redmi one - i did not have problems - ok only one time ;)

now I tried to put new international rom on my redmi 3 in holiday. I really treid it for at least 10 hours now! no success. I think, i am stupid....

flash unlock with sms and tool "miflash_unlock-en-2.2.406.5" worked.

next step is to power off and turn on with power up and power button.
If I do this, the redmi device always goes to fastboot picture rabbit and does not react to anything.

At this point I could not do anything. I always waited until accu was empty (1day) and then try it again in some other way.

Is there some really good guide? I do not know what i am doing wrong.

thank you in advance.

my redmi 3s crashed yesterday and i have the same problem now.
see here:
https://forum.xda-developers.com/xiaomi-redmi-3s/help/phone-crashed-fingerprint-deleted-120-t3603930

for redmi 3 i downloaded a lot:
roms
02 MiFlashUnlock
03 TWRP
05 Root SuperSU

TWPR and RootSuperuser i do not get installed, too.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Updated post for Lineage OS 14.1
    Thanks a lot to @Anik_khan , @P.Kosunen , TWRP and CM team and all XDA forumers who asked questions that allowed me to update my phone.

    I am not responsible for any trouble you might run into, always cross-check your sources.
    Whole process took me 1h15 / 1h30

    Will rework/add links upon request, will quote names upon request,

    Thanks,

    Sources/Links:

    Request unlocking permission:
    • Go to http://en.miui.com/unlock/
    • "Unlock Now" (refresh if page fails to load)
    • Create a "Mi Account ID" (you can also create it from your phone Miui app)
    • Apply for unlocking permission: Your Name, Phone number, Justification "Android developer"
    • Download "Mi Unlock": http://en.miui.com/unlock/download_en.html
    • Extract "Mi Unlock" file ("MiFlashUnlock")

    Install developer ROM:
    • Download Miflash tool http://api.bbs.miui.com/url/MiFlash
    • Install Miflash tool
    • Restart computer as per section: Windows 10 "Disable driver signature enforcement"
    • Download last Chinese developer ROM for Xiaomi Redmi 3 http://en.miui.com/a-234.html
    • Note: Global ROM does not allow for ROOT activation
    • Extract ROM, tgz, then tar
    • Reboot to recovery, power off, power on "Vol. up" + "Power"
    • Touch "Download" button (screen goes black)
    • Plug-in USB cable
    • Open Miflash tool
    • Click "Browse" and select directory from ROM extract
    • Select "Flash all" at the bottom
    • Click "Refresh" and then "Flash", wait for install
    • ...
    • Maintain "Power" to reset the phone, let it boot
    • (You can also install whatever official MIUI ROM you want from there http://en.miui.com/a-234.html)

    Windows 10 "Disable driver signature enforcement":
    • Maintain "Shift" key while you click the "Restart" option in Windows
    • "Troubleshoot" > "Advanced options" > "Startup settings" > "Restart"
    • ...restarting...
    • F7 "Disable driver signature enforcement"

    Unlock Bootloader:
    • AFTER YOU GET APPROVAL SMS (last request took 15 minutes to be accepted)
    • Ensure you installed a developer ROM ("Flash all")
    • Skip everything
    • Note: Login with your MIUI account if you have never done it, do NOT activate FIND application
    • Power OFF device
    • Start fastboot, hold "Vol. down" + "Power"
    • Execute "MiFlashUnlock.exe" from "Mi Unlock" extract
    • Agree and "Sign in" with your created "Mi Account ID"
    • Connect phone
    • Unlock
    • Restart...

    Install TWRP:
    • Connect device to computer
    • Connect to WIFI
    • Activate Root on the phone (different from TWRP): Setting > Permissions > Root access
    • Activate root access
    • Phone will install and restart
    • ...meanwhile...
    • Install Android tools https://developer.android.com/studio/index.html#linux-bundle-size
    • (Install Java SDK)
    • ...phone restarted...
    • Run Windows command prompt as administrator
    • "Windows" key, type "CMD", right click "Run as administrator"
    • Execute "cd C:\Program Files (x86)\Android\android-sdk\platform-tools"
    • Or whatever is your path to Android SDK
    • Execute "adb devices", ensure that your phone is listed
    • Execute "adb root"
    • Execute "adb disable-verity" (Note: You do not need to perform this step again if you want to UPDATE TWRP version)
    • Restart... (disable verity to take effect)
    • Download TWRP application
    • http://download.jmzsoftware.com/TWRPManager.apk
    • Copy it at the root of your phone
    • Install it from MIUI embedded file explorer
    • Start TWRP application and wait for phone to prompt for root access
    • Give TWRP Root acess: Settings > Permissions (Device) > Root access
    • Allow TWRP root access (Next to all, long...)
    • Launch TWRP
    • Click sandwich menu ///
    • Install TWRP
    • DEVICE INFO > Device name: Xiaomi Redmi 3 / ido
    • INSTALL > Recovery version to install > click latest
    • INSTALL > Install Recovery
    • TWRP will download and install itself (Click Yes to try flash, Yes to reboot to recovery)

    Install CM and GApps:

    Recovery reboot:
    - On CM
    - Using ADB
    • Run command prompt as administrator
    • cd C:\Program Files (x86)\Android\android-sdk\platform-tools
    • adb reboot recovery
    1
    It took me a few days working on it, but I got it unlocked and running aosp eventually.

    After testing a lot of roms I found a specific Chinese developer Rom that I was able to write and then I was able to use Mi unlock tool; no wait time required. I don't remember the exact version, but I know it was older (miui 7 or 8) and that I found it in a tutorial for unlocking the phone. It didn't work with any of the European roms I tried.

    The good thing is that redmi 3 doesn't have the rollback protection, so you should be able to write any rom without bricking the phone (there is always a risk, but it's lower on the redmi 3). Good luck!

    Thanks to your advice I've found this blog post that points Redmi 3 need MIUI 7 CN developer to unlock bootloader, and this other post from same blog has a screencap that shows exact version MIUI 7 CN 6.3.31 Beta. So I looked for it at Downmi tool, and flashed with MiFlash v20151028, because newer version threw some errors. Then simply used unofficial XiaoMiTool v2 by Francesco Tescari for linux and it got unlocked.
    Thank you so much.
    May this helps someone.