yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Good to hear you're making progress, albeit on the custom kernel route.

I've been running lineage for a week or two now, but switched back to xiaomi.ex 7.4.20 to try to test this.

This was from my twrp backup of xiaomi.eu though, not a clean install.

I did dalvic & cache wipe on upgrade to 7.4.20 (flashed rom zip and magisk v12) and it took a very long time to boot, maybe 15 - 20 minutes or more. It did boot though.

At that point though magisk manager was saying v12 was installed but there was no root. no root meant I couldn't check modules or anything.

I dirty flashed rom again (no magisk), reboot, magisk manager says not installed.

flashed magisk in twrp (no wipe cache this time), reboot, mangisk manager all green.

this is with the v2 module from the first post.

Turns out my pull request to magisk a little while back to fix magisk hide toggle has was overwritten and reverted when it got to v12, so on miui's don't try turning magisk hide on and off or you'll need to reboot for my module to re-enable it.

I've also updated the module to follow the v3 layout and add preparation for the new unified daemon coming in the next magisk - however with my testing of the current nightly I could not get safetynet to pass at all. hopefully there's more fixes to come before the next release.

For now I'm using my v3 module on v12 magisk successfully on xiaomi.eu
[Xiaomi Mi 5 Guides, News, & Discussion] nicholaslimck:
I just tried the new module, and it works. However, Magisk seems to be triggering Safetynet--I get a 'response payload verification failed' message in SafetyNet Test with Magisk installed, and Magisk reports a CTS profile mismatch regardless of what I do. Not sure what I'm doing wrong here...
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
Disable and reenable magisk hide using terminal
[Xiaomi Mi 5 Guides, News, & Discussion] nicholaslimck:
That did the trick, guess Magisk Hide wasn't enabling properly.
[Xiaomi Mi 5 Guides, News, & Discussion] dafervs:
The v3 module works correctly in the last Xiaomi.eu 7.4.27 with magisk v12. Thanks [MENTION=2987253]coronafire[/MENTION]

Enviado desde mi MI 5 mediante Tapatalk
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
That's a known an ongoing problem...

However my module does try to forcefully enable it at boot (via command line method) which works on roms I've tested with, until you touch the setting in magisk manager - then you have to use command line or reboot phone.

I had a fix for the issue which was merged: https://github.com/topjohnwu/Magisk/pull/149

... but then (presumably accidentally) reverted / rewritten and broken again in v12 release.

The current work-in-progress on magisk source includes a massive re-write of entire base system which changes everything again - last time I tried a beta build I couldn't even make it work with command line disable/enable. Hopefully it'll be fixed completely by the next release.
[Xiaomi Mi 5 Guides, News, & Discussion] frankynov:
I am still happily using android pay on my MI5, thanks again.

One doubt still: if I want to buy another xiaomi device like Mi5S or Mi6, it will require another custom magisk module like the one in the first page right ?

If so, is it easy to build one for a specific Mi device by comparing by the existing one ?
[Xiaomi Mi 5 Guides, News, & Discussion] leccestar:
Amazing work. I've been using the patched kernel and it is fantastic. The newest build is 19/04 is this right or is there a problem? I plan on updating my LOS next week when they add the new kernal, will it be reflected with an automatically patched kernal on the link you provided?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
I've got a friend using the existing module on a Mi5S no worries, but not sure if it'd be fine on a 6 or not. It possibly would be just fine.

If not, it should hopefully just be a case of updating the module to use a build fingerprint from a stable rom release that's known to pass safetynet.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
That is the latest build as it turns out. The builder auto syncs with the official builds once a day, and if there's changes it auto-builds.

Turns out upstream did something funny (a force push/revert perhaps) with their repo and the gitlab sync detected a divergence, so stopped the sync on the main branch. I'll clear it and there should be new builds soon.
[Xiaomi Mi 5 Guides, News, & Discussion] p8pepe:
Hey [MENTION=2987253]coronafire[/MENTION]. Any updates about new kernel builds?

Today's lineage for gemini will have a lot of kernel things updated, so it would be great to have it with safety net passed ;)

Thanks for your work!
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yep the autobuilder's run into some issues, both during merge and build. I'm giving it an occasional poke to get it up and running again, might take a day or two though.
[Xiaomi Mi 5 Guides, News, & Discussion] p8pepe:
The device is not booting after installing the 20170511_1803 kernel over the 20170509 LineageOS build.

