yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 9 Questions & Answers] KaiseRRUby:
I cannot get this to work. How should we do this?

---------- Post added at 02:52 PM ---------- Previous post was at 02:44 PM ----------

So, i did all of this. My base is the latest global beta.

I don't get the part where i should change the file system. Can you give me some more information about that? The first time i got to the point where RR logo was booting but stuck. Never got that far the other times, because of the install of pico gapps. Every time it isn't possible to install the Gapps because of not enough space.

Can you please tell me what the file system should be and the steps you take to fix it?
[Xiaomi Mi 9 Questions & Answers] Chrisgia:
Firstly, I'm not sure you can use beta as the base. I'm not sure, but I always used the latest stable global for it, because it was advised to do so. I think it also works with the beta but I don't know.

And yes, in order to install gapps go to the recovery and wipe -> advanced wipe -> chose "System" -> Resize File System.
[Xiaomi Mi 9 Questions & Answers] KaiseRRUby:
That's the only thing to do? Maybe i should try the global stable then. I didn't see the option resize, only the change file system button. A bit done with flashing now tbh, maybe will give it a try another time.
[Xiaomi Mi 9 Questions & Answers] Chrisgia:
Sorry, you're right. It's Wipe -> Advanced Wipe -> choose System and tap Repair or change File System -> and in there you'll see the Resize File System button :good:
[Xiaomi Mi 9 Questions & Answers] KaiseRRUby:
Well, everything went well but the phone reboots to recovery. No booting to RR7. I'm absolutely out of options imho, don't know what went wrong. I'm on official global stable base now even.
[Xiaomi Mi 9 Questions & Answers] Chrisgia:
If you want to add a little customisation and better overall battery life while waiting for more stable Roms for our device, I recommend you to flash RevolutionOS for the moment. Combined with Magisk, its been a really good experience for me so far (using it for a week now).

Thread on it here : Mi 9 Guides, News, & Discussion - [ROM] Revolution OS by fp1707 ;)
[Xiaomi Mi 9 Questions & Answers] fp1707:
I wonder if anyone tried out Erfan's GSI like Oxygen OS, One UI and such. Or MIUI 9?
[Xiaomi Mi 9 Questions & Answers] Addymore:
I tried hydrogen os....back in time....it booted....but.... cannot be used as a daily driver
[Xiaomi Mi 9 Questions & Answers] fp1707:
Wait but how did you modify the vendor to work with it. I thought the vendor has to be modified in order that it can even boot these things. I wanna try this out even if i can't use it as daily driver. But I really don't understand how to modify vendor. It doesn't seem like many people are into the Mi 9 for use with GSIs so I suppose we have to modify vendor ourselves?

Sorry if i sound like a noob, that's because I am; Very new to GSIs. Only experience is with Android P beta on OnePlus 5T
[Xiaomi Mi 9 Questions & Answers] doggydog2:
FlokoROM 20190602 test OK

As all focus is on Oneplus7, not sure if it makes sense to keep doing tests. Attached in the link is the comparison of todays newest TWRPs - no encryptions for us yet, and the gapps installation without resize was announced but not working yet.
[Xiaomi Mi 9 Questions & Answers] Abaddon:
anyone got viper4android / v4a working on your MI9 w/ GSI? on MIUI drivers are fine but with any GSI I try v4a does no install drivers
[Xiaomi Mi 9 Questions & Answers] Inkku:
Wondering the same thing, I tried messing with SELinux, a whole bunch of workarounds etc, but couldn't get it to work.
[Xiaomi Mi 9 Questions & Answers] Abaddon:
yeah I think it has something to do with permissions so the drivers aren't loading or maybe related w the file paths /vendor - /system on audio_effects and libs

the same thing with my redmi note 7 on AOSP/GSI roms
[Xiaomi Mi 9 Questions & Answers] PsyAlyen:
Is it possible to have notch like we get on MIUI? I'm on Aosip.
[Xiaomi Mi 9 Questions & Answers] doggydog2:
flokoROM 20190609 test KO

no fingerprint * old glitches stay * few new settings

rolled back to 20190602 and kept the new magisk patch v6. fingerprint is back.
[Xiaomi Mi 9 Questions & Answers] doggydog2:
flokoROM 20190615 test OK

fingerprint back * old glitches stay * no new settings

can't upgrade to miui 9.5.30 base as it won't boot. so i will need to delete the data. that is bad for continuous usage during the year.

glitches proven longterm:

- keyboard stops working after some time, fix: switch to different keyboard (which will stop working too)

- home button stops working after some time

- no fp on AOD

- double tap to wake up sometimes not reacting

- fp circle sticky over alternative login, so can't type all letter on keyboard (fix: swipe into letter)

- fp circle sometimes stays on screen after alternative login is complete

- auto rotate stops working after some time

- autolocks for no reason every 5min, not nice during watching youtube

- problems with phone in pocket.. it will dial numbers etc. 'Prevent accidental wake-up' in Display settings, or 'Pocket detection' in floko setting don't have impact (except extreme battery drain for the latter).

- pickup, hand gesture etc doze effects not working well, produce many wakelocks and drain battery extremelly

- notifications are sometimes missing

- ambient brightness slow and still sometimes can't see screen when double tapping on dozed phone when outside, very uncomfortable

- brightness stubborn to levels not wanted by user (problem in every Pie ROM?)

- User interface\Style settings corrupt UI

- USB flashdrive not working, dialog to change control betweet device and 'this computer' broken, no notification of drive assigned

- search settings is really slow

- very minor: cannot inject TORCH event

- by default, the status bar is misaligned, text cropped (fix: status bar extra padding = 8), wondering why default setting is not improved

- no OTA, no encryption in any TWRP, flashing is bit difficult with need to resize system partition, gcam will be lost each time (but luckily tons of other settings are saved)
[Xiaomi Mi 9 Questions & Answers] acctest12:
Tanks alot.

So the rom is getting worse? I need a rom with Smart Lock and stable. Any suggestion?
[Xiaomi Mi 9 Questions & Answers] Abaddon:
w the latest floko I don't have those issues aside from vid recording not working for me even on gcam. But w apps like fb messenger they work but a bit of low quality and kinda laggy.
[Xiaomi Mi 9 Questions & Answers] doggydog2:
i'd say it's not getting better for 2months now. it's still similar to build 20190421. Smart lock works, no crashes but there are annoyances which are not visible in first test, but later. I hate sudden locks during video or sudden minimization of maps during navigation and kbd+autorotate+home stops working. Having said that, i switched to xiaomi eu :(

(+)

- OTA, easier flashing from OS, no gapps mess, flash then go to chinese recovery and exit, it will ask you to apply magisk,that's cool

- better battery icon, v i s i b l e, when will ppl get this?

- better charging animations, massive.. Qi people need this

- very nice 24hr wallpaper

- very nice AOD, now animated (i'm not into graphics at all, but all those 3 points are a very good taste)

- easy fp working immediatelly from doze, fp circle always visible

- USB OTG is back, all integrations into file selection dialog are back

- temporary rotation lock is useful, but tons of AOSP quick settings missing

- faster and easier stock camera with portrait/48mp/night mode working (no more "Cannot connect to camera")

- no profiles, but there's internal "smart lock" feature for wifi/bluetooth, so it's possible to avoid google backdoors again

- call app is the only xiaomi app i like, it's good, given you disable its internet access and revoke all authorizations. Also probably the only manufacturer which doesn't hide must-have call recording (shame on everyone)

- local backup. what is better than local backup? no cloud bs, just sync it to your SD card or ssh/webdav

- i thought ambient brightness will annoy but not.. didn't need to change it manually yet

(-)

- disgusting overmodified UI, timeouts of 2 to 10 seconds to confirm some choices, inconsistent and chaotic settings, unhelpful settings like disable Mobile (not Wifi -> firewall needed)

- virtually every xiaomi frontend requires (super generic) privacy policy agreement

- camera night mode far worse than GCam

- not so many tweak like in crDroid settings, but Customiuizer xposed plugin is pretty strong

- no notification details in AOD

- no lockdown whatsoever

- no Pie Recents, just poor xiaomi implementation

- file manager copy with wrong timestamps, that's amateurish

- idiotic custom app icons by xiaomi EU (fix: remove /system/media/theme/miui_mod_icons)

- very limited set of languages (there's no English with EU clock/units, unfortunately Android stupidly links language to regional preferences)

- idiotic boot keyboard which doesn't react

- no menu animations, so you search for some setting and it won't show you where is it

- notification drawer wrong graphics, blurs background too much
[Xiaomi Mi 9 Questions & Answers] acctest12:
[MENTION=526216]doggydog2[/MENTION]

Smart lock works in xiaomi eu? Or maybe in Ros?

PS: I have to say i was much happier with my galaxy s8. ^^
[Xiaomi Mi 9 Questions & Answers] :
Lol... Wrong thread for that question.

So sell your Mi9 and get a Lagsung?:confused:
[Xiaomi Mi 9 Questions & Answers] acctest12:
thats why i use "@doggydog2"

i ask in the right thread, but no answere :) :crying:

so i try to get an answere here :victory:

sry dich gestört zu haben war nicht beabsichtigt. :angel:
[Xiaomi Mi 9 Questions & Answers] doggydog2:
So i don't like Smart lock because it's from Google and i don't want to give authotization control, usage access or device admin to proprietary US app.

But i tested it, It is active at the moment, and it registered couple of bluetooth headphones. I can't find its UI later -- i really won't go through the horrid Xiaomi settings!

But anyways, i tested the lock and i couldn't login without password! So Xiaomi yet again overrides every god damn thing.

But i use CustoMIUIzer to do the same job exactly and it works.

Yeah Xiaomi is a crippled device, and it takes huge amount of time to make it work. Just now i wanted to finally have some music on phone, storage is small, SD card reader doesn't exist, so i got a tiny SD card reader from Ali, used a USB-C to headphone and USB-C splitter .. and it doesn't work. It works only when connected directly, but then i lose headphone jack.. ridiculous!! Same with Titanium backups, you can back up to internal storage which will be destroyed when phone is broken or stolen..how useless right??? No problem with Samsung!
[Xiaomi Mi 9 Questions & Answers] zetlaw:
No, it doesn't. Smart lock screens are there, and it will notify you that your Bluetooth is now a trusted device, but it will not unlock the phone when the device is near you.
[Xiaomi Mi 9 Questions & Answers] doggydog2:
back to flokoROM 20190615 (No newer release.) after 2 weeks in MIUI jail.

I tried PixelExperience, ViperOS, and crDroid but they're not ready as daily driver yet. Hope clean install will get rid of some issues.

Using tilt action to get AOD fp login like in MIUI.

There's no TWRP encryption support even after fresh install.
[Xiaomi Mi 9 Questions & Answers] Laptapper:
Ros smartlock works
[Xiaomi Mi 9 Questions & Answers] acctest12:
thx i ll tr it now, couse i m not happy with gsi.

:good:
[Xiaomi Mi 9 Questions & Answers] rubencho21:
Hello friends, how can I install a rom gsi? Now I am in the rom xiaomi.eu beta miui 10 9.6.27
[Xiaomi Mi 9 Questions & Answers] acctest12:
it do not work! just flashed for nothing...
[Xiaomi Mi 9 Questions & Answers] doggydog2:
you need to miflash global stable or beta first. from xiaomieu and similar the transition without reflashing partitions is not possible. then format data.
[Xiaomi Mi 9 Questions & Answers] jddnoob:
Does anyknow how to change the camera APP on double click powerbutton (FlokoRom)?

It used to ask which camera APP to open. Now there isn't any longer this popup; the cam which is opened force closes right away.

TIA
[Xiaomi Mi 9 Questions & Answers] doggydog2:
open fc camera settings and clear defaults. or just install a new camera. you must get a popup.
[Xiaomi Mi 9 Questions & Answers] jddnoob:
Thanks a lot. Uninstalling ANXCamera did the trick:good:

Btw: any news on TWRP encryption with GSI Roms? This is still not working, right?
[Xiaomi Mi 9 Questions & Answers] LoganDeveloper:
Hi, I have flashed the vbmeta and the system system-arm64-ab-gapps-su.img v115 from the phh ushon github on my xiaomi.eu rom, but when I reboot system, my mi 9 reboot some times, then reboot into recovery mode.

And it's the same for every gsi rom that I want to test.

Ps : I have the latest adb and fastboot on my pc.

Can you help me please ?
[Xiaomi Mi 9 Questions & Answers] jddnoob:
Have you tried to wipe /data after Installation?
[Xiaomi Mi 9 Questions & Answers] LoganDeveloper:
No, I will try it, thank you for your answer.

---------- Post added at 07:01 PM ---------- Previous post was at 06:57 PM ----------

It's working !! Thank you very much. I have just another question. It is possible to install the android q gsi on the mi 9 like the erfan build : https://mirrors.lolinet.com/firmware/gsi/ ?

Because I have tested and my device bootloop
[Xiaomi Mi 9 Questions & Answers] Mugatu485:
Did anyone get the tap to wake function working on any GSI rom?

Regards
[Xiaomi Mi 9 Questions & Answers] Rajeev:
Non working. Tried almost all GSI
[Xiaomi Mi 9 Questions & Answers] jddnoob:
You mean double tap to wake? Works here on flokorom
[Xiaomi Mi 9 Questions & Answers] Mugatu485:
Yes, I mean double tap to wake.

It is only working partially on my Resurrection Remix GSI install.

I have read mixed things about Floko Rom. How is it working at the moment? Actually I'm pretty happy with RR right now. Works stable, great feature set, excelent battery life (due to aggressive battery options). But yeah, DT2W is kinda broken :/

---

Does anyone have a link for a kernel that supports double tap to wake?

I have read that AndroPlus released somehting for the Mi 9. But I can't find it anywhere...
[Xiaomi Mi 9 Questions & Answers] Flounderist:
Hi there, I sadly noticed you stopped building and developing FlokoROM GSI.

I am using your latest build on Xiaomi MI 9 SE and it is working very well.

Are you planning to build back your GSI in a while? I would be more than happy to get even just a monthly update, to keep on track with monthly Android safety patches/phh build updates.

Thank you in advance! :fingers-crossed:
[Xiaomi Mi 9 Questions & Answers] :
Sounds interesting. I hope this GSI roms will be stable and we will get more roms when my Mi9 arrives. :D
[Xiaomi Mi 9 Questions & Answers] Lovetz:
[MENTION=5169444]AndroPlus[/MENTION] can you help with this bug? When I open build-in snap camera I got error: Media server is not available. Application shut down.

I use Snap camera on other gsi without problem with the same vendor.
[Xiaomi Mi 9 Questions & Answers] golfinry:
phh just released an update for his GSI image.

https://github.com/phhusson/treble_experimentations/releases/tag/v112

Fingerprint reader is now working :)

