yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Its a kernel issue. UnluckyPoet has helped narrow down the bug. According to his testing we now know what the problem is caused by but havent established a fix as yet other than rolling back the 3 related changes that caused it.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
I tested boot3.img and the bug is there too.

Sorry wrong kernel, I'm trying again in 5 minutes
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Bootloops constantly :( Sorry guys

Tried link from first post
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Not sure what exactly you are referring to.

Others have had it booting.

Anyway just in case I'm doing a clean build which I should hopefully upload tomorrow with the hopefully final audio patch from UnluckyPoet included.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
I don't know what is going on. I flash another random 12 ROM it boots fine. I try your los19 links they boot loop. Some never boot, some make it till first screen and boot loop. I don't know maybe my problem with hardware. If others find the patch work then do as they say
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] gcholvi:
Me yesterday, after updating bootloop on all builds.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
So its not only me
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] mapotn:
Testing Build 09/05/2022 few days already. No issue so far. Thanks
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] ryan77627:
Tried dirty flashing over an April build (don't remember which unfortunately), that causes a bootloop. Does this build (09/05) happen to have G-Apps by any chance, or where could I find some built for Android 12? Trying to avoid an erase since I didn't happen to backup my apps 😬
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Downloads for : -Android- Generic Device/Other | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

I havent tried one of these links yet personally but reckon this Should work.

MindTheGapps-12.1.0-arm64-20220416_174313.zip​
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
17/05 build in OP. Should include the audio fix.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
If you just want to flash the kernel with the fix to test:

lineage-19.1-20220517-UNOFFICIAL-dipper.zip

drive.google.com
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] rossomike1966:
sorry i don't understand

this is the last build with audio fix; I also have to flash the kernel?

if so, which one?

thanks
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] couplefly:
GPS extra satellites test, Build 17/05/2022

Beidou 11

Glonass 5

Galileo 1

All 34
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] couplefly:
Flash ROM only by Adb sideload.

The decryption dialog box cannot pop up automatically in TWRP-3.6.1_9-0, Folder names are all Cluttered character, even no password is set in lineage-19.1.

When using 18.1, the decryption dialog box will pop up automatically.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Yes thats android 12. TWRP doesnt support decryption yet of android 12.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] rossomike1966:
Hi @infrag

i'm sorry..i flashed the build in first page (lineage-19.1-20220517-UNOFFICIAL-dipper.zip), but i have audio issue yet..lighter than before, but always present

ps: no more bootloop now

also while I was installing an app, the system replies that it is not possible because my phone is unsecured (Entrust Identity)
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
I'll try today
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] gcholvi:
There is no difference for me in the quality of the audio of the calls.

NFC and GPS They work perfectly.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] ryan77627:
Worked perfect, thanks! Just flashed the 19/05 update too and got that up and running on my phone. GPS and NFC work great, my earpiece has an issue anyways so I have no way to test the audio issue unfortunately. Great work!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] :
There shouldn't be a difference in the quality of audio anyways, it should fix the whistling issue though.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] rossomike1966:
I always feel the echo of my voice in the microphone
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] :
Is it a faint sound or a loud one? It should be way quieter than it used to be before the fix.

Also, it's possible to tone down the sidetone by editing the mixer configuration files.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Does this mean you still have problems with audio in calls?

If so please test this kernel to see if it fixes it for you:

boot.img

drive.google.com
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] minax007:
The microphone issue seems to be only on some devices.

Also in the PixelExperience thread only some people are reporting an issue. Others who have checked for a microphone bug do not have the bug.

@UnluckyPoet @rossomike1966 @gcholvi @Manosdocpap @couplefly @mapotn do you experience still an issue with the latest boot.img from @infrag ?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Tom_wvw:
Is there any idea to fix data icon conflicted with a dot in status bar? The bug like this

The logo is overlapped by a dot. (Although it is a minor bug, and may solved by using mods like aosp mods, but I desire to solve it in rom itself)

I tried to change 4G logo to LTE logo, but not work .

And add support about devices round corner (Like PixelExperience ROM , just add some config files in device tree)

And thanks for your hard work!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] cazkiller:
just turn off status bar alarm icon, it should work!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Tom_wvw:
That is not working, the data icon is still overlapped by battery icon, Theoretically the data and 4g icon should not appear in the right status bar when there is no more space between cutout and battery icon.

Turning off other icon can still trigger this bug, as long as the icon width lager than the space
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] cazkiller:
but in my case it worked by disabling the statusbar alarm icon.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] alengrosevic:
microphone issue is on custom roms. On stock there is no mic bug. On Pe11+ there is lot lower mic issue but it is present. IT is annoying but I hope that Lineage or PE will fix this problem.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
so did you try the kernel or just trying to confirm an issue I'm actively trying to fix for something I cant test myself? :unsure:
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Tom_wvw:
I tested the kernel, the noise is reduced a lot, but still present. Btw, can you fix the status bar icon bug? (Using battery icon & text can cause 4g icon being cover by battery icon)

Here are the steps to reproduce icon bug:

1.Go to Settings->System->status bar, set the battery icon to text

2.Open mobile data in qs pannel, then you will find the 4g icon is covered by battery txt and a dot

3.Disable other icon cannot solve the problem,100% triggers.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Hmm i could look at it. Cant say its as high a priority to me as the audio bug though...

I dont use battery icon text. I use battery circle with percentage inside of it.

Thanks for the feedback though. If I have time I'll have a look.

So the audio bug being you still get some kind of feedback while talking or are you testing it differently?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] minax007:
Dear @infrag,

if it isn't mandatory to have the microphone bug completely fixed I would highly appreciate if you would make LOS 19.1 official as not everybody is affected by it, and not everybody is using the earpiece for phoning, or is using GSM calls anymore.

I am personally very happy with your excellent work!
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Tom_wvw:
I tested in a different way. Just using finger to slide the mic holes on the bottom when making calls, then you can hear loud noise in the earpiece.But I am not sure whether my mic is broken ;P
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] alengrosevic:
I am having same issue, it is not broken mic. My device is brand new (old stock) and problem is present.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Well thanks for testing but thats not actually what I'm trying to fix.

That happens for me on my phone anyway on MIUI or lineage. It doesnt cause me any problems so not something I'm going to spend time on.

What I'm asking is the people that have the feedback high pitched noise is that problem fixed?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
I'm waiting on my NFC change to be added before making dipper official 19.1.

It requires the maintainer of the common repo to commit the change so I'm waiting on that.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] minax007:
Dear @infrag

that is fantastic news!

Thanks for your efforts.

For anyone who is interested in seeing the process, you can check here the state of LineageOS change requests from @infrag :

https://review.lineageos.org/q/owner:sil3ntcll%2540gmail.com
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Those who have mic problem can I ask. Do you have Chinese version or EU/US Mi 8 ?

I have a Chinese one. Could it be different hardware?

@infrag What one experiences actually is like he is listening to his breathing. Like it amplifies it. So as you speak imagine hearing your breathing through words.

As if it is sending sound form second mic, or I don't know
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] mattcri:
mine is eu, never had the issue and i use both gsm and volte calls
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
I have a Chinese one.

I havent noticed any changes in call quality so therefore hard to test.

Did the kernel image I listed make any difference for calls for you?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Previously I tried and had bootloop and gave up. I will try later and report.

I gave it a new battery for less than 18 euro and it is now stellar on battery. like new
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] ndonkersloot:
Would you like to share where you got your reacement battery? I really like this phone but the battery isn't the best, I got it the week after Chinese launch.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] uli-hh:
I've bought my Mohom Li-Polymer battery on Ali Express at this shop. Including tools and new double tape for back cover.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Corro:
Can I try to flash it on LineageOS 18.1 ?

I do have the whistling issue since I flashed a recent build from May 2022 but never had the issue before with an October 2021 build.

My Mi 8 is Chinese with the last global firmware.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Okay, managed to boot finally the build 17/05 with the mic fix included as it says.

The mic bug is still the same.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
I'm happy to try any kernel, now that I got a build working.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
I tried using the boot img you provided into this build and YES you can't hear yourself anymore. SUCCESS ? :D
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] bboytaione:
That sounds amazing! I read something about the fix being applied to LOS 18.1 - I currently have the problem, was in a phone call yesterday and the amount of noise coming from the ear peace was insane.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] maormark:
Can you explain how do you installed the boot.img file?. Tnx
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Easy.

fastboot flash boot boot.img
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] bboytaione:
Mate, hope you don't mind the question. Seeing as you're currently on the latest build. Have you had any unintended force closes? Especially after flashing the boot.img with the mic fix
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Nope.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Silac_8:
I tried this rom today. I was on MIUI previously and got sick of battery drain issues and lack of support by Xiaomi.

I have to say that everything works.

