From Newsgroup: comp.mobile.android
Maria Sophia wrote:
There are, of course, a billion options, but this is a quickie for all.
And there is the old-school way of using adb connect 192.168.1.2:5555
If you're tapping on your phone while at your desk, you're not efficient.
There are three ways to connect your phone to your PC to control it from
the PC (& which can makes the phone as tall & as wide as your monitor is).
1. Wi-Fi
2. USB
3. Hybrid USB + Wi-Fi
We covered the Wi-Fi steps prior, which work only on Android 11+.
The USB method is the simplest (and most reliable) overall.
a. Connect the phone to the PC via USB
b. adb devices
c. scrcpy --always-on-top --full-screen --stay-awake --keyboard=sdk
For all Android versions, including older Android, there's a half-and-half
a. Connect the phone to the PC via USB
b. adb tcpip 5555
c. adb connect 192.168.1.2:5555
d. scrcpy --always-on-top --full-screen --stay-awake --keyboard=sdk
In my humblest of opinions, if you're at your PC, there's no reason to
touch the phone in order to do whatever it is that you want to do with it.
Note there are a billion scrcpy options, so those are just examples.
--- Synchronet 3.22a-Linux NewsLink 1.2