[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] William.f:
Mods tutorials

ANX Camera

ANX Camera TWRP

ANX Camera magisk

Working version of ANX magisk: 185

48MP fix for ANX camera magisk module: 181

Which ones should I download? Check attached screenshots below this post. ;)

How to install and setup MIUI camera on PE?

* For ANX Camera TWRP

1. Save zip file to internal storage (/sdcard) and reboot to recovery.

2. For orangefox go to "files", for TWRP or Pitchblack recovery go to "install".

3. Swipe button to install.

4. Reboot to system.

5. Give all permissions to ANX camera, launch and quit app for at least 3 times.

6. You're all done.

* For ANX Camera magisk modules

1. Save both camera and 48MP fix modules to internal storage (/sdcard).

2. Open magisk manager, hamburger icon on top left corner, modules, tap on "+" icon and find ANX camera zip.

3. Same goes with 48MP fix module.

4. Reboot, give all permissions to ANX camera app, then launch & quit app for at least 3 times.

5. You're all done.

* 48MP fix is already included in ANX Camera TWRP, do NOT flash the 48MP fix magisk module.

* No root needed.

+ Credits to ANX developers and contributors, [MENTION=10502987]HSgod[/MENTION], [MENTION=10554767]nuub1k[/MENTION], for porting and debugging MIUI camera to AOSP ROMs.

Custom boot logo

MS drive Downloads

Head to XDA thread for more info, credits for [MENTION=5007466]mouhannadsukkar[/MENTION] creating boot logo collection.

Disable force encryption

Force Encrytion and difference compared with decrypted storage

1. All ROMs have force encryption by default for now, which should be enabled while booting the device for the first time.

2. Therefore DFE, also known as "disable force encryption", which shall force the device to be decrypted (Use #-dfe to get the DFE file).

3. If you format data, it will decrypt the encrypted storage, while everything on data partition including internal storage, also known as /sdcard directory, will be erased.

4. However if you already got a decrypted storage, simply wipe data and internal storage won't have any effects, unless you do a format.

5. To keep the storage decrypted, if you want, you will need to flash DFE for every ROM and vendor update.

6. Format data only if you flash custom ROM from stock MIUI, if you want to keep your storage decrypted or you want encrypted without flashing DFE while flashing custom ROMs and vendors (if the ROM uses MIUI vendor).

7. In short formatting data is to remove encryption for an encrypted device.

How to flash DFE?

IMPORTANT: Please make sure you perform a data FORMAT (NOT wipe) via recovery before flashing DFE, otherwise device may end up with bootloop or stuck in bootloader! Everything including all files on internal storage will lost so please backup everything to elsewhere. You have been warned, I am not responsible for data loss.

1. Go to recovery and format data (NOT wiping it, the place where you will type "yes" and confirm formatting).

2. Since internal storage is purged too, copy DFE from your PC or OTG storage etc., flash via recovery.

3. The recovery console will ask you to press volume buttons for picking options, so the recommended key combination is:

+ (vol up)

- (vol down)

- (vol down)

+ (vol up)

4. Done, reboot to system and see if storage is decrypted.

F2FS

What is F2FS?

F2FS, which stands for "Flash-Friendly File System", it was invented by Samsung coorperation, mainly focus on improving random read/write efficiency of flash storage and somewhat extends its lifespan.

Notice!!!

Currently, almost all known custom ROMs support F2FS on cache and data partitions but not system for compatibility and disk quota reasons, usually there's no writing actions to system partitions except flashing/updating ROM or using root access to modify it so keep system partition as EXT4.

How to enable F2FS?

You will lose all of your data including internal storage.

1. In recovery, convert data partition to F2FS via advanced wipe, same for cache partition (Do not convert system partition to F2FS to avoid some possible problems).

2. Flash f2fs-patched-fstab.zip (attached below) via recovery.

3. Reboot.

Note: You will have to flash patch again whenever flashing/wiping vendor, otherwise you will stuck at boot animation.

Fix low microphone problem (magisk needed)

Description

Sometimes, you might feel the microphone sensitivity isn't good enough on AOSP ROMs including Pixel Experience, this might related to device tree (or source code) of K20 Pro/9T Pro series. For instance you make or pick a phone call, using voice call of some IM apps the other side might not hear you clearly, that's the time when you can have a workaround if you have magisk installed.

How to fix?

Same as you install any magisk modules via magisk manager. :D

magisk_iem_mic_gain_0.3.zip attached below.

Magisk manager recovery mode

What to do if my device stuck at boot animation?

Sometimes, your device might stuck at boot animation because you flashed a buggy magisk module, for obvious reasons you have to delete that for letting your device boot into OS, so what about removing it via recovery? That's how this zip comes - Magisk Manager Recovery Mode.

How?

1. Boot your device to recovery, flash provided zip file.

2. Go to advanced => terminal.

3. Type this command to launch program:

sh /sdcard/mm

4. Type l to list all installed magisk modules, locate the one which might causes the problem.

5. Type r, enter, then the name of module name as the output shown, case-sensitive!

For example:

module[]

You should type:

module

Then enter.

6. If you see there's an X inside brackets like:

module[X]

Then you're good to go.

7. Reboot your phone and that's it.