Four commands to control the screen of Android phone with mac computer
Prerequisite:
Mobile phone: System-Developer option-USB debugging has been turned on,
connect the android phone to the Mac through the USB data cable, and select the file to be transferred in the pop-up box.
command:
- Terminal input system_profiler SPUSBDataType
- Find the Product ID of the corresponding device
- Terminal input: vim ~/.android/adb_usb.ini, add the Product ID of the device to the file, save and exit;
- Terminal input: adb kill-server;
- Terminal input: adb start-server / adb devices
- Terminal input: scrcpy
Get it done!
3. For those that have been added, start directly from 4.