[Xiaomi Mi Mix 2 ROMs, Kernels, Recoveries, & Other] Huexxx:
View attachment 6032296

Spoiler content hidden.

CherishOS for Mi Mix 2 [chiron]

* Has a Pixel UI noodles by Hung Phan. So many features that you probably won't find in any ROM. All you can dream of and all you'll ever need. Just flash and enjoy...

Based on Android 13

Whats working?

Wi-Fi

RIL

Mobile data

GPS

Camera

Flashlight

Camcorder

Bluetooth

FM radio

Fingerprint reader

NFC

Lights

Sound/vibration

Known issues

Encryption on f2fs doesn't work
​

Pre-Installation

Choose your flavors

1. You can choose between the traditional EXT4 or the new EROFS. This fs affect only to /system partition

2. Magisk doesn't work on EROFS at the moment. Anyway KernelSU is included on kernel, so you can install if you want KernelSU app v0.7.1 in order to get root and flash magisk modules. It's mandatory to update if you have an older version already installed.

3. Take into account that the acronym EROFS stands for Enhanced Read-Only File System, so you cannot directly modify it. This implies that you cannot flash GApps over Vanilla EROFS rom. If you want to use EROFS and GApps you must stick to offered GApps version. It's easy to disable unwanted apps.

4. Now you can dirty-switch between both flavors, so if you are already on EROFS and need to use Magisk you can switch to EXT4 to use it. But take into account that you must use unmodified /system partition and mantain the same version... GApps-GApps or Vanilla-Vanilla (without Magisk or GApps).

5. Always make a backup before putting your data at risk!

Decide if you want encryption or not

1. Once selected /system partition fs, you can choose also fs for /data and /cache partitions between traditional EXT4 (default one) or F2FS

2. Note that EXT4 comes with /data (and hence internal storage too) encrypted by default and F2FS comes unencrypted

3. If you want encryption, you must use unmodified EXT4 on /data partition

4. However, if you prefer to go unencrypted, you have two options:

4.1. Using EXT4 you must flash Disable_Dm-Verity_ForceEncrypt-A12.zip just after the ROM (or after magisk), in a row, before first boot. Always last!

4.2. Using F2FS on /data partition as it comes unencrypted by default

Change /cache and /data filesystem from ext4 to f2fs

1. You must format /data partition, so all your data and internal storage will be deleted. Please backup your files

2. Reboot into recovery mode

3. If already encrypted: Go to Wipe --> Advanced Wipe --> Select Cache and Data --> Swipe to Wipe --> Reboot into recovery

4. Go to Wipe --> Format Data --> Type yes and accept --> Reboot into recovery

5. Go to Wipe --> Advanced Wipe --> Select Data --> Repair or Change File System --> Change File System --> F2FS --> Swipe to Change

6. If you want to optionally change /cache fs too, repeat step 5 but selecting Cache.

Change /cache and /data filesystem from f2fs back to ext4

1. You must format /data partition, so all your data and internal storage will be deleted. Please backup your files

2. Reboot into recovery mode

3. Go to Wipe --> Format Data --> Type yes and accept --> Reboot into recovery

5. Go to Wipe --> Advanced Wipe --> Select Cache --> Repair or Change File System --> Change File System --> EXT4 --> Swipe to Change

Hybrid Mode

You can have /cache and /ext4 on different filesystems, so follow previous instructions to put the partitions on your desired filesystem

Installation

First Time Install / Clean Flash

1. Due to latest changes, is mandatory to use my last TWRP posted below

2. Reboot into recovery mode

3. Go to Wipe --> Advanced Wipe --> Select Data/Cache --> Swipe to Wipe --> Reboot into recovery

4. If you already have /data on f2fs (or ext4 unencrypted) and want stay that way, skip step 5

5. Go to Wipe --> Format Data (internal storage will be wiped too, backup your data) --> Type yes and accept -->

Reboot into recovery

6. Download the ROM and copy it into internal storage

7. Flash the ROM (and magisk if you consider it, but ONLY on EXT4 version, over EROFS will bootloop)

8. Remember, if you're using EXT4 on /data and want to go unencrypted, you must flash Disable_Dm-Verity_ForceEncrypt-A12.zip just after the ROM (or after magisk), in a row, before first boot. Always last!

9. Reboot to system

Dirty Flash over previous CherishOS v4.7.5 or later

NOTE: Do not dirty flash over old versions earlier than 4.7.5. In that case do a clean flash

1. Always make a backup before putting your data at risk!

2. Due to latest changes, is mandatory to use my last TWRP posted below

3. Reboot into recovery mode

4. Download the ROM and copy it into internal storage. You can stay at current installed flavor (EXT4 or EROFS) or switch to the other one, it should work fine.

5. Flash the ROM (and magisk if is already installed, but ONLY on EXT4 version, over EROFS will bootloop)

6. If you're using right now unencrypted EXT4 on /data, you must flash Disable_Dm-Verity_ForceEncrypt-A12.zip just after the ROM (or after magisk), in a row, before first boot. Always last!

7. Reboot to system

DexOpt your installation

On modern android versions, ROM is not dexopted on first boot. The process is done on certain situations, as leaving your phone charging overnight and other situations. To ensure a fluid experience, good deep sleep and

good battery backup, I recommend to dexopt after clean installation or dirty with cache/dalvik clean.

You can read more about this here.

You can do it from an installed terminal emulator (ROOT) or from adb connection (NON ROOT).

- ROOT

su [enter]
cmd package bg-dexopt-job [enter]
cmd package compile -a -f --compile-layouts [enter]

- NON ROOT

adb shell [enter]
cmd package bg-dexopt-job [enter]
cmd package compile -a -f --compile-layouts [enter]

Download EROFS Version​

Vanilla (you cannot flash neither GApps nor Magisk)​

GApps (you cannot flash Magisk)​

googledrive / mediafire​

googledrive / mediafire​

MD5: e6893b63ccc074bdda85e111bfdd8b6d​

MD5: ab11aecdd094c03d7104879023a1b4e7​

SHA1: 01f3fab09ed68d06a2f1fb8c7af808ef2bfb76f6​

SHA1: ca6e364f93b3e2b110392f415cbc2fc69b5ca9db​

​

Download EXT4 Version​

Vanilla​

GApps​

googledrive / mediafire​

googledrive / mediafire​

MD5: 784c83d37f2d1026e78365179446ddc3​

MD5: a25b6ca05928c590450f4027c5f9791f​

SHA1: 0d92fdb637f5b559219ea6dce2db8ad62168205b​

SHA1: 619acf34257b98f1cde8497cc326a0d5cf3bd771​

Download latest TWRP​

googledrive / mediafire​

MD5: 5c4845b2f5378abba303688aca000c46​

SHA1: a2d71742f2928817fc3426ecba843c50f3cc4291​

​

Android OS version: 13.0.0_r82

Build ID: TQ3C.230901.001.B1

Security patch level: Sep 01 2023

Build author/Device Maintainer: Huexxx

Source code: CherishOS GitHub repos

Trees and Kernel: Huexxx GitHub repos

Status: Stable

SELinux Status: Enforcing

Release date: 2023-11-17

Buy me a Beer!​