FORUMS
Remove All Ads from XDA

[GUIDE][KENZO/KATE] Install LineageOS with locked bootloader

273 posts
Thanks Meter: 156
 
By khajiit, Senior Member on 27th January 2017, 07:25 PM
Post Reply Email Thread

Hello guys,
This is my first guide and it is focused on people who just bought their Redmi Note 3 (KENZO/KATE) and having problems with officially unlocking their bootloader. (stuck @ 50% like me)
If you don't want to wait on stock MiUi until you can officially unlock your bootloader (because you need to wait additional ~2 weeks after you received permission from Xiaomi until their servers updated) or you want that extra security layer with locked bootloader this guide is made for you!
Since official LineageOS 14.1 just released, i thought some of you guys are interested in this awesome, easy and safe method.
To save you time searching hours and hours through this forum i made this quick summery.


Downloads :
Instructions : (follow them carefully!)
  • Extract MiUi 8 Global Developer ROM and replace recovery.img (in images folder) with ZCX TWRP's recovery.img
  • Flash using Mi Flash (in EDL mode) and check clean_all
  • After finished flashing process unplug and press [volume up]+[power] until Mi logo shows up then release buttons and it boots to TWRP (change TWRP language from chinese to english: click here)
  • Reboot to system (if you get prompt: "Disable stock recovery replace now" > just swipe to allow disable)
  • Boot to MIUI and complete initial setup (important step - don't skip! first boot will take around 10 minutes)
    -----------------------------------------------
  • Shutdown device and boot to TWRP again
  • (optinal) Backup every partition and safe this backup on an external device
  • Wipe > Advanced Wipe > check Dalvik / ART Cache, System, Data, Internal Storage, Cache > Swipe to Wipe
  • Flash Latest firmware, LineageOS 14.1 and GApps (ARM64, Android 7.1)
  • Reboot to system and you're DONE!!

updated method (works with newest MIUI version) :
There is a new updated method by kuan improved by @N.G. and @razr_96. Thanks for mentioning.

Advantages:
  • no need to download full MIUI fastboot rom
  • much faster method, only takes seconds to flash (instead of 4 minutes and you don't have to complete initial MIUI setup which also takes around 5 minutes)
  • this method is better if you want to stay on MIUI and just want to root
  • you can stay on your current MIUI version (even 7.1.19 which is currently the latest) and don't have to wipe your data
Disadvantages:
  • this doesn't clean everything, i would recommend to clean everything if you want to install a custom rom
  • you have to download a file i can not verify

Instructions : (follow them carefully!)
  • (optinal) Backup your current MIUI data (Settings > Additional settings > Backup & reset > Local backups > Back up) and copy it to an external media
  • Download and extract: Kenzo or Kate
  • (optinal) Replace included ZCX TWRP recovery.img (in images folder) with your preferred TWRP recovery.img
  • Flash using Mi Flash 20160401 (in EDL mode) and check flash all except data and storage (not clean_all like in the method mentioned above)
    BE AWARE: This MiFlash version is different to the MiFlash version mentioned above! This version does only support 64 bit systems and you need atleast Windows 7!
  • After finished flashing process unplug and press [volume up]+[power] until Mi logo shows up then release buttons and it boots to TWRP (change TWRP language from chinese to english: click here)
  • Reboot to system

Video tutorial: https://www.youtube.com/watch?v=rCONN1_IPuU

Troubleshooting :
  • [APP][ROOT][7.1.1]QuickSettings Flashlight fix for all nougat roms
  • If something goes wrong, start over again and follow my guide step by step.
  • This guide only works with MiUi 8 Global Developer ROM 6.11.3 or lower.
  • Put MIUI 8 Global Developer ROM in "C:\ROM" - MiFlash tends to have problems if there are any spaces in folder names.
  • If you flashed something wrong and have no simcard signal anymore or no IMEI look here for help: EFS Recovery Guide
  • If you didn't remove your passcode before you did a backuprestore using TWRP:
    TWRP > Advanced > Filemanager > /data/system > delete locksettings.db

Issues with locked bootloader :
  • none

(advanced technique) Higher security with locked bootloader:
  • Thanks @LeoYL !

    A little addition: If you want a even higher level of security, which is nobody except you can flash packages in recovery, you can create a recovery with limited functions and forced signature verification, with your own keys embedded in that recovery.
    This is just like the original status of nearly all Android devices when they are shipped: only signed OTA update packages can be applied via recovery. Normally, the packages are signed by OEMs; however, you can become the "OEM" by creating your own private key, which is used during package signing.

    Just follow these guides to create a recovery with your own keys. I use CM 13.0 recovery, since it only has basic recovery features, including installing a ZIP file, factory reset, and it has mandatory ZIP signature verification.
    http://mjg59.dreamwidth.org/31765.html
    https://forum.xda-developers.com/sho...59&postcount=2

    The reason why I don't use TWRP is that it allows update packages with any signature. Although you can enforce signature verification, it can also be switched off in TWRP settings.

    Now you get a recovery which only accepts ZIP packages that are signed with your own private key. The only downside is you need to sign every package you want to flash each time. But this also means that if a stranger picks your lost phone up, they can't tamper your phone's OS. If the "reset protection" feature works with locked bootloader on our Redmi Note 3, the only distance between our phones' security and Google devices' is edl mode and encryption.

Wanna try other custom roms?
credits :
  • @The_strix: For his development work
  • @Psy_man: For extracting nougat firmware
  • @kuan: For creating this method (french forum)
  • @Tobsucht TM: For answering my questions

If this guide was helpful to you, don't forget to press the Thanks! button
Enjoy your new custom rom!

khajiit
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170204-231203.png
Views:	9190
Size:	135.2 KB
ID:	4029506   Click image for larger version

Name:	Screenshot_20170204-231212.png
Views:	9074
Size:	140.4 KB
ID:	4029507   Click image for larger version

Name:	Screenshot_20170204-231153.jpg
Views:	9196
Size:	98.3 KB
ID:	4029508   Click image for larger version

Name:	unnamed.png
Views:	8644
Size:	139.7 KB
ID:	4029509   Click image for larger version

Name:	unnamed_1.png
Views:	8316
Size:	66.1 KB
ID:	4029510  
The Following 67 Users Say Thank You to khajiit For This Useful Post: [ View ] Gift khajiit Ad-Free
 
 
27th January 2017, 09:05 PM |#2  
Senior Member
Thanks Meter: 42
 
More
This method also works with Kenzo, obviously using the Kenzo miui rom and firmware instead.
The Following 2 Users Say Thank You to razr96 For This Useful Post: [ View ] Gift razr96 Ad-Free
27th January 2017, 09:07 PM |#3  
OP Senior Member
Flag Vienna
Thanks Meter: 156
 
More
Quote:
Originally Posted by razr96

This method also works with Kenzo, obviously using the Kenzo miui rom instead as well as not flashing the kate firmware.

That's right! Thanks for pointing it out.
The Following User Says Thank You to khajiit For This Useful Post: [ View ] Gift khajiit Ad-Free
28th January 2017, 11:15 AM |#4  
HOSEINEN's Avatar
Junior Member
Thanks Meter: 16
 
More
Smile Redmi Note 3 SE _ Kate
Thanks bro worked on my Kate


Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170128-142956.png
Views:	31652
Size:	103.0 KB
ID:	4020102  
28th January 2017, 12:31 PM |#5  
Junior Member
Thanks Meter: 0
 
More
How to successfully unlock bootloader(official way) worked for me
https://forum.xda-developers.com/red...redmi-t3543150

Just use that Miflash : rootjunkysdl.com/files/Redmi%20Note%203%20Pro%20Kenzo/Firmware%20Unbrick/MiFlash.zip
Because that one in thread not working properly.
28th January 2017, 04:54 PM |#6  
OP Senior Member
Flag Vienna
Thanks Meter: 156
 
More
Quote:
Originally Posted by armo1111

https://forum.xda-developers.com/red...redmi-t3543150

Just use that Miflash : rootjunkysdl.com/files/Redmi%20Note%203%20Pro%20Kenzo/Firmware%20Unbrick/MiFlash.zip
Because that one in thread not working properly.

The guide you linked is not working for me, thats why i made this guide which works 100%.
The Following User Says Thank You to khajiit For This Useful Post: [ View ] Gift khajiit Ad-Free
28th January 2017, 07:05 PM |#7  
Junior Member
Thanks Meter: 0
 
More
I tried this with the Global developer ROM for my kenzo.
When I try to get into TWRP, the Mi logo flashes but nothing else happens.
When I let the MIUI ROM start up and try to get into the recovery again,
it only shows me to connect my device to the Mi PC Manager.

What am I doing wrong?
28th January 2017, 07:24 PM |#8  
OP Senior Member
Flag Vienna
Thanks Meter: 156
 
More
Quote:
Originally Posted by blitzpeace

I tried this with the Global developer ROM for my kenzo.
When I try to get into TWRP, the Mi logo flashes but nothing else happens.
When I let the MIUI ROM start up and try to get into the recovery again,
it only shows me to connect my device to the Mi PC Manager.

What am I doing wrong?

Did you follow my instructions correctly?
- replaced recovery.img with ZCX TWRP recovery.img - check?
- EDL mode - check?
- remove usb cable after flash and press volume up+power button until mi logo shows up and then release buttons - check?
- are you sure you have kenzo version? did you download rom for kenzo? - check?
!! caution: the rom linked in this guide is only for kate version!!
The Following 2 Users Say Thank You to khajiit For This Useful Post: [ View ] Gift khajiit Ad-Free
28th January 2017, 09:10 PM |#9  
Member
Thanks Meter: 16
 
More
thank you ! I've been trying the official route for 6 weeks, getting absolutely nowhere (even though I finally do have unlock permission).

this method worked like a charm, finally I'm off MIUI and running LineageOS
28th January 2017, 09:37 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by khajiit

Did you follow my instructions correctly?
- replaced recovery.img with ZCX TWRP recovery.img - check?
- EDL mode - check?
- remove usb cable after flash and press volume up+power button until mi logo shows up and then release buttons - check?
- are you sure you have kenzo version? did you download rom for kenzo? - check?
!! caution: the rom linked in this guide is only for kate version!!

1. I guess, do I have to replace only the recovery.img or more? If only recovery.img, then yes!
2. Yes, otherwise MiFlash would give me an error instead of flashing the ROM
3. Yes, but it appears only for an blink of an eye and then disappears again, the phone screen then stays dark
4. Yes, the newest one. Maybe that's the problem?
28th January 2017, 09:40 PM |#11  
OP Senior Member
Flag Vienna
Thanks Meter: 156
 
More
Quote:
Originally Posted by blitzpeace

4. Yes, the newest one. Maybe that's the problem?

Yes, that's the problem! This method only works until version 6.11.3.
You have to flash 6.11.3 (or earlier) to get TWRP and then you can flash what you want.
Good luck!
The Following 4 Users Say Thank You to khajiit For This Useful Post: [ View ] Gift khajiit Ad-Free
Post Reply Subscribe to Thread

Tags
custom rom, kate, lineage os, locked bootloader, twrp

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes