Four commands to control the screen of Android phone with mac computer

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:

  1. Terminal input system_profiler SPUSBDataType
  2. Find the Product ID of the corresponding device
  3. Terminal input: vim ~/.android/adb_usb.ini, add the Product ID of the device to the file, save and exit;
  4. Terminal input: adb kill-server;
  5. Terminal input: adb start-server / adb devices
  6. Terminal input: scrcpy

Get it done!
3. For those that have been added, start directly from 4.

Guess you like

Origin blog.51cto.com/phpervip/2554356