Anyone can confirm?

Thanks.
[Xiaomi Mi 5 Guides, News, & Discussion] leccestar:
I've not gotten around to updating yet. Might hold off now as this is my daily driver.

Can you get back into recovery to reflash the ROM with standard kernal?
[Xiaomi Mi 5 Guides, News, & Discussion] p8pepe:
Yes, I've done it already.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
That's annoying. My phone's in the process of downloading the LOS update still, I'll test my kernel once it's updated .

As you know though a heap has changed in the kernel (presumably merging in stuff form the recent xiaomi kernel source drop).

Perhaps there's something that's incompatible with the sabermod toolchain I build with.

It might be worth checking if another firmware update is required too.

Edit: Yep, I can confirm it's not booting, I'm going to delete it. I'll update when I've got a working kernel compiling again!
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
LOS Safetynet Kernel builds are working again: https://gitlab.com/alelec/android_kernel_xiaomi_msm8996/tags/20170512_1450
[Xiaomi Mi 5 Guides, News, & Discussion] Langkhack19:
I'm using the latest lineage os build. But installing the magisk didn't root my phone (did dirty flassh). I can only root by flashing su addon tho. Got cts profile mismatch on safetynet test
[Xiaomi Mi 5 Guides, News, & Discussion] p8pepe:
So that's something with your's device config or Magisk, because Lineage + this kernel works like a charm.
[Xiaomi Mi 5 Guides, News, & Discussion] langkhack18:
​

It's kinda weird where I can't root my device when I flashed Magisk :|
[Xiaomi Mi 5 Guides, News, & Discussion] p8pepe:
Can you root your device with Magisk on stock kernel?
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
You should check the recovery log...
[Xiaomi Mi 5 Guides, News, & Discussion] langkhack18:
I just dirty flashed my current rom + magisk. Still no root

---------- Post added at 12:43 PM ---------- Previous post was at 12:42 PM ----------

The log while flashing is normal tho.. There was no problem whatsoever
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
Can you post it in the magisk general thread...
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yes if you flash any other kind of su it will definitely fail safetynet. Are you using a Mi5?, official lineage os on Mi5 can definitely be rooted with magisk v12.

If you do want root you probably need to reinstall lineage os and flash just magisk v12 to try again. Before doing so, open magisk manager settings and make sure magisk hide is enabled. Don't change the setting again after that.

If you don't need root you can use a fresh install of lineage os and install my patched kernel instead.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
We may be able to help, but again you may have more luck on the magisk support thread - I doubt having my module will change anything here.

As a starting point though, what's your exact phone model, the exact rom name and version and the version of magisk you're using?
[Xiaomi Mi 5 Guides, News, & Discussion] Pedroenf:
Worked flawlessly!! Thanks. I have MI5 with Globe.rom 7.5.11 - DragonXia_v3.0 kernel and this module solved two problems: enable MagiskHide with script at every reboot and safetynet CTF profile mismatch. So: GREAT work, keep it up. We need people like you guys :good:
[Xiaomi Mi 5 Guides, News, & Discussion] mm1rza:
now works good?
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
If you're asking if the module works, then yes...
[Xiaomi Mi 5 Guides, News, & Discussion] maxdimaz:
What config rombuider for Globerom 7.5.11? I was trying ant still error CTS Profile :confused:
[Xiaomi Mi 5 Guides, News, & Discussion] Pedroenf:
Assuming that you're familiarized with rom builder here the configuration i used to build my rom:

[IMG="Rom Builder"]https://xdaforums.com/attachment.php?attachmentid=4151014&stc=1&d=1494889875[/IMG]
[Xiaomi Mi 5 Guides, News, & Discussion] maxdimaz:
Yeah Thanks, but i cant see that attactment, got 404 error here :(. can you attach other image upload or just spoiler image Thanks
[Xiaomi Mi 5 Guides, News, & Discussion] Pedroenf:
Just re-uploaded the image. Check it now.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
If you're using GlobeROM make sure you remember to un-install su before installing magisk, you will get CTS error if there's any other su method installed.
[Xiaomi Mi 5 Guides, News, & Discussion] Pedroenf:
No need. Check the rom builder.
[Xiaomi Mi 5 Guides, News, & Discussion] maxdimaz:
Still get CTS Error With that config here my step

- Flash GlobeRom with your config

- Update Magisk via Playstore

- CTS Missmatch

- Install Propv3 - Reboot

- CTS still Missmatch

can you give your step please :D
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
You have to check if magiskhide properly started... Add a root checking app to the hidelist like rootbeer...
[Xiaomi Mi 5 Guides, News, & Discussion] Pedroenf:
No additional steps. Check if magikhide is enabled in magiskmanager.
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
Not just in manager... It's better to check it in magisk log or the simpler one via root checker app...
[Xiaomi Mi 5 Guides, News, & Discussion] Pedroenf:
That also...
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Did you install magisk v12 zip in recovery after flashing globe rom?

You should not need to check magisk hide setting in magisk manager, my module force-enables it at boot.

In magisk manager, could you take a screenshot of the default status page with the three boxes to show all the versions.
[Xiaomi Mi 5 Guides, News, & Discussion] maxdimaz:
Still not success :confused: see my attachment maybe can help me

i was trying many ways

1. Install Rom (with config in lastpost) -> Update Magisk -> Enable SuHide -> stil no luck -> add module propv3 -> still no luck

2. Install Magisk v12 using twrp -> still no luck

3. Change Kernel Dragonxia -> flash magiskv12 -> no luck

4. Install Rootcheker -> add to suhide -> still get root promt :confused:

:confused: maybe im missing something?
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
[MENTION=4777918]maxdimaz[/MENTION] It should be like these..., if magiskhide started properly... ???

Edit: don't mind the msg of rootbeer, look at the checklist... ?
[Xiaomi Mi 5 Guides, News, & Discussion] maxdimaz:
So what my mistake i was trying many ways still no luck :rolleyes: :crying:
[Xiaomi Mi 5 Guides, News, & Discussion] panchovix:
thanks man, with this and only this i could pass safety on Xiaomi.eu lol, i tested a **** ton of things haha
[Xiaomi Mi 5 Guides, News, & Discussion] ikzouhetnietweten:
I get 2 out of 3 checks.. when I tap on check safety I get: Cannot check SafetyNet, no internet?

I obviously have internet, and installed microG and in the microG settings I disabled Safetynet and then enabled.

In Magisk manager I enabled busybox, enabled magisk hide, enabled systemless hosts, superuser access: apps and adb but also tried disabled.

Root Checker is indicating its rooted. Safetynet Test app is saying 'Failed'.

I also installed your module, but without is also giving me the same.

I tried so much but keep getting this, any solution? I even reflashed the boot.img from the original lineage rom (20170509), kernel 3.18.31, jenkins@phenom.zifnab.net
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Sorry I really can't help where microG is concerned, that changes everything.

This post / method / system suggests it might be possible, but I'm happy with official google services so far so can't test it myself.

https://xdaforums.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yeah I'm not sure what's missing sorry.

I'd suggest trying with the current xiaomi.eu rom, flash that and then magisk v12 straight away. You should be able to dirty flash that over globe rom no worries.

Also install safetynet helper and try that, it gives slightly more information about why safetynet is not passing.

I'm inclined to think something else has been changed on you phone such that dirty flash doesn't fix it. Safetynet by design doesn't really tell you what's wrong when it wont pass.

You could try backing up your current system in twrp, factory reset and install clean copy of xiamoi.eu and/or globe rom and see if it works then. If so you can still restore your previous install to try there again. If clean install works but backup/original doesn't then you'll probably need to go with a clean install to fix it unfortunately. I've done that in the past, with a backup of all apps with titanium before factory reset then restore them all again.
[Xiaomi Mi 5 Guides, News, & Discussion] ikzouhetnietweten:
I think its something with my simcard, cus im having issues, but I reinstalled and simcard is solved so will try again today.

Its solved now. For people who have the similar problem: Its your simcard and your baseband probably. Flash a new one, I flashed some weird muiu roms and then flashed lineage 14, and its working now, passed Safetynet.
[Xiaomi Mi 5 Guides, News, & Discussion] lsl640:
Keep losing root 2 to 3 times per day after enable magiskhide, anyone can help?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Does root stop working in apps that need it? Or is it just magisk manager saying there's no root on its status page.

I have the issue with magisk manager but root apps are fine so I've pretty much ignored it.
[Xiaomi Mi 5 Guides, News, & Discussion] panchovix:
i never lost root and i had 0 problems with this fix o.O

now i'm using with dev 7.5.18 and it seems working good so far :B
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
It disappears for magisk manager and some other apps(like root explorer), but it's still working for others...

Edit: I think it's somewhat related to activating magiskhide with root privilege...
[Xiaomi Mi 5 Guides, News, & Discussion] lsl640:
Apps that requires root are not working as well, but terminal emulator able to get root
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
It might be worth trying a new version of magisk, the current beta is working fine for me again: https://github.com/stangri/MagiskFiles/blob/master/Magisk-v13-170519.zip

https://github.com/stangri/MagiskFiles/blob/master/MagiskManager-v5.0-170518.apk
[Xiaomi Mi 5 Guides, News, & Discussion] foksisko:
Try to install Magisk12.0_Hide_fixed.zip

This packet fixed me the same error :)
[Xiaomi Mi 5 Guides, News, & Discussion] panchovix:
for me no problems on Magisk 12, but on Magisk 13 the Module does not work D:
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
On v13, it's not the module, but magiskhide not starting properly...
[Xiaomi Mi 5 Guides, News, & Discussion] panchovix:
oh i see, my bad then, and thanks for the correction
[Xiaomi Mi 5 Guides, News, & Discussion] LukaPochi:
I tried the magisk way with my mi5 xiaomi EU rom but no luck..

