[Xiaomi Poco F2 Pro (Redmi K30 Pro) Guides, News, &] fr_jason:
UPDATED on 21/11/2023 (needs cleaning + KSU steps)​

​

Assumptions of reader,

​

PRIOR to following this guide

:​

​

You understand that you follow this guide and anything seen here of your own volition.

Your Bootloader is unlocked.

Able to troubleshoot your device, setups, installs, unlocking, rooting, etc.

Capable of searching on XDA/Github/Telegram/Google for missing information and files.

This guide outlines the process I used to clean install the following:​

TWRP-3.7.0_12-v8.0_A13_FBEv2-lmi-skkk.img

CrDroid v10.0/ A14/build-17.11.2023

NikGapps-U (A14) FULL package, 07.11.2023

(ROOT) Magisk Delta (Repo currently archived as HuskyDG works on update)

(ROOT) KernelSU v0.7.1

Pass SafetyNet Basic Attestation - Universal SafetyNet Fix 2.4.0 by kdrag0n

LSPosed-v1.9.2-7024-ZYGISK and Hide My Apps List v3.2

Test root detection, Pass SafetyNet Basic Attestation

​

#PIXEL LAUNCHER ISSUE;

#On CrDroid ROMs :

#CrDroid's stock launcher has its own QuickStep built-in, it CANNOT be installed alongside Pixel Launcher, nor vice versa.

#This concerns the Pixel Launcher included in some NikGApps package AND the Pixel Launcher addon.

#Therefore, you/we can ONLY use CrDroid Home/Stock Launcher OR Pixel Launcher,

#The Pixel Launcher section of your nikgapps.config should look like this to avoid any issues with CrDroid Home Launcher ;

PixelLauncher=1

# Pixel Launcher set to 0 to skip its installation over CrDroid Home Launcher

PixelLauncher=0

DevicePersonalizationServices=1

QuickAccessWallet=1

GoogleWallpaper=1

SettingsServices=1

PrivateComputeServices=1

#Pixel Themes set to 0 to avoid issues with CrDroid Home Launcher

PixelThemes=0

#For Live Captions to work, the follwing must be enabled, i.e. set to 1.

DevicePersonalizationServices=1

SettingsServices=1

PrivateComputeServices=1

#More details on using the NikGApps config file can be found

here

.

​

A Clean Flashing/Install Environment:​

We first need to establish a clean environment.

Opinions may vary, but I will be clean flashing a stock MIUI ROM via fastboot.

For this, I will be using two software programs and one file;

​

Mi Flash Tool v20220507, or later, from here https://xiaomitools.com/mi-flash-tool-ru/

7-zip file archiver, from here, 7-zip​

Some may choose to use XiaoMiTool V2

You will also need the stock MIUI Rom from here; https://xiaomifirmwareupdater.com/miui/lmi/stable

- make sure the details are as below ;

Device: POCO F2 Pro Global​

Codename: lmi​

Version: V14.0.1.0.SJKMIXM​

Branch: Stable​

Type: Fastboot​

Size: 5.1 GB​

Release Date: 2023-03-17​

Package Name: lmi_global_images_V14.0.1.0.SJKMIXM_20230317.0000.00_12.0_global_15e376c371.tgz

This is a ".tgz" file and will need to be extracted to obtain the ".tar" file.

Which will then have to be extracted to obtain the images' folder.

The images' folder should be placed on the Desktop, as that is the default working folder now for the Mi Flash Tool.​

Note: It is entirely up to you to use the RECOVERY version instead of the FASTBOOT version, but please remember if you did, in the event that you encounter issues, it may help you to troubleshoot accordingly.

Now we can proceed.

The Flashing Process:

​

An excellent guide on using the tool made by @NOSS8 can be found here; https://xdaforums.com/t/miflash-guide-use-xiaomi-flash-tool.4262425/​

​

01. Extract the Mi Flash Tool archive.

02. Open the Mi Flash Tool folder and create a folder called 'log'.

03. This is to avoid an error when we have to authenticate our Mi account.

04. Open the Mi Flash Tool app and select 'Authentication'.

05. Log in with the same credentials you used for your Xiaomi/Mi account and/or to unlock your Bootloader.

06. Select English.

07. Enter your details and wait for the "Login successful[CN]" message, like below, then MINIMISE that window.

Spoiler content hidden.

08. Select "Driver" to install drivers to communicate with your device.

09. Select "Configuration", in the "Configuration" window, nothing should be selected/written/filled/checked.

10. In the 'Check Point' section, if you see, "\$fastboot -s .* lock" be sure to delete it and don't leave any blank spaces.

Spoiler content hidden.

11. Click "OK".

12. Select "select" and select your images' folder.

Spoiler content hidden.

13. On your device, Developer Settings/Options must be enabled.

14. Place your device into fastboot mode.

15. Now connect your device to your computer with your data cable.

16. Verify the device is connected by using "fastboot devices" in a terminal window.

Upon confirmation, we can proceed.

17. Verify that at the bottom of the Mi Flash Tool Window that you have selected the "clean all" radio button and that to its right you can see "flash_all.bat" in the drop-down box.

Spoiler content hidden.

18. Now you can click, "flash" and the process will begin.

Spoiler content hidden.

19. Eventually you will see 'success' highlighted in green under "result", shortly after which your device should reboot to system for the first time, in this order; POCO boot logo > MIUI boot animation > Activation screen..

20. It should ask you to connect to a Wi-Fi network, so you can activate the device.

21. Tap "Open Wi-Fi Settings", select the network of your choosing, enter the password, under Advanced Options when entering the password, I usually select Device/Stable MAC because I have had issues with Randomised MAC in the past.

22. Confirm your connection then back out to the main screen to "Activate this device", enter your login details.

23. The MIUI setup process will begin, agree/yes to everything EXCEPT restoring your Google account.

Skip/Ignore the account restoration process as it is a waste of time, we're here for Custom ROMs mate.

DO NOT PUT A PIN/SCHEMA/PASSWORD.

24. Eventually you'll get to the Home Screen, where you'll see the Settings icon in the middle, open it.

25. Now go, Settings > About Phone > All specs > Tap MIUI version until it says Developer Settings unlock, normally 7 taps I think.

26. Now go, Settings > Additional Settings > (scroll to bottom) Developer options > enable USB Debugging, I'm aware etc., 10 sec countdown, tap OK.

Done, now we can get to flashing a Custom Recovery and then our Custom ROM.

27. Reboot your device to fastboot, "adb reboot bootloader" or any other method.

28. Locate your TWRP recovery image, and, using a terminal window, 'cd' to the directory. Then use "fastboot flash recovery twrp.img" to flash your recovery. After which, use "fastboot reboot recovery" to boot your recovery.

View attachment 5806315

29. Assuming TWRP, under the "Wipe" category, perform a Factory Reset" then Wipe Data, after which, REBOOT TO RECOVERY.

30. Copy the ROM and NikGApps to the device, flash the ROM, reboot to recovery, flash NikGApps, reboot to recovery, factory rest and format data, reboot to system.

(Some will say this is excessive but from my perspective, it has eliminated many issues I was having when flashing ROMS)

31. Complete your device first boot setup.

So at this point, I will assume you have done as I have and waited to have restored your Google backup, WhatsApp etc.

EDIT; DUE TO A NEWLY RELEASED TWRP, THE MAGISK DELTA APK CAN BE RENAMED TO .ZIP AND FLASHED FROM RECOVERY WITH THE TWRP LINKED AT THE TOP OF THIS THREAD

Spoiler content hidden.

36. Install Magisk Delta by flashing the apk you have renamed to .zip as mentioned above.

36a. Go to Magisk Delta App > Settings and change the following :

Enable DNS over HTTPS

HIDE the Magisk App

Tap on Systemless Hosts once if you want to use an adblocker like AdAway later on.

Enable Zygisk

Enable Bootloop Protection

Enable MagiskHide

REBOOT

37. Now go to > Configure MagiskHide > search for these apps and use these settings;

For Google Play Store, enable it for com.android.vending

For Google Play Services, enable it for com.google.android.gms AND com.google.android.gms.unstable

You can go ahead and add detection apps like AppList Detector, MOMO, TB Checker etc.

38. In Magisk, flash Universal SafetyNet Fix 2.4.0 and Zygisk LSPosed 1.8.5-6649

REBOOT

39. Allow the shortcut of LSPosed to be added to your Home Screen, open LSPosed, tap the Respository button on the bottom-left side and search for and then install Hide My AppsList 3.1.1, tap on the notifcation and enable the app/module in LSPosed, then REBOOT.

40. Open Hide My Applist > Template Manage > Create a blacklist template with whatever name you want, I just use 'Blacklist' > Edit list > Add the Magisk app and Hide My Applist > back out and the changes will be saved.

41. Open Hide My Applist > App Manage > Search and select your detection apps, and Google Play Store and Services. Ensure that you can see the word "Enabled" next to the selected apps' names, open each and Enabled hide, then under Template config, tap "Using 0 templates" and select the Blacklist you just made.

42. Reboot and check your detection apps, they should look like this;

Spoiler content hidden.