yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 Guides, News, & Discussion] Mr.201:
Weird. Mine works, both LOS and Miui 9 tested on V14.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yeah lineage with v14 is fine for me too.

Did you install magisk on fresh rom install or just upgrade magisk? v14 is a pretty big change I believe, it wouldn't surprise me if updating magisk without uninstall or dirty flash beforehand.

I recommend dirty flash your rom again and re install magisk, see if that changes anything.
[Xiaomi Mi 5 Guides, News, & Discussion] bademjooon:
Work on Miui latest Global Developer ROM and Magisk 14 Ty dude
[Xiaomi Mi 5 Guides, News, & Discussion] Karls0:
Update to fix is out - Magisk pass again.
[Xiaomi Mi 5 Guides, News, & Discussion] bademjooon:
which update? :confused:
[Xiaomi Mi 5 Guides, News, & Discussion] Karls0:
For USF module, which fix safetynet for miui ROMs.
[Xiaomi Mi 5 Guides, News, & Discussion] pi4a7a:
Latest .eu passes safetynet with ulocked bootloader and rooted with magisk without any modules needed, try it out.
[Xiaomi Mi 5 Guides, News, & Discussion] Karls0:
Not on stable, only weekely builds.
[Xiaomi Mi 5 Guides, News, & Discussion] bademjooon:
not passed on latest update global rom 15/9
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
FYI I finally sorted out the issues with the autobuilder, hopefully it'll keep running a bit longer this time!
[Xiaomi Mi 5 Guides, News, & Discussion] p8pepe:
Great news :) Thanks for your efforts!
[Xiaomi Mi 5 Guides, News, & Discussion] p8pepe:
Hey!

Are you able to create SafetyNet passing kernel builds from lineage-15.0 branch?

I'm planning to switch to Android 8.0, as [MENTION=455439]bgcngm[/MENTION] has just released unofficial image with working camera.

Android Pay on Oreo ROM would be just great [emoji4]

Thanks!
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yep, definitely can do that.

However, the lineage-15.0 branch is currently 3 commits behind cm-14.1 - aka there hasn't been any new work done on that branch that's android 8 specific.

There is a "staging/lineage-15.0" branch that is dramatically different to the main one. I've no idea what's in that branch, whether it works at all or what.

I can see from https://xdaforums.com/mi-5/development/rom-lineageos-15-0-xiaomi-mi-5-t3669247 that he's linking to the first lineage-15.0 branch which as mentioned is basically the same as cm-14.1. As such I recommend just using my existing cm-14.1. safetynet kernel for now
[Xiaomi Mi 5 Guides, News, & Discussion] moo113:
I've read through a number of pages, but have difficulty understanding the current state of the efforts here. I'm currently running lineage 14.1 weeklies, updating every two weeks or so with an unlocked boot loader and LOS root. Hoping to become SafetyNet compatible and ideally with Android Pay; is that possible with my current configuration?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
The methods described in the first post should still be fine, I've been running this way for months with no problems.

I'm on LOS weeklies, bootloader unlocked, using Android Pay no problems.

Magisk is definitely easiest, did you use that to root?

I'm currently running Magisk v14.0 , I haven't looked for a while if there's anything newer. With magisk on Lineage you don't need to do anything else, it should just work. The Magisk developer has done a fantastic job keeping safetynet working so android pay is fine. My module isn't needed any more for this so hasn't been updated in quite a while.

Also, if you use the separate "Lineage Downloader" app to do your updates, it's got a setting to auto-flash an extra zip which I have set to magisk so it's automatically installed for me every update.

https://play.google.com/store/apps/details?id=com.paolinoalessandro.cmromdownloader&hl=en
[Xiaomi Mi 5 Guides, News, & Discussion] moo113:
LOS root add-on instead and the built in OTA. I had yet to migrate to magisk because it didn't survive native OTA but your recommendation sounds to be the simplest path. Thanks for clarifying for me!
[Xiaomi Mi 5 Guides, News, & Discussion] 0ther:
I'm on latest Global Developer 7.11.16

with stable Magisk v14.0 and module Universal SafetyNet Fix v2 Beta 5, my Xiaomi Mi 5 passes SafetyNet
[Xiaomi Mi 5 Guides, News, & Discussion] Karls0:
On Xiaomi.eu you don't even need USNF, it works with clean Magisk itself. But only on newer versions (I'm nearly sure all MIUI9 roms and some of latest MIUI8 weeklies).
[Xiaomi Mi 5 Guides, News, & Discussion] leccestar:
Does this work in LOS 15.1? I've been using it on 14.1 for ages and it has been so useful. So thank you.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Hi [MENTION=2571238]hklam0[/MENTION] If you're still keen, I've got an auto-updating auto-building fork of the lineage os kernel for mi5 up and running here: https://gitlab.com/alelec/android_kernel_xiaomi_msm8996/tags

There should always be a latest kernel available here for Linage OS patched for safetynet similar to the original package by [MENTION=4861355]kyasu[/MENTION]
[Xiaomi Mi 5 Guides, News, & Discussion] hklam0:
sorry, the page says: "The page you're looking for could not be found."
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Whoops, I'd accidentally created the fork as a private repo, it should be available now!
[Xiaomi Mi 5 Guides, News, & Discussion] hklam0:
Thanks, I can download it now, but it' huge, 174MB, can I just flash it via TWRP like [MENTION=4861355]kyasu[/MENTION] one?

---------- Post added at 02:39 AM ---------- Previous post was at 02:16 AM ----------

Thanks, I can download it now, but it's huge, 174MB, can I just flash it via TWRP like [MENTION=4861355]kyasu[/MENTION] one?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Umm... I think you might be downloading the whole repo (that's the kernel source)?

On the tags page linked to, there's a release in the middle of the page with a link under it for the built kernel called "Lineage-Safetynet-Kernel_20170315_0708.zip" It's only 12 MB
[Xiaomi Mi 5 Guides, News, & Discussion] hklam0:
Yes, you are right, silly me
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
I do understand that MIUI doesn't publish their kernel sources (the latest one), but will it be possible to have SafetyNet pass on the latest MIUI Global Dev, together with Magisk root?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yes absolutely, I'm pretty sure it'll work fine there too. The miui (xiaomi.eu) instructions on the first page should work fine on the official developer rom too. It still needs the fingerprint change, and it'll almost certainly require magisk v9 & phh combo rather than v11.1

I believe you still need the bootloader unlocked to get twrp and magisk installed, I haven't found any other way.
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
Thanks buddy. Let me try that. But I should take full backup FROM MIUI before flashing anything from TWRP. Usually MIUI has problems after flashing anything from TWRP. MIUI.eu doesn't seem to exhibit these since it was made to flash from TWRP. I'll boot TWRP (without flashing) and flash the fingerprint zip file and then the old Magisk. I'll report afterwards.
[Xiaomi Mi 5 Guides, News, & Discussion] Corn Flake:
I'm on latest lineage with stock kernel and magisk and I pass safetynet.
[Xiaomi Mi 5 Guides, News, & Discussion] .:GraveD:.:
On latest RR with latest DragonXia Kernel and just the 2 build prop edits, it passes SafetyNet checks as well.

I'm gonna see if I can test android pay later on.
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
Did the whole thing and still my CTS profile match is False. In addition, my Basic integrity check also fails now. And I am unable to keep Magisk Hide settings stick. Do I have to revert to an older version of Magisk Manager as well? [MENTION=2987253]coronafire[/MENTION]
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Ah, DragonXia's sources are up again and yes, they've has the unlocked bootloader hide patch added since about a month ago!

So that's certainly an option too, for lineageos with the fingerprint fix flashed you can either use magisk, my patched kernel or his kernel ( which has some other nice additions ).
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
I haven't had to downgrade my magisk manager, no. fwiw I'm currently using the 170304 (unofficial) v6 beta snapshot from https://github.com/stangri/MagiskFiles

Does Magisk Manager show root active? It should say "17 me.phh.superuser cm-su subind suinit" under the green tick.

Sometimes I've had to go into the Superuser app (from phh superuser apk), remove magisk manager by holding down and go to deauth (I think it's called) then reboot and start magisk manager again to get it to re-ask for superuser access.

Otherwise are you using twrp 3.0.2 ? I'm using that and have dirty flashed the developer rom before without any issue. It's worth trying to reflash that and then just flash the fingerprint zip (not magisk). Then restart and try a safetynet helper test to see if basic integrity passes. If not then there might be something else with the particular rom version you've got that's breaking the basic test. At that point it's down to trying a different rom version. Is there a reason you don't want to use the xiaomi.eu roms?
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
is your magisk hide also working well?

can you confirm your latest working setup? I'm looking to make it work on Global beta 7.3.16.

if i'm not wrong is following your working setup?

1. Magisk-v12-170304.zip

2. phh-superuser-magisk-r266-2

if possible can you upload the phh superuser file? these are removed from the original thread.

Cheers
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
I've tried my hand at mi-globe ROMs in the past and have found that certain bits are still in Chinese and stuff like that. Besides, the lack of any OTAs really tripped me off.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Sorry no as written in the first post it has to be Magisk v9 installed from twrp (for miui), I'm just using the new magisk manager apk to control it.

I'll have to check if the licence for phh superuser allows me to redistribute it before copying it up here.

I just googled for a download link for my copy, don't remember where it was now though.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
I've been using xiaomi.eu for at least a month now and never seen a single chinese character or anything out of place. I'd say they must have improved on that front.

As far as OTA's are concerned I've never really had OTA work on any phone with TWRP installed, and I prefer the safety of having TWRP backups!

Each week (or whenever) I just download the new rom release and dirty flash it onto my phone (with a backup beforehand). It's worked flawlessly every time for me, and if anything seems faster then most OTA install processes.
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
Well I never installed any TWRP in the first place, I just boot it from fastboot.:o If you really wanted MIUI OTAs with custom recovery, you can always try ZCX TWRP. You just gotta have it install the full ROM once and that's all. And I obviously don't think with latest Nougat releases for MIUI, there is any delay in flashing OTA updates, though I can be wrong about that as well. In any case, gotta check MIUI.eu ROM in the near future.:fingers-crossed:
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
No luck with MagiskHide in 11.6 as well
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
Workaround suggested in following issue helped.

Now MagiskHide is working with 11.6 on latest global beta build on Mi5

https://github.com/topjohnwu/MagiskManager/issues/112
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
Goona try that...
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
Well, I am still unable to get CTS pass. [MENTION=4354573]chhapil[/MENTION] Did you flash the build fingerprint change zip prior to flashing Magisk v11.6? In fact, can you actually mention how you got yourself to achieve this?

Edit:- Well, I didn't notice this earlier but it seems that Basic Integrity check is passed now. Only CTS profile match check fails. Anyways waiting for your advice.

Edit 2: Guys, finally.... Now I have a complete SafetNet pass on latest MIUI Global Dev 7.3.23. Just had to flash the build.fingerprint zip mentioned in OP and voila, its Green all the way. Thanks a ton [MENTION=4354573]chhapil[/MENTION] for digging that one out...:good:
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
Will I didn't check for safetynet to be honest. For me MagiskHide work was important due to Airwatch.

Glad to know that safetynet also passes now.

I guess OP can be updated for these details
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
Yeah....this one's for everyone bugging around trying to get a CTS profile match on MIUI ROMs.. MIUI.eu ROMs don't have a problem executing the script it seems. That's why [MENTION=2987253]coronafire[/MENTION] never had any problems. And everything is working in latest Magisk v11.6 means we no longer have to rely on outdated phh SU binaries. Hope you update the OP [MENTION=2987253]coronafire[/MENTION]
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yeah that's a brilliant find, I'm working on reliably replicating it myself without any extra dependencies.

It also informs a possible fix for Magisk Manager to resolve the issue once and for all, I'm looking into that too :)
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Good news!

I've found the / a fix to magisk to make magisk hide work on miui based roms reliable - ie the magisk hide toggle in magisk manager actually works correctly.

PR is here: https://github.com/topjohnwu/Magisk/pull/149
[Xiaomi Mi 5 Guides, News, & Discussion] the_poolee:
Looking forward to seeing the PR merged in a future build. :fingers-crossed:
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
created my own zip with the fix, working fine at my end.

MagiskHide working with boot up and MagiskManager also detects root.

me at peace now :)

reference:

https://github.com/topjohnwu/Magisk/pull/149
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
using the Magisk with the quick fix for the MagiskHide, MagiskManager not detecting the root issue persists.