Am I missing something?
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
How should we know if you don't provide more detail?
[Xiaomi Mi 5 Guides, News, & Discussion] LukaPochi:
Android 7.0

MIUI 8.3 xiaomi EU 7.5.25 beta

xiaomi mi5

1) I flash the xiaomi EU rom to get rid of SuperSU

2) in TWRP I flash magisk 12

3) Flash phh-superuser-magisk-r266-2 (I tried 2 times , one flashing this and one without flashing this)

4) reboot

5) update magisk 12 from the store

6) enable magisk hide and check if works = safety net CTS profile mismatch

7) in magisk / modules I load magisk-gemini-safetynet-props-v3.zip and reboot

8) still fails the safety net CTS profile mismatch

What I'm doing wrong ?
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
Phh superuser, you don't need that...

Edit: you have to make sure magiskhide is working (you can use root checker app, add it to hidelist)... Apply su -c fix on the enable script or disable/enable magiskhide via terminal...
[Xiaomi Mi 5 Guides, News, & Discussion] LukaPochi:
Disabling magisk hide from settings , and then typing su in the terminal followed by sh /magisk/.core/magiskhide/enable did the trick!
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
Yup, that's the command in terminal... Applying it in enable script is permanent...
[Xiaomi Mi 5 Guides, News, & Discussion] ajaxcbcb:
safetynet fails on v13 magisk
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
V13's magiskhide is not working on the mi5 if you're using MIUI based...
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
That's a pain, I'll have to check if the magisk api changed again since my last release (which was designed to cover api changes in the beta). Perhaps the fingerprint changes aren't being applied correctly any more.
[Xiaomi Mi 5 Guides, News, & Discussion] ajaxcbcb:
it was working on miui with magisk v12. after upgrading to v13 magisk, safetynet check fails
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yeah there were major changes behind the scenes in magisk v13 particularly with regard to how extensions have to call the underlying magisk functions for overriding built in properties, such as the build fingerprint etc.

This wouldn't matter as much on lineage os as I believe the los build fingerprint is itself recognised by safetynet so doesn't always need to be overridden anymore.
[Xiaomi Mi 5 Guides, News, & Discussion] bonethugs:
Can't see Magisk hide settings in Magisk manager with v12 installed. Tried to execute the script manually but still can't see it.
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
That's the case if the manager doesn't have root access...
[Xiaomi Mi 5 Guides, News, & Discussion] bonethugs:
How can I check that?
[Xiaomi Mi 5 Guides, News, & Discussion] Sony98:
THANKS !!! Finally works on my Xiaomi Redmi note 4x (Snapdragon) with modified Miui 8 rom. Safetynet passed with this nice module ! :)

EDIT: Doesnt work anymore. 1 Day later safetynet doesnt pass :\ i have a modified miui8 rom android 7 which has 40 Patches for optimization on my redmi note 4x.

Module doesnt work. i have Mido twrp.
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
SN has was updated...
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yep, CTS failure for me today too. I updated lineage yesterday so I can't be sure whether that contains the issue or if it's at googles end.

Edit:

Known problem, fix is in the works in magisk:

https://xdaforums.com/apps/magisk/advisory-safetynet-to-updated-t3621403

https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589/post72666791#post72666791
[Xiaomi Mi 5 Guides, News, & Discussion] frankynov:
I'm also getting a CTS profile mismatch on latest weekly xiaomi.eu rom on Mi5.

But android pay still works !
[Xiaomi Mi 5 Guides, News, & Discussion] sayno2quat:
Has anyone tried installing Resurrection Remix with the pre-2016-november patches to see if suhide and systemless xposed can be installed? I can do that on my current phone and pass safetynet, and if the kernel bypass for the bootloader can be loaded for this phone on that version of RR, you might be able to have Xposed and pass safetynet on this phone.
[Xiaomi Mi 5 Guides, News, & Discussion] Karls0:
Newbie question:

Does TWRP and Magisk block OTA Updates? If yes, is it any option to workaround it?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
You may have more luck asking on the main magisk q & a thread. I think it depends on the rom you're using and how they deliver it.

I'm using LineageOS primarily and with the unofficial LineageOS Updater app I effectively get OTA updates in the form of difference patch updates (usually around 30-100MB) which is designed to use twrp to install. Some (all?) vendor ota's will be designed to look for their own bootloader to install it and wont know what to do with twrp.
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
Depends on what is the rom and twrp you are using... With magisk, you might at least need to restore boot.img and recovery... You also need to restore system.img if you modified/mounted it rw (miui official)...
[Xiaomi Mi 5 Guides, News, & Discussion] Undeon:
Hey guys....

I'm trying to install Magisk here. After flashed the v12 and open the application i was forced to go to Play Store (Magisk Manager is now on Play Store! Please download from Play Store for future updates!). But when i click on "Go to Play Store" i receive a "the item was not found" (or something like that, my Android is in Portuguese).

What should I do?

Thanks
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Magisk V12 is now dead, google have updated safetynet since. You'll need the v13 beta until v13 is properly released.

https://www.google.com.au/amp/s/xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589/amp/
[Xiaomi Mi 5 Guides, News, & Discussion] Karls0:
No, v12 is still there but you need to use it in core only mode to pass SafetyNet. However I didn't tested it on mi5, if it require extra modules it could be a conflict.
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
V12 is not dead, use the universal sn fix... I inserted Mi5 build fingerprint to avoid any conflicts...
[Xiaomi Mi 5 Guides, News, & Discussion] lsl640:
Anyone able to pass safetynet with V13.1?
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
yep works perfectly for me.

I just upgraded from (working) v13 beta.

If it's not working for you and you were on v12, make sure you dirty flash first or use the magisk uninstaller before installing new one.
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
Are you using MIUI? Are you using a workaround for magiskhide to work? Can you share your setup please???!!! Thanks!!!
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Ah sorry no I've been on lineage os for some time now, haven't flashed miui to re-test my module recently.

If my fingerprint fix v3 from the first post doesn't work on miui anymore that's a shame.
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
[MENTION=3615867]teddy0209[/MENTION] Seeing as it was originally your suggestion, I take it https://xdaforums.com/apps/magisk/xiaomi-safetynet-fix-t3600431 latest beta isn't working for you either?

I've just enabled a number of other props that previously hadn't appeared to be needed, maybe they are now. I've also updated the force-enable of magisk hide from my module. Maybe try this instead / as well?

https://gitlab.com/alelec/magisk-ge...9cc2e52f/magisk-gemini-safetynet-props-v4.zip

Not sure when/if I might get a chance to try a miui myself, it takes a few spare hours to flash across to it, update, test etc....
[Xiaomi Mi 5 Guides, News, & Discussion] lsl640:
i think V3 doesn't work on miui anymore
[Xiaomi Mi 5 Guides, News, & Discussion] teddy0209:
It's not the module/props modification that doesn't work on v13 but magiskhide itself, since the new implementation I haven't been able to make it work on MIUI. I'm using deic's solution on v12, but it would be nice to have a workaround on v13 as v12 support will now be dropped...
[Xiaomi Mi 5 Guides, News, & Discussion] lsl640:
Anyone able to pass safetynet on 13.3? V12 didn't work anymore
[Xiaomi Mi 5 Guides, News, & Discussion] coronafire:
Yes, v13.3 works perfectly for me (on lineage). What rom are you using?