Related
Ah safetynet, the thorn in the side of every technical android user who wants to use Android Pay.
It's even worse on a xiaomi device, because once you've been granted a bootloader unlock after waiting for days, you don't want to re-lock it for fear of locking yourself out of the device and having to wait another 30 days before you can get a new unlock permission!
There is a lot of old information around about hiding root, custom kernels, installing things in particular orders and I'm pretty sure I've tried them all - including compiling kernels from scratch with a few different versions of the unlocked bootloader hiding patch.... never getting past the dreaded CTS Mismatch
But all of a sudden I happened on a little known secret found by @kyasu that the build fingerprint is also checked : https://forum.xda-developers.com/showpost.php?p=70831797&postcount=3665
Also, conveniently, Magisk (since v9) patches the ro.boot.verifiedbootstate and related props that SafetyNet checks.
This now gives us two options to enable safetynet regardless of bootloader state.
You will need either a kernel with bootloader state hidden OR magisk, as well as a method of changing the build fingerprint.
This also assumes you've got TWRP installed and are comfortable using it.
Tested on Mi5 Lineage OS 14.1-20170206-NIGHTLY-gemini and various xiamoi.eu 7.2.X and 7.3.X versions:
NOTE: Magisk Hide on MIUI currently does not work (21st July 2017)
This has been widely reported and there are a number of open issues:
https://github.com/topjohnwu/Magisk/issues?utf8=✓&q=is:issue is:open miui
A fix may have been found, not ready to test however:
https://github.com/topjohnwu/Magisk/issues/298#issuecomment-316687923
Magisk:
Remove any previous root, usually this can be done by simply dirty flashing your current rom in twrp.
From TWRP install Magisk v13.3: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Restart and Magisk Manager app should be installed.
Hit the test safetynet button in Magisk Manager, if it passes stop here! Latest lineage roms don't need my magisk fingerprint module anymore, they just work.
Otherwise, download this magisk module on your phone: https://gitlab.com/alelec/magisk-ge...2bbf9dc8/magisk-gemini-safetynet-props-v3.zip
In Magisk Manager, go to modules and install the magisk-gemini-safetynet-props zip just downloaded. It should prompt to restart to enable module, do so.
After restart, fire up Magisk Manager and "tap to start SafetyNet check", fingers crossed it comes up Green!
Note: After each rom update you will need to reinstall Magisk in twrp, but the safetynet enabling module above should stick just fine and not need reinstall.
Custom Kernel:
I don't test this as often, as I prefer the Magisk method, however this is an option for people who don't want any kind of root on their phones.
I also don't maintain any patched kernel for miui based roms as the one's I've tried are just too buggy.
Remove any previous root, usually this can be done by simply dirty flashing your current rom in twrp.
Install gemini-safetynetpass-stable-fingerprint-20170217.zip
this package is based on gemini-safetynetpass-20170213.zip by @kyasu but only changes the build prop fingerprint, the old custom kernel has been removed:
Install a patched kernel, you can either use my autobuild of a patched latest LineageOS kernel for Mi5 (includes fingerprint fix):
https://gitlab.com/alelec/android_kernel_xiaomi_msm8996/tags (LineageOS-gemini-safetynet-kernel_XXXXXX.zip links)
or recent DragonXia kernels appear to be patched
https://forum.xda-developers.com/mi-5/development/kernel-brand-kernel-cm13-alpha-1-0-t3480663 (LineageOS)
https://forum.xda-developers.com/mi-5/development/kernel-dragonxia-kernel-v1-0-t3546619 (MIUI)
Note: Both the kernel and fingerprint zip above will need to be re-installed after each rom update.
On a related note, if you want to use Android Pay on MIUI based roms, make sure the HCE wallet configuration and permissions are set correctly.
See the following for more details: http://en.miui.com/thread-405166-1-1.html
Once you unlock it once, you can unlock it again without waiting. I just unlocked and relocked my Mi5 about 3 times in a couple days.
Sent from my MI 5 using Tapatalk
Oh really? Wow, nothing I've read anywhere in the last few weeks has said that before, certainly simplifies things!
Do non stock kernels boot on a locked bootloader though? They didn't on my previous Sony.
coronafire said:
Oh really? Wow, nothing I've read anywhere in the last few weeks has said that before, certainly simplifies things!
Do non stock kernels boot on a locked bootloader though? They didn't on my previous Sony.
Click to expand...
Click to collapse
It does make it easy. I initially unlocked my bootloader to flash the global stable, then used mi flash to flash the ROM and relock my bootloader. I wasn't happy with the stable ROM, so I went back into the mi unlock tool, unlocked again, and flashed the dev ROM and relocked Then I see 8.2 is coming soon, so I went back to mi unlock and unlocked yet again so I can flash the new 8.2 when it comes out.
I'm not sure on kernels, haven't messed with them on Xiaomi devices.
Sent from my MI 5 using Tapatalk
Did anyone try this patch on MIUI?
Edit: Just tried on MIUI v7.2.9 Global Dev. CTS profile and Basic Integrity check both fails.... What a bummer...
the_poolee said:
Did anyone try this patch on MIUI?
Edit: Just tried on MIUI v7.2.9 Global Dev. CTS profile and Basic Integrity check both fails.... What a bummer...
Click to expand...
Click to collapse
Drats. If basic integrity is failing that's something else triggering the issue. Before I changed the fingerprint I only had cts failing, basic was usually fine. Sometimes a replacement kernel would cause it to fail basic, but I never narrowed down exactly what the cause was.
Works on LOS. Anyway my bank doesn't support android pay yet.
Ulver said:
It does make it easy. I initially unlocked my bootloader to flash the global stable, then used mi flash to flash the ROM and relock my bootloader. I wasn't happy with the stable ROM, so I went back into the mi unlock tool, unlocked again, and flashed the dev ROM and relocked Then I see 8.2 is coming soon, so I went back to mi unlock and unlocked yet again so I can flash the new 8.2 when it comes out.
Click to expand...
Click to collapse
Looked into it some more to confirm - I'm quite sure you can't re-lock the bootloader if using anything that's not an official xiaomi rom, ie if using lineage, or even the xiaomi.eu rom, you can't lock bootloader without having a bootloop.
And yeah, I've confimed this method doesn't work on xiaomi.eu rom 7.1.20 or 7.2.16 on mi5. It gets both failed basic integritry and failed cts profile match.
I've also tried on Global Stable 8.1.4.0 with unlocked bootloader and had no luck at all, same error.
This was a clean install, factory wipe, install magisk v11.1. Initially the check couldn't work at all, I had to get google play services updated for anything to work. Then the check operates, but fails on both counts.
I passed safety net on 8.1.2.0 global stable, but failed to add a card in Android Pay. I'm hoping 8.2 works.
Sent from my MI 5 using Tapatalk
Ulver said:
I passed safety net on 8.1.2.0 global stable, but failed to add a card in Android Pay. I'm hoping 8.2 works.
Sent from my MI 5 using Tapatalk
Click to expand...
Click to collapse
As described by @Ulver if you're on official builds, you should be able to re-lock the bootloader and avoid this issue (although without root I guess).
Aside from that, you definitely shouldn't need the zip I made for the build prop change, as you'll already have a stable build fingerprint
It turns out there's lots of versions of official rom that don't pass safetynet even when cleanly flashed with locked bootloader - xiaomi themselves keep breaking it!
A little search finds lots of references, such as this entire thread, and this post in particular: http://en.miui.com/forum.php?mod=redirect&goto=findpost&ptid=273319&pid=7515203
This certainly complicates things....
Turns out you can't always re-unlock....
To test more thoroughly I decided to flashtool wipe and lock my mi5 to stable release that's reported to pass safetynet; global_images_V8.0.2.0.MAAMIDG
My plan is to verify that it passed when locked (it did), then unlock and just install magisk to see if that worked to hide.
Well, MiUnlock has told me I can't unlock, I logged back into unlock web site and it now says my unlock request is rejected (on same account as I originally unlocked on). So now I have a locked device on global stable and have to wait for re-application to unlock.
FWIW I then allowed MIUI to OTA update itself to 8.1.2.0(MAAMIDI) and then safetynet helper originally told me no, fail on both basic and cts.
Ran it a couple more times though and now it's passing. go figure... safetynet is somewhat unreliable.
tl;dr don't re-lock your phone assuming you'll be able to immediately re-unlock it, it clearly works some of the time, not always though.
Good news, I've got SafetyNet pass on xiaomi.eu (MIUI) rom with unlocked bootloader
In the end it's basically the same as the original LOS method except that as we've all seen earlier Magisk v11.1 isn't working for MIUI.
This win was achieved with Magisk v9 and phh-superuser-magisk-r266-2 with the current Magisk Manager (4.2.6)
As per the screenshot I'm running xiaomi.eu MUIU 8.3 7.2.24 in Mi5
My procedure was:
* dirty flash rom to clean up prior attempts (Install) xiaomi.eu_multi_MI5_7.2.24_v8-7.0.zip
* Install gemini-safetynetpass-stable-fingerprint-20170217.zip
* Install Magisk-v9.zip
* Install phh-superuser-magisk-r266-2.zip
* Reboot.
Simple as that, Magisk Manager shows SafetyNet passing (after asking for root privs on first launch)
I've added a new card in Android Pay, haven't tested at a terminal yet though.
If anyone's interested I previously got SafetyNet passing on MIUI with a custom kernel instead of Magisk, this gave SafetyNet green without any kind of root.
The problem with custom kernel's at this stage is the capacitive buttons (back and app switch) have reduced sensitivity / only work well when the phone is charging. AFAIK this is only really a problem on phones with LGD lcd's (what I have), the other ones might work fine.
If anyone wants to try my kernel instead let me know and I'll share it, I found it to be a bit flaky though.
@up:
For me not working.. SafetyNet test always have CTS false.. I tried clean install and for now it's not works.
rafix96 said:
@up:
For me not working.. SafetyNet test always have CTS false.. I tried clean install and for now it's not works.
Click to expand...
Click to collapse
Which version of which rom did you try?
coronafire said:
Which version of which rom did you try?
Click to expand...
Click to collapse
I would definitely would like to confirm this on the latest miui official global dev
First i try this on 7.2.24 xiaomi.eu later i updated MIUI to 7.2.3 and unfortunately it does not working too...
rafix96 said:
First i try this on 7.2.24 xiaomi.eu later i updated MIUI to 7.2.3 and unfortunately it does not working too...
Click to expand...
Click to collapse
That's annoying, 7.2.24 is what works for me. It's been my daily driver since, and I've used android pay at a terminal no worries.
Do you definitely have Magisk v9 and phh-superuser-magisk-r266-2.zip ?
Magisk v11 cannot be installed else a dirty flash will be needed.
Oh, I just remembered I've also installed the 'phh's SuperUser' app from Play Store. This is probably needed
After that I opened Magisk Manager, which asked for root permissions the first time (which has to be granted).
@coronafire
Yes i tried everything but i have another one idea, when i come back to home i did MiFlash and then install eu 7.2.24 maybe will work.
Wysłane z mojego MI 5 przy użyciu Tapatalka
basically, if you don't need root, just flash
the latest zip in the following link (by kyasu)
https://www.androidfilehost.com/?w=files&flid=149919
will pass safetynet without locked bootloader. As they latest kernel is 2 weeks old, please consider there may be some drawback in flashing an old kernel to latest LOS build. By the way, would kyasu please update the file or let us know is there is any easy way to patch on our own?
hklam0 said:
basically, if you don't need root, just flash
the latest zip in the following link (by kyasu)
https://www.androidfilehost.com/?w=files&flid=149919
will pass safetynet without locked bootloader. As they latest kernel is 2 weeks old, please consider there may be some drawback in flashing an old kernel to latest LOS build. By the way, would kyasu please update the file or let us know is there is any easy way to patch on our own?
Click to expand...
Click to collapse
Just to note, this is only for LineageOS, not MIUI.
Personally I find it easier to not need to replace the kernel and just install magisk, if root isn't wanted it can be disabled in the magisk app.
But yes it's true you can replace the kernel with a patched one, avoiding installing any kind of root.
I've experimented with this quite a bit myself, however to update it requires at a minimum applying a patch/commit to a fork of the kernel source you're starting with and compiling it.
I've got a fork of the MIUI kernel from @Shaky156 with the appropriate patch:
https://github.com/andrewleech/Mi5-...mmit/66cbe734eb15d2508a5c80157a8af38d59373535
and example build script:
https://github.com/andrewleech/Mi5-MIUI8-Nougat-Kernel/blob/master/build.sh
Or there's the original patch by @Sultanxda which usually works as well, I did test this on a LineageOS kernel but this is pretty out of date too by now, and I started from a different forked kernel anyway.
https://github.com/andrewleech/andr...mmit/f8314c10146971979ad26c881be9bd17603c1e7d
Here is the new B356 EMUI 5.0.1 modified LRS Rom for Honor Note 8
Boot_Insecure_B356_Fix-adb_dm-verity-v3.img (Thanks to Franzroy from Mate 8 Forum,he make the Kernel for us.)
Debloated All China Apps and unnecessary Huawei Apps
Delete Themes (You can Download online)
Root with Magisk
Busybox
Adblocking Adaway
Rootexplorer
Smaler Icons
Disabled Chinaservice in Video and Musicplayer
Integrated Googleapps Playstore,Contact and Calendar sync
Add Xiaomi Mi Browser-can delete in system/priv-app/Browser
ROM OS Version: 7.0 Nougat
ROM Kernel: Linux 4.1.18
Based On: B356/ Edison AL10
Version Information
Status: Stable
Created :02.Juni 2017
Last Updated :20.Nov.2017
Requirements
Unlocked Bootloader
Twrp installed
Installation Instructions:
You must be at least B352 Nougat and not works from Android 6.0 B017/B022/B029 etc...
Boot to recovery
Wipe all,Data with "yes" Dalvik Cache,Cache,Cust,System,Internal Memory,Data
Install Rom (Takes about 5 min)
Reboot (2 min)
The Phone Reboots 2 Time at the first Reboot,this is normal.
Dirty flash I have not tried!
Downloads:
LRS Rom B350 v1.0
LSR Rom B353 v2.0
LSR Rom B356 v2.5.0
Boot_Insecure_B353_Fix-adb_dm-verity-v3.img Thanks to Franzroy from Mate 8 Forum
SuperSUv2.82-forEmiu_5.zip
Twrp 3.0.2-0
or
TWRP 3.1.0-3
TWRP 3.1.1-1 use for B353 and B356
Many Thanks goes to:
Boot_Insecure_Fix-adb_dm-verity-v3.img from Franzroy Mate 8 Forum
Mother of Adblocking
Chainfire´s Supersu and Tecalote for create the Supersu zip to working for Emui 5
YashdSaraf´s Busybox
Sorry for my bad English!
I have created earlier for Lg or HTC devices Roms Lg G Pro2 and Lg G Pad 8.3 AND HTC Droid DNA
I have always used the name LRS and will continue to use LRS for my Roms
Now I have tried to Honor / Huawei and it works.
If you find a bug, just post it.(Except with the full HD resolution)
Have fun with the Rom.
Warning!
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards,etc...
Please do some research if you have any concerns about
features included in this ROM before flashing it! YOU are
choosing to make these modifications
Removed Apps in System/app:
BaiduInput_for_Huawei, HwTrustSpace,
BasicDreams, HwVideoEditor,
FindMyPhone, LatinIME,
HiBoard, talkback,
HwMagazine, UserDictionaryProvider,
HwSpeechService, WatchSync,
HwTrustAgent
Removed Apps in priv-app:
HwChrService, PicoTts,
HwIntelligent, Tag,
HwPhoneService
Download Removed Apps from app and priv-app
The file is flashable,flash in Twrp
Download
Download update_data_full_all_cn_B350.zip
Here is the Rest from removed Apps in data,flash in Twrp
Download
Download System,Cust,Boot,Recovery
You can with this Procedur back to Stock.B350
Use Minimal ADB Setup Download
Download the img Files and unpack it,i packed with 7zip.
Copy the Files in your ADB/Fastboot Folder.
Reboot into Bootloader
Use CMD with the Commands:
fastboot flash boot BOOT.img
fastboot flash recovery RECOVERY.img
fastboot flash cust CUST.img
fastboot flash system SYSTEM.img
fastboot reboot
Download
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I will try it very soon after unlocking the bootloader and instaling TWRP.
I can always get back to stock, right?(how to do so? will it work from the hisuite ?)
this is exactly what I need
thank you so much
just a question: this is a systemless root, right?
what's the difference between the 2 versions of TWRP?
Yes you can back to Stock.
Install B332 via Twrp and make the B350 ota again,or Backup your Stockrom in Trwp before flash this Rom!
Yes systemless root.
Twrp is newer and older version,the newer version can all Backup the older not
adnansarraj1 said:
I will try it very soon after unlocking the bootloader and instaling TWRP.
I can always get back to stock, right?(how to do so? will it work from the hisuite ?)
this is exactly what I need
thank you so much
just a question: this is a systemless root, right?
what's the difference between the 2 versions of TWRP?
Click to expand...
Click to collapse
Or you can flash the System,Cust,Recovery and Boot img from the B350 via fastboot to go back to Stock.
You can use this Procedur only with unlocked Bootloader!
Insdruction coming soon.
i add the removed apps from system and data in the second post to downoad.Flash in Twrp.
add all the img file to flash via fastboot to go back to stock.
Hi letschky,
Just installed this and looking around, so far so good
Whatsapp and the ability to add user accounts both working (both important to me).
I'll play around for a few days and report any bugs/issues if I find any.
Also no need to apologize for your bad English........ It's a hell of a lot better than my Austrian/German
Danke schoen mein freund.
tiggrr1 said:
Hi letschky,
Just installed this and looking around, so far so good
Whatsapp and the ability to add user accounts both working (both important to me).
I'll play around for a few days and report any bugs/issues if I find any.
Also no need to apologize for your bad English........ It's a hell of a lot better than my Austrian/German
Danke schoen mein freund.
Click to expand...
Click to collapse
Ok,good to hear.
Thank you for testing
sorryone question, you know if with this rom i can re-use fly gps or other fake gps with pokemon go?..sorry but with last update honor have created some great problem
crissyx said:
sorryone question, you know if with this rom i can re-use fly gps or other fake gps with pokemon go?..sorry but with last update honor have created some great problem
Click to expand...
Click to collapse
Do you mean,works this rom with Pokemon go?
letschky said:
Do you mean,works this rom with Pokemon go?
Click to expand...
Click to collapse
yes, with b350 honor have change something that create problem with fake gps or other type of similar apps.
if you try to use you see on pokemon go..impossible to find location
crissyx said:
yes, with b350 honor have change something that create problem with fake gps or other type of similar apps.
if you try to use you see on pokemon go..impossible to find location
Click to expand...
Click to collapse
Do you have give permissions in settings?
letschky said:
Do you have give permissions in settings?
Click to expand...
Click to collapse
of course.. the problem was only in firmware, something was change, ad not only with Honor.
I'm going to unlock bootloader Tomorrow, if possible can you test fake gps or other apps similar with your roms to see if ther's not the same problem.
Thank's
Hi! For me your rom is a good rom! only please, its possible to reinsert a logo 3g 4g H+....? and...I forgot a question: i have uninstalled Yellow pages, the yellow pages are all in Chinese language and are useless. and i have uninstalled huawei home launcher because it's very invasive and i have installed nova launcher, the best for me. after this modify, for me this device is perfect, stable and very fast! excuse me for bad english but I don't know this language. I studied English twenty years ago for only 3 years at school .... help meeee
Nice ROM! But there are no Google apps installed. Also whatsapp notifications don't work. When i open Whatsapp i only get all the messagers. Did I do something wrong? On the first boot i had a screen with Chinese and the word GOOGLE in the middle.
I did have it freeze on me a couple of times and refuse to open a couple of games (Boom Beach and Clash of Clans).
I did a full factory reset on Sunday evening and have not as yet had any other problems, Whatsapp is working fine for me, also 3 different google accounts running fine on my phone too :good:
I also can't not open tradetracker, zanox and partners.webmasterplan links. Everytime i get error ERR_CONNECTION_REFUSED
Oké i installed the rom again and now all the Google apps are installed. I think something went wrong on the first install. I'm going to test Whatsapp notifications now.
I still have problems with tradetracker, zanox, webmasterplan and linksynergy links. Everytime i get this error ERR_CONNECTION_REFUSED on every browser (chrome, firefox ect.). Anyone know how to fix this? Because i use this for my work
I have the same problem ERR_CONNECTION_REFUSED. Why? Whithout this problema rom is perfetto.
sbrazzo said:
I have the same problem ERR_CONNECTION_REFUSED. Why? Whithout this problema rom is perfetto.
Click to expand...
Click to collapse
The problem was the hosts file in system/ect. I used the app Adaway and downloaded the latest hosts file. The problem is gone now
Whatsapp notifications also work now, no need to freeze phone manager anymore. Nice rom letschky!
Hi all,
i've seen many people in the Magisk Beta thread having trouble to find a configuration to pass safety net on MIUI Roms. So i want to start a device specific thread in our mi 5s plus forum to help everbody out with a mi 5s plus.
My working setup:
Xiaomi Mi 5s Plus
MIUI Global Dev 7.5.4
MagiskManager 4.3.3
Magisk v12
BusyBox setting active
Magisk Hide Setting active
Systemless hosts setting active
(Magisk-v13.0 b3da28e, a90e8b6, 96f8efc are not working curently)
Universal SaferyNet Fix 1.10.1
XposedFramework MIUI Edition Magisk Version SDK23
(deactivated it breaks safety net, i've heard that in v12 every module breaks safety net because the module hiding is not working, we have to wait for a working v13)
Things that do not break safetynet for me:
* LBE Security Master (app rights management)
* AdAway
* SD Maid
* Titanium Backup
* Tasker
* Removing useless/bloatware system apps in system/app and system/priv-app
* Lucky Patcher
* USB Debugging active
I hope that helps. Every improvement and comment on this is appreciated. Good luck patching!
Today miui is in nougat in Version 7.0, there is a version of the universal safetynet fix that is running with the safetynet in miui 7.0 both global and dev european (miui EU) of Xposed there is a compilation of SDK 24 very green that seems Work on some phones with 7.0 and another in SDK 25 for 7.1, that if it breaks the safety.
Any luck getting it to pass safetynet with magisk 14.2 (or older), magisk manager 5.3.5 (or older) and MIUI Global Stable 8.5.2.0?
I can't even get magiskhide to work with that mix.
bmg002 said:
Any luck getting it to pass safetynet with magisk 14.2 (or older), magisk manager 5.3.5 (or older) and MIUI Global Stable 8.5.2.0?
I can't even get magiskhide to work with that mix.
Click to expand...
Click to collapse
Why are you using global stable? I believe there is no reason for it.
Sent from my Xiaomi MI 5s Plus using XDA Labs
khanjui said:
Why are you using global stable? I believe there is no reason for it.
Sent from my Xiaomi MI 5s Plus using XDA Labs
Click to expand...
Click to collapse
I was using global stable because that is what my phone came with. While switching to Dev is an option, I believe that requires a full wipe of your phone, does it not? If I can flash dev and not lose all of my apps and settings and such, I'm all for switching to dev. But if I am not mistaken, it requires a full wipe. That is the only reason I haven't switched - I don't want to lose all of my existing apps and settings.
Can I switch to dev without losing all of that? Do I just need to boot to TWRP, backup /data, use the built in update tool to flash the latest dev rom and restore /data?
Also, does Magisk work on the latest dev ROM?
bmg002 said:
I was using global stable because that is what my phone came with. While switching to Dev is an option, I believe that requires a full wipe of your phone, does it not? If I can flash dev and not lose all of my apps and settings and such, I'm all for switching to dev. But if I am not mistaken, it requires a full wipe. That is the only reason I haven't switched - I don't want to lose all of my existing apps and settings.
Can I switch to dev without losing all of that? Do I just need to boot to TWRP, backup /data, use the built in update tool to flash the latest dev rom and restore /data?
Also, does Magisk work on the latest dev ROM?
Click to expand...
Click to collapse
Magisk is working, you will have to unlock your bootloader and wipe because as I know global stable is still Marshmallow while latest developer is Nougat. Wiping is inevitable. You can make a backup but things probably won't work well. I personally recommend Xiaomi.eu weekly builds. You can update that weekly builds from TWRP without wiping anything. If you want to have stock Android experience with some additional features, you should try LineageOS.
Steps for Xiaomi.eu
1) Unlock your bootloader
2) Flash TWRP via fastboot
3) Boot to TWRP and format data (wipes everything including internal data)
4) Flash Xiaomi.eu zip from TWRP
5) Flash Magisk
Steps for LineageOS
1) Same as above
2) Same as above
3) Same as above
4) Flash latest firmware zip (7.9.22) from here
5) Flash LineageOS zip
6) Flash GApps (OpenGApps arm64 7.1.1)
7) Flash Magisk
Sent from my Xiaomi MI 5s Plus using XDA Labs
khanjui said:
Magisk is working, you will have to unlock your bootloader and wipe because as I know global stable is still Marshmallow while latest developer is Nougat. Wiping is inevitable. You can make a backup but things probably won't work well. I personally recommend Xiaomi.eu weekly builds. You can update that weekly builds from TWRP without wiping anything. If you want to have stock Android experience with some additional features, you should try LineageOS.
Steps for Xiaomi.eu
1) Unlock your bootloader
2) Flash TWRP via fastboot
3) Boot to TWRP and format data (wipes everything including internal data)
4) Flash Xiaomi.eu zip from TWRP
5) Flash Magisk
Steps for LineageOS
1) Same as above
2) Same as above
3) Same as above
4) Flash latest firmware zip (7.9.22) from here
5) Flash LineageOS zip
6) Flash GApps (OpenGApps arm64 7.1.1)
7) Flash Magisk
Sent from my Xiaomi MI 5s Plus using XDA Labs
Click to expand...
Click to collapse
From what I remember, both Xiaomi.eu and LineageOS don't support the dual camera though, do they? I thought that only the stock MIUI ROM supported dual camera?
I have already unlocked my bootloader and I have TWRP on disk and boot to it with fastboot (so as not to break my recovery partition). I am not sure why MIUI global stable 8.5.2.0 seems to not work with MagiskHide.
I suppose I could get TB and backup all of the app data and do it that way. I just know I have some games I've put a few hours into that I'd prefer not to have to start over if I could avoid it.
The above 2 reasons (dual camera and save data) are the main reasons for sticking with MIUI Global Stable.
bmg002 said:
From what I remember, both Xiaomi.eu and LineageOS don't support the dual camera though, do they? I thought that only the stock MIUI ROM supported dual camera?
I have already unlocked my bootloader and I have TWRP on disk and boot to it with fastboot (so as not to break my recovery partition). I am not sure why MIUI global stable 8.5.2.0 seems to not work with MagiskHide.
I suppose I could get TB and backup all of the app data and do it that way. I just know I have some games I've put a few hours into that I'd prefer not to have to start over if I could avoid it.
The above 2 reasons (dual camera and save data) are the main reasons for sticking with MIUI Global Stable.
Click to expand...
Click to collapse
Xiaomi EU is based on weekly China Developer MIUI ROMs. So it's basically stock ROM with additional features/fixes/optimizations and GApps is already integrated. All MIUI features works fine.
You can use both monochrome and color camera on LineageOS. It only lacks bokeh effect.
I think you shouldn't backup/restore your system apps and data because there is Android version difference between stable and developer ROMs. Most likely will cause issues like I said before. Just backup your important game and third party app data.
khanjui said:
Xiaomi EU is based on weekly China Developer MIUI ROMs. So it's basically stock ROM with additional features/fixes/optimizations and GApps is already integrated. All MIUI features works fine.
You can use both monochrome and color camera on LineageOS. It only lacks bokeh effect.
I think you shouldn't backup/restore your system apps and data because there is Android version difference between stable and developer ROMs. Most likely will cause issues like I said before. Just backup your important game and third party app data.
Click to expand...
Click to collapse
The Bokeh effect is entirely software driven. You can verify this by covering one of the cameras and taking a picture and then adjusting the focus.
The part I like with the dual camera is the slightly clearer picture you get out of it in low light. Bright light I notice no difference, but in low light I can see a pretty good difference (presuming I hold the camera very still).
I imagine that Xiaomi EU would have the stock MIUI camera and thus support both the dual camera and the bokeh effect? If so, I may look at migrating to that and just do a TB on my games as everything else I can re-setup.
bmg002 said:
The Bokeh effect is entirely software driven. You can verify this by covering one of the cameras and taking a picture and then adjusting the focus.
The part I like with the dual camera is the slightly clearer picture you get out of it in low light. Bright light I notice no difference, but in low light I can see a pretty good difference (presuming I hold the camera very still).
I imagine that Xiaomi EU would have the stock MIUI camera and thus support both the dual camera and the bokeh effect? If so, I may look at migrating to that and just do a TB on my games as everything else I can re-setup.
Click to expand...
Click to collapse
It's a stock MIUI ROM, everything works. I can't test that right now because I dropped my phone thus my camera socked is problematic, only monochrome one works. I should reassemble it.
I don't really care about that software things since I'm taking RAW pictures when I need a good result.
Sent from my Xiaomi MI 5s Plus using XDA Labs
khanjui said:
It's a stock MIUI ROM, everything works. I can't test that right now because I dropped my phone thus my camera socked is problematic, only monochrome one works. I should reassemble it.
I don't really care about that software things since I'm taking RAW pictures when I need a good result.
Sent from my Xiaomi MI 5s Plus using XDA Labs
Click to expand...
Click to collapse
Might need to give it a shot then. Would be an interesting test for magisk. at the moment I can't figure out why it is failing to hide anything so thinking that MIUI global stable 8.5.2 must be doing some weird voodoo on it.
Thanks for the tips
EDIT - I just flashed the global dev rom and it now passes 1/2 of safetynet. I think I need to flash usnf to get the ctsprofile to pass. But I've made progress!
EDIT 2 - flashed universal safetynet fix and I'm now passing 100%. woo!
Hey,
i'd love to root the phone and get magisk and vipe4android working. Is this possible yet ?
drozo8o8 said:
Hey,
i'd love to root the phone and get magisk and vipe4android working. Is this possible yet ?
Click to expand...
Click to collapse
Not yet...we need TWRP first before we can think about rooting...
iPusak Gaoq™ said:
Not yet...we need TWRP first before we can think about rooting...
Click to expand...
Click to collapse
twrp for the cc9 wont work ?
Hello, I'm also waiting for twrp in order to root the phone. Is there any news about the release? The twrp of cc9e (if it's available) can work for mi a3?
Hello!
Well, it's possible to root without TWRP. I've done it already using Magisk manager to patch boot.img mannualy. There's a guide on Magisk XDA forum that explains how to do it.
But I had problems by doing this. First, after flashing the patched boot image, while rebooting, the phone went to Recovery and forced me to clear all user data. On second attempt, instead of "fastboot reboot" I've, instead, used "fastboot continue". The phone booted and Magisk was alive. But I've run to my second problem...lost my WiFi Mac Address and, without it, the phone lost the ability to connect to WiFi.
So I've reverted everything again by changing slot on fastboot to force the phone to boot on slot a (instead of b that was the one active by the time I've decided to try this method).
Since I was not in the mood for more trial and error, I've stopped my attempts here. The phone is now ok again, but without root.
If anyone is willing to try this method again, feel free to try yourselves if you want to. Here's a GitHub link to laurel_sprout_dump (where you'll get your hands on a stock boot.img / remove the spaces on the link):
h t t p s://github.com/AndroidDumps/xia omi_laurel_sprout_dump/tree/laurel_sprout-user-9-PKQ1.190416.001-V10.3.5.0.PFQEUXM-release-keys
But you've been warned. I run into the issues I've stated. It doesn't mean you'll run into those too but...still, you should only try this if you really know what you're doing. I've tried with boot.img from 10.3.4.0 branch. At the time there was only other branch (10.3.3.0). Now we have 10.3.5.0 as you may notice on the link. So I guess that one is good and legit (since it matches current version on my phone).
Oh, BTW, the phone boot time was increased when Magisk was active....
Good luck.
Cheers!
Enviado do meu Mi A3 através do Tapatalk
hi there
i have unlocked bootloader and i can root my phone with magisk completely
but when i try to root with supersu , it flash completely in twrp but nothing appear in the app drawer and when i install apk it says phone is not rooted !
any one rooted mi a3 or any android one device with supersu ?
up up uppp
Why do you want to install root app which hasn't been updated for more than 2 years and pretty much no one uses it (at least with recent devices/Android versions)?
_mysiak_ said:
Why do you want to install root app which hasn't been updated for more than 2 years and pretty much no one uses it (at least with recent devices/Android versions)?
Click to expand...
Click to collapse
becauae when i flash magisk my phone start lagging and other problems ...
#MmdRza said:
becauae when i flash magisk my phone start lagging and other problems ...
Click to expand...
Click to collapse
Not sure how could be that related to Magisk, there are probably thousands of Magisk users with A3 phone and so far no one reported such issue. Personally I see no lagging or "other" problems while using Magisk. In each case, it would be better to invest your time to troubleshooting Magisk, where you have a high chance of finding a solution and possibly receiving a fix from developer (if your issue is valid). With SuperSU you're on your own.
SuperSU is very outdate
It´s a Crazy idea to install SuperSU in 2020, Magisk is more, more, and more better.
Hi.
Well, I have faced the same problem: flash magisk and... soft brick ?. I followed this tutorial https://magisk.me/root-xiaomi-mi-a3/ and
I tried 2 times and doesn't work, so I went back to stock room.
Please somebody could help to solve. Thanks and sorry my bad english, I speak Portuguese...
the tutorial posted in the link above uses a specific boot.img (V10.3.5.0.PFQEUXM) are you sure you are using the correct rom to match the tutorial ?
instead why not use TWRP and root from there by flashing Magisk.zip over a clean Flash of the rom of your choice..?
i have used Magisk on my A3 with many different roms , no lagging issues atall , so i cannot suggest supersu as im not even sure it possible with the A3...
_mysiak_ said:
Not sure how could be that related to Magisk, there are probably thousands of Magisk users with A3 phone and so far no one reported such issue. Personally I see no lagging or "other" problems while using Magisk. In each case, it would be better to invest your time to troubleshooting Magisk, where you have a high chance of finding a solution and possibly receiving a fix from developer (if your issue is valid). With SuperSU you're on your own.
Click to expand...
Click to collapse
I recently installed magisk and my battery drain increases too much. I had to uninstall and flash stock rom
krishna.telgave said:
I recently installed magisk and my battery drain increases too much. I had to uninstall and flash stock rom
Click to expand...
Click to collapse
Can't confirm this, I have Magisk on all my phones and it doesn't cause any "battery drain". What was your screen off battery consumption with and without Magisk? I see no difference if I have Magisk installed or not.