yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 9 SE Guides, News, & Discussion] moorware:
havoc gsi 20190625 only works if you install it on top of xiaomi eu weekly rom, but this in turn makes it difficult for the firmware to recognize the device, for example, the statusbar is lower in height than the notch. When I install 20190625 on top of a global stable firmware, it loads me into twrp every time.

---------- Post added at 06:07 PM ---------- Previous post was at 05:55 PM ----------

I also managed to boot into havoc 20190625 on top of the global stable firmware - I deleted forceencrypt through twrp from the LR Team, the system was loading but the system was extremely unstable and with many bugs: it wrote every time that the pin code is wrong, even if it is correct , the mobile network did not work, there was no configuration process when it was booted first time. I came to the conclusion that the problem is in the stock boot protection system, and in the xiaomi eu firmware, this protection is cut
[Xiaomi Mi 9 SE Guides, News, & Discussion] GuilGon:
I would like a taller statusbar, similar to miui's. I tried some magisk modules but they don't work, I asume because of the rom.
[Xiaomi Mi 9 SE Guides, News, & Discussion] moorware:
you can do it in developer settings > cutout > tall cutout

---------- Post added at 07:18 PM ---------- Previous post was at 07:15 PM ----------

By the way in the last weekly miui cutout also became same height that statusbar
[Xiaomi Mi 9 SE Guides, News, & Discussion] GuilGon:
Tall cutout is not working in Floko, only double and it is too much.
[Xiaomi Mi 9 SE Guides, News, & Discussion] ale.giordano:
Hi! I installed last Floko with 10.3.1.0 EEA vendor.

Fod doesnt't work. When I want register the finger, It activates but when I press it stops and I'm forced to restart the device.

Does anyone help me?
[Xiaomi Mi 9 SE Guides, News, & Discussion] Hawkiinz:
I'm trying to install this rom. But after flashing, my phone bootloop on the recovery and I can't no more boot on twrp.

Does anyone know why ?

https://xdaforums.com/project-trebl...velopment/aosp-10-0-quack-phh-treble-t3992559
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Did you sorted?
[Xiaomi Mi 9 SE Guides, News, & Discussion] Hawkiinz:
I solved the problem.

I just had to take the "B" rom and not "A"
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Mi 9 SE requires AB ROMs :D
[Xiaomi Mi 9 SE Guides, News, & Discussion] sky104hk:
As my experience from Oneplus 6, flash Gsi rom is a bit tricky

1. boot TWRP - wipe system/data/Cache ->reboot to bootloader

2. flash GSI-AB rom (system.img), reboot to TWRP, resize SYSTEM

3. Flash GAPPS and Magisk, wipe DATA/Cache, reboot

4. If stuck (bootloop), disable vtmeta in Fastboot and reboot!
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
Okay, today tried to install Havoc-OS GSI with GApps.

Followed full instructions, ended up with error 70 insufficient storage system partition when installing GApps and bootloop when reboot to system.

Followed the fix mentioned on Bootleggers ROM thread but still not working.

Anyone can help me?
[Xiaomi Mi 9 SE Guides, News, & Discussion] bonbibonkers:
Try flash from china stable rom , maybe ?
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
forgot to mention, i flashed it over xiaomi eu rom, is it why it bootloops?
[Xiaomi Mi 9 SE Guides, News, & Discussion] Lynara:
maybe
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
ah sh*t. okay then. thanks!
[Xiaomi Mi 9 SE Guides, News, & Discussion] dzidexx:
I think you should:

Before - Have Miui global or china stable,

Into twrp: format data, adv.wipe - system, cache.

Flash Gsi.img, magisk.zip.

"insufficient storage system partition when installing GApps"

Twrp - adv.wipe, system, resize partition, swipe.

Ps.

I haven't Mi9se yet.
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
i'll tell you when it works. thanks bro!
[Xiaomi Mi 9 SE Guides, News, & Discussion] ebautista:
Resize syatem partition from twrp
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
i did. but still getting error 70
[Xiaomi Mi 9 SE Guides, News, & Discussion] ebautista:
How did you flashed the gsi?
[Xiaomi Mi 9 SE Guides, News, & Discussion] dzidexx:
Flash gsi with gapps inbuilt.
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
Flash like usual. Like u flashing full rom. But this time, flash it via Select Image.
[Xiaomi Mi 9 SE Guides, News, & Discussion] ebautista:
I see. Try flashing using fastboot mode.
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
[MENTION=8548486]rzki03[/MENTION] it would be useful to wipe system on twrp before flashing any GSI image. I also would go for a format data from twrp before booting. The best practice would be on fastboot using the commands:

fastboot erase system

fastboot flash system (gsi name).img

fastboot format userdata

fastboot reboot
[Xiaomi Mi 9 SE Guides, News, & Discussion] masterchief_2001:
When I want to flash gapps, what is the command and what step is the right one, directly after flashing the system?
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
Ah I haven't tried it yet. Maybe next time I'll try to flash it via fastboot
[Xiaomi Mi 9 SE Guides, News, & Discussion] Lynara:
did you both flash successfully?

because that's just the way I tried several times yesterday.

And just one thing that's currently on my mind, since you erase the system partition prior to reflashing (which in my opinion shouldn't matter since fastboot does that prior to flashing (unless you use the -u switch)) shouldn't it be irrelevant which rom was installed prior to flashing since its system and data partition gets erased before flashing?
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
You cannot flash gapps from fastboot.

Flash in twrp after you formatted userdata.

You can also try this way in twrp:

Wipe system

Flash GSI img

Format data

Reboot recovery

Flash gapps (pico or nano)

Reboot system

You can also use a magisk module called MagicGapps to install the gapps package directly on data partition once you flashed magisk.

[MENTION=2626724]freii[/MENTION] I don't even have the device still. I am just reporting the steps that are commonly used to flash treble.

Erase system command, theoretically, should work better than wipe command, especially when moving from proprietary ROM to AOSP based ROMs. I might be wrong, of course.

Some devs are recommending to use stock firmware for better result, I would trust them ;)
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
Oh i forgot about flash GSI after wipe system. So that's why i got stuck at fastboot and it requires me to install miui rom from all over again. Ahh thanks man! i will try and report here ASAP
[Xiaomi Mi 9 SE Guides, News, & Discussion] ebautista:
Yes, i did flashed successfully. I flashed gsi via fastboot and format data. Then flashed gapps via twrp.
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flyskea:
btw,didnt you face a sound bug?
[Xiaomi Mi 9 SE Guides, News, & Discussion] ebautista:
Yes i did. Thats why i went back to miui
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
Anyone can suggest me what's the most stable gsi (minor bugs, etc.)?
[Xiaomi Mi 9 SE Guides, News, & Discussion] jallenlau:
As far as i know,only one gsi(Floko Rom unofficial) has adapte Mi 9SE and fix fingermode.But I haven't tried yet.
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
Still bootloops bro. I followed your way but still bootloops and error 70 on twrp. Guess i'll stay on xiaomi.eu for now....:crying:
[Xiaomi Mi 9 SE Guides, News, & Discussion] jallenlau:
Don't take xiaomi.eu Rom as bottom package.
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
no i'm not.

i'm using eea global as base. then followed the steps from previous page. but still getting error 70 and bootloop
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
i've been following these steps but still getting error 70 when install gapps and and bootloops.
[Xiaomi Mi 9 SE Guides, News, & Discussion] jallenlau:
Maybe this article will help.

https://xdaforums.com/android/help/fix-error-70-install-gapps-t3311779
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Try on twrp:

Advanced wipe -> resize partitions, select system and swipe.

Reboot to recovery.

Mount system and then flash Gapps (use Pico or Nano).

If you check on Mi9 forum, you will find a nice thread discussing GSI flashing :svetius:
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
ah okay, i will try next time. is twrp version affected the resize function? i'm on twrp 3.3.1 btw
[Xiaomi Mi 9 SE Guides, News, & Discussion] PeterImmel:
where do I find TWRP 3.3.1? Who released it? Backup/Restore working?
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
the thread was on ROM section. but now is deleted.
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flyskea:
Could you share the img?
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
here it is:

https://drive.google.com/file/d/13_wARrYYtT982ECP9E4vaq1V4dkPDkz-/view?usp=sharing

