yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Where did you read magisk on the whole thread ????????????????

Addon-su is already inside. No need to root !

You must delete su from /system/xbin

supersu.rc from /system/etc/init/

addonsu.sh from /system/addon.d

Then install magisk.

This thread is not for magisk ... and I dont support it !

Please create a specific thread for that.

Sorry for the inconvenience
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] :
First, that's not spam

And I say you sharing wrong information and I correct you but if it's spam for you :rolleyes:

And precise to your thread title it's a GSI with patch
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Next please
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] :
:confused:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] McKebapp:
Dear gringo80,

my problem is not magisk.

I can't get my pone running, like NoSohoth has the same problem in post #46.

In the meantime I'm a little further, just can't login into the play store.

What I did:

- I removed the phone from my google account

- wiped and formatted the whole phone

- installed your latest build lineage-16.0-20191111-unofficial-pyxis.zip

- installed your LOS 16.0 Google apps (x64) - Essential Pack.zip

- booted and first started the phone --> Was able to do Linages' first start and ended up in the Launcher.

- rebooted to TWRP and installed open_gapps-arm64-9.0-pico-20191113.zip

- booted the phone again and installed google play services and webview from APKMirror

- rebooted the phone to twrp and wiped caches + dalvik (just in case)

- added my account

But google play keeps asking: "Authenticating necessary. You have to login into you google account" - Try again. (roughly translated from german).
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
did you gave all permissions for google services ??? location too. it's mandatory
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Milestone ... Huge improvements !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] DualScreen:
not sure if i understood exactly what you meant, but i assumed you mean that you have pushed another update and i should install it.

my first installation was exactly how you wrote on "first install"

and after that i have done the last update and the one you just pushed.

i will see if this fixes that issue, and if not i will let you know. but if i misunderstood what you meant please let me know :)
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
I'm not talking about my ROM ... i'm talking about the firmware base you have before you installed LineageOS !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] DualScreen:
I have done the flashing of the fastboot base firmware exactly as you explained.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
No audio issue here : because i fixed everything you can imagine on that for a while ... (The sound is my first and favorite stuff) !!!

Check if you didn't flash an audio MOD !!!
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update (2020-06-20)

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] DualScreen:
Well honestly since the last update I didn't encounter this issue.. Hopefully it left.

I am having a problem with exchange services, managed to install via apkmirror but its stuck on getting the emails.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
Did you try the outlook app ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] DualScreen:
yes

got around it after fiddling with the exchange services apk

by the way... still having the sound issues (they are less now)

is there a way to import to the existing installation anything that might help this issue?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update (2020-06-24)

Huge update ... Read Instructions (OP) !

:good:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
It keeps coming :good:

---------- Post added at 09:50 PM ---------- Previous post was at 09:36 PM ----------

I just read the description, fixing the google services after flashing is a huuuge improvement to this rom.

Hats off sir :good:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update (2020-06-25)

- changelog (OP)

Enjoy now the full power of LineageOS in your Mi 9 Lite : stability & performance with less cpu usage !

:good:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
Thank you for new versions.

I tested 20200624 and 20200625 and I see only one problem in both versions descirbed:

"If you get the Google Contacts Sync popup error, go to LOS Settings > app manager > show system apps and delete data for This app "

It does not change anything. I can not reinstall CoreGms.apk because this CoreGms from both versions are not installable.

Is any other hint? Is time for standard open gapps ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Please re-download the " Google Essential Package " !!!

The workaround is no longer needed ... " GoogleContactsSyncAdapter " is now fixed and fully working.

Thanks for insisting ! :good:

Please re-download the " Google Essential Package " ... and sorry to ALL for the inconvenience !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
I am disabling syncing all services on my google account, go to sync contacts service and stop it, disable it, remove cache, remove data and see 0 bytes for both. I see not 0 for data after refreshing window, next enabling service and enable syncing on my account. I see at once popup about problem with this sync service.

Edit. 5 minutes after and I do not see next pop up. I will inform about changes.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
The workaround is no longer needed ... " GoogleContactsSyncAdapter " is now fixed and fully working.

Thanks for insisting ! :good:

