yashsingh1/xdaforums huggingface dataset:
[Xiaomi Poco X3 Pro] Eric_Lev:
*** Quickly written ***

Prerequisite:

- https://wiki.lineageos.org/adb_fastboot_guide

- remove Magisk if installed

- update PowerShell for Windows: https://aka.ms/powershell-release?tag=stable

OS = Windows

Go to Settings and Enable Developer Options

Enable USB Debugging

Enable Rooted Debugging

Now plug in POCO X3 pro to PC and extract the latest ih8sn-aarch64.zip files if you haven't yet.

(https://github.com/luk1337/ih8sn/releases/tag/latest)

Open extracted folder

Edit ih8sn.conf using Notepad, delete all lines and replace by:

BUILD_FINGERPRINT=POCO/vayu_global/vayu:11/RKQ1.200826.002/V12.0.4.0.RJUMIXM:user/release-keys
BUILD_SECURITY_PATCH_DATE=2021-03-01
BUILD_VERSION_RELEASE=11
MANUFACTURER_NAME=Poco
PRODUCT_NAME=PocoX3Pro

Open CMD/PowerShell from the folder

Now run :

.\push.ps1 -use_remount

Tip: edit push.ps1 before running ps1 file ... you will understand why "-use_remount" is required.

Reboot your device

Check if safetynet passes.

Clear storage of Google, Google Play service and Google Play Store apps ... and then restart your device ... in order to get Play Protect certification

Enjoy .... (ih8sn survives OTA updates ... Of course)

OS = linux

Same procedure and push (sh) the push.sh file with use_remount =1 option via a terminal (su)

./push.sh --use_remount

Tip: edit push.sh before running sh file ... you will understand why "-use_remount" is required.

Edit (18/06): Thks @dey18 !

alternative link for ih8sn: https://github.com/SebaUbuntu/ih8sn/releases

alternative ih8sn.conf (Not tested personally):

BUILD_SECURITY_PATCH_DATE=2021-03-01
BUILD_VERSION_RELEASE=11
[Xiaomi Poco X3 Pro] k3lcior:
I don't see anything wrong with push.ps1 (?)
[Xiaomi Poco X3 Pro] Eric_Lev:
Nothing wrong in push.ps1 ... Tip is for those who want to understand why "-use_remount" is required.

FYI : https://github.com/luk1337/ih8sn/issues/10
[Xiaomi Poco X3 Pro] k3lcior:
From what i understand this was already fixed and doesn't require any further editing if you use cmd below https://github.com/luk1337/ih8sn/issues/10#issuecomment-1030920439

.\push.ps1 -use_remount
[Xiaomi Poco X3 Pro] Eric_Lev:
Quod erat demonstrandum.
[Xiaomi Poco X3 Pro] k3lcior:
So it works except i couldn't get the push.ps1 script to work, instead did it manually with:

adb wait-for-device root
adb wait-for-device remount
adb wait-for-device push 60-ih8sn.sh /system/addon.d/
adb wait-for-device push ih8sn /system/bin/
adb wait-for-device push ih8sn.rc /system/etc/init/
adb wait-for-device push ih8sn.conf /system/etc/

And it passes Safetynet.
[Xiaomi Poco X3 Pro] rsalvaterra:
I don't have to, I worked around it, like I said in my follow-up post.
[Xiaomi Poco X3 Pro] k3lcior:
I just got called on Viber and the caller couldn't hear me. Then i called him and recipient still couldn't hear me. I could hear him though. All permissions are granted to Viber.

Oh well.
[Xiaomi Poco X3 Pro] makeyourself:
It's now an ordeal to update (I mean between different 19.1 releases) because Magisk is lost upon updating, and with it goes root and passing safety net (Google Pay throws a tantrum). Anyone know whether the Magisk developer is working on bringing automatic Magisk retention to Android 12? It worked fine on 11, no manual intervention needed. The fact TWRP can't decrypt /data makes it even more inconvenient and means I have to push and pull the "stock" and patched boot.img to and from a PC multiple times.
[Xiaomi Poco X3 Pro] Onyx369:
Hi. I have few issues and haven't updated many months, so it needs a fix. Is everything still ok to update using TWRP, change package file name then install it directly along with and Magisk? (no GAPPS needed).

Cheers
[Xiaomi Poco X3 Pro] dey18:
I'd say, you made a nice guide for ih8sn but you should actually use this instead and use my custom conf only if it fails.

Note: You don't need a custom Conf for this one.

I expect you to update your guide with this link and remove the custom conf part. I made the custom one for personal use.

I'm that guy who posted that in tg group.
[Xiaomi Poco X3 Pro] dey18:
Please see this.
[Xiaomi Poco X3 Pro] Bunny Max:
I heard that many poco x3 pro are hard bricking, so anyone faced this problem?
[Xiaomi Poco X3 Pro] makeyourself:
Not sure why you want/need to rename the package file name. But from memory this worked fine for me:

1. Upgrade TWRP to latest official version

2. Flash Xiaomi firmware update (link posted above somewhere) with TWRP

3. Flash Lineage update with TWRP

4. Flash Magisk with TWRP

5. Personally I then flashed GApps.

6. Wipe cache / dalvik cache

7. Reboot

Just be aware that once you reboot TWRP will no longer be able to decrypt /data due to TWRP bug with Android 12 firmware. Although personally it works for me if I delete fingerprints and pass code.
[Xiaomi Poco X3 Pro] HastaPasta:
That's really helpful thanks.
[Xiaomi Poco X3 Pro] Nollie8969:
No
[Xiaomi Poco X3 Pro] Onyx369:
It has gone horribly wrong unfortunately and i think i just made a real screw up

So the twrp wasnt playing ball to update and whilst checking kept going to fastboot rather than recovery

So like a fool i put the additional options incase i was pushing button wrong and told it to boot to recovery

there is no recovery and it locks in fastboot only

i just tried connect pc and adb but cannot connect

Any ideas?
[Xiaomi Poco X3 Pro] Nollie8969:
No recovery ? Also stock ? What about going back to stock-rom via MiFlashTool. That's using fastboot I believe.

You use Windows to Adb ? Or Linux ? I had error in Windows, but in Ubuntu it was a piece of cake.
[Xiaomi Poco X3 Pro] makeyourself:
Sorry to hear that, how do you mean "locks in fastboot"? What happens if you hold the power button down for several seconds, until the screen turns off? It should reboot, even if it only reboots to fastboot mode. ADB won't work in fastboot mode, only fastboot will work.

Since it sounds like you haven't actually flashed anything, I presume you already had no recovery. I'd recommend you try to find an unbrick guide for Vayu either way.
[Xiaomi Poco X3 Pro] Onyx369:
So basically it appears bricked in perpetual fastboot or OFF (missing recovery dumps the system into fastboot and stays there then switches off)

I adjusted the boot sequence in developer to start in recovery (as it wasn't there fastboot is next) - BIG MISTAKE

I had TWRP and it was working b4. Followed instuctions to update and it wouldnt boot to recovery so I tried to force it with the developer option and bricked it. The TWRP app did something wrong.

I can't get the drivers to function at the moment for Win10 and Ubuntu, if I can get the USB to talk then need to put in a new recovery from PC to fix it as far as I can work out

Any help would be useful if anyone knows a fix thanks
[Xiaomi Poco X3 Pro] Onyx369:
So basically it appears bricked in perpetual fastboot or OFF (corrupted TWRP isnt seen and the system locks to fastboot and stays there then switches off)

I adjusted the boot sequence in developer to start in recovery (as it wasn't there fastboot is next) - BIG MISTAKE

I had TWRP and it was working b4. Followed instuctions to update and it wouldnt boot to recovery so I tried to force it with the developer option and bricked it. The TWRP app did something wrong.

I can't get the drivers to function at the moment for Win10 and Ubuntu, if I can get the USB to talk then need to put in a new recovery from PC to fix it as far as I can work out

Any help would be useful if anyone knows a fix thanks
[Xiaomi Poco X3 Pro] Onyx369:
deleted
[Xiaomi Poco X3 Pro] makeyourself:
How exactly did you "adjust the boot sequence"? There isn't an option to do that, even under development settings. You can reboot to recovery, but the next time you reboot it will go back to normal.

You're going to have to work out how to get fastboot working on your PC yourself. But if you can do that then all you need to do is download the TWRP image for Vayu and run fastboot boot <path to twrp img file>. That'll get you back into TWRP then you can go from there.

Or... download the latest official stock firmware for your region, extract the firmware and flash each partition with fastboot. I believe there is also still some sort of Xiaomi flash tool to do that, I'm not sure if it's official anymore though.

Be careful because messing up firmware flashing (or even recovery flashing) can easily hard brick your device.
[Xiaomi Poco X3 Pro] Onyx369:
Cheers.. you on the money there, appreciated

I will endeavor to get the fastboot / drivers in order and pull it from the ashes

there is a developer setting to extend the off options and i chose for recovery on start up then it skips the recovery as TWRP got corrupted and stay fast and hard in fastboot..

There is one other possibility but i got wait a few days... let the battery go dead and then add juice and hope it starts back from fresh - fingers crossed

You nailed it above and thanks

edit - this is useful if anyone stuck in fastboot, several solutions

7 Ways To Fix Android Stuck In Fastboot Mode (2024 UPDATED)

Did your Android phone stuck in fastboot mode? Learn 7 different ways on how to fix Android stuck in fastboot mode without any hassle

android-ios-data-recovery.com
[Xiaomi Poco X3 Pro] misosofos:
Hello everyone.

Can we backup LOS 18 and restore it if version 19 doesn't work? Would we face firmware issues?
[Xiaomi Poco X3 Pro] CrossFoxOne:
Hello everyone, im having this issue when attempting the OTA update with the updater or sideloading via recovery

The installation of 19-20220610-NIGHTLY-vayu build and Gapps went smoothly and the phone works like a charm, im just getting this error when im trying to update to the latest build with OTA or sideload
[Xiaomi Poco X3 Pro] Neomaicel:
i have problems with the phantom touches on the screen with the 19.1 , have any way to solve ?
[Xiaomi Poco X3 Pro] vcarbajo:
Thanks for the answer!

I passed safetynet. :cool:
[Xiaomi Poco X3 Pro] misosofos:
Is there any easy and safe way to upgrade form 18.1 to 19.1?
[Xiaomi Poco X3 Pro] gambacherkalbenstein:
Hello everyone!

I've got a little issue and have no idea if this is the right place here - anyway:

TOPIC 1:

In TWRP I try to mount /data and it asks me for a password.

I tried three tricks:

1) Xiaomi-password

2) "default_password"

3) And the pattern-todigit trick

... nothing worked

Using twrp-3.6.2_11-0-vayu

Thanks in advance! Cheers!
[Xiaomi Poco X3 Pro] Phalcore:
few questions:

1 no wide camera?

2 how to change color of settings menu without buyig repainter?

3 how to block phone by hacking by foreig people? i meann in miui eveyrything is locked and here easy access to twrp etc? how to make phone data etc safe if sommeone steal it?

4 easiest way to root?
[Xiaomi Poco X3 Pro] Eric_Lev:
Upgrade LineageOS on vayu | LineageOS Wiki

wiki.lineageos.org

or

https://xdaforums.com/t/rom-s-official-lineageos-19-1-for-poco-x3-pro-vayu.4301199/post-87005341
[Xiaomi Poco X3 Pro] irmas5:
Stay on miui
[Xiaomi Poco X3 Pro] Nollie8969:
Inbuild backup-tool is going wrong. Lineage supports Mind the Gapps. I had same with Nikgapps. Did clean install.

Before that, formating also went wrong. Pieces of Nikgapps were hard to wipe. I went to Twrp to format, back to Lineage recovery, new wipe/format and clean install + mind the gapps.

I hope the smart people on Telegram (Kurtn) are right. Let's see this weekend.
[Xiaomi Poco X3 Pro] misosofos:
Thanks. It doesn't seem so simple to me, so... And a little bit risky.
[Xiaomi Poco X3 Pro] misosofos:
I did all that but the MintheGaps installation failed... And my device won't boot :-(

It keep stuck on the logo animation.

Edit: I had to format data to be able to boot... At least my phone is not bricked. By now my bank apps are not working...
[Xiaomi Poco X3 Pro] misosofos:
I tried literally everything but couldn't get Google Pay to work. Other bank apps are working after installing SafetyNet Fix + magisk props
[Xiaomi Poco X3 Pro] makeyourself:
Download YASNAC from F-Droid (or Play Store if you must) and run Safety Net attestation. You should get passes for "basic integrity" and "CTS profile match". If you fail either then you aren't passing Safety Net and will need to investigate further.

If you pass then wipe all data from the Google Pay app and try again. I've never had any issues once I'm passing Safety Net and its working for me right now on LineageOS 19.1.
[Xiaomi Poco X3 Pro] martinknl:
Since I upgraded to 19.1 my phone does not pickup Wifi channels between 100-144 (so 5Ghz) anymore. Unfortunate as I was using channel 132. It still does see channels 36-64.

When I disable and enable WiFi it does connect to channel 132. But after a reboot it only connects to 2.4 Ghz.

Edit: Issue disappeared in lineage-19.1-20220624
[Xiaomi Poco X3 Pro] misosofos:
Thanks for your reply. I got it to work after installing safetynet fix.
[Xiaomi Poco X3 Pro] misosofos:
Deleted
[Xiaomi Poco X3 Pro] popej:
I got similar problem on Redmi 9. For me it works, if i reboot the phone in airplane mode. But when I enable SIM, then some channels are disabled. Maybe it is because of improper applying regulatory rules for detected country.
[Xiaomi Poco X3 Pro] Phalcore:
because?
[Xiaomi Poco X3 Pro] irmas5:
if don't know how to do these things like root, flash custom roms, about data, stealing. i think stay on original miui.
[Xiaomi Poco X3 Pro] d_g_m_2000:
1-no... perhaps a gcam have enable the wide angle camera but in lineage i don't know (in arrow os it does have it)

2-check on display accent color (but i don't know if it's wide system)

3- miui and miui account is the safetyest but i guess there is a lot of apps focus on security (maybe it have a fee)

4- use magisk official to root, check on youtube tutorials.

you need to unlock the boot loader, then install a custom recovery and then flash a custom rom. check tutorials on youtube, it is easy only if you follow the steps.. don't blame me if you brick your device, good luck
[Xiaomi Poco X3 Pro] Lu5ck:
Hello

If got bugs, spam the maintainer about it at https://t.me/SebaUbuntuChat
[Xiaomi Poco X3 Pro] Zeokat:
I see people reporting lots of bugs on LineageOS 19.1, maybe someone that tested latest version can verify these problems or can share his/her experience with LOS 19.1?

I'm thinking into update, but reading latest replies i have big doubts.
[Xiaomi Poco X3 Pro] victorct83:
I haven't suffered any bug, except the one related with the battery stats (it doesn't reset after a full charge):

In LOS 18.1 it works well when it reaches 90% at least.

Anyone has the same issue? I did a clean update.

Thanks and regards,
[Xiaomi Poco X3 Pro] gambacherkalbenstein:
LOCATION/GPS ISSUES

Hi everyone!

On lineage-19.1-20220617-nightly-vayu-signed I have issues with my phone locating with Google Play Services. It works with the app "GPS Test", but neither "Maps" or "Öffi" (public transport app).

Is there any way fixing this location issue without reflashing Lineage?

EDIT: Maybe worth noting that I came from MiUI 12.5 to LOS 19.1 ...

Thanks in advance!

Cheers!
[Xiaomi Poco X3 Pro] khusika:
Those happens due to denial location permission of com.google.android.gms, and related to the gapps bug(happens sometimes).

This can be fixed by grant the location permission using adb shell

adb shell pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
adb shell pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
[Xiaomi Poco X3 Pro] makeyourself:
Am definitely noticing bigger battery drain since moving from 18.1 to 19.1.
[Xiaomi Poco X3 Pro] gambacherkalbenstein:
YEEEHAAA!!!!

You are my hero! Tahnks a lot, bro!!!

All praise to my LORD, ROCK AND SAVIOUR JESUS CHRIST!!
[Xiaomi Poco X3 Pro] gambacherkalbenstein:
FAIL: DECRYPT /DATA IN TWRP

For making backups I need to decrypt /data, but in TWRP 3.6.0._11-0 I can neither draw a pattern and password hacks/workarounds do not work at all. MiUI password does not work neither.

Any ideas?
[Xiaomi Poco X3 Pro] i_sagnik:
That's a pretty old version of TWRP, update to the latest "UNOFFICIAL"(but it works like a charm) build from the official developer.

To update watch this video.
[Xiaomi Poco X3 Pro] makeyourself:
That still doesn't decrypt /data any better than the official build. It just doesn't bother asking when it boots up. Look in /data/media/0 and you'll still find a load of jumbled/encrypted data. If you go to "mount" and press "decrypt /data" it still fails with same error as the official build ("failed to decrypt user 0").

It does however load up a lot faster than the official build for some reason. And the fact it doesn't bother asking to decrypt /data when it first loads up mitigates the inconvenience of having to press "cancel" every time. So in those respects it's a slight improvement on the official build.

The only way to decrypt /data on Android 12 currently is to be using TWRP 3.6.2 and to delete all your fingerprints, lockscreen passwords etc. I don't know if that works on the unnoficial build, I haven't tried it.
[Xiaomi Poco X3 Pro] misosofos:
Hello.

Is there any way to reinstall Magisk automatically after every update, please?
[Xiaomi Poco X3 Pro] Phalcore:
ok now delete your account because your egsistence here is senseless
[Xiaomi Poco X3 Pro] makeyourself:
WARNING: I soft bricked my phone trying this the first time and had to format /data to get it working again.

Back everything up if you're going to try it.

The answer is yes, but with a lot of hassle in my experience. The reason it doesn't work at the moment is linked to the fact that TWRP (and other custom recoveries) can't decrypt /data on Android 12.

The solution is this fork of Magisk made for the very purpose of getting Magisk to survive OTA updates when recovery can't decrypt /data:

https://github.com/programminghoch10/Lygisk

WARNING 2: That fork only supports LineageOS Recovery.

When I tried it with TWRP that's when I got the soft brick. I then wiped and reinstalled everything, including LineageOS Recovery, Lygisk and an older version of LineageOS 19.1. When I then updated LineageOS using the OTA updater, the update went fine and Lygisk survived the update OK too.
[Xiaomi Poco X3 Pro] lsander:
What are you talking about? There is already twrp with android 12/12.1 decryption fully working.
[Xiaomi Poco X3 Pro] makeyourself:
I don't think there is, or if there is then it's not very easy to find which is why that question was asked. The official build can't decrypt /data fully without deleting all lockscreen passwords and fingerprints. Neither can the unofficial one posted above. Which leads me to the question as politely as you're clearly capable of asking, what are YOU talking about?
[Xiaomi Poco X3 Pro] yasen6275:
Not officially.
[Xiaomi Poco X3 Pro] lsander:
https://xdaforums.com/t/recovery-12-official-teamwin-recovery-project.4269551/

So why then one from here decrypt my data using pattern without a problem? Man it is decrypting data and it is confirmed by manyyyy people around xda and telegram
[Xiaomi Poco X3 Pro] yasen6275:
If you are not using LOS on your main phone or don't mind to be a beta tester, that's ok. Thanks for the contribution to the community. Some of us don't have that time/luxury/opportunity.
[Xiaomi Poco X3 Pro] makeyourself:
It would be helpful if you could link to exactly which build you're talking about (there are multiple official and unofficial ones posted in that thread). All the ones I'm trying can't decrypt /data/media/0. Also do I need to reformat /data again in order to get this decryption to work, as some people seem to be suggesting?

Edit:

I got it working with this build:

https://www.pling.com/p/1833617/

I had to format /data first though (again), decryption wouldn't work otherwise. And thanks but at the same time a little less ego flexing / attitude wouldn't go amiss next time.
[Xiaomi Poco X3 Pro] misosofos:
Thank you so much, man. I'm using precisely the LOS recovery.
[Xiaomi Poco X3 Pro] TempAccount10001:
Did you had a password/pattern when you flashed the new twrp 12. I had the decryption issue. Booting system, removing and adding pattern again, fixed my decryption issue.
[Xiaomi Poco X3 Pro] makeyourself:
I think so yes. That may have been it then as obviously formatting /data removes the passcode/pattern.
[Xiaomi Poco X3 Pro] s_k_u_ll:
I have followed this steps, everything worked ok.

After reboot, I have installed latest Nebrassy recovery TWRP-3.6.2-vayu-Nebrassy-03-07-22.img and I can decryt data
[Xiaomi Poco X3 Pro] viperinc:
Just updated from 11 to 12 today via dirty flash and so far so good.

Here's what I did;

1. Downloaded latest version of MindTheGapps for 12L.

2. Downloaded TWRP-3.6.2-vayu-Nebrassy-03-07-22.img

3. Downloaded latest 19.1 LinageOS daily.

4. Extracted boot.img and created MagiscBoot image.

5. Removed lock from existing 18 linage. The nebrassy twrp can't decode android 11 for some reason (works on 12).

6. Reboot to Recovery

7. Flash nebrassy twrp and reboot to recovery

8. Flash LinageOS 19.1

9. Flash nebrassy twrp recovery

10. Flash magisc boot image

11. Flash MindTheGapps

12. Clear cache/dalvik

13. Reboot

After adding fingerprint and lock, twrp can decode.

And that's it. All my apps and data remained

Pass safety net, gpay working. Happy days
[Xiaomi Poco X3 Pro] makeyourself:
You don't need to bother extracting the boot.img obviously. Although you can do it that way if you want, just flashing the Magisk zip in recovery directly after flashing Lineage will do the same thing. Just saying for others who aren't confident extracting and flashing kernels. The rest of what you said sounds like good advice.
[Xiaomi Poco X3 Pro] shootomanUK:
Is anybody using chrome browser ?...mine seems to freeze for a few seconds while browsing....anyone any ideas ?
[Xiaomi Poco X3 Pro] MrHaroldA:
I flashed LOS 19.1 over 18.1 today, together with MindTheGapps and Magisk. All went well and everything seems to work just fine!

I did have to remove my lock pattern and fingerprint, but that's the only thing that was maybe slightly annoying ;)

Thank you all for keeping this phone alive!

--

EDIT: alle seems to work fine, except for both my banking apps (Rabobank and ASN bank) crashing when they want to access the fingerprint reader. BitWarden works fine with biometric authentication, so it must be related to the banking software, not the hardware or LOS.
[Xiaomi Poco X3 Pro] victorct83:
I have the same issue with Brave, so it's something related to Chrome. In 18.1 it was working well.
[Xiaomi Poco X3 Pro] Hamikoshadow:
Another problem/ bug:

I'm not able to update via Android Updater. It prepares the Update and aborts with an Error. Update via SD card in lineage recovery fails too and breaks the SD card.

Only way right now is to update via fastboot.

Actual OS: Lineage OS 19.1 1.July update

+ Lygisk

+ recommended Gapps

Where can I find error logs to provide them?
[Xiaomi Poco X3 Pro] Nollie8969:
I just updated to today's version via Ota. No problem. I use mindthegapps, no lygisk.

Don't know about logs.
[Xiaomi Poco X3 Pro] martinknl:
Yesterday I did not receive a cell broadcast (emergency message) running lineageos 19. This worked fine under lineageos 18.1
[Xiaomi Poco X3 Pro] Nollie8969:
Please, tell on Telegram: https://t.me/SebaUbuntuChat
[Xiaomi Poco X3 Pro] viperinc:
Using Chrome here. No issues. 103.0.5060.71
[Xiaomi Poco X3 Pro] Nollie8969:
Anyone had succes on ih8sn with Seba's file ? (Page 41). Cts is still failing on mine; Los19. Did clean Gapps and reboot.
[Xiaomi Poco X3 Pro] Jvlc:
Has anybody installed any Xposed framework under lineageOS 19.1? Any particular issues found?

I'm planning to upgrade from LineageOS 18.1 to 19.1 but wouldn't like to loose some (currently EdXposed) modules.
[Xiaomi Poco X3 Pro] makeyourself:
I've got LSPosed installed via Zygisk and it seems to work fine, athough I've only used one module so far (SIM number setter).