Anybody know any workaround?
[Xiaomi Mi 5 Guides, News, & Discussion] Jimmy Antunes:
Not sure if relevant but my mi5 passes safety net with unlocked bootloader on Lineage OS. I just:

1. Flashed Magix

2. Hid root status

That's it.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Neat, the lineage fingerprint must be getting detected as OK by google now, that makes it much simpler!

For MIUI developer releases or ports the fingerprint will still be needed.

My pull request has been accepted so hopefully there'll be a new release soon, or at least an unofficial beta build: https://github.com/stangri/MagiskFiles
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
I do get this occasionally but I still think it's an old problem.

It appears to just be a minor issue in Magisk Manager, because under the surface magisk is still running file. When manager is showing no root for me I can still install a new root app, it asks for root permissions fine and works correctly.

Similarly safetynet helper still passes green.

And yeah, if I kill magisk manager in the standard app switcher then restart it, it all comes up green again.
[Xiaomi Mi 5 Guides, News, & Discussion] kamleshrc:
am on custom rom OCT os. have it rooted. but safety net shows failed.

can i download the gemini safety net pass and flash via twrp ?
[Xiaomi Mi 5 Guides, News, & Discussion] hklam0:
https://gitlab.com/alelec/android_kernel_xiaomi_msm8996/tags

No latest kernel yet
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
I'm not sure what OCT means but you can try the twrp patch with magisk, it shouldn't break anything.

I'd recommend the beta build of magisk: https://github.com/stangri/MagiskFiles
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yeah I got the notification of the build fail, haven't had a chance to look at why.
[Xiaomi Mi 5 Guides, News, & Discussion] kamleshrc:
OCT OS is a custom Rom. I have magish 12 installed. the link you provided is a patch that will allow the safety net to pass ?

if yes then i will try it. thank you for your reply
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
The link was just to magisk 12 beta downloads. On some/many rom's, magisk with 'magisk hide' enabled will pass safetynet on their own.

On others, like many miui ones, the build fingerprint needs updating - that's where my magisk module comes in. From the first post on this thread: https://gitlab.com/alelec/magisk-gemini-safetynet-props/repository/archive.zip?ref=v2

That can be installed in twrp I belive, or just through magisk manager is fine.

Feel free to give it a try, on a differernt custom rom I don't know, because that fingerprint will report itself as a miui global stable rom - it depends whether that conflicts with something else in your rom.

Being a magisk module though, if it doesn't work it can just be disabled again in magisk manager.
[Xiaomi Mi 5 Guides, News, & Discussion] Aetos7:
Hi. I want to get SafetyNet pass on xiaomi.eu beta 6.11.10 MIUI 8.2. I have installed Magisk 12.0 and latest Magisk Manager but get CTS profile match false. I've to flash the build fingerprint or Magisk Module in OP or other zip?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yes, you'll need the magisk module in the first post.

I've just updated said post to state magisk v12 (was v11.6) and fixed the link to the magisk module, it was downloading a zip that didn't work :rolleyes:
[Xiaomi Mi 5 Guides, News, & Discussion] hklam0:
I can get the safetynet pass after installing the patch kernel of 20170410 ver. But the I present the phone to Android pay terminal, the terminal show 'choose a card' then the payment is fail
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
That's a shame. I presume when you go to android pay app beforehand the register for android pay all worked fine?

Did it work on a previous kernel?

I know a friend had just had android pay work at a terminal on lineageos mi5s with magisk and my fingerprint module, maybe try that for a little bit and see if that works on your phone.

It works at a terminal on my phone with xiaomi.eu and magisk.

I've also only tried with one card regsitered too, not having to choose card on the phone. It could be a separate bug with android pay.

It could possibly be just that terminal too, the same friend said in one store when he used it the terminal crashed and the shop attendant had to restart the whole thing. His phone was fine though.
[Xiaomi Mi 5 Guides, News, & Discussion] Roshaxy:
> Mi5

> Multirom 7.4.11

> SuperSU is removed out before I updated firmware

Without module and with it doesn't pass anyway.

What am I doing wrong?
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
Looks the the module is still using v2 template.

