yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
So you just use 7zip or WinRAR or something on your pc an extract the twrp mod pack to twrp back up? That's sounding a lot easier. Then reboot or something? What about that F2FW (or however you say the fast format) do you need to do that? Because I could not get a boot after formatting cache an data
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
Yeah the fstabXYZ.zip is required so your system can mount an F2FS partition - otherwise it has no idea what to do. Make sure TWRP doesn't have read only file system checked!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
Thanks. I feel I understand things well enough to give it another go now

---------- Post added at 04:17 AM ---------- Previous post was at 03:34 AM ----------

Hi Ok????

Is there a reason I cannot see my Xiaomi Mi9 device in winrar or 7zip when I go to extract? When I extract it manually an copy it to internal storage/TWRP/backups/(device id) and go to restore it isnt there an cannot be restored?

Is it a mounting issue or the version of Miui I'm on? (EU 9.7.22).

Would I be better to extract it to a backup path to my Type-C usb?

---------- Post added at 04:50 AM ---------- Previous post was at 04:17 AM ----------

How Exciting woohoo. The automatic method worked when I restored from my type-C usb :)Booting now so I can back up an then try to follow your set up guides an let cell cool down after all the boots.

Then benchmarking ;)

Will post pics of the results

Thanks Mslezak.

---------- Post added at 04:58 AM ---------- Previous post was at 04:50 AM ----------

First boot is taking a very long time? Fingers crossed lol

---------- Post added at 05:20 AM ---------- Previous post was at 04:58 AM ----------

No boot. Endless little 'powered by android' loading moving dots. Will try with Xiaomi Eu.9.8.1.

Closest yet to success for me :)

---------- Post added at 05:43 AM ---------- Previous post was at 05:20 AM ----------

Just read the time I posted in your country an realised your asleep. lol. Rest up. Thanks for your help

---------- Post added at 05:51 AM ---------- Previous post was at 05:43 AM ----------

Im such a Bell end pmsl. I checked my TWRP version and realised I had flashed the wrong TWRP lol.

This mod only works with 3.3.1-39 and this whole time Ive been using 3.3.1-37

Duh!!!

Will try again :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
Tried all successful installation then 40 minute loading screen. Why wont this cell boot?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] smeroni68:
Please check in the picture attached of twrp mount page.

Uncheck the bottom flag of system read only and check the upper system and vendor.

Than copy the fstab file into vendor/etc.

Probably is missing the access to overwrite the original fstab.

Inviato dal mio MI 9 utilizzando Tapatalk
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
It wasn't checked. I have it installed after 3 days trying. It has major problems with antutu. Might need tweaking. Everything launches in seconds an my GPU has switched from max 810 mhz to 830mhz.

I just can't get antutu to run properly?

---------- Post added at 10:40 AM ---------- Previous post was at 09:50 AM ----------

Hey everyone. I recently got this mod working after 3 days an nearly giving up. Everything is very fast.

Except antutu does not work?

It gets stuck at 17% after running the 3 initial graphics tests.

Has anyone else had issues with antutu after getting this mod to work?

Seems very wierd?

Also I had to overwrite magisk 19.4 with 19.3 as there was freezing after boot an apps would not open?

Hoping to upload pictures soon after tweaking an bugs figured out.

An getting antutu to work? ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] M1LL3R:
How you install it on custom rom? Just follow the exact same procedure as for MIUI? Thank you.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Yes(for me fstab zip not worked i transported fstab.gcom via root browser)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
If the fstab zip is not working, you need to go into TWRP, Mount, and select Vendor. Then flash the zip. Thanks [MENTION=3545504]smeroni68[/MENTION] for finding this on Telegram. It is because the zip file uses BusyBox and not every user has that installed on their system. Selecting Vendor will allow it to patch the vendor/etc/fstab.qcom file.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] smeroni68:
I given to Matt a modified updater-script from Mauro that avoid to use busybox commands... Matt as soon will have time (he is at work now!) will prepare and test the new zips... hopefully they will work independently if vendor is mounted or not... let's see.

Inviato dal mio MI 9 utilizzando Tapatalk
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Troomak:
I've tried to get this kernel to work with Havoc OS (just on ext4 so far) in every way I can think of but I can't seem to get it to work.

I've tried restoring boot + dtbo and flashing the f2fs zip. I've flashed the zip with vendor unmounted, mounted and with busybox installed and not installed.

I've also tried going the manual route and using a root browser to transfer the fstab file to /vendor/etc and installing the kernel as .img files on boot and dtbo instead of restoring.

