adb常用命令包括wifi安装apk及scrcpy使用相关实践

adb常用命令

列出当前连接的 Android 设备列表:

adb devices安装APK: adb install  xxxx.apk

替换已存在的应用程序(覆盖安装):adb install -r xxxx.apk

卸载APK: adb uninstall

包名查看安装的所有应用:adb shell pm list packages

查看log:adb logcat | find ‘com.xxx.xxx’ >D:/log.txt

adb常用命令

列出当前连接的 Android 设备列表:

adb devices

安装APK: adb install  xxxx.apk

替换已存在的应用程序(覆盖安装):adb install -r xxxx.apk

卸载APK: adb uninstall

包名查看安装的所有应用:adb shell pm list packages

查看log:adb logcat | find 'com.xxx.xxx' >D:/log.txt

查看设备的spaces版本:adb shell dumpsys package com.qualcomm.qti.spaces.services | findstr versionName

scrcpy相关资料:

https://www.bilibili.com/video/BV1zd4y1T7Dz/?spm_id_from=333.1007.top_right_bar_window_history.content.click

scrcpy源码

scrcpy下载地址

scrcpy文档参考资料

一些scrcpy的使用实践记录

命令:scrcpy --display 0 --crop 2280:1140:0:0

Microsoft Windows [版本 10.0.22000.2057]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>
C:\Users\Administrator>adb -version
adb.exe: unknown command -version 3333

C:\Users\Administrator>scrcpy --version
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
- SDL: 2.28.5 / 2.28.5
- libavcodec: 60.31.102 / 60.31.102
- libavformat: 60.16.100 / 60.16.100
- libavutil: 58.29.100 / 58.29.100
- libusb: - / 1.0.26

C:\Users\Administrator>adb --version
Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Installed as D:\Program Files\scrcpy-win64-v2.3.1\adb.exe
Running on Windows 10.0.22000

C:\Users\Administrator>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached

C:\Users\Administrator>adb devices
List of devices attached

C:\Users\Administrator>adb connect 192.168.0.123
failed to authenticate to 192.168.0.123:5555

C:\Users\Administrator>adb connect 192.168.0.123:7077
cannot connect to 192.168.0.123:7077: 由于目标计算机积极拒绝,无法连接。 (10061)

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>adb connect 192.168.0.123
already connected to 192.168.0.123:5555

C:\Users\Administrator>adb devices
List of devices attached
192.168.0.123:5555 device

C:\Users\Administrator>scrcpy
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 87.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920x1080
WARN: Killing the server...

C:\Users\Administrator>scrcpy --display 2
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 86.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 3840x1200

C:\Users\Administrator>scrcpy --display 2 --crop 1920:1200:0:0
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 66.2 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: Killing the server...

C:\Users\Administrator>scrcpy --display 2 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 101.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
--display-id=0 (1920x1080)
--display-id=3 (3840x1200)
ERROR: Server connection failed

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy --display 3 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 98.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy --display 2 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 88.7 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
--display-id=0 (1920x1080)
--display-id=4 (3840x1200)
ERROR: Server connection failed

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 108.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 57.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 76.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\

Microsoft Windows [版本 10.0.22000.2057]
(c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>
C:\Users\Administrator>adb -version
adb.exe: unknown command -version 3333

C:\Users\Administrator>scrcpy --version
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
- SDL: 2.28.5 / 2.28.5
- libavcodec: 60.31.102 / 60.31.102
- libavformat: 60.16.100 / 60.16.100
- libavutil: 58.29.100 / 58.29.100
- libusb: - / 1.0.26

C:\Users\Administrator>adb --version
Android Debug Bridge version 1.0.41
Version 34.0.5-10900879
Installed as D:\Program Files\scrcpy-win64-v2.3.1\adb.exe
Running on Windows 10.0.22000

C:\Users\Administrator>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached

C:\Users\Administrator>adb devices
List of devices attached

C:\Users\Administrator>adb connect 192.168.0.123
failed to authenticate to 192.168.0.123:5555

C:\Users\Administrator>adb connect 192.168.0.123:7077
cannot connect to 192.168.0.123:7077: 由于目标计算机积极拒绝,无法连接。 (10061)

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>adb connect 192.168.0.123
already connected to 192.168.0.123:5555

C:\Users\Administrator>adb devices
List of devices attached
192.168.0.123:5555 device

C:\Users\Administrator>scrcpy
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 87.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920x1080
WARN: Killing the server...

C:\Users\Administrator>scrcpy --display 2
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 86.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 3840x1200

C:\Users\Administrator>scrcpy --display 2 --crop 1920:1200:0:0
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 66.2 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: Killing the server...

C:\Users\Administrator>scrcpy --display 2 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 101.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
--display-id=0 (1920x1080)
--display-id=3 (3840x1200)
ERROR: Server connection failed

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy --display 3 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 98.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Users\Administrator>scrcpy --display 2 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 88.7 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
[server] ERROR: Display 2 not found
List of displays:
--display-id=0 (1920x1080)
--display-id=4 (3840x1200)
ERROR: Server connection failed

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 108.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 57.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 76.1 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 96.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 62.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 44.4 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r C:\Users\Administrator\Desktop\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>

.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 67.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 96.8 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 62.5 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r G:\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>scrcpy --display 4 --crop 1920:1200:0:0 --record file.mp4
scrcpy 2.3.1 <https://github.com/Genymobile/scrcpy>
WARN: --display is deprecated, use --display-id instead.
INFO: ADB device found:
INFO: --> (tcpip) 192.168.0.123:5555 device RG_stationPro
D:\Program Files\scrcpy-win64-v2.3.1\scrcpy-server: 1 file pushed, 0 skipped. 44.4 MB/s (66007 bytes in 0.001s)
[server] INFO: Device: [Rokid] Rokid RG-stationPro (Android 12)
INFO: Recording started to mp4 file: file.mp4
INFO: Renderer: direct3d
INFO: Texture: 1920x1200
WARN: [FFmpeg] track 1: codec frame size is not set
INFO: Recording complete to mp4 file: file.mp4

C:\Users\Administrator>adb install -r C:\Users\Administrator\Desktop\xxx.apk
Performing Streamed Install
Success

C:\Users\Administrator>