yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] kcpyn36:
Hello, how did you make bottom corners rounded, is there a way to do this in miui with "miui optimization" off?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
There are actually 3rd-party apps for the purpose, you need not seek a OS-level approach.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] kcpyn36:
Dont know why the other developers dont use the overlay, for me is an important feauture. I mean, not really that important but withot makes mix ugly as hell
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] _Drifter_:
Just so say, that work flawless. Thanks.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Mollic:
just dirty flashed from old RR using decrypt script to newest RR build, so far so good
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Dhruv Dhawan:
How can we use Google camera at it's full resolution?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Synced with LOS - we going Treble!

Use the latest official TWRP and this Magisk if needed.

If using unencrypted data, you'd also need the new universal DecScript - I updated the link in this post.

Also check this post I made in the official LOS thread about playing with GSIs.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Exenth:
If you use the BSG Mod and dont change the Resolution settings 12MP works for me, only if i set it to 12,2 manually i doesnt work. It wont show anything under the Settings, but it works.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] liu8203:
Can I hide the softkeys somehow in PE?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Dhruv Dhawan:
Changing the resolution settings mean turning of api2?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
I use a slightly older version of GCam (Arnova's V6Beta1) and 12.2MP works alright even when manually selected. I don't care about fancy gimmicks such as Portrait.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Dhruv Dhawan:
Thank you!
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] liu8203:
从上个版本 pe 升级新的 安装你新的加密补丁 重启总是到twrp
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
I just tested personally and verified that updating works well. Do make sure that you also have the latest TWRP which adds support for Treble.

P.S.1: Although we're both Chinese, it doesn't mean we can neglect the fact that XDA is an English forum. Do as the Romans do.

P.S.2: Read posts carefully. I hate having to back up my own installation, flash another ROM and test the issues, only to find out that it's nonexistent or user error - which, frustratingly, happens on a weekly basis. I do try and take care of newbies but I have my limits.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] obermotz:
First, thanks for the effort/time/etc to maintain these ROM versions - I have been using your RR and recently PE basically since I got my Mix2 cca. 2 months ago . I have a question tough: if I want to upgrade to the most recent / Treble enabled version (I assume PE is also on Treble now), do I have to factory reset or format data? Basically that's the only thing keeping me from upgrading at the moment.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Nothing - just switch to the new TWRP/Magisk/DecScript and do as you'd normally do.

If the upgrade steps were more complicated I would've let you know in the first place - not to mention that it'd deter people using official LOS as well.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] kancrutt:
what is bennefit using treble for unsupported device like MI MIX 2?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
As I said in that post I made about GSIs, the true strength of Treble will be tested when Android P's GSI drops. If all goes to plan it would allow us to immediately boot up P with minimal bugs. But before that comes, it's not all that useful. It's not like we have few ROMs to play with and needs GSI to compensate.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] candiduslynx:
Tried latest RR build (updated from 0704).

Although I managed to upgrade (uninstall Magisk, upgrade, install 16.6) I decided to revert the changes as I experienced battery drain (presumably, Magisk problem) and had issues with screen not responding at all.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
DecScript is good for those that come from builds before May, or from unofficial MIUI ROMs (which tend to use unencrypted data for some reason) - saves them a backup / data format cycle. The user base of those unofficial MIUI ROMs are large here in China and I'd like switching to AOSP-based ROMs be less of a pain for them.

As for me personally, while I do appreciate not having to format data as well, the main reason is somewhat a niche - I want to use fingerprint unlock without a lockscreen PIN/password (to me FP is just a fast way of unlocking, not a security measure). That means I need to delete locksettings.db, but doing so with encrypted data also prevents the device from decrypting on startup and as a result the device is unusable. I therefore deliberately stay unencrypted.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] pedrazadixon:
Any way to disable led blinking in low battery in RR rom?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Jellyfish Gun:
In the Notification
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CyanWoods:
magisk issue

For a long time, I install a full RR ROM to update my phone. When I update to the latest version and reinstall magisk from recovery, there is a notification said cannot mount /vendor . then I reinstall the previous version of RR, I can install magisk again. I don't know how to install magisk in the latest version.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
As said before, you will need new TWRP and Magisk package for Treble.

If you're neither in the local QQ group nor the international Telegram group, XDA is the only way you can get info on these, and therefore you should take extra care scanning previous pages for useful info.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CyanWoods:
Got it.

could you tell me the qq group number please.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Alexthekiller1993:
I installed RR with Gapps and i booted just fine . After a few days i decided to enable root , so i went to developer options and selected Apps and ADB (for root) but the apps that needed root indicated that i have no root so i installed Magisk 16.0 via TWRP but now it stucks on MI logo and restarts .

Then i formated everything and retried with Magisk 16.6 but again stucked on MI Logo . 3rd try with Magisk 15.4 and the problem remains . 4th try with SuperSU 1.82 and i dont even see it anywhere so now i dont know how to root my device i tried everything i knew.

Is there any modified version of Magisk for Mi Mix 2 ?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] DICKO1984:
Rom have treble enable. You need magisk for cust here

https://gist.github.com/Jerry981028/b6a7fdfcf1823325c2f94f83677fa554
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Alexthekiller1993:
Thank you so much i didnt know that . Have a good day :good:
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Received a lot of similar inquiries about Magisk, so I updated OP about it. Not sure if people are actually reading it though...
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] zar3k1:
PE

I have just installed PE rom, I'll like to know where is the correct place to send feedback about it's performance. I am noticing 2 issues, one being mobile data sometimes going off (witch is resolved after turning it on/off) . And a bug were the screen goes to sleep and doesn't wake up. (Witch is resolved by restart).

Is it possible to see a changelog in the PE rom development? .

Edit: the Mobile data going off was on my end due to a bug of my vpn
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] davital:
Hey Andy I'm on your RR kinda like it. Nonetheless, I observed that each time I reboot I'm stuck Android starting message until I reboot again and unlock with code. Fast charging is missing in this rom too. Kindly help check especially the fast charging.

Won't mind to use any kernel that can solve this. Great work bro.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
The wakeup issue is something I didn't figure out earlier - I thought it was the way I messed with the Doze implementation that screwed it up, and made a change earlier, but from your reports it seems it's not the case. As no one reported for LOS/RR I'd say it's probably an AEX/PE upstream issue.

There is no convenient upstream changelog AFAIK.

Quick charging works as observed via a USB meter - around 9V 1.5A, not fast but not slow either. Not sure why you are getting the Android is starting message.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
Here you go - Error 7.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CrazyBeaver2377:
Yeah some other people have had this issue too. Which TWRP are you using?

You can use oreo firmware without device check.

Try this one: https://androidfilehost.com/?fid=818070582850493213
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
Thanks.

I posted my issue in the Firmware thread and was told to flash the whole ROM rather than an updater - https://xdaforums.com/mi-mix-2/development/firmware-xiaomi-mi-mix-2-t3741667/post75899046

Which is the best way?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CrazyBeaver2377:
You definitely don't need to go back to MIUI all over again, but you could do that if you feel more comfortable doing it that way.

Btw if you are coming from MIUI you should also format data before flashing anything.

Do the following:

- Flash raupe's latest TWRP (download from raupe's thread)

- Format data

- Flash firmware (flash the firmware I linked you in earlier post, should be good)

- Flash rom

- Flash gapps

You can PM me if you need more help, that way we don't soil the thread with this.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] yanokashi:
Hey there, flashed this ROM but I have an isssue with fingerprint unlocking - most of tries when I put finger on scanner to unlock the phone, I hear it unlocks but the only thing i see is black screen.. Any ideas?

And another question - Can I disable second SIM here? I cant see option on settings :/
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Jayz2K:
Probably because you didn't disabled "Always on" display in Parameters > display > Standby display. This is not working fine atm.

Envoyé de mon MI Mix 2 en utilisant Tapatalk
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
Thanks very much.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
I've disabled that feature in the latest build as it's of no use to LCDs and not well implemented either.

The SIM switch seems to have been added back since this build.

Remember that LOS upstream is still working to port features to 15.1, so any feature you miss from 14.1 would probably be added some day.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
Right I'm up and running.

I installed Stock Gapps as well.

Issues I'm having is Camera App force closing.

Android Pay not working.

Can these be resolved?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CrazyBeaver2377:
Camera app force closing is probably because you let opengapps remove the stock camera and install gcam.

I'm not a 100% sure about android pay as I don't use this myself but there is probably a magisk module to fix this. You probably also need universal safety net fix. https://xdaforums.com/apps/magisk/xiaomi-safetynet-fix-t3600431
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
Thanks for the input.

Is there something I can do to get the stock camera back? (I though that stock Gapps would be the right thing to use)
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CrazyBeaver2377:
When I had the same problem I reflashed entirely, I don't know if you can get this solved without reflashing.

Well you can use whatever opengapps package you want, I customize my opengapps with a config file to get camera and some other stuff out of the stock package.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
I'd like to avoid a complete reflash unless it can be done without wiping as I've just spent the last hour or so setting up the 150 apps I have!

Can I just reflash the ROM without wiping and hope that the camera app works or do I need to wipe?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Jayz2K:
Thanks for the info ;)

Right now, there's no major improvements regarding my personal use to upgrade for the moment.

It's honestly rock solid and battery life is really decent. Battery drain while roaming is gone and I don't get under 35% at the end of the day.

Many thanks for this build. Also, since I follow the telegram group, thx to all devs here ... job done those last days is pretty awesome.

Envoyé de mon MI Mix 2 en utilisant Tapatalk
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CrazyBeaver2377:
Haha I feel you, you don't want to know how often I have set all my apps up the past few weeks ;).

No harm in trying a dirty flash, especially not if you backup before flashing. Maybe someone else here knows a solution without reflashing.

---------- Post added at 18:59 ---------- Previous post was at 18:56 ----------

Totally agree that battery life is great.

You can dirty flash it without any problem, if you make a TWRP backup you can just revert anyway if it doesn't work out. The proximity fix in calls and VoLTE is definitely worth it.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
Got it working.

I first tried a dirty flash of Lineage that didn't work.

I then installed a smaller selection of Gapps (Full in my case) this has the effect of uninstalling the existing Gapps first before installing the new package. I think this uninstalled the non working camera app.

I then installed Lineage again and it worked.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] CrazyBeaver2377:
Awesome, glad you fixed it :)
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] TylerDurdenK:
Can I swap the recent and back buttons using this?

https://xdaforums.com/mi-5s/development/mod-swap-buttons-xiaomi-mi-5s-t3561095

---------- Post added at 06:44 PM ---------- Previous post was at 06:26 PM ----------

I've also got Google Pay working. Just flashed Magisk in TWRP and hit the SafetyNet button within Magisk Manager.

Sorted.......for now!
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
That one is for devices with physical/capacitive keys. Find some app that customizes the navbar instead.

I personally use the shell command "settings put secure sysui_nav_bar ***" (you can look up the details - there should be an XDA article about it) to set up the navbar, since it's fast when I got multiple devices to set up with the same layout.

Sent from Xiaomi Mi Mix 2 @ LineageOS 15.1
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Feenfleisch:
Thank you for the great Rom. But i have error message about libui.so and libutils.so then i start TSF Launcher / Firefox or some games (bit Dungeon II)
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Dhruv Dhawan:
I don't have this problem. You should try updating your firmware to the latest global version.

Thanks to the OP. I am getting amazing battery life on PE
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] itsdan313:
What are the advantages of treble over normal roms, besides quicker updates?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] HeavyRam:
[MENTION=4467696]AndyYan[/MENTION] if i go encrypted->encrypted just dirty flash update without using DecScript?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Correct. Encrypted data users need to worry about the least things.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] HeavyRam:
[MENTION=4467696]AndyYan[/MENTION] And how to switch from unencrypted to encrypted? Clean install without DecScript and format /data?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Again correct. There is no painless way AFAIK.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] HeavyRam:
[MENTION=4467696]AndyYan[/MENTION] In this week i just do it more than 10 times because i'm trying to install another update of magisk (1662) and i didn't know that the problem is in that update. Patching your magisk version solves the problem. Mfw i just reinstall system many, many times in 4 hours time period, when the problem solver is just that package...
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Synced with LOS; please use 8.7.5 firmware from here on out. AEX/PE will follow suit when they're due for release next week.

EDIT:

Mike seems to have given the wrong info - please return to 8.4.19.

There's also a small problem with the fingerprint sensor, it acts as ENTER key (selecting items). Known reason but I wouldn't put out a separate build to fix it.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] kremmit:
Thanks. What would be the correct order of flashing?

Firmware and then right after that the rom?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Hold off for now; Mike might have given us the wrong nod to use 8.7.5, I've received reports of battery drop since.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] kremmit:
My order of flashing/updating was first flash the 8.7.5 firmware and then the right after the RR rom.

Reading now we have to use 8.4.19 so flashed that. I should be ok on how i flashed?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
There is no fixed order in flashing those, and using the wrong FW doesn't make it unbootable anyway.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] kremmit:
Thanks for clearing this up.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] HeavyRam:
[MENTION=4467696]AndyYan[/MENTION] for complete clean install without turning encryption off, how it goes? Can you please write instruction there?(including flashing firmware etc.)
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Right there in OP. Turning encryption off is in a separate post that I linked to.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] HeavyRam:
Is there quick solution for fingerprint working as enter key? Or just wait for another build in next week.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
You could put the idc and keylayout files back where they are - read this commit for some more info.

e.g. uinput-fpc.idc to /vendor/usr/idc/

Not exactly complicated but not something I want to upload files for and instruct everyone to do.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] sikica133:
quick question, since I rly haven't found an answer anywhere

recently got mix 2, flashed AospE since it used to be good (still is yay ^^), however I've noticed that big cluster can only max @ 1.96 GHz, not 2.45 GHz. question is, is this AospE issue or LoS has same problems
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Demon limited the max freq in the kernel in order to balance power/performance, see this commit. I have no intention to lift this limit either.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] sikica133:
understandable, dw, didn't really want it removed, was just curious ^^ ty for prompt reply, might even play a bit with this
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] _Drifter_:
Coming from LOS, to install Andy's LOS I need to flash firmware again? Just wipe and flash?
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Read OP, something for you people migrating from official. Of course if you choose to wipe then nothing special.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] 7tky:
hello; i use rr latest version; great rom, but i want to disable "quick swipe using fingerprint"; i searched it in system>gesture but isnt there; can anyone help me? thanks!
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] AndyYan:
Read last release note, fingerprint-as-ENTER is a known problem.
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] sikica133:
[MENTION=4467696]AndyYan[/MENTION] so a quick update. manged to get big cluster to 2.45. all is working fine (AospE), still, whats bugging me, there must be some other performance tweak that throttles it. I'm basing this on OP3t i have at hand. SD835 should perform pretty much the same as SD821 when it comes to single core perf, yet, when underclocked @1.9GHz it behaves as SD636 and @2.45GHz it mostly matches SD660. Nowhere near SD821 single core perf, reminds me of Kirin950 perf.

At least it works I guess ^^
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] misterpotato:
Hey Andy,

I've been lurking here for a few weeks now. I just got my Mix 2 a few weeks ago, and have been running your RR build since then. It runs flawlessly, except for the last build, which had multiple issues including system freezes and crashes, as well as the fingerprint-as-ENTER "bug" which was a dealbreaker to me, especially since my finger occasionally brushes the sensor while I use my phone. I would frequently experience a black screen upon unlocking the device, and once I received a call which froze the device completely. Holding down the power button brought up the menu, though, but tapping reboot triggered a factory reset restart, so I had to quickly hard-reset the device. I thought that maybe it's the launcher that I experienced freezing with somehow took down SystemUI, but I am unsure because I changed both the launcher and reflashed the previous nightly immediately. I haven't experienced issues with the launcher on other builds, though, so not sure where that issue came from. Something to note.

Couple questions: After integrating treble, Magisk 16.6 would make the device unbootable for me, so I used the version linked in this thread, which I assume accepts the /cust partition. There is a new version of Magisk that just dropped, v16.7. Would it be possible that that would work, or would I have to wait for someone to modify that as well in order to use it? Maybe I don't understand how the /cust treble works as compared to other "traditional" methods of treble? In terms of functionality I assume it works the same as a normal A treble-enabled device seeing as the P GSI boots on this. Speaking of which, I really want to give P a shot but my device is encrypted and too much work to back up everything just to give P a shot for a couple hours and I see you've been experimenting with it, what are your thoughts on P? The navigation bar is definitely polarizing in its reception, what do you think? And is P really significantly smoother than Oreo as people say?

Also, what is the feature set for the PixelExperience ROM? I've been trying to look for a rundown of the features, but haven't really hit anything. Does it use elements of P in Oreo? Can you swipe down on the fingerprint sensor to pull down the notification shade? What other features does it add on top of LOS? Thanks!
[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] zar3k1:
WiFi issue on PE

Hi, I've been testing PE rom for about a week maybe.

Having WiFi going off during phone sleep (no data goes through until screen wakes up, no notifications, no WhatsApp calls etc...) this issue is present 100% of the time. If WiFi is turned off and 4G LTE is on everything is perfect and no coenction loss on sleep.

I've managed to work around the issue by installing a keep WiFi alive APK. (I didn't have this issue on miui) I am on recommended firmware... Anyone else on PE can confirm this issue true for everyone or just me? .