yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] paede:
Best buy? Chinese or Global Version

Hi all

Quick question: I have planned to buy a Mi 8 and deploy LineageOS to the device. Which device should I buy? Chinese Version with Global Rom and unlocked bootloader or Global Version with Global Rom and locked bootloader? I prefer the Chinese Version because it's cheaper and bootloader is already unlocked. Any disadvantages?

Thanks

Patrick
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] arifqur:
They are basically the same device. There only thing that you have to be aware of when buying the Chinese variant is that if you flash a global rom on it using the miflash tool, you should never tick the box that says clean and lock the bootloader. You'll end up hard bricking your device.

I am using the Chinese variant since October last year and flash all sorts of custom roms on it and have had zero issues do far.

Also I have never used the miflash tool and have only flashed the Xiaomi.eu roms on it for latest firmware.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] missionred:
im not sure anymore but when the mi 8 was released there was a 256GB ROM Model wich is only sold as a chinese device, i got that one. Dont know if there is Global Model right now.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] nfsmw_gr:
No, no disadvantages really besides any warranty reasons.

I got a chinese unclocked as well.

---------- Post added at 12:05 PM ---------- Previous post was at 12:04 PM ----------

this as well
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Alfred0:
Thank you for this good ROM, however I have a problem with a specific banking app called BankNorwegian ( https://play.google.com/store/apps/details?id=com.banknorwegian&hl=en_US )

The app closes during opening and complains about root. Now, I don't know if this is the fault of either magisk, or LinageOS rom, but this problem came when BankNorwegian updated their app. I guess they implemented a new way to check for root. I have tried root hiding in magisk but the app still refuses to load. Do you have any tips?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] rizahakam:
try change the package of Magisk Manager
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Valdrio:
There's a chance they check for unlocked bootloader.

The best thing to do is to control if hide magisk is selected and then as the previous user(sorry but I didn't read your username ) said to change the package name of magisk.

Some app can even check if you are o custom rom, I don't know how to bypass that.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] arifqur:
I get notifications only when I unlock the phone.

Been having this issue for quite some time now on Los
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
new unofficial build added to OP.

sync latest lineage sources

Sepolicy changes

screen recorder fixed by bgcngm

minor livedisplay changes.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Hello, I tested the build today.

Fingerprint is gone, and LiveDisplay "automatic outdoor mode" is still grayed out. I'll upload some logs soon.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] TeeHoang:
Hmmm seems to be lots of problems from such a famous ROM :(
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
There are few actually. And remember it is an unofficial build. Official build has everything working.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] fludi:
I've tried to flash the newest build as described in the first post. Can't boot, it goes back to TWRP after the second try.

I've tried the TWRP 3.3.0 as well als the 3.3.1

Where's the mistake?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Encryption. LOS is encrypted by default. Flash a disable zip after the ROM or format data
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
[MENTION=1187148]infrag[/MENTION] Here are the logs. I see errors about fingerprint in ADB logcat.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] fludi:
Thank you very much!

Is gesture navigation available for LOS?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Nothing like MIUI or OnePlus. But I strongly recommend you buying Vivid Gestures from the Play Store! ;)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] TeeHoang:
Ehhhhhh I was about to flash LOS this afternoon :'( but seeing all the posts discouraged me :/

