When i was seeking github i landed on Genymobile page. He was making a script which could connect to Android system through USB and take full control to device even without root. Maybe another time we switch Android to iOS and then Death Star(just kidding).
It’s open source, go to him page, find scrcpy, download latest version and before use you have to compile it, code is C-language written BTW. It’s free, open-source, you don’t need install any packages or apps on phone just use a program and connect correctly to PC.
Good intructions is given at genymobil page but i will shorten this message
To have able use it, i reccomend you download Android SDK Tools. Set up and make configuration what program says because later it will you have problem with finding property system on PC but before that turn on debugging(very important). Ok, time to attach android into computer and open command terminal, enter in “cd./android/sdk/platform-tools” to be in directory with executables files, type to terminal “./adb devices” to make sure connection is fine.
Android Studio is next software which you have to purpose it. Choosing standard installation should be enough To export global variable into system type AndroidHome=~/android/sdk as well.
It was guide for install it on Windows i can’t tell whether will work on Linux or no just test and write a comment to notice me
To launch, type in terminal again “Scrcpy” and program will begun as run as administrator. You will see device resolution size window and device name.