No matter how I do it everything seems to be going smooth and I get no errors or weird behavior of any kind until I try to reboot. It either shows me the loading splash screen for a couple of seconds befpre rebooting into TWRP or it boots straight to bootloader.

In every case I've been able to go into TWRP and restore my own backed up boot img and then I can boot again just fine.

Any hints on what I should try next? I'm not giving up on this :D
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] smeroni68:
Tested by Matt... working!

Credits to [MENTION=4712355]mauronofrio[/MENTION] for fixing the script!

Inviato dal mio MI 9 utilizzando Tapatalk
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
Well folks....

I have succeeded an followed all directions to the best of my ability.

My cell seems much snappier. For instance. Pokemon go launch's in 7-8 seconds. Used to me 13-16.

Everything launch's in seconds an cell is generally more responsive.

However....

In my case I have no bragging rights lol.

By that I mean that everything works more or less like the developer of this ROM says: except synthetic benchmarks.

Even at 4am when I got up for work an cell in the fridge for a few minutes (anything more an I risk condensation) an with a battery temp of 17°C an CPU temp of 22°C.....well the pictures tell the tale.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
Rest of screenshots with mysterious Benchmarks
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Mrleonsio:
I do everything mentioned in the post exactly step by step and I still get the RESET PHONE button in the middle after I change data and cache to F2FS. What the hell am I doing wrong just tell me...

ROM I flashed : xiaomi.eu_multi_MI9_9.7.22_v10-9.zip

After flashing made a basic set up without downloading any apps , just activated my device using my Xiaomi account password and when I had start screen I did reboot to TWRP.

"Now enter your password and proceed to the next section. If it asks you if you want to keep the system read only SAY NO! You will be modifying system components, keep it writable to avoid installation issues." - My TWRP never asks for password or anything (I am using one provided in files from this post).

Converting EXT4 data and cache partitions to F2FS:

***Note flashing TWRP / Install / fstab_patch_F2FS_MI9.zip MUST be repeated any time you change ROMs or you won't have access to your data!!! So back this up!!!!***

"Boot back into TWRP. You will need to go to Wipe, Advanced Wipe, Click Data, Repair or Change File System, Change File System, and click F2FS. Swipe to change. It will format and you'll have nothing on your data partition. Next format cache. Go to Wipe, Advanced Wipe, Click Cache, Repair or Change File System, Change File System, now click F2FS. Swipe to change. Again it will format and be wiped. " - After I do this and restart my device it boots and on black screen I got RESET PHONE button saying "Encryption was interrupted and can't complete. As a result, the data on your phone is no longer accessible." down left corner with a small font.

This is a first time I spent so much time trying to do something and still did not worked.

FYI : I don't know about you guys but after flashing the MIUI restarting to system just boots back in TWRP without actual booting so I am flashing Force Encryption Disable file grabbed from my old Poco F1 forum and it does boot after.I am about to give up :')
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] onolox:
Is CPU stats funcioning in this kernel?

This screen shows the cpu frequencies in adiutor like the image attached?

"/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state" file for example, has data inside?

ref:

https://www.kernel.org/doc/Documenta...freq-stats.txt
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] *justintime*:
My results after applying the magisk module. Very easy to use.

Results also depends on battery capacity.

So full charge.... Let the phone be for a while and run antutu.

Thanks Tapatalk to resize the screenshot. ?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
Please redownload the latest ZIP in the post. And reread it - it has been simplified. Update the fstab using the flashable zip. Your issue sounds like fstab is not properly installed - in TWRP you can Mount / Vendor, go to Advanced / Terminal. cd vendor/etc. cat fstab.qcom. If you don't see lines for F2FS userdata and cache it didn't stick. You can boot into TWRP from fastboot directly off the recovery image Google it. Or try Xiaomi.eu 9.8.1 or another ROM. Get on Telegram if you need more help!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Troomak:
Seems like it was just Havoc OS that didn't want to work with the kernel. I swapped to xiaomi eu 9.8.1 and I got the kernel working on first try doing the exact same thing I did on Havoc. Haven't converted to f2fs yet but everything else is working perfectly.

Huge thanks to the developer on this one. This is exactly what I hoped would come out when I bought the phone :good:

Edit: Just converted to F2FS without issues. Didn't have to mount vendor for the patch to work.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xenix96:
Where the hell is your donation link ???

I switched to MI9T Pro but for the huge effort you brought for the MI9 community to bring finally a oc kernel and the great collaboration sharing your experience i want to donate you some € !!!