Running AOSiP now :(
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Valdrio:
Official Los works great

I still haven't tried the unofficial one
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Yay another fingerprint denial for FPC fingerprint.

I'll give you another build soon.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Heres another build with hopefully the next denial fixed. Lets see what happens now.

https://drive.google.com/open?id=1OSW7wvsBFaPROsO04sWLb2UDdVfaQhdk
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
FP still not working. I had soft reboots, maybe because of dirty flash. I took the logs and flashed an older unofficial build.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
oops. made a typo in the sepolicy rule. Fixed. Try this build instead:

https://drive.google.com/open?id=1wM4WW4duSPE_EfbT-5tIfSi8mRn6seXC

Regarding Soft reboots: This can happen sometimes after flashing. Usually you will notice that wifi and data isnt working when you get soft reboots after a flash.

Power off and then back on again and it should be fine.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
This time fingerprint is there in settings>security, but it still does not work. On lockscreen it says "fingerprint hardware not detected" when I turn on the screen.

Also I'm still having soft reboots on this build too, reboot does not fix it. I don't have these when I go back to 2019-06-26 build. Wifi & data work fine even with soft reboots.

I'll upload the logs during the night (how inconvenient to be on opposite sides of the planet !)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Looking forward to more logs.

As far as the reboots go, do you happen to have logs of when it reboots?

How often does it reboot?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
You'll find logs about soft reboots in 2019-07-08_16.41.zip (previous build) few posts above. It reboots very often like every minute, I can't use it. You'll have new logs in 4 hours, the time I get home ;)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
[MENTION=1187148]infrag[/MENTION]

I backed up /data to do a clean flash and see if soft reboots happen because of some mismatch between /data and /system. But even with a clean install, I couldn't pass the wifi network selection, because reboots happen every 5s. Since I couldn't install Syslog, I can't give you proper logs, I hope 2019-07-08_16.41.zip will help you. I have ADB logcat though.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Thanks for your efforts.

Next denial is in logs.

Logcat is all I need.

I believe from your previous log that fingerprint is crashing therefore causing reboots.

I'll up a new build in 5 hours when I wake up
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
bah.

Had time to actually look at the logs properly. Seems the reboots were from my dirty test builds using system fingerprint files and then removing them again.

Hopefully addressed the next sepolicy denial anyway thanks to your logs.

Next build shouldnt reboot on you anymore :|

https://drive.google.com/open?id=1SlUpBMM6mThusH2njDwGlq9GNjlBe3Se
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Thank you for the new build! No more reboots indeed. Fingerprint is present in settings>security, but does not work. "FP hardware not available" is written when I wake the phone on lockscreen.

Logs in 10h ;)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Damn. No offense but I need more testers to get this done quicker :)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Of course! I'd be happy so see more people involved in testing and debugging rather than just asking how stable is latest official build [emoji6]
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Alfred0:
Sorry for the delay, but thank you for the suggestions!

I tried several things and also to change name of Magisk package. However the bank app did not agree.

The last resort was to completely delete Magisk, and now the bank app works. I find it strange that this small-sh*t credit bank is playing this hard to get, but hey, that's life, eh?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Qian Lee:
Fingerprint is work in my phone
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Weird, because for me it works on 26-06 but not on 10-07.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Qian Lee:
you need clean flash maybe
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Rohan3910:
So is this rom stable? Or nah?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] pat__boy:
What is the fingerprint? I can try to test it too if i know what is it.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
[MENTION=1187148]infrag[/MENTION]

Even tried clean flash, did not work. I see something about permissions in ADB logcat, could it be something that I can fix with a chmod ?

Fingerprint is prompted at bootup, but the sensor is unresponsive. All logs attached, clean and dirty.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
To anyone who would help, flash latest unofficial build and test if the fingerprint sensor is working. Everything is stable but this.

Be aware that a clean flash is required to go from official to unofficial. You must wipe /data partition, ALL YOUR DATA WILL BE LOST. Backup your apps with Migrate and keep a backup of /data.

Latest build by infrag:
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] pat__boy:
Thx i will try that on the weekend :)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] nfsmw_gr:
So if I got this straght:

Official builds are stable and working fully, unofficial ones are having some issues and being worked on?

Can someone confirm?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
I can't confirm. Unofficial is just as stable as official, with the exception of fingerprint that we are trying to fix for days now. It's going slowly because I can't send logs on infrag's work time.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] nfsmw_gr:
Thanks for the info.

I'll wait for more input to be sure.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
So things are progressing. The service is loaded and seems to be mostly working according to logs.

There's another denial so I'll fix that and make a new build.

Could you register a fingerprint at all?

Heres the next build to test:

https://drive.google.com/open?id=1uae3lu8XkTdX7nxUyMdvw-zdIVz85SkG
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Actually just to clarify I've cross flashed between official/unofficial without any negative results that I've noticed.

Feel free to try at your own risk :)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Fingerprint is working! But I can't find smartlock (logs in few minutes)

EDIT : logs
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Another denial. Another build.

https://drive.google.com/open?id=1f_Inhd_gcHUkvPdvOkfUa-a7U93FnbLg
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
I clean flashed this build, I'm able to unlock the phone with fingerprint and face unlock. I haven't read the whole fingerprint discussion and unofficial builds things, but I was able to add two fingerprints and unlock the phone, the same goes with face unlock. I'll send you a PM with the logcat file.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Thanks for testing.

I have a goodix fingerprint sensor and it works fine for me.

The discussion above is referring to the FPC fingerprint sensor which has a few sepolicy denials we've been working through.

Happy to see logs and I can check what fingerprint sensor type you have.

Cheers
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
OK weird thing, smartlock was just disabled in settings> security> trust agents

Everything is working fine now.

Just LiveDisplay > automatic outdoor mode is grayed out

And face unlock is still unable to recognize my (or someone else's) face. Very strange, I should try with another ROM
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
OK, got it, thank you for the explanation. I hope the log can help work it out. Just for the record, I have done a clean installation with micro gapps.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
You do indeed have an fpc fingerprint device. Logs are clear of denials related to fingerprint so I think we finally got them all.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
So, you mean dipper has several different FP devices made by different companies? Is this what you're looking for? More logs from more devices with different FP device manufacturers means you can fix it for every device. Right?

Anyway it's working fine for me the FP unlock, it's almost as fast as miui's one and it's accurate.

Also, I've been able to add my credit card to GPay successfully with your suggested fix, I'll try to make a payment later on tonite. My credit card uses Nexi app in order to manage it on my mobile, that app isn't working but this time I could add the card thru GPay, all the other times (with any kind of ROM) I tried I had to go thru Nexi app to add it to GPay successfully. I'm not sure the payment will be successful because of this, but I'll try to report about this too.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Konskl:
just to be sure.

1)Do official builds support gpay or the fix included in the first page needs to be installed after flashing rom and gapps?

2)Do unofficial builds support gpay without any fix or fix needed also?

3)Any other difference between official and unofficial?

Thank you in advance guys!!!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] riyosakura:
its also weird if its work with magisk deleted, since your unlocked bootloader status will be visible without magisk.

every bank app work well with magisk hide + magisk repackage in my end.

the problem is, i use the phone for my daily driver and for working. i can't erase and put everything up on its place everytime a clean flash needed and for the worst case when the phone unable to boot and my client calling me, it will mess my job. :(

lucky you have the time to flash every build.

official build or unofficial are both working properly. the only exception is when your mi 8 fingerprint hardware is not goodix, since the developer owned the goodix one.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] nfsmw_gr:
I see.

How can I know if my device uses goodix or not?

Will download aida or cpuz suffice?

Thanks.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Konskl:
1) So how can we figure out if we have the goodix one? 2) And are official or unofficial builds troubled with the fingerprint?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] riyosakura:
Only unofficial have problem with fingerprint. Afaik, everything is working properly in official.

Install hw info.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Seyaru:
Hi [MENTION=1187148]infrag[/MENTION] thanks for this build i have a problem during calling i cant use headphones type-c dont work but when listen music or some media work fine.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] berglh:
NFC Payments

EDIT I just saw the linked zip on the OP, I'll give it a try, ignore this message! Sorry

EDIT2 The instructions you linked too have what I assume are the same mods setting the SQL lite DB values to 0 in the dg.db. This did not work for me doing it manual method. I've tried removing and reinstalling Google Pay, deleting all Google Pay storage and still no dice.

It allows me to register cards and continue on, but the actual payment doesn't end up working. I might dig through that thread to see if there are similar people experiencing the same issue and report back if I find any clues.

[MENTION=1187148]infrag[/MENTION] I'm still unable to use Google Pay to pay for things. I'm on an official build from this week with the firmware you linked in the OP and your latest build of TWRP.

Generally NFC seems to work with creating Bluetooth pairings, reading some of my Smart ID cards chips with NFCinfo app.

Initially I was unable to register my cards with Google Pay and Magisk SU root installed, then I followed this guide:

https://xdaforums.com/apps/magisk/magisk-google-pay-gms-17-1-22-pie-t3929950

I had problems with root and another banking app, so used the setting in Magisk to install Magisk Manger with a different package name which seems to hide it well.

This allowed me to register my card and link with my banking app. However, when I go to pay at an PayWave terminal, I keep seeing a "read card chip error" on the PayWave machine. I've tried a couple of different terminals now with the same effect.

I tried to search this thread for NFC payment related posts, but haven't seen anything recent with getting this working. Can you or anyone else provide any tips on getting this going? :confused:
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Hey, I'm on latest unofficial build, and did the GPay stuff manually. NFC & GPay are both working very well.