https://www.reddit.com/r/PhhTreble/comments/b8gqrh/april_releases/
[Xiaomi Mi 9 Questions & Answers] Vihru:
how you install it? please tell me.. thanks.
[Xiaomi Mi 9 Questions & Answers] golfinry:
https://github.com/phhusson/treble_experimentations/wiki/Xiaomi-Mi-9
[Xiaomi Mi 9 Questions & Answers] Vihru:
"

"Flash it with fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img "

it says fastboot: unknown option -- disable-verification? also same with that verity?
[Xiaomi Mi 9 Questions & Answers] Potato997:
You need to install fastboot drivers first
[Xiaomi Mi 9 Questions & Answers] Vihru:
i updated adb.. but still:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system-arm64-ab-gapps-su.img

target reported max download size of 536870912 bytes

Invalid sparse file format at header magic

error: write_sparse_skip_chunk: don't care size 57626540 is not a multiple of the block size 4096

erasing 'system'...

OKAY [ 0.040s]

sending sparse 'system' 1/2 (524284 KB)...

error: write_sparse_skip_chunk: don't care size 57626540 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 57626540 is not a multiple of the block size 4096

OKAY [ 11.510s]

writing 'system' 1/2...

OKAY [ 0.003s]

sending sparse 'system' 2/2 (56276 KB)...