So put in your thread a donation link please ?????

Cheers
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
Thanks Xenix it should show up in a computer browser on the left of the post, just not on the phone. BTW your kernel is coming bud K20 Pro built off my source already posted, same hardware more bands. And know I know how to make it fly without even a kernel manager!!! The new Magisk Patch (PappaSmurf OP7 Pro dev I thank for the example)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] xenix96:
Thanks :fingers-crossed:

The Donation is on his way :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
Xenix you are donation #1! Only $39 left until I get back all the money the fake dev took from me to setup my GitHub repo and never finish the VM I made (which was used to make a kernel this last week for your phone basically the K20 Pro, but I made the entire thing) :) Amazing there are like over 100 people and 1 donation... Begging for $ at the street corner is a better path to riches :)
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] gianton:
LOL!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zedomax:
Excellent work bro! I am gonna try to get some people to send you donations soon. Keep up the good works fren.

---------- Post added at 03:45 AM ---------- Previous post was at 03:34 AM ----------

Just got 410K on Antutu! This is amazing! Only problem I am having is the CPU app won't let me choose maximum frequency, it only lets me choose 0Mhz, also on kernel auditor app, is there way to fix this?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
Sometimes you gotta buy a kernel manager like FK or EX... they work. Or try the Telegram channel in the top of the post and search for Lathanum System Toolbox it's there as an APK it probably will work.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Potato997:
If you are looking for money, this is the wrong place.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mirosk96:
I tried installing ... i installed it on latest Global stable - I managed to flash all necessary files, completed all steps up to step 4 according to instructions. After flashing files, phone rebooted fine and according to instructions, i booted into TWRP again to do step 5 - CONVERT EXT4 TO F2FS. I checked that TWRP is not read-only of course, i did all according to instructions in TWRP - yes, I mounted vendor partition. Then i rebooted and it doesn't boot to system. It just keeps booting for over an hour now. Any ideas what happened?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Join telegram group
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zedomax:
Try using the TWRP restore. Make sure to do a quick backup of boot which will create TWRP backup folder then drop the Magisk16.3 folder in it and restore using TWRP. You are using manual method which is harder.

Just achieved my best for far! 425K on Antutu running w/ Havoc ROM:

https://twitter.com/zedomax/status/1167499261379895296

Thanks OP!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mirosk96:
ok, i will try the other method
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mirosk96:
ok, the first method works, thank you
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mirosk96:
Looks like this kernel has the same issue as evira kernel - camera app is not working for me
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
Hey I saw #Highonandroid guy demo this mod on youtube with havocos. I just get a bootloop or fastboot loop or back to the twrp encryption page?

Does anyone know if he used the unoffcial Havocos here or the one from official builds?

I might have to watch the video again lol. Here we go again. Off to youtube an the Havoc site....
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
hey zedomax. I saw your youtube video. Have tried official and unofficial HavocOS? How the heck did you get this mod to work with Havoc???? I just get a fastboot screen or straight back to TWRP???

---------- Post added at 04:54 AM ---------- Previous post was at 04:39 AM ----------

OHHHHHH Ok. Good trick. You basically save the boot profile/loader. the paste the the other folders in and then restore
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
Does it take a while to boot? Its been 12 miutes an my 3rd attempt?

I think Im missing something. It boots after the restore method. but takes forever after the F2FS conversion. Stuck on Havoc loading screen.

Any idea why?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] smeroni68:
Try in twrp to wipe cache/dalvik/data and reboot.

Inviato dal mio MI 9 utilizzando Tapatalk
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Jwtiyar:
What? All these steps just to install a MOD?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zedomax:
It took me hours to get this working but in the end, it works 100% flawless. Amazed. Highly recommended to put the effort. working on a tutorial tomorrow. Please donate to OP thx. This is pretty revolutionary!
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
Ill have to wait for your next video. It will not boot after F2F2S formatting.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Axospirit:
Hi everybody,

does somebody tried to flash this kernel and M.A.R.S. together and if yes, the properly setup intallation? Sure i will try it and give you any feedback but we have already the answer...good flash everyone!

cheers
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
No difference. Not with HavocOS
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] VladV1V:
Brokes fp in syberia rom
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] la2o:
My Results

Excellent work [MENTION=7920168]mslezak[/MENTION]

Glad to see some love for our device.

These are my results before and after flashing the magisk optimal settings file with your kernel.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zedomax:
If you have trouble installing this mod, try my video tutorial, also I was able to condense down some of the steps.