On first boot, UI was a bit laggy and it even rebooted once. But after that it worked flawlessly.

For those having issues with microphone during calls, I need to ask - did you flash MIUI rom before flashing this one? I believe there is the catch.

After flashing miui rom, wipe everything and install this rom, gapps and finally kernel fix.

I have Chinese version of phone and have used Xiaomi.eu rom previously, and I have zero issues.

EDIT:

Just after writing this - I bit my tongue. For some reason, wifi and Cellular services (4G, SMS) stopped working!

It might have happened after I disabled them. I also changed device name in the meantime (in "about phone" section).

Now neither wifi nor cellular network works!

When rebooting the device, and when entering PIN, it will fail with "SIM PIN operation failed" message. Unlocking SIM will succeed from 2nd or 3rd attempt. If I try to take out my SIM and use wifi only, enabling wifi will also fail. First the app that enables wifi (either Launcher or Settings) will lag (force close dialog will show up), and after UI unblocks, wifi will turn itself off. Resetting internet option in settings didn't help either.

Now I don't know what to do.

EDIT 2:

After extracting boot.img from original firmware zip and reflashing it. the issue went away. However, after it I started to experience weird microphone noise. It's not the noise, but like some high-pitched frequency is amplified (equalized). It definitely doesn't sound that terrible, and it's bearable.

Finally, I wen't back to the latest kernel (again), and I couldn't reproduce the first Internet connecting issue I had. I tried turning on, and off wifi, changing phone name in the meantime, restarting - but nothing could yield the same issue.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Mic is definetly fixed with new boot.img but I can't really get what happened and some people had the issue while others don't
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Silac_8:
I can confirm that. Latest kernel (boot.img) doesn't have microphone issues.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Tom_wvw:
I merged your patches in the lineageos code view, the mic problem has been fixed perfectly! Thanks for your hard working

The status bar icon overlap is the AOSP's bug, it should be fixed in June security patch
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Thanks for confirming.

To be clear what I uploaded was just a revert to the changes causing the problem. This is not a proper fix if you like but from my point of view its the easiest and best fix for now. I'll see what the common device maintainer has to say or if he can come up with a different method for the fix.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Re: [PATCH 4.9 34/48] ASoC: ops: Reject out of bounds values in snd_soc_put_volsw_sx() - Mark Brown

I guess it's not only for sdm845
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
@infrag thanks a ton for spotting the changes.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] minax007:
Dear @infrag

I have a big smile on my face ... because I see that the NFC change was merged a couple of hours ago.

https://review.lineageos.org/c/LineageOS/android_device_xiaomi_dipper/+/329444

Was this the merge you were waiting for?
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Yes. NFC should now work fine in official builds so now can be promoted to 19.1 builds once accepted. I've lodged the request so should hopefully not be too far away.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] infrag:
Please thank @UnluckyPoet also as he did most of the work.
[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Manosdocpap:
Thank you @UnluckyPoet for spotting something critical.
[Magisk] 73sydney:
As i discovered earlier today.....

Due to a group of low individuals, lets call them Androidacy.com, who i found like to scrape both the original Magisk Repo and the newer Magisk Alt-Repo and then insert ads into the Readme.md files and the pre-download pages on their website to try and monetize the work of magisk module creators, most who have created and updated modules for years for free to support the community, i decided to remove my modules from the Magisk Alt-Repo, as well as make people aware what these lowlives were doing.

My GPay SQLite Module especially i felt deserved better than those vultures trying to get page clicks and views, as i only packaged the method created by @BostonDan into a module, i didnt invent the method. I was not prepared to just surrender the original method and work, let alone my own to these fools.

As they were no strangers to scraping repos, merely rolling back to my own repo wouldnt accomplish much, as my first contact with them was to ask them to kindly not list my module and my explanation why, they chose to ban me from their main method of contact on Telegram, while being really dismissive asserting they were not "monetizing modules", they "were monetizing their website."

I beg to differ, as this is an example of how they are "monetizing" their "website" - inserting ads at the end of Readme.md files, and on pages before presenting modules for download that theyve scraped from the repos...this is an example:

View attachment 5526449

Im just making people aware. If your module is on the Official Magisk Repo, or the Magisk Alt-Repo, then these people seem determined to scrape modules they think are popular and try and monetize them

Im not okay with that. you may feel differently. Im just making people aware.
[Magisk] toolhas4degrees:
Yes, but scraping your repo does nothing but halt progress. Someone on xda should ban them
[Magisk] 73sydney:
Theyre a separate website, and scrape github, nothing to do with XDA.

Im just making people aware of the situation with these idiots, its up to individual magisk module creators what they wish to do.

As my main module features original content from a member here with a method he discovered, and features further contributions from other members, i felt it wasnt right to leave it up for these androidacy tools to try and profit from their work.
[Magisk] lebigmac:
Yeah unfortunately there's lots of scam artists out there ripping off other people's hard work...
[Magisk] Practicalbutterfly5:
I have disabled Androidacy repo from FoxMMM for now. This is just sad. The only repo I support is the official one, and the Magisk Module Alt Repo.
[Magisk] ldeveraux:
So what? people do this all the time. Don't make your repos public.
[Magisk] 73sydney:
Youre missing the point, i was on a centralised repo to make life easier for people to access the modules

Also a private repo would completely eliminate issuing updates or allowing people to view and check code was safe, not to mention issue bug reports or contribute

Also its not all my own work

One bunch of asshats shouldnt get a pass to monetize other peoples work

Just accepting that "people do this all the time" is weak and doesnt mean you shouldnt speak up, or that its right
[Magisk] 3mel:
OP you have achieved your original objective. thanks for the info.
[Magisk] androidacy:
Hello! Alexandria from Androidacy here.

We display one (1) ad at the top of the README and information dialogue to help us cover server costs, which total hundreds of dollars a month once everything is said and done. The consent popup is added by AdSense, and we're looking into if we can legally disable that, because it can indeed be quite the nuisance. We've since removed any other ads such as the one that was previously also displayed at the bottom.

No ads or other monetization is added or will ever be added off website and off API. That has been our rule since day one. We monetize our website and our API and our tooling to index, search, and provide for easy module installation, not others work.

Originally, our repository was designed to host our in house developed modules, of which there are three of: WebView Manager, Font Manager, and Move Certificates. Based on feedback we received, we decided to integrate other developers modules - both by request and from the original Magisk Modules Repository and in a few cases the Alt repo.

The GPay module was removed by myself a day or so ago, and the moderator that originally mishandled the takedown request submitted by the author @73sydney has since agreed to step away from moderation duties for the time being. The relevant bans have also been lifted.

Otherwise, if you have any feedback or other concerns, we will be happy to address them. I personally am working closely with @Fox2Code and other developers to ensure our integration is both optimal for our users while realizing our expensive hosting costs.

We have also updated our guidelines to more clearly indicate how module developers may opt out of the advertising display on their specific modules and request the removal of their module.

Have a great day, and once again we apologize for any misunderstanding.
[Magisk] 73sydney:
Thanks for responding to the concerns raised. To be clear, there were 2 ads added to modules as displayed on androidacy when i raised the issue, one at the bottom of the readme (i included this in a screengrab), and one at the download page.

Having said that im appreciative that someone has taken the concerns on board and chosen to work to alleviate those, and done so with a far better attitude than experienced by myself and others previously

People who have spent years giving freely shouldnt have had to learn by accident their work was being (sought to be) monetized, whether directly, or indirectly

Also i appreciate the rude handling of the issue being responded to, please note that the same behaviour of being immediately banned on raising a concern on your Telegram was not isolated to myself, but has been observed by other members, previous to my raising an issue.

I hope this means we can expect better from now on

I appreciate your thoughtful reply and consider the matter resolved, hopefully in everyones best interests

Cheers
[Magisk] mark manning:
Helllooooo everyone

Just a heads up, I removed a bunch of posts that had nothing to do with the thread topic. Please keep all discussions civil, on topic, and keep to the forum rules as advised previously.

Thanks 🙏

Thread Cleaned
[Magisk] 73sydney:
This has been resolved as noted above.
[Magisk] huskydg:
You have right to tell them to remove your modules from Androidacy. Please contact to their Telegram http://t.me/androidacy
[Magisk] 73sydney:
For me its been resolved for months now, i get along okay with the main guy an Androidacy, we've settled into a nice rythym of me popping into the Fox MMM telegram group every now, where hes active, and then to call him a poopy head, in good humour, he's gotten used to it :)
[Magisk] applyscience:
they are the worst.now they are trying to upsell a premium feature (to download others people's work, yay!) more ads and trackers than any other mobile experience ive seen.

if only they spent 1/10th of the time they did on monetization on their hosting, maybe their downloads wouldnt fail to initialize so much.

fox2mm loses so much credibility by adding them as a default repo.