OKAY [ 3.577s]

writing 'system' 2/2...

FAILED (remote: Error: Last flash failed : Bad Buffer Size)

finished. total time: 15.134s
[Xiaomi Mi 9 Questions & Answers] Potato997:
Try another port and cable
[Xiaomi Mi 9 Questions & Answers] Vihru:
tried orginal. not working.. so there is something wrong. vbmeta success but system.img not.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system-arm64-ab-floss-su.img.xz

target reported max download size of 536870912 bytes

Invalid sparse file format at header magic

error: write_sparse_skip_chunk: don't care size 40607692 is not a multiple of the block size 4096

erasing 'system'...

OKAY [ 0.031s]

sending sparse 'system' 1/2 (524284 KB)...

error: write_sparse_skip_chunk: don't care size 40607692 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 40607692 is not a multiple of the block size 4096

OKAY [ 11.465s]

writing 'system' 1/2...

OKAY [ 0.000s]

sending sparse 'system' 2/2 (39656 KB)...

OKAY [ 3.593s]

writing 'system' 2/2...

FAILED (remote: Error: Last flash failed : Bad Buffer Size)

finished. total time: 15.089s
[Xiaomi Mi 9 Questions & Answers] Potato997:
Did you tried another USB port?
[Xiaomi Mi 9 Questions & Answers] Vihru:
yes ofc, i have chinese version and unlocked bootloader. xiaomi.eu working fine but why i cant install this? what im doing wrong?
[Xiaomi Mi 9 Questions & Answers] Potato997:
I just noticed you tried to flash the compressed image.

Open the system-arm64-ab-floss-su.img.xz with a program like 7-zip, extract system-arm64-ab-floss-su.img and flash it. The extracted image is around 1.5GB
[Xiaomi Mi 9 Questions & Answers] Vihru:
thanks a lot! you made my day... i knew it i try something wrong.. :D
[Xiaomi Mi 9 Questions & Answers] :
What are the pros and cons of GSI Roms?
[Xiaomi Mi 9 Questions & Answers] AndroPlus:
I tested FOD on my Floko GSI and unlocking works in lock screen or in-app, but not on AOD. It's better than nothing :D
[Xiaomi Mi 9 Questions & Answers] Mohammed779:
Pure Android/custom ROMs.

Not all hardware features work properly/perfectly.
[Xiaomi Mi 9 Questions & Answers] Potato997:
Hi, I know that GSI works fine on Mi 9. But I wanted to ask you if you will consider building a device specific ROM in future?

Thanks
[Xiaomi Mi 9 Questions & Answers] AndroPlus:
Why do you need device specific ROM?
[Xiaomi Mi 9 Questions & Answers] Potato997:
Device specific tunes, CAF tags, power Hal, plenty of margin for improvements.

Gsi runs fine and I am very grateful for that, but they are made to run on the most number of devices. At the moment quality > quantity

The phone is a beast, but I feel it's "castrated" at the moment.

Not to mention issues with a few magisk modules (and magisk itself), the possibility to port stock can as AnxCamera team is interested.

Let me know if you agree or not

PS: I'd like to mention the last phrase from phhusson AOSP thread https://imgur.com/a/UL45CFg
[Xiaomi Mi 9 Questions & Answers] CrazyBeaver2377:
Is this an april fools joke?