Will you please update it to V3 template?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
It's probably something else on whatever this Multirom is that's causing it to fail.

In Safetynet helper, does basic integrity fail or just cts?

It's worth checking if root hide is working; download rootbeer sample, enable it in the magisk hide settings, then run it.

It should report not rooted. (having a cross against selinux flag enabled is fine).
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Does the existing one fail on some installs being older template? Does V3 being some new feature needed for this?
[Xiaomi Mi 5 Guides, News, & Discussion] chhapil:
I see big changes in v3 template that makes it compatible with Magisk v12, so its always recommended to update it. I tried it doing it locally but its bootlooping for me on Global Beta 7.4.14
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yeah ok, I'm using the current module on Magisk v12 currently. I've switched to lineage at the moment however so I don't really even need the module - aka I can't confirm whether it's working or not.

I've made myself a reminder, not too sure when I'll get to it though: https://gitlab.com/alelec/magisk-gemini-safetynet-props/issues/1
[Xiaomi Mi 5 Guides, News, & Discussion] frankynov:
Brilliant. Simply brilliant !

I was looking for ages to enable android pay on my Mi5, and previously tried with magisk without success.

With your method I could validate my credit card and I now have a ready to use android pay device !

I will test it in the morning, Android pay was launched only a couple of days ago here in Belgium, can't wait to try and report !
[Xiaomi Mi 5 Guides, News, & Discussion] frankynov:
Update of the day

It worked ! :D

At first I was very concerned because nothing was happening when I was poiting the Mi5 at the terminal. Then I realized that I needed to change the secure enclave location to HCE wallet.

I went to a tech shop to buy a screen protection for my Switch, asked the lady if it was possible to pay with my phone... she looked at me like some sort of alien ! But I asked her to select like a Visa payment, and under our 4 eyes we were happy to see that it worked seemlessly !

I then tried to do the same in a minimarket shop, but the terminal showed an error message like 'unreadable card'. Possibly they need to update it.

Latest try tonight when getting food at a very local restaurant, it worked successfully.

Thank you [MENTION=2987253]coronafire[/MENTION] for the awesome guide and collected resources !

Let's just hope my bank will soon activate the feature for debit cards as well as credit cards (soon !) :)
[Xiaomi Mi 5 Guides, News, & Discussion] Roshaxy:
How did you do this? On 4pda forum all people complain that safetynet can't pass. Android 7 + Miui is big problem for Magisk. No modules for problem solving.
[Xiaomi Mi 5 Guides, News, & Discussion] frankynov:
I've strictly followed the guide on the first page. I'm on latest dev of xiaomi EU rom, and was not rooted.
[Xiaomi Mi 5 Guides, News, & Discussion] Roshaxy:
I did it! On the last EU dev (7.4.20). But busy box is still detected for some reason. How does It fix?

http ://i91.fastpic.ru/big/2017/0422/d0/213f6c17a6a3e01ceac28620e4e024d0.png

http ://i91.fastpic.ru/big/2017/0422/cc/10002dda9c18fbd7d11b51424dc41ccc.png
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
There's a setting in magisk manager to enable or disable BusyBox, try switching that and turn magisk hide off and on again.

It doesn't necessarily matter that busybox is detected, it depends on which apps you're trying to run with root hidden.
[Xiaomi Mi 5 Guides, News, & Discussion] Roshaxy:
What about Android Pay? Does It work with busy box detected? I can't check It right now cause AP is still unavailable in my country.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
I'm not certain but I'm under the impression that if safetynet passes android pay will be fine - they're both google libraries/products.

It's usually third party apps that can add extra checks on top of safetynet.
[Xiaomi Mi 5 Guides, News, & Discussion] frankynov:
I can confirm that android pay works even if busybox is detected.

Tested again this morning at supermarket
[Xiaomi Mi 5 Guides, News, & Discussion] nicholaslimck:
I get a bootloop after activating the module with the latest xiaomi.eu weekly build. Magisk v12 installs fine, and I'm on a clean ROM.

I gave up on Magisk for the time being and installed the fingerprint zip with the DragonXia kernel. It passes SafetyNet, but Android Pay still thinks that my phone is on a custom ROM.

Edit: seems like that was just a temporary thing. I've registered my cards, will have to test them whenever I can.