(as the thread said, it can backup but can't restore yet)

EDIT:

The thread is on Mi 9 SE Guides, New and Discussion forum. it was on ROM and Kernel Development forum.
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Hello,

Is anybody were able to run GSI on Mi 9SE? I tried FLOKOROM via fastboot, via TWRP, following all different advices, but it ends every time in bootloops.

I installed custom roms on my devices since my very first smartphone, and still I'm stuck here...

If anyone who have a working GSI rom could explain precisely what he've done to make it work (and maybe what img were used), it would be very helpfull!

Thanks a lot!
[Xiaomi Mi 9 SE Guides, News, & Discussion] maciek90:
I tried to install Floko too. The A only image, but I also ended with bootloops.

Maybe you can try to flash the A/B image. I read that devices that have Android Pie from start should use A/B images. I found this info here https://github.com/phhusson/treble_experimentations/wiki
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
would you mind to try it first? because i'm not backup my important files yet ?
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
I tried both actually. It's weird cause treble phones should be an a/b, but there is a software which says it's an a....
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Mi 9 SE is an A only device. A/B partition is for seamless updates, but treble support A or A/B devices.
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Ok so the last a rom is the 190518, that's the one i tried. I flashed it with TWRP. Maybe I should try fastboot?

like that:

Flash GSI without TWRP:

1 - Perform a factory reset on your device.

2- Once your device has been factory reset, reboot to your device’s bootloader using either a button combination when booting or issuing the following ADB command when booted in Android: adb reboot bootloader

3- With your device connected to your PC, open up a command prompt or terminal window in the same directory where you downloaded your GSI of choice.

4- Enter the following command: fastboot erase system

5- Enter a command in the following format: fastboot -u flash system system-arm64-aonly-vanilla-nosu.img

6- Once it has completed, reboot your device by entering fastboot reboot.
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Flashing system.img using TWRP or fastboot command is the same process.

Try to format data (format, not wipe) from TWRP and reboot to recovery again before rebooting.

Try flashing ROM only (no GAPPS or Magisk) and check if it is booting.

If you have TWRP installed you can get last dmesg.txt log.

having logs would be the best way to understand where the device fails to boot up.
[Xiaomi Mi 9 SE Guides, News, & Discussion] maciek90:
I flashed miui system image finally and already configured it. So I also don't want to configure it from scratch :)

Hopefully someone else will succeed with flashing GSI image.

I will try again when TWRP will be able to restore backups. AFAIK it doesn't work yet.
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Still ko. I can send you the logs if you have some time to spend on it?
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Argh.

Sure you can. feel free to attach the .txt file as a reply to this message so someone else can access to.

p.s. are you flashing the ROM starting from a Global/China Stable ROM? As far as I understood, some ROMs fingerprint could mess with GSIs.
[Xiaomi Mi 9 SE Guides, News, & Discussion] decayed.cell:
Which TWRP did you use?
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
TWRP restore could work if you backup system.img instead of usual nandroid backup of system (select it from Backup screen in TWRP). It also happened on TWRP 3.3.0-1 on my OP3T.

The only downside is that your backup file will be much larger.
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Holly SH... I just had a boot. Trying with a RR a/b rom. So I need to try with Floko a/b!
[Xiaomi Mi 9 SE Guides, News, & Discussion] decayed.cell:
What steps did you use? TWRP or fastboot method?
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Fastboot. But I can't download FLOKOROM again cause i've already download too many files on the gdrive...
[Xiaomi Mi 9 SE Guides, News, & Discussion] decayed.cell:
You can delete them off your Google drive by going to Shared with Me, right click on the file and then deleting it

Can you list the full set of commands that you used?

I installed latest China Developer ROM and TWRP by LR.Team

I tried:

fastboot erase system

fastboot flash system system.img

fastboot erase userdata

fastboot reboot

This causes my phone to boot straight into fastboot and unable to boot recovery. I have to use MiFlash to flash fastboot ROM to get it to boot again.

I also tried:

fastboot erase system

fastboot flash system system.img

fastboot reboot

That results in the phone bootlooping at the Mi logo.

I also tried in TWRP:

Factory Reset

Install Image - system.img

Format Data

Reboot

As well as:

Factory Reset

Install Image - system.img

Reboot

Both of the TWRP steps also give error 70 after trying the gapps fix steps:

Wipe

Advanced Wipe

Check System

Repair or Change File System

Resize File System

Which still gives me gapps install error. I'm using latest nano gapps.

I tried using the latest 190526 ab image and the 190501 a image with all of these steps and none of them worked.

So it seems like to me that one of the scenarios is happening:

A. The instructions are wrong. Unlikely though since some people have had success

B. There are some prerequisites that need to be installed first. I am not using Xiaomi.Eu as a base

C. I've installed TWRP I shouldn't have and need to run the fastboot commands directly after fresh MIUI install

D. There's some differences between our phones which is not documented. I'm testing on a 128GB China model, and someone has installed an AB image when the 9 SE is supposed to be A only
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Actually I've tested many many things, pretty like you did.

Last thing i did was to try with the oneplus 6 flashing instructions for GSI:

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot flash boot boot.img

fastboot -w flash system system.img

fastboot reboot

Grabbed the boot.ini on the global 10.2.5 image, and using as system.img the revolution remix GSI img.

But it ended in bootloop on the start of the rom.

I'll try with floko ab and floko aonly. But the solution may be in the boot.img which could be different betweem chinese and global rom?
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
In your first attempt, fastboot erase is not even a valid command, you must always specify which partition you are targetting .

Please always check your fastboot output each time you perform a command.

Probably you flashed a system.img on top of system partition already flashed.

Same in the second attempt.

In the third attempt (TWRP) you should have wiped system before flashing system.img (Wipe/advanced wipe/ wipe cache, dalvik, data, system).

Regarding the firmware you are using, I would recommend to stick on China or Global Stable ROM performing a clean start using MiFlash to get rid of corrupted data. On top of that, remove device encryption from TWRP using format data and then rebooting to recovery before flashing any GSI.

I need to wait at least one week before unlock the bootloader in my 9 SE, by the way please take logs in TWRP anytime and always keep MiFlash and a full fastboot firmware handy :D
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Tryied now starting from grus_eea_global_images_V10.2.5.0.PFBEUXM_20190422.0000.00_9.0_eea:

fastboot erase system

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot flash boot boot.img

fastboot -w flash system system.img

fastboot reboot

--> bootloop on mi screen when flashing aonly (18/05) rom

Retry with ab rom (26/05) : fully boot!!

Restart to TWRP to install gapps.

(I've downloaded the opengapps nano)

- wipe/resize system

- flashing gapps

--> Full system ok!
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
GREAT! did you flashed FlokoROM?

Are you still encrypted?

Are you getting any bug?
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Yes it's FlokoROM and still encrypted. Unfortunately, many bugs:

- No sound

- It turns to black screen when i launch the phone app to call

- No Wifi

Go back to xiaomi.eu or global...
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
It's weird. Floko is reported to be a good daily driver, at least on Mi9.

Why did you flashed boot.img again? Starting from Global Stable, there is no point in doing so.
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
I did that because I saw that it worked on Oneplus 6, so i tried. Don't know if it has a real effect on the procedure. For now i'll stop the tests because it's my only phone, so as the last FlokoROM is bugged, I'll stick with xiaomi.eu stable.

Seem better than global, and keeps b20 and b28 as i could see...

At least i did manage to fully install the rom, what was not a so easy thing to do.

By the way, with Floko, Widevine is L3 and not L1 like in global rom...
[Xiaomi Mi 9 SE Guides, News, & Discussion] decayed.cell:
Ok this time with TWRP I could get 190526 FlokoROM booting.

Working:

-Wifi

-Fingerprint sensor

-Sound is working

-Bluetooth audio working, but its not working in calls (theres a magisk module apparently for that)

My steps:

grus_global_images_V10.2.2.0.PFBMIXM_20190425.0000.00_9.0_global_53de02bb9f as base

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Install LR.Team TWRP

Wipe -> Advanced Wipe -> Davlik, Cache, System

Install Image - system.img

Reboot

My data was still encrypted though so:

Reboot into TWRP

Format Data

Reboot

Gapps steps:

Wipe

Advanced Wipe

Check System

Repair or Change File System

Resize File System
[Xiaomi Mi 9 SE Guides, News, & Discussion] nfraccar:
Of course you flashed magisk before booting the system right?
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Off course I did not :eek:. Let me try again.....

---------- Post added at 01:00 PM ---------- Previous post was at 12:39 PM ----------

Ok so, what worked with me:

From global rom, with FlokoROM 190626 and gapps nano

fastboot erase system

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

fastboot flash system system.img

fastboot reboot

boot directly to TWRP

install magisk

reboot system

first boot ok

Restart to TWRP to install gapps.

- wipe/resize system

- flashing gapps

- wipe again

Reboot system.

I now have sound, wifi
[Xiaomi Mi 9 SE Guides, News, & Discussion] nfraccar:
Man.. You owe me a beer!!
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Just let me know when you're in France, and I'll be glad to buy you one!
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
What vbmeta.img did you used?

p.s. I made some research and it looks like I said a lot of bull***ts :D

Device shipping Pie builds are using AB GSI Roms, even if they have A only partition.
[Xiaomi Mi 9 SE Guides, News, & Discussion] nfraccar:
:laugh: :laugh::laugh:
[Xiaomi Mi 9 SE Guides, News, & Discussion] decayed.cell:
Theres one posted on the FlokoROM page
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
yeah, what vbmeta? is it from miui rom or from external source?

Edit: Nvm you already answered it lol
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
It is dumped from Mi 9 :D

[MENTION=2291405]decayed.cell[/MENTION] did you booted a GSI using TWRP without flashing this file and disabling dm-verity or vbmeta, but you flashed Magisk before booting, is it?
[Xiaomi Mi 9 SE Guides, News, & Discussion] bencik:
Could you post an update on working/not working features and bugs? Hows the ROM speed and battery? Any UI bugs and glitches (notch)?
[Xiaomi Mi 9 SE Guides, News, & Discussion] decayed.cell:
No I flashed that too. Forgot to add to my steps. The fastboot way is the best.

I flashed Magisk after rebooting
[Xiaomi Mi 9 SE Guides, News, & Discussion] decayed.cell:
Bluetooth audio in call doesn't work. Haven't tested the Magisk module yet

The status bar is not rounded at the top, so there's a little cut off

And there's a problem with the descriptions for Preferred network type

Auto brightness is not working. Everything else seems fine
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Ok, so flashing vbmeta.img Is needed to get the GSI working. I'm not sure about Magisk then.
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Actually I've done it again step by step to be sure.

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

is mandatory to boot with the rom

and magisk is mandatory to make sound, calls and wifi working.

So you can follow my previous explaination and it will work like a charm.:D

But I lost Widevine L1, it goes back to L3... And even if I reflash global rom, i have L3. Any idea to go back to L1?
[Xiaomi Mi 9 SE Guides, News, & Discussion] bencik:
You usually need to lock bootloader to get L1
[Xiaomi Mi 9 SE Guides, News, & Discussion] kagazushi:
Thanks for the answer, I tought it could be related to other thing. Nevermind, on my TV it should use the DRM of the chromecast, so Netflix would be in fullHD I guess.

On the phone screen, it's not that important.

Quick question if someone knows. Where can I activate double tap to wake screen? We need to wake screen before using the fingerprint, and it's annoying to use the power button each time.... So if someone knows...
[Xiaomi Mi 9 SE Guides, News, & Discussion] turronet:
Hi

I Heard an italian youtuber Who said that he had to use a magisk module ti enable that on a mi9 running an aosip gsi rom

May Be checking the mi9 forum could be a place
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
Thank God! finally i can boot into the system with this way! but i kept getting some processes force stop, like com.android.media, com.android.acore, etc. anyone can help?
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
I've booted to FlokoROM successfully. But the text around statusbar is kind of bigger than display itself, know what i mean? that makes the text kind of exceeded the display. Anyone knows how to solve it?

already edit the font size and display size too, but still the text is bigger than the corner of the display
[Xiaomi Mi 9 SE Guides, News, & Discussion] rzki03:
I'm following this steps to boot successfully into FlokoROM. But as i said earlier, the text is little bit bigger than the display so the text kind of past the display, and now i've found that on my device, the fingerprint is not working. i've been trying to add my fingerprint but it doesn't register. Any suggestions?

EDIT: Google Face Unlock is also keep stopping. Maybe i'll revert back to xiaomi eu for now...
[Xiaomi Mi 9 SE Guides, News, & Discussion] Flounderist:
Some information from FlokoROM page would be helpful.