Please re-download the " Google Essential Package " ... and sorry to ALL for the inconvenience !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
Thank you. Can I install this zip, or should I new dirty install a ROM and this zip? Or maybe unzipping sync service and installing only it will be enough?

Edit.

Dirty installed and is OK.Thanks.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
I am trying to use dialer. When I call the phone number no window about connecting details, no possibility to break connection... The display always on during the call. If the number selected from the list, you have sure you select other contact during connection. Is a way to return to los's version without dirty reinstalling?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
I never had any issue with Google Dialer or LOS Dialer ... check if you use the Google Dialer as default dialer app !!!

Check too if you are not using an Xposed module that breaks telephony service ...

I'm using the rom as my daily driver since November 2019 ... and i never faced any issue like that !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
I am sorry , I have this strange problem. I installed GDialer for check it. Now I know, I prefere LOS's version for he functionality and the view side. It was a surpise, the GDialer replaces LOS's version (similar like MI camera replaces gcam). Now I am back with GCam and LOS Dialer, the best default set.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] DualScreen:
Hi Everyone..

Is there a way to flash all of this from the beginning (using the fastboot firmware) and to save settings/apps etc..?

i am having an issue with the sound as i described in previous messages but i have gone through a lot of setup and i don't want to let it go to waste and having to reset all

maybe somekind of a backup or something i don't know..
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
If you will do dirty upgrade , you will not lost anything.

If you will start from stock or other custom, you can do backup of all your applications using (maybe?) titanium backup.

1. You should not backup/restore data of system apps - you are changing system to other

2. Backup will not store libraries (obb) . You should know about it because backup program does not inform about it.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update (2020-07-02)

OP :good:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-07-07

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
[MENTION=9222803]gringo80[/MENTION] small question,

Do you still consider that leanageos 17 (android 10) is not stable enough ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
hi,

It's still under a deep code rewriting for many devices !

check here

https://review.lineageos.org
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
Hi, hope you are doing fine.

I see that :good:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
It is not only device releated but developer releated.

I used LOS 16 on my tablet. LOS was prepared by persons did not use this rom on own tablet or not owning this device. Now I use LOS 17.1 on my tablet and it is better. This is a big difference between preparing custom rom and fix all found bugs and prepare it and use and optimise for best work for myself.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-07-11

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] goldie456:
Zoom (video call) not working

hey [MENTION=9222803]gringo80[/MENTION] awesome work!! I've been using everyone of your stable release ROM's since April, all work releases seem to work fine, except Zoom which seems to be working only until your April 20, 2020 release. Every release after that, Zoom isn't able to start the video can for some reason, it shows video for less than a second and crashes, and unable to start it again. I made sure no other apps were open while zoom was running and it still flops. If you could please bring back whatever that allowed zoom to work from your April 20 release. Also feature request, is it possible if you could integrate glide typing into the aosp keyboard, I seen there's a library import code for that on android stackexchange.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
glide typing = gesture typing (old name)

The library is already in the Google Package since December 2019 !!!

For the video call - zoom crash, please post here a logcat !

Thanks
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
SafetyNet ... I think i found the key !

The solution is posted in the Magisk forum here ... or Wait the next release !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
Good news. We are waiting. Thank you.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] limdev:
Hello everyone, I would like to restore my mi9 lite as just bought, so I must to relock my bootloader, but I see on the first thread the warning "never relock your bootloader", so what should I do before relocking it?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
If you have China version , you have to install China fastboot version of MIUI.

If you have global (Lite) version , you have to install global fastboot version of MIUI.

(I am not sure if pyxis has or not version lock, but do not install MIUI version older than the initial version you had when you used it with MIUI. This is for your safety)

No install twrp, no install root.

If you have MIUI in version correct to device version and it works, you can lock bootloader.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
[MENTION=5383519]davidinho.ng[/MENTION]

A little bit Off-topic, look here !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-07-13

OP

highly recommended :good:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] BiteApple:
I want to move over to this ROM since it being updated. I am currently on arrow 10.0 . Could i just downgrade to this by wiping the phone and putting this ROM? Or is there more work then just that?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
A lot of work my friend, starting by flashing the Pie firmware (fastbootone.tar not the .zip one) [avoid relock the bootloader with MiFlash Tools in all cases, otherwise = hard brick !!!]

Read the instructions carefully and the link for "Errors to avoid" before flashing. Don't take any action without understanding ... Everything you need is in the OP.

Good Luck !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] BiteApple:
Thanks but I know i will mess up.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-07-17

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-07-19

Color Temperature Adjustment added ... and more (OP)
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-07-28

OP & read the note !!!
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-07-30

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-08-04

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Foreal_Bruh:
Thank you for your dedication to pyxis! i appreciate it
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-08-05

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] JimmyBondi:
just to be clear....

When I'm using this Rom and I want to update, I have to make the "dirty install" procedure, with installing Gapps /Magisk and so on?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
As said on OP for "dirty install" :

. wipe system + vendor + dalvik/cache & delete /data/system/package_cache

. flash the build

. reboot to TWRP

. flash gapps (+ gcam if you want), or any provided .zip you want

. reboot to TWRP

. install Magisk

...

boot to system

***​

Coming from android 10

:

. flash the recommended firmware (read OP for instructions), and do a clean install !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-08-08

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
Hi , which version of adblocker do you suggest to use ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
Adway will give you the ability to update your host file and apply it in a systemless way
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Hi

You can use the .Zip as a standalone file ... no app needed !

It will not block everything from internet ... but very usefull when browsing and reduce ads on YouTube !

:cool:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-08-12

OP

Everything now is fixed ... the ROM is bug free !

Thank You All for your support !

:angel:
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
Thank you for your constant support !!

Small question, which security patch is implemented ? And is it implement is fully or just partially ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
June SPL, partially (system only). The vendor and Kernel are still from stock (untouched).

Keep in mind that a lot of security patches create more bugs than to solve problems and some are incompatible with a lot of vendors ... and can break some phone functionalities !!!

Quantity and newest things are not always better ...
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
Thanks for your information.

Do you know the spl on the vendor and kernel ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Kernel & Vendor are from the original firmware !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Richard_10:
I know. But since you update them from time to time, I figured you are using maybe a newest firmware's kernel and vendor
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-08-14

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] druschlan:
Minor bugs and issue

Thanks for your work and the frequent updates. I have rarely seen such frequently kept uptodate and maintained ROM. This adds quite a lot to the user experience, imo.

Now, I have updated my device to the latest version and am encountering a series of unusual behaviour. I can provide a logcat if needed.

Below a summary:

1) random reboots

Occasionally the phone reboots. This happens mainly when GPS, Bluetooth and mobile data are active.

2) cable headset and volume control buttons

Clicking volume button at the headset control result in 'selecting' apps on the home screen. Every other click makes leads to the selector jumping on the next app symbol. Changing volume is not happening.

3) Pyxis-setup assistant keeps crashing and keeps restarting.

Everytime the setup assistant reaches "import data from... Google backup in Cloud" and I select button "do not copy", the assistant crashes and start over.

4) Issue with banking app:

Some banking apps won't start. Instead I am being direct to website by the bank, stating the phone is rooted and can't be operate the app.

5) Music player widget:

Playing music works fine. However when jumping to another source, e. g. youtube and starting playback, jumping back to music player and clicking "play" to resume music does not work. Intead of starting playback, nothing happens.

Solution here is to return to home screen --> clicking on music app --> click play (no music plays just yet) --> return to home screen --> click play on widget.

Attachments:

logcat

http://www.mediafire.com/file/y4u2alua5qti6wc/file

radio

http://www.mediafire.com/file/44lkx85n3c2nbgu/file
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
None of the issues you described up !!!

1- Check your base firmware first (OP) for your audio problems / random reboots : coming from another ROM ?!

2- Google Backup needs Google Drive to be installed from the Play Store or use a Full OpenGApps package if first install !

(already mentionned a long time ago)

3- Banking apps : follow the guide (OP again)

4- Don't use any Battery Optimizer app / Xposed !!!

I check everything in my logcat before i upload any build !!! +++
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] KingGunna:
First of all I want to say thank you for the great work. :good: :good: :good:

I had some problems with the rom in the past but now everything seems to work and it runs very smoothly.

I have just one problem:

After I installed the latest update the maximum volume when connected to any bluetooth device (car stereo, headphones, speaker) is a lot lower than before and also lower than compared to other Android phones. The maxiumum volume using speakers or the 3.5mm jack is still very loud.

I skipped a lot of builds when updating. I updated from the 2020-01-19 build to 2020-08-14. I followed the instructions for "DIRTY INSTALL" in first post and I executed the steps in "Note_-_Instruction_Update.txt" as well.

Is there anyone else experiencing low maximum volume when connected to a bluetooth audio device or is this a problem on my side?

I can see multiple changes regarding audio in the changelog however nothing specific to the bluetooth volume. I am not sure if this was an intended change.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] druschlan:
Minor bugs and issue

1- Check your base firmware first (OP) for your audio problems / random reboots : coming from another ROM ?!

--> Base Firmware? I came from Miui (as described in your OP. Only flashed what was provided here.

2- Google Backup needs Google Drive to be installed from the Play Store or use a Full OpenGApps package if first install !

(already mentionned a long time ago)

--> Never used Google Drive nor wanted to use backup feature - this was trigerred by Pyxis install assistant. pyxis-setup is still running in background...

3- Banking apps : follow the guide (OP again)

--> will try to as you have explained

4- Don't use any Battery Optimizer app / Xposed !!!

--> have never and won't ever. Any explanation to why this is happening?

Any explanation on why cable controls won't work?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
Hi, I use the latest and I did not see any problem with system LOS.

The only problem I have with attached gcam. I know, it uses hdr and hdr+ which need powerful soc. Sometimes I am able to do 3 pictures very quick and only 4th needs some seconds to finish. But sometimes the second picture I am not able to do quick. Sometimes fotobutton is blocking and I restart gcam.

It can be normal, but please confirm. If yes, I will think about more powerful soc in my next smartphone.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
The firmware link provided in the OP : all audio problems come from incompatible firmwares. Use that exact version, otherwise audio problems will often happen !

Read carefully +++
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Audio Output Fix will be available in the next update (Optimal volume for both BT & headphones +++)

Thanks
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Flash the buffer fix (OP) ?

Thanks
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] druschlan:
Using the phone out of the box running miui, I went by your instructions and firstly installed the firmware you provided in the link. Since the initial install, no other was installed.
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
No problem here since the first builds !!!

Can you take a screenshot of your baseband (about phone > android version) ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] druschlan:
Sure thing, please follow the link:

Screenshot_20200823-202036_Settings.png
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
very strange, no one here and me faced your problems about audio and random reboots ... are you sure you are not using an app for battery optmization or a kernel tuner, Xposed ... etc ???

Screen Overclocking MOD ?!
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-08-23

folder removed by mistake, will be re-uploaded soon.

Download folder restored !
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Re-download the build again +++
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Salieri99:
What does treble mean?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] L_e_x_t_e_r:
You can ask this in google, too...
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
Update 2020-08-25

OP
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] Tomek0000:
... Buffer Fix by Wyroczen ...

Should I install it every time I install GCam (every dirty update) ?

"Wait minimum 10 minutes after the next full battery charge, otherwise => battery drain & lags +++

If Dalvik/Cache are wiped, the full ART optimization for system partition starts automatically and only after the battery reaches 100% and device on Idle mode.

This is a Google Policy not mine ! (source : https://source.android.com/devices/tech/dalvik/configure)

Keywords : pm.dexopt.bg-dexopt"

Is it something what should be continue repeating or if I did "cmd package bg-dexopt-job" I should not care about it ?

I use battery charge limiter and I never have 100% of battery.

I sometimes wipe cache and dalvikcache for health the android . Should I do "cmd package bg-dexopt-job" after each wipe cache and dalvik ?
[Xiaomi Mi CC9 / Mi 9 Lite ROMs, Kernels, Recoverie] gringo80:
1-Yes, you flash the buffer fix after the update (OP, 3rd post) +++

2-You have 2 options : you do that "once" if you wipe dalvik/cache to rebuild the new optimized one ... but not everytime !

I told you before, never use any battery optmizer ... you will kill your battery !!!

Everything is optimized +++