[YOUTUBE]R5yJ9qEHwD0[/YOUTUBE]
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Axospirit:
Successfully flashed Miui 9.8.1+ M.A.R.S.+M.O.D. kernel with an awesome speed and benchmark result
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] axospirit@gmail.com:
Can't upload image from the app, anyway I got a total of 427k
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zedomax:
I think it's great that the kernel works on AOSP ROMs, I refuse to use MIUI ROM, it's simply not a fun experience. Hey would it okay if I hosted your V1 on my download server? Because if filename changed noobs are gonna probably get lost and I spent 3 full days making this video tutorial and I really don't want to remake it. Also, is it okay if I just made a TWRP backup for super noobs so they can skip all the steps and restore ROM. Of course I will keep promoting youe donate link.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] YelloneK:
Works on Miui Global EU?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] zedomax:
Yup it works.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
MIUI Global Dev 9.6.27 is the basis of this mod. All benchmarks and tests were done on this ROM.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Bryceicle1971:
I must say matt. I have to dissagree with you about antut version 8 :)

Latest antutu is fantastic with MOD kernel
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
You are free to disagree or agree with whomever you like - thanks for trying out the kernel! Glad you were able to finally make it work.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mirosk96:
i cannot make this MOD work on Pixel Experience :( It always works for me on MIUI stable rom, but not on an AOSP. Is there a fault on my part or is it not compatible?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] YelloneK:
Works on xiaomi.eu 9.8.29?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Nuno Oliveira:
Readme on Github:

"Note this is a patched version of the original source code for the Xiaomi Mi9, and has been tested on MIUI, Xiaomi.eu, MiGlobe,

AOSP, and many other ROMs. 9.8.1 versions are usually the last Android 9 compatible versions. Q and 10 do not have source ATM.

The sourcecode on the Xiaomi website will not compile as it is missing many flags and patches."

So, no, it won't work...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] mslezak:
I will work on an Android 10 version at some point

No promises here, but someone accidentally installed 9.8.8 China Dev with my kernel and all worked but GPU OC. So I have ideas on how to circumvent the GPU clock restrictions on Android 10 MIUI. I am busy now with my real job though so give it time. Need to stay employed...
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] YelloneK:
I hope you will make such a modification on Android 10 by xiaomi.eu :good:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] *justintime*:
Yeah I hope too until then I will stay on Pie.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] ndigital:
I'm using PE and it's working for me. No bug so far. I'm using the first stable release. 20190715
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] FynnRübe:
One question, why not using the newest build?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] tmakh:
I'm currently running V1 of this kernel on eu 9.8.1 with f2fs enabled and working perfectly.

If I want to install V2 and still use eu 9.8.1 I just restore boot and dtbo and then reboot and do a fresh setup, right? Nothing else should be needed?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] smeroni68:
If you're running a rom, to update the kernel to V2, just go to twrp, restore the V2 backup provided and reboot to system.

Not needed a fresh install.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Dn_nS:
i"m really confused by all this. I've flashed a lot of roms/kernels/mods/whatever. The instructions and a lot of tutorials say;"change filesystems to f2fs, reboot and setup the device", but how is that posssible. When you change to f2fs, data is wiped so there is no rom installed, right? So how can I reboot and sign-in? I've tried a millions times to get this working with 9.8.1 and it's always in a bootloop. (and if I reboot after changing to f2fs, it just bootloops over and over)(like when there is no rom installed)

What am I not getting?

(EDIT) So I just found out you have to mount vendor before installing the patch and voila, the rom boots :laugh:
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] YelloneK:
is the camera app working for you?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] Maverick Jester:
[MENTION=2447605]zedomax[/MENTION] would you mind doing a gaming performance video with the Mi 9 running this kernel?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] tmakh:
Yes. As far as I can tell everything is working as it should.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] YelloneK:
Me on xiaomi.eu 9.8.1 camera does not work, there is an error that can not connect to the camera.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] tmakh:
Are you sure you don't have a camera blocker on? Camera works perfectly fine for me.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] YelloneK:
I will check again, but I have to do everything again.
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AnonymousSir:
I done everything thing in the steps but how to determine i have f2fs file system?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] AnonymousSir:
is the kernel version is 4.14.83-per-g9bb9a906c-dirty?
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] badaas:
Use Devcheck
[Xiaomi Mi 9 ROMs, Kernels, Recoveries, & Other Dev] tmakh:
Yes.