First, we need to install Scrcpy and open it.
Installation instructions here
If you are using a Xiaomi phone (if not, skip this part),
go to “Settings” > “Additional settings” > “Developer options” and allow USB installation.
This action requires a SIM card to be inserted (required by MIUI).
Please have the Finder or File Manager window for the prepared APK file open on the side, and drag the file into the Scrcpy window.
(The phone screen can be anywhere, not necessarily on the app drawer screen)
Then, Mac users should see text appearing in the terminal window:Request to install...
as well asPerforming Push Install...
At this point, the phone is installing the APK file, and the installation time depends on the phone’s speed.
If you are using a Xiaomi phone, please allow the installation on the phone, otherwise it may be blocked by the system and fail to install.
When the installation is complete, the Mac terminal window will display “Success” to indicate successful installation.
Tested programs installed in this way can also be opened normally.