8

使用scrcpy控制你的手机

 3 years ago
source link: https://www.lujun9972.win/blog/2019/03/20/%E4%BD%BF%E7%94%A8scrcpy%E6%8E%A7%E5%88%B6%E4%BD%A0%E7%9A%84%E6%89%8B%E6%9C%BA/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用scrcpy控制你的手机

scrcpy可以借助adb来通过USB控制你的手机。还能对手机进行录屏,特别好玩。

安装android-tools

scrcpy需要借助adb来往手机发送命令的,因此需要先安装 android-tools

sudo pacman -S android-tools --noconfirm

安装scrcpy

sudo pacman -S scrcpy --noconfirm

手机开启USB调试功能

不同手机有不同的开启方式

我用的是MIUI10,开启方法是 "设置"->"我的设备"->"全部参数"->点击7下MIUI版本,开启“开发者选项”

然后在 "设置"->"更多设置"->"开发者选项" 中 同时开启 USB调试USB调试(安全设置)

screenshot-65.png

手机B连接PC

通过USB连接

推荐使用USB连接,这样操作起来比较流畅。

手机通过USB连接到PC上,在弹出的USB用途中选择 传输文件(MTP)

  1. 确保PC和手机在同一Wifi中
  2. 手机先通过USB与PC相连
  3. 在PC上运行 adb tcpip 服务端口
  4. 在PC上运行 adb connect 手机IP:服务端口
  5. 运行scrcpy

运行scrcpy

运行scrcpy,第一次运行手机上会显示是否接受PC的秘钥,选择接受。

然后就能看到出现一个窗口显示手机内容了: screenshot-66.png

scrcpy的操作说明

  • 鼠标左键: 模拟点击
  • 鼠标右键/Ctrl+b: 返回上一页
  • Ctrl+s: 切换app
  • 手机录屏: scrcpy --record file.mp4
  • 帮助信息: scrcpy --help

Recommend

  • 68

    Release scrcpy v1.9 · Genymobile/scrcpy · GitHub

  • 47

    scrcpy (v1.14) This application provides display and control of Android devices connected on USB (or over TCP/IP). It does...

  • 58

    Join GitHub today GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together...

  • 119
    • Github github.com 4 years ago
    • Cache

    Releases · Genymobile/scrcpy · GitHub

    scrcpy v1.16

  • 7
    • foofish.net 4 years ago
    • Cache

    安卓投屏神器:scrcpy

    这款神器解决完美解决了手机投屏的问题 手机投屏之前我用的是 vysor,因为付费版必须通过 google play 进行支付,麻烦的一批 所以我一直用它的基础免费版。而且它需要在手机和电脑端同时都装有软件才能投屏到电脑桌面,但坑爹的...

  • 9

    一、scrcpy简介 注意:拼写是scrcpy,非Python爬虫框架Scrapy。 scrcpy可以通过adb调试的方式来将手机屏幕投到电脑上,并可以通过电脑控制您的Android设备。它可以通过USB连接(初次必须),也可以通过Wifi连接...

  • 2
    • tsanfer.xyz 3 years ago
    • Cache

    手机控制工具 scrcpy 的使用

    This application provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access. It works on GNU/Linux, Windows and macOS.

  • 4

    更新于 2021/07/15 |  创建于 2021/07/15 如何使用scrcpy远程控制Andorid手机 scrcpy 是一个免费的开源屏幕镜像应用程序,允许从 Windows、macOS 或 Linux 台式计...

  • 6

    使用scrcpy技术实现同屏协作的功能 | Lenix Blog 之前在华为平板上体验了“同屏协作”的功能,可以直接投射手机屏幕到华为平板上,实现多设备共享微信内容,非常方便。 但是华为的同屏协作仅限于华为平板和华为手机之间,今天发现了s...

  • 1

    Scrcpy开源的Android设备控制工具 作者:Reathin 2024-02-27 08:22:22 Scrcpy是一款优秀的安卓设备控制工具,具有广泛的应用场景和优势。通过Scrcpy,用户可以方便地操作和控制安卓设备,提高工作和生活效率,同时...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK