yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] HB-1:
Hi!

First of all thanks a bunch infrag for this official! This is more than appreciated. YOU ROCK! Thank you thousand times!

Actually I am facing some issues. One is very annoying and drives me absolutelly crazy. The other is just a security concern. But let me try to explain.

1. When I am listening to music via the default installed music application (same for VLC I guess, but need to check) via my headphones (in ear via the included USB-C Adapter) the volume is lowering itself automatically. This happens from time to time when using the phone for other things like browsing the web with firefox, read rss feeds etc.. It also happened when having a call via headphones. End result is that the volume is @0% and i cannot hear anything. Does anyone else have the same issue?

I guess you need a logcat for this? Any recommendations for an app from the f-droid repos?

2. USB Debbuging turns itself On again. Usually I turn it only On when I need it. On my device it turns On again after I reboot the device. It is definetely not what I expect. Can anyone confirm?

Same here? logcat?

3. Just a question about the vendor. I used exactly the method you described. My LOS is patched now very fast with security fixed, but the vendor is roughly outdated. Since I read here a lot that I should not use the newest one, because there could be file renames etc... which could lead to issues... What can I do do have the latest? I'd like me phone up to date with the security patches. I am not very familiar with this vendor and side load stuff. On my old HTC M8 I never needed to do this that way. There it was just unlock, install twrp, install LOS and root and you're done.

4. Just a site note: The Instruction on the official LOS Webpage for installing LOS 16 on our Mi 8 is absolutelly different from what you're describing here for the installation process. Why? What's the difference? And what's the prefered way? As far as I understood is, that I have to install the MIUI in the correct version before, then install LOS.

But in fact official LOS website describes it in a different way.

Kind Regards

HB-1
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Moldeb:
So what does /settings/about this phone/Android version[click item] give you? I'm on an end of March 19 vendor and see a "vendor security patch level" of "5 June 2018"... pretty dated. General security patch level is 5 May 2019 of course.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] defex10:
Exactly the same.

Vendor security 5 June 2018 and general security also 5 Mai 2019.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] arpharazonn:
Hey dev [MENTION=1187148]infrag[/MENTION] i want to ask something..

The signal bars on statusbar show always low signal on lte and a little bit better on 3g. and i did some research and found many topics. Its definetely about RSSNR. On some custom roms (pe) or stock miui the signal is very higher. At least signal bars shows like that idk if its real value or not. But seeing completely "grey" signal bar is slightly disturbing :) Do you think to do something about this maybe "dont use rssnr" on developer settings? or you say it is true now as it's supposed to be. I found topics abou this issue:

https://xdaforums.com/redmi-note-4/...t/dev-fix-signal-issues-fluctuations-t3811950

https://xdaforums.com/poco-f1/how-to/cell-signal-worse-custom-rom-t3881912

https://www.reddit.com/r/LineageOS/comments/aqxntw/whats_the_offical_los_stance_on_the_snapdragon/

And here is a commit what am i talking about:

https://github.com/crdroidandroid/a...mmit/a9d9f3c62fb456d8c47c582900011a9b5d4f9a10
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Moldeb:
Interesting - so apparently there's not much benefit in using a newer vendor (security wise). Mine is end March yours end May, both have the same security patch level...

Still the end of May vendor seems to have better radio drivers so I'm interested in it. Do you have any issues with it? LOS does not (yet) officially support it...
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] defex10:
Today I noticed that I received 20 messages at once.

Beside that everything was normal.

Sometimes (also before updating) I am getting bluetooth reconnect when I am using android car, but that happend today again. (Music is turning a little bit down and back to normal after the reconnect)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Moldeb:
Likely not due to the new vendor, even though I don't have the BT issue.

Do you experience better radio reception (4G, WiFi)?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
If anyone wants to try out a Google Pay database hack for Android Pay please read on.

Step1. Flash this twrp recovery.img which includes sqlite3 built in: https://drive.google.com/open?id=1OcmasmRO1athTFL5zvy-vgytMtDHMfwT

Step2. Flash this .zip file which is just a script modify your Gpay dg.db database so it passes Google assert checks. : https://drive.google.com/open?id=1C21DFMQz8Eq7wk8Dg1eDGpLhEJhAs1i2

Step3. Reboot and check if Google Pay now works.

If someone could test the above and confirm it works for them that would be great.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] arifqur:
So this twrp is working well with other stuff also or is it only recommended for doing this specific function
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Well its twrp and it works. What other stuff are you referring to?

The only major difference is as noted sqlite3 is added. If you need a custom recovery different than stock twrp get them to add sqlite3 to their builds perhaps?

If someone can find a way of adding sqlite3 to the .zip and allowing it to run that way then that would take away the flashing recovery requirement. Since I dont have time to package up the executable in a working format I've done it this way.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] skorpioneMM:
I have issues with screen flickering in the latest builds... that doesnt happens with older builds like 1-6-19
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aSaro12:
It would be nice if implemented ! [MENTION=1187148]infrag[/MENTION]
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
logs please
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aRnonymous:
Any ideas about NFC payments?

i add a logcat of payment attempt.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Valdrio:
There are a few post about it with some solutions in this thread, search and try
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] arifqur:
Other stuff like backup and restore as many official twrp versions had a bug when restoring, in that the restored rom would not boot
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Did you try "my" google pay fix or not?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Wipe data

install lineage unofficial .zip

install gapps if necessary.

Thats it. It works for me.

New unofficial build added to OP.

I've switched all fingerprint files back to dipper ones and added one extra one (which shouldnt been needed)

Please test and report back.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aRnonymous:
Not.

I was searching for keyword "NFC", not "pay", so only now i saw your fix.

But i am not attempting to use google pay, nor is it a magisk issue AFAIK.

My bank app doesnt care about root.

With P3R, miui and havoc on dipper nfc pay worked, with and without magisk.

Do you think nfc tap to pay should be related to your fix or only to gpay root hide benefits from your fix? I can try it out later
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
I tested the fix and it works well for GPay. It modifies a file in Google Mobile Services, so I suppose not only GPay benefits from it. I can't guarantee that though. Anyway it's harmless so feel free to try!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Ferr1s:
I d like to try but i m afraid to destroy something. Or is the risk low? I dont want to reinstall whole system

Gesendet von meinem MI 8 mit Tapatalk
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] aRnonymous:
So now i tried. Flashed the recovery.img & db.zip

Still same behaviour, with tap&pay banking app

I did not try gpay.

Attached logcat of the event.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] powergo:
I try many rom but always back to LineageOS, Thanks for clean rom.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
so [MENTION=9318001]SPOCK_VULKAN[/MENTION] have you tested this yet?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
Hi sir. I just dirty flash but it didn't work. I will clean flash it soon when I come home. Sorry for delay
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
[MENTION=1187148]infrag[/MENTION] clean flash the last unofficial like wipe data system cache and dalvic. But unfornatelly fingerprint still didn't work for me

https://pastebin.com/TFY6Tm5A
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Hey thanks for flashing. Clean flash wasnt required but thanks for your work in testing :)

Also what was the last firmware you flashed?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
I was on miui global dev 9.4.18 like your vendor in op. I have specially download this rom for see if it's related about miui version. Thx you for continuing your good work. Keep it up
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Can you try something for me?

Have you installed magisk?

If so can you run the command from shell with root privilleges:

./vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm845

And then get a logcat of the output.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] riyosakura:
Sometime my phone restarted by itself.

Most of the time i didnt notice the phone restart, it just, i need to enter my password and notice me i need to put the password after the phone restart.

Anyone got the same problem?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Official or unofficial build?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] hypern0va:
It's been happening to me too for some days on the official build
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
Sorry [MENTION=1187148]infrag[/MENTION] I don't know where to get that log or even where to type. Pls enlighte me.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Seems like fingerprint service stops the systemui for some reason.

If you could send a complete log to me it would be good. If you remove email addresses etc thats fine but would appreciate the complete log :)

Cheers

Edit: Is pocketmode enabled in your settings?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
In terminal :

[command] > [file.txt]

Should do the trick right?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
plug your phone into your computer.

open command prompt and type:

adb shell

su

(on your phone you should now allow terminal to use root permissions)

Then run the command as specified previously.

If you dont have a computer or adb then too bad.

As a side note perhaps try this test build first?

Dirty flash is fine. :

https://drive.google.com/open?id=1Fgi_nsF10S39cYUC4pqU1CmUHm-f-Nav
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
[MENTION=1187148]infrag[/MENTION] it's workin

Edit: after clean flash fingerprint still missing. What hell gone with my device. I think it's was a random fix.

And again it's not workin
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] hypern0va:
Guys I can't find a setting for modifying the vibration intensity (I'd like to increase it), am I missing it or is it actually lacking?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] riyosakura:
Official build.

It seems [MENTION=3606123]Schwinni[/MENTION] and [MENTION=6037339]hypern0va[/MENTION] got the same problem.

For the pocket mode, i do activated it.

For the logs : https://drive.google.com/file/d/1-3R2a7Pr2OzOcT79mFm_6_T8ULNFlXMH/view?usp=drivesdk
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Schwinni:
I sent you a PM with a link to several logs.

I deactivated pocket mode now and see if it changes something.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Can you try using 9.5.17 firmware as thats where the fingerprint files come from.

Here is a link to the firmware in question.

https://drive.google.com/open?id=1dV4Ec3wuYCgSDo0BkxSYsscH8yFWxC1P
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] xfighter11:
Strange thing happening. Just came from Havoc and wanted to install LineageOS again and followed the instructions from the first post. Now the phone starts and prompts me to enter my PIN. But after entering it the screen flashes black for a second and it asks me to enter the PIN again. No way to get around that. Any advice?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] najabi:
How is vendor implementation progressing on Lineage official?

Is there any estimation of arrival?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Szuwax_frt:
I think you can only update vendor with special zip https://xdaforums.com/mi-8/development/vendor-vendor-firmvare-links-custom-roms-t3914843 file or you can install Miui and after that LOS. I don't hear any news about add vendor files to LOS. But i think it is nothing bad because your phone is still secure; it is only some kind of "drivers" for your phone. If im wrong then sorry.

Tommorow i want to back to LOS...
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Valdrio:
I think he was referring to custom vendor,the same you can find on lineage os unofficial. In theory in some weeks even Los official should package it.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] rizahakam:
you need to formar your data, as your storage is encrypted.

and it's format data not wipe data, you need to type yes in TWRP to format data
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Moldeb:
Updating the vendor is straightforward though: Just install the vendor linked in #1 using TWRP, it's a ZIP and TWRP unpacks it to the correct destinations. As long as the recommended vendor in #1 remains unchanged, there is no need to update it. I did it only because my vendor was older. And even though I'd like to get the end of May vendor for its allegedly better radio drivers, I went for the one linked in #1 to avoid blobs trouble... my radio isn't bad anyway.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] rizahakam:
you misunderstanding his question. the one he ask is custom vendor build by LOS team.

currently we use vendor provided by Xiaomi, however if when custom vendor is finalized there will be lot of advantage, as any problem in Xiaomi vendor can be fixed by community
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Szuwax_frt:
I have small problem with google play store. I have fresh instalation. Magisk and ofc GAPS nano (i always using nano option) in google play store i have information: "Device is certified" but i still can't install Netflix app.

I wiped cache/dalvik etc and it still not working.

Month ago was ok but i moved for a while to MIUI and now im returned to LOS.

Any ideas how to resolve that problem?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] xfighter11:
I have LineageOS running now and it's almost bug free. Love it so far. The only bug I found is that when I deactivate the second SIM card it still shows the icon in the status bar (without coverage). And the second thing I noticed is that notifications (e.g. Steam Guard) don't pop up. I need to pull down the status bar to see it. On most other ROM a window pops up for like 3 seconds. Is there a way to activate this?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
[MENTION=9318001]SPOCK_VULKAN[/MENTION] have you had a chance to test this yet?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Are you using Stock openGapps?

I see you have Lawnchair running with a whole bunch of errors listed related to that too.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
Yes sir but still no luck. Fingerprint don't work.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Heres another test build to try:

https://drive.google.com/open?id=1tfXKcyoKaePIAqDeQBQR5zBpLJMvw_Y9
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] bandita74:
Hi,

my phone is unusable since the lineage-16.0-20190605-nightly-dipper-signed.zip release. After the display goes to sleep or I push the power button the screen remains blank and i can only restart the phone. :(

Has somebody an older nightly from 2019.05.xx ? I would like to downgrade but on the lineage os download page there are no older nightlies.

Thanks!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
Dirty flash didn't change nothing. I have noticed a little bug when you disconnected WiFi to use data the phone reboot by itself. Thx you for help and great working
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
I've never had that.

I wonder what is different with your phone.

Do you use exposed?

Any Magisk modules?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
No xposed. I hate it. But I have some magisk modules yes ofc it can be related to magisk.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] 250652:
The new update of the 12/6/19 comes that you can activate and deactivate the recording of calls.

Someone knows where it can be activated. I can not find it

Thank you
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] najabi:
How can you access 12/6/9? There's only 5/6/9 yet available...
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Hydro24:
Are you referring to MIUI? Because LOS official is updated daily.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] riyosakura:
Yes, i use stock opengapps and lawnchair.

It seems its not happen only to me. But another user as well and its only happen in the later build, older build never had systemui crash.

So, is it the lawnchair or opengapps is not compatible with the later build?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Schwinni:
Depends on your country:

https://review.lineageos.org/c/LineageOS/android_packages_apps_Dialer/+/249722

---------- Post added at 05:40 PM ---------- Previous post was at 05:37 PM ----------

I'm using Nano OpenGapps and have the SystemUI crashes.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] UniverseSynergy:
I'm trying to install the unofficial rom, but it goes straight to recovery.

I followed the guide listed in the OP (wipe->miui->los) but it doesn't seem to be working.

Official works fine tho. Any tips on what could be?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Olasergiolasv2:
I also have the exact same issue with the fingerprint reader on your los unofficial builds, taking a wild guess i'd say that it could be related to different revisions or models of fingerprint readers being used on the MI 8 as we've seen on other devices like the RN3P (GOODIX and FPC sensors) :confused:

EDIT: neither using magisk nor xposed.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
If you don't set the right dialer as the default apparently you can get reboots with stock opengapps
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Custom kernel?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Olasergiolasv2:
Nope, clean flashed your unofficial los build that's all, although after that i also tried flashing a custom kernel just in case that fixed the issue but had no success.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] riyosakura:
I've already set the default dialer correctly. Beside, the problem only occur on the later build, not with the earlier build.

Btw, you have not experience the same issue using the official? Or you only use unofficial version, so its not occured with unofficial?

Or maybe the culprit is incompatible vendor? Should i update my vendor? I'm currently in vendor which you post in OP.

Thanks for your help.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Schwinni:
That didn't do the trick for me. I updated to 9.5.30 and still have the problem.

Do you use AFWall+?

Since the build from yesterday together with disabled firewall in AFWall+ I had no system UI crashes, which means 23 hours uptime without a crash.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
[MENTION=1187148]infrag[/MENTION] I heard something about fingerprint scanner some says it's coz by FPC fingerprint scanner. And with goodix is safe. Maibi I have FPC scanner. Unfortunately I sold my mi8. Thx you and keep it up the good work. Cheers
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] riyosakura:
no, i'm not using AFWall+.

for the systemui crash, sometime i dont have a single systemui crash in about two days. but, the crash is still coming back.

the systemui crash is not only happened with LOS, PE and some others custom rom do have same problem.

what phone you'll be switching to?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] SPOCK_VULKAN:
Just another mi phone mi9:o
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] indishcurry:
hi everyone!

happy to join the mi 8 community. i have two questions:

is it possible to flash gapps when formatting system partition?

is it recommended to update vendor, as discussed in previous posts?

thanks
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] rizahakam:
you must flash GApps if you want to have Google Play Store.

for vendor, it's better to follow what dev recommend
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Skeltenaer:
Hi all,

Which camera app are you using with LOS on your MI8?

The stock camera keeps crashing and I also could not get this MI8 Google Camera port to work successfully.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Valdrio:
Not only playstore, also face unlock, smartlock and some other features.

Fortunately I use nanodroid's microg

---------- Post added at 09:11 PM ---------- Previous post was at 09:09 PM ----------

Up to now I never had any problems by updating the vendor, it's not really needed unless it solves problems or upgrade some aspects of the phone

---------- Post added at 09:12 PM ---------- Previous post was at 09:11 PM ----------

Gcam by B-S-G, gcam by arnova and anxcamera
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Skeltenaer:
Thanks. I still cannot seem to succesfully install B-S-G Gcam (installation fails) but Arnova seems to work fine and also seems to let me use the photo's browser app again without crashing.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] indishcurry:
thanks for your answer! in OP it is mentioned, that gapps can only be flashed on clean installs - my question was, if it is sufficient to wipe system, or do i need to wipe data as well, i.e. to flash newer gapps?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Valdrio:
If only want to update gapps no need to wipe anything, if you want to install gapps then it's better to wipe system and data.