Xiaomi Mi Mix 2S (xiaomi-polaris)

Yet another phone based on Qualcomm Snapdragon 845 (SDM845).

How to enter flash mode
You have to press +  to enter the bootloader.

Installation
1. Run  and select xiaomi as vendor and polaris as device.

2. Follow the onscreen instruction and configure as your needs.

Sample output: [10:01:49] Location of the 'work' path. Multiple chroots (native, device arch, device rootfs) will be created in there. [10:01:49] Work path [/home/molly/.local/var/pmbootstrap]: [10:01:49] NOTE: pmaports path: /home/molly/.local/var/pmbootstrap/cache_git/pmaports [10:01:49] Choose the postmarketOS release channel. [10:01:49] Available (6): [10:01:49] * edge: Rolling release / Most devices / Occasional breakage: https://postmarketos.org/edge [10:01:49] * v22.06: Latest release / Recommended for best stability [10:01:49] * v21.12: Old release (unsupported) [10:01:49] * v21.06: Old release (unsupported) [10:01:49] * v21.03: Old release (unsupported) [10:01:49] * v20.05: Old release (unsupported) [10:01:49] Channel [edge]: [10:01:51] Choose your target device vendor (either an existing one, or a new one for porting). [10:01:51] Available vendors (70): acer, alcatel, amazon, apple, ark, arrow, asus, bq, cubietech, essential, fairphone, finepower, fly, goclever, google, gp, hisense, htc, huawei, infocus, jolla, klipad, kobo, lark, leeco, lenovo, lg, medion, meizu, microsoft, mobvoi, motorola, nextbit, nobby, nokia, nvidia, odroid, oneplus, oppo, ouya, pegatron, pine64, planet, purism, qemu, raspberry, samsung, semc, sharp, shift, sipeed, sony, sourceparts, surftab, t2m, tablet, teclast, tokio, tolino, trekstor, vernee, volla, wexler, wiko, wileyfox, xiaomi, xunlong, yu, zte, zuk [10:01:51] Vendor [qemu]: xiaomi [10:01:54] Available codenames (31): aries, armani, begonia, beryllium, cactus, cancro, cepheus, clover, daisy, dior, elish, equuleus, ferrari, gemini, ido, kenzo, laurel, lavender, libra, mido, natrium, platina, polaris, rolex, santoni, scorpio, tissot, vince, whyred, willow, wt88047 [10:01:54] Device codename: polaris [10:01:56] This device has proprietary components, which trade some of your freedom with making more peripherals work. [10:01:56] We would like to offer full functionality without hurting your freedom, but this is currently not possible for your device. [10:01:56] device-xiaomi-polaris-nonfree-firmware: Modem, WiFi and GPU Firmware, also needed for osk-sdl [10:01:56] Enable this package? (y/n) [y]:

$ pmbootstrap flasher flash_kernel $ pmbootstrap flasher flash_rootfs --partition userdata

For FDE:

$ pmbootstrap install --fde

The big list of issues
In no particular order...

Display does not work
Looking like the driver for the panel was reverted. The commit is no longer in 6.2-rc3 after the rebase.
 * @JoshuaAshton · Feb 5, 2023 10:51am GMT+0100

https://gitlab.com/postmarketOS/pmaports/-/issues/1894#note_1266158121
 * Workaround for display and touchscreen:

Network issues
According to my tests (@Daviteusz), it seems that WiFi works unstable and slow. I tested on a 150/30 fiber network
 * 5GHz:
 * Network crashes during apk update
 * The connection speed is about 6Mbps
 * According to speedtest, download pulls 50Mbps, but breaks connection during test
 * 2.4GHz
 * It works better, but sometimes there are similar problems
 * Connection speed = 1Mbps
 * According to speedtest download pulls max 20Mbps and test passes.

Battery charge reporting
Battery charge reporting is marked as working on the Wiki, yet /sys/class/power_supply/ is empty. I am guessing there is something much bigger wrong here, perhaps something with the devicetree...?
 * @JoshuaAshton · Feb 5, 2023 10:23am GMT+0100

= Community Info =

Maintainers

 * None

Old maintainers

 * MollySophia