Works in Chrome.
(This technique possibly works for other models as well, but you need to understand it and adapt it for your use case; it is copy-paste for Poco F1 only)
Disclaimer: my code makes the "long swipe" gesture unavailable, as I was not using it, but with patience you can come up with a better patch that may retain that functionality as well. This is more for me to remember how I did it and for educational purposes (finding pertinent and updated Android tutorials on stuff like this is pretty hard).
I have done the process on Windows with the help of WSL2, on Linux it should work 100%, maybe with other utilities.