I gave the link for GPay, and also gave the steps for flashing unofficial, search the thread with my pesudo ;)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] hypern0va:
I reported logs related to this problem some weeks ago and I believe it's HCE which isn't working, as definitely it's not only Google Pay. Multiple NFC-related services have problems at the moment on official builds.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] berglh:
This sounds like the problem I'm experiencing. Guess I'll have to wait to give it a go. I ended up installing the Magisk Module from this post now, I'll try it out tomorrow, but I'm not holding my breath :cowboy:
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] gautam.malik:
With the latest unofficial build, fingerprint reader does not work.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] :
Did you flash 11/7 build? in OP is older one.

In this fp should work.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Valdrio:
This is latest unofficial build, am I right?

Coming from revenge OS, I can install this normally or should I flash something before?

Signature spoofing is enabled?

Thanks
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
I was able to add my card to GPay without issues on latest unofficial build, but first time I tried to use it my payment was denied. So even with the fix provided by OP, I'm not able to use GPay.

As written on my previous post, as soon as GPay came here in Italy I was able to pay with my card, but I needed to set up the card thru Nexi app, I wasn't able to add it "straight" to GPay (I can't explain this better in English). Then Google changed things and I wasn't able to pay anymore. Now, with latest unofficial build I was able to add it "straight" to GPay and this gave me hope it was gonna work, but it actually didn't. On this build also I'm not able to open my bank app (Nexi) because it detects something modified system.

All this to say GPay it's working or I wouldn't have had a denied payment, but something's broken during the process of payment (maybe you all know where actually this process is broken, I'm not Android developer or something..) and also maybe something's wrong with my credit card, do you guys think that companies that issue credit cards have different security policies related to NFC payments so that some may work with an hack and others wouldn't?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Works very well for me with the fix. I can add cards and pay without a problem.

(latest unofficial, magisk, fix applied manually)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
I'm not rooted on unofficial, is it required? I must've missed something then.. I thought that root would've broken the payment on latest unofficial. Did you rooted with Magisk, applied the fix suggested by Infrag and then added the card?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
The issue does not seem to be root, but the unlocked bootloader. Magisk is almost always impossible for apps to dect. I would advise to always flash Magisk if you unlocked your bootloader.

I always do in this order :

- (firmware update)

- rom

- gapps

- magisk

- manual fix (you don't ever need to do it again unless you wipe /data)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] gautam.malik:
I did flash the rom in the OP.

I flashed official one right after that.

What's the difference between official and unofficial except built-in vendor?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
I couldn't believe my eyes when I saw the tick check on my phone's display!!! Finally I was able to pay with GPay!!! Thank you and thanks infrag!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Official has some differences in NFC.

The thing is there was no point really trying to much to fix it as its been fixed with our own vendor image.

We've been almost ready to ship our own partially source built vendor for months in Official builds but theres always been something holding it back.

Hopefully in the next week or two we can finally ship our vendor.img (without causing too many other problems) and then NFC will work correctly for you.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
New unofficial build in OP.

-fixed hdr/sdr switching denials for youtube (although there is still a bug that it switches back to the wrong colour profile afterwards)

-fixed another gps sepolicy denial where gps service would crash after an extended period of time (hopefully this is the last one but time will tell)

-notification led is not set to a max brightness of 6 by default anymore. This means it will be very bright to start with. I'd suggest turning this down in settings for both battery and notification led if it bothers you (it bothers me)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Thank you so much! I can switch Automatic Outdoor Mode off now :3
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] natheux:
Hi guys, is it better to go for official or unofficial build? What are the differences?

Thanks
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
lol yes that was fixed by bgcngm

Say thanks to him if you have time as a lot of the work(more than 75%) done for mi8 and similar xiaomi sdm845 devices is done by him.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] TeeHoang:
I heard official has everything working.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] ZhenMing:
Thank you developer, Infrag on his good work. I managed to get it work, but my CTS was failed. I can't use my banking apps.

Anyone had any solution for it?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] xdamami:
Can anyone make video call via whatsapp and check camera quality there is still present noise?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] mahmutuslu:
volte and dual 4g not work :(
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] ermacwins:
Did you install lineage? Did you have to format data?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] helldroid32:
What version gcam in last build ROM ??