There are numerous reasons why you would want device specific roms over GSI.

GSI's were never intended to run perfectly on a single device. It's called generic for a reason, but sure you can get all the hardware working with patches/overlays.

I hope someone who will be able to do device tree bringup gets their hands on a mi 9 soon because this is kind of depressing.
[Xiaomi Mi 9 Questions & Answers] AndroPlus:
Device specific tunes including power hal are also possible with GSI.

For example I could add SM8150 specific power hal, though it's not tuned much yet:

https://github.com/folokorom-gsi/device_phh_treble/commit/d0658d21e9ef57bc5694bab1800c91b9ece77315

Though some little spaces are taken for nothing for non-SM8150 users, but it's 2019 now and only Android Go user cares that;)

It's great if ANXCamera10 is ported for Mi 9, but GSI won't block them - you can just flash zip.

Please note phhusson didn't say it on his LOS thread:

https://xdaforums.com/project-treble/trebleenabled-device-development/lineage-phh-treble-t3767690

"more advanced ROM" doesn't mean device specific ROM.

Anyway this thread is for GSI roms, so you should create another thread for device specific ROM discussion.
[Xiaomi Mi 9 Questions & Answers] Potato997:
Here my experience with the actual status of GSI on Mi 9.

I used the latest AOSP GSI by phhusson (v112).

Overview: https://github.com/phhusson/treble_experimentations/wiki/Xiaomi-Mi-9

Camera:

AOSP camera works

GCam port works, including triple camera

Stock MIUI camera port still doesn't work (ANXCamera). I tried with the developer or AXNCamera and it FC when opening. It will be tried again maybe when custom ROMs will come

Data connection:

Data menu FC, the default connection is 3G only.

To change the connection you need to type *#*#4636#*#* in dialer and change it from there.

4G+ works.

Brightness:

The default minimum brightness it pretty high, I got blind looking at it when waking up or late night.

To change the default minimum brightness you need to install an overlay, it's easy but meh.

Fingerprint reader:

It works, but with it's limited.

At the moment, to get the fingerprint reader you will need a certain amount of brightness.

If you have more than half brightness it will work almost 100%.

If you have it lower, the first try will fail all the time, but the screen will raise the brightness. After that, the second try will work.

To unlock the screen, you will need to press the power button first. This is because with always on display, the brightness is too low and the scanner will fail reading the fp.

This is a little bit annoying, but I'm positive that the fp will be fully working soon thanks to [MENTION=1915408]phhusson[/MENTION]

Quick charge and Wireless charging:

QC works

Wireless charging should be working too, I can't test because I still don't have a wireless charger.

Type-C audio:

Works with both the dongle and type-c earphones, I use the OnePlus bullets and they works with no problem.

Video Playback:

The videos on YouTube at 1080p60fps will be lagging and get stuck.

4k60fps will be the same.

You can check the details here: https://github.com/phhusson/treble_experimentations/issues/458

Battery life:

It's not bad, but defenitely worse than MIUI.

While on stock without mods and optimizations I could reach 7-8 hours of SOT with ease, I now struggle to get 6h SOT with the same kind of usage.

The overnight drain is about 10% of battery over 7-8h, with or without WiFi, powersaving mode it's the same.

Another small issue is that the battery usage stats are broken and the data will not be available.

Conclusion:

It's defenitely a great start since phhusson got himself a Mi 9 and worked only a few days to get support for our phone (AFAIK). I'm really greateful to be able to experience stock AOSP on Mi 9.

While I really dislike MIUI, I think using GSI at the current state is a waste of the phone. I'm pretty sure the situation will be better in the future, the phone is still young and have 1-2 month of life.

Device specific ROMs are still be best in my opinion, but I'm aware that they will take a while to come since the phone is new, you must wait 15 days to unlock the bootloader and more important, it's the first phone with the SD855 so the device bring up may take a little longer. Same story with CAF tags.