yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] iXanza:
Check here http://jenkins.cyanogenmod.com

There's been no builds for any device for 2 days. I'm assuming off on weekends.

Nightlies are automated by a build bot at a predetermined schedule (every day/night hence the name). What you're describing isn't a nightly.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Oh yeah. I forgot this is now on CM's automated build server. Oops.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] verma.avesh:
Can someone tell me please, how to fix the network reset bug? Is it related to NON-HLOS or something else?

Another thing, adb is not revoking authorisation. :/
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] harish15:
Debugging mode.? Revoke all in ur settings, adb kill and start server.. It ll work.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] cipjanin:
Hows the stability of this rom, for daily use?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ext23:
If you clean flash properly, pretty much perfect.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] llamedo:
I'm also facing data reset issues. When I have both SIMs active sometimes websites and apps can't download any data, after a few minutes the connection comes back. All of this while the 3G icon is still active next to the signal, it never dissapears.

I noticed that this issue only happens when I have both SIMs activated, If I disable one of them I never face this issue again.

[MENTION=455439]bgcngm[/MENTION] I can test your firmware and report back if you want.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jauhari:
Please does Ir Blaster work? I was tested on my CM13 Nightly on Mi5 and install Mi Remote from Google Play and try to setup to my Samsung TV and Nothing happen..

How to fix this issues? Regards

Jauhari
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
IR blaster work here. With TV and Air Cond at least...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Uninterrupted:
Can i disable the vibration when unlocking via fingerprint with the screen turned off?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] frenzyboi:
How's the battery life as compared to MIUI 8?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Gravity Box - Lockscreen Tweaks - Disable Imprint Vibration
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Never use MIUI longer than 6 hours

But the batt is excellent,

Try it and compare it yourself, and share to us
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Uninterrupted:
Thx! By the way, im on the 20161001 build. On the most recent build, do we still have to press the home button, instead of placing the finger as in MIUI?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Yes. Since its not a default feature in CM or AOSP. But the.work to make it happen is already in progress
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] kemalafiantoro:
Hi wanna ask something

So, after i flashed the latest release of this CM, i realized that in order to unlock the device with fingerprint, we just have to touch the home button and dont have to press it. Is it correct? Because smhw im afraid its a bug that im facing because as far as i know in mi5 we have to press the home button for the fingerprint to work
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] marcoly:
CM has fingerprint wake-up enabled, but capacitive home button is still not added yet (tap to get back to home).
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] kemalafiantoro:
Yep i know that, but in my case, even when the screen is off, i just have to touch the home button to unlock with my fingerprint, no need to press it. Is it normal?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] schjor:
Read the post you are referring to once again...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Seriously? LoL

You just quoted the answer
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] harish15:
I use Anymote.. And it works
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] contradriver:
Is not that. I turned off all the sensor settings and only Ambient Display on and the screen still wakes up with the same notifications...

Enviado desde mi MI 5 mediante Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bunderschaft:
Same issue here with Ambient Display, screen turns on with the same notification several times or even with no notification at all
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] CarpeDiemJay:
Good to know. I read an AndroidPolice article saying the Mi5 has official CM13 support. I am yet to find the device on CM Download page. Where can I find the download?

Can you provide a Screen On Time screenshot from a regular day's usage? I know that ROMs other than the stock can cause a decrease in battery life.

How long does it take to unlock the bootloader? Is it very difficult?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Philb90:
Man :) MIUI is a greedy pig, CM and AOSP are definitely better on battery side
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
Unlocking the bootloader is really easy, it can takes a while as you have to wait till Xiaomi accept your request (en.miui.com/unlock[\URL]).

SOT is ...eally on the usage though).

sent from my MI5
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] contradriver:
I disagree. Had really good SOT's with MIUI. All above CM builds. Now underclocking a bit I'm getting about the same consumptions.

Enviado desde mi MI 5 mediante Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] CarpeDiemJay:
What SOTs are you getting?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] contradriver:
First of all, I'm not saying that those are bad, just a bit below. With MIUI I had 6 hours SOT average and with CM an hour less. Underclocking seems to be working because I'm getting again about 6 hours SOT.

Enviado desde mi MI 5 mediante Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jauhari:
Using Mi Remote App from Google Play Store?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] CarpeDiemJay:
Ah okay, cool.

I've checked to see if the mi5 will work with most UK carriers and it does. Where can I actually buy the phone then?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] d3xtr0:
What a great question for Google, isn't it?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] kemalafiantoro:
Ah yes my bad i didnt read that answer correctly :(

Btw, how to enable the manual focus on the built-in camera app? It is somehow disabled and i cant change the focus mode on the camera app

Also is there any way i can disable the always on fingerprint? Because it seems in my jeans pocket the phone always suggests that im using the fingerprint sensor.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vladimir_carlan:
Beware that you'll get 4G only on EE, Three and Vodafone (only in urban areas). On O2 and Vodafone (rural areas) you won't be able to get 4G connection.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mxplorer:
Guys,

Check Sure. A cool IR remote app. Have been looking for a proper one since I had my nokia with its IR blaster and Symbian :D haha how many people i irritated with that thing, good times, good times indeed.

Btw more people on CM that experience connectivity issues?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] thedesp:
I'm using build 20161022 nightly official and experiencing phone orientation issue.

Camera and other apps stuck in portrait/landscape mode and I have to reboot the phone to get it working again (soft reboot doesn't work). Pokemon Go battery saver mode also didn't work.

This happened 3-4 times a day for the past 3 days.

Any one else getting this problem?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] harish15:
I don't experience the rotation issue, maybe not yet.. But I have problem with the DPI Changer.. Changing in the settings does the job to the system, but few games require change in build.prop, which isn't changing for me. Just that.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] tonixp:
Can I dirty flash official release from an unofficial cm13 rom?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ngagers:
when I change sim 1 network type, sim 2 also changed. I change network type in settings and *#*#4636#*#*

and my imei in *#06# also same, between sim 1 and sim 2.

anyone got issues like me?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Termynat0r:
Clean flashing is recommended
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] harish15:
Do you mean, both sim got same imei.?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Captain_Obviyus:
So here's a link I found. Haven't used GearBest before so I can't vouch for it. They have a flash sale on it right now bringing the price down to $279. With the fastest delivery option you get it within 3-7 days for $15. Other delivery options are free but may take like 2 weeks. Keep in mind that it says it's in stock in CHINA. So they'll ship it internationally and what not but it'll PROBABLY be running the Chinese ROM.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
There are plenty of places outside this thread to discuss about that. Please keep on topic.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] thedesp:
Here's readings from the sensor app.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ngagers:
Yes, both sim has same imei
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] harish15:
Yes.. Even I had the similar issue with an other CM-based ROM, and was thinking i messed up my EFS.. But had hopes on Stock Rom, I flashed it.. I found out it was just the issue with the old rom.. So no need for you to panic.. Try the same with the stock or even Stock based EU.! You will find this helpful..
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] deusxx:
ETA for next build that includes COW patch?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] harish15:
The screenshot I took earlier, when I had the issue..
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] iXanza:
31st Feb 2026. No ETAs please. It'll come when it comes
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] deusxx:
I'm not the type of person that anxiously waits next feature to be implemented. And please read again. If you didn't get what I asked for, repeat.. Until you do.

Since the kernel COW bug announced in the weekend, Ive seen it in two occasions already, one through the web. I took the time to migrate the patches, which OP merged in a timely manner.

But I have yet to see at least an Official nightly update with this specific patch. All I'm asking is when this will come. In case it takes time, and since I think this is something I consider my phone should necessarily have (I mean a patched kernel), then I can always go back to compiling my own Unofficial as I was doing until now. Its just pointless to wait for and gladly welcome the official nightly only to realize that you have to revert, with whatever that entails.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] walker7373:
Same problem to me

Inviato dal mio MI 5 utilizzando Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] xdaerdeve:
Since 20161025 my wlan when screen is off, it dont deactivate. It stays all the time active (before not).
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] shade.sh:
It looks like you're still using my builds. Please keep in mind that there is absolutely no support in this thread for it.

Only official nightly builds are in talk here.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Marcb:
New build is coming today: http://jenkins.cyanogenmod.com/

But, there are not that many commits to Mi5, so I guess it won't be that different.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] muff99:
Hmmm, I think someone reported a few pages back that bis 64 GB model wasnt ging above 1594 MHz: i checked that with various tools and Benchmarks, mine doesnt either (cm kernel, i habe not tested other kernels yet). Battery mode set to performance, no app profiles
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] xdaerdeve:
[MENTION=7476656]shade.sh[/MENTION]

Is there a diference? I thougt, it is all one version and not more than one.

Where can I read about the differences between them?

And is it so comfortable to update like with your builds? See the changelog and with few clicks update the phone. And go back to the version I want, only with few clicks in the options from Cyanogenmod.

PS. If this is the wrong thread for this questions, would someone be so nice a tell me the right one?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] shiznig:
Hmm so Fingerprint unlock has completely disappeared from my phone. I was on unofficial CM ROM until today and yesterday it mentioned 'FingerPrint hardware unavailable', when I went into settings there was no setting for FingerPrint at all.

Thought flashing the official ROM would fix the issue, but its the same deal. Is there a fix for this? Saw a post few pages back saying I need to flash MIUI 8 then full wipe & flash CM, is this a sure fix? Don't want to wipe all my data without knowing.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] harish15:
If your problem still persist, better to try it..Backup your data, flash stock, chcek with your Fingerprint issue.. and you come back to CM again.. You are most welcome.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] TachyOS:
Same here. it doesn't go above 1594mhz
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Are you talking about lil or big cluster ? If lil then its normal. Mine can go to highest freq avail with no prob
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Captain_Obviyus:
Oh so these are going to be weekly updates? Do users already on Official get OTA?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] cdcapistran:
Less benchmark, but better performance.

Yesterday I installed the 20161022 nightly (clean install, 32 gb. model), and decide to try out the benchmarks. I was gettin' 130,000+ in Antutu with Miui8, but now I'm getting 73k (!!).

According to Antutu the clock is between 1363~1804 Mhz (??).

Though, I'm getting very good performance with CM13, very smooth.

Does anybody else has tried this out?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Vihru:
here you can download latest nightly

https://download.cyanogenmod.org/get/jenkins/184812/cm-13.0-20161027-NIGHTLY-gemini.zip

this thread is only for official CM13.. not any other builds.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] cdcapistran:
You can download them manually trough settings->about phone->updates.

The latest one is up (20161027)!!!!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Captain_Obviyus:
It just keeps getting better and better :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Antutu number is kinda meanlingless,

And you probably not in performance mode when doing the test
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Btw, 20161027 changelog : (not much change i guess)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] cdcapistran:
Phone's kinda erratic. The results on the first screenshot where obtained in Performance Mode. Just rebooted the phone, activated performance mode and the results was 105,642. Higher but still far from 130k~.

I'ld like bench it with another app. Any suggestions?

Thanks.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Termynat0r:
I encrypted my device in cm security settings and now twrp can't decrypt it....any help?

EDIT: I also cant "unecrypt" because when I tap on the encryption setting in cm, nothing happens
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] pakistanish:
Same here mine also doesn't go above 1594MHz
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] shade.sh:
Anyone problems with Spotify after the last update?

Error message "No storage area found", it simply doesn't start...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Currently updating,

Will report soon

---------- Post added at 07:10 AM ---------- Previous post was at 07:09 AM ----------

Try geekbench.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] xcoom:
Open settings - apps - spotify - permissions - allow storage - force stop the app
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
I can confirm this. Its weird that it lost the permission to begin with
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bunderschaft:
Same here.

Reinstalled the app and now works fine
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] pakistanish:
Is it just me or does your phone also get laggy and freeze a lot?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
No such issue overhere,

Smooth and fast !

Did you dirty flash?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] pakistanish:
No I flashed it by wiping everything except my internal memory
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
Guys stop discussing about benchmarks here, please.

And let's not spam every new build.

sent from my MI5
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mr-mauro:
I have (had) that problem.

I solved it deleting all data of the app, uninstalling and reinstalling it :) Now it works without any problem.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] verma.avesh:
So the network bug isn't fixed yet, right?

When I have both SIM installed, only one of them recieves calls while both are shown.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jauhari:
last update? CM13 update or Spotify Update?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] nthin.bhargav:
Headphone with mic not working :(
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
It's not much an issue, you only need to reinstall spotify after CM update. Or simply re-turn on storage permission for spotify.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] pillopoulos:
Is there any built in feature for locking apps? Once I tried this time, every play store app for this work, couldn't enable the fingerprint feature

Στάλθηκε από το MI 5 μου χρησιμοποιώντας Tapatalk
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
Maxlock work fine. U need xposed though
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] chandgokul1:
developers swear or not, cm13 have serious network bugs, specifically when ur using lte network, i finally i switched to miui, though i dont like miui

1.Data on off randomly

2.volte not coming max time aftee reboot

3.network automatically drop and up...

thats all, so i cant use this rom...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jauhari:
We got new updates.. where are we can find change logs info?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Zinken:
Just tap the name of the update
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
If you are not patient enough, then fell free to go back to MIUI. I am not forcing you to flash CM in any way and if you are wondering, I also have a personal life, so please give me a break. I will fix it when I have time.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jauhari:
Different between CyanogenMod Build and CyanogenMod Recovery,

if we already on CM13, we want update, which one file to download?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] p-a-g:
Hi Guys,

today I finally got hands on my mi5 :)

My device has MIUI 7.3.8.0.(MAACNDB) installed.

The last evenings I read the whole thread but what still not clear to me is:

Do I still need to flash MIUI 8 before installing, or am I ready to go?

Thank you for reading ,)

[MENTION=507649]devs[/MENTION]: really looking fwd to get my hands on you're rom! keep up the great work!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Official device wiki provides all the instructions for the installation of the ROM. You only need unlocked bootloader, TWRP recovery and that's all. Fell free to install it right away.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jauhari:
How to disable/uninstall Clock App? Because we prefer Google Clock that available on Google Play Store

:confused:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] chandgokul1:
Respected" bgcngm" i respect ur work alot, i know u can..

as every cal and time is very important for me, with the iasue i can't call also also disconnected from call, so frustrated.... sorry... i m waiting for the bugless rom, thnk u
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] iXanza:
If disabling it there doesn't work you can download app freezer from the play store. Without apps you can delete the app in system/priv-app but you'd need to redo that every time you flash
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vgdoc:
Fantastic work bgcngm

Installing this ROM has converted mi5 from good to an excellent device. Almost everything seems to be working perfectly. I've only got 2 issues:

1.The audio fx app won't recognise my standard earphones or Bluetooth headphones. Media playback is fine but the app doesn't seem to work.

2.I'm not getting notification from YouTube app.

Thank you for taking your time to make mi5 better than it already was.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Termynat0r:
Anyone...? I really ****ed up :(
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] swedkg:
Cannot install latest nightly

Hi, I'm new to CM, never realized It had gone too far, and I've never felt more obliged to donate to the project that brought new life to this phone.

I clean flashed the last beta build, some time ago. When the first nightly came out, I installed it as a normal OTA. Everything worked fine.

Now that the latest nightly (20161027) was released, the installation breaks. The phone goes into the Cyanogenmod Recovery with an error message, and then all I can do is to reboot it.

Does anyone know how to fix this?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] iXanza:
Untick update cm recovery in developer settings and reflash twrp and try

To my knowledge the only way of fixing this is to format sdcard in twrp.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Termynat0r:
The thing is i can't get into TWRP because it can't decrypt the storage... It asks for a password and after I enter it, it just freezes
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] shade.sh:
That solved it, thanks!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
I think this was on Spotify side: I just received an update for it, and after installation it lost all the permissions.

So, I don't think is cm-related.

sent from my MI5
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Stenudd:
You should be able to get into qualcomm's EDL (Emergency download mode), from there use the MiFlash / MiPhone tool to completely recover your device to stock MIUI, and from there start all over with TWRP and CM again

You need another kind of image for MiFlash, available at http://en.miui.com/a-234.html

MiPhone downloads the file automatically I think

I did this for my Mi4c recently, I had to try it many times to get it right

Good luck
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] DetourToNirvana:
Twrp should be able to decrypt. Try changing ur password to a lock code (digits) or password. Just don't use the pattern lock.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] otonieru:
That's a totally different things,

Build is build, and recovery is, uh, well...recovery,

if you are on CM13 then simply use OTA through cyanogenmod updater in setting page

---------- Post added at 04:47 PM ---------- Previous post was at 04:46 PM ----------

i post if few pages back, or simply tap the update
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Vihru:
nightly 28.10.2016, it wont let me change camera settings, it gives FC.

i sent crash report (org.cyanogenmod.snap threw java.lang.ArrayIndexOutOfBoudException)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Jeremi:
Is possible swap HW navigate button i need back button on right.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Marcb:
what Camera app are you using?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Stenudd:
Please search, its in this thread.