Start the command adb forward tcp:6000 localfilesystem:/data/local/debugger-socket
Download the repository from here and unzip the archive;
Open a terminal into the folder and start the command python3 kailive.py to mirroring the screen of your phone on the computer.
Just run the script with -h:
Just run the script and make sure you have forwarded the debug socket to port 6000(TCP):
Press q to quit.