Skip to main content

Running Scrcpy client on an Android phone with Termux to remotely control another Android phone

分類 Smartphone APP Review
標籤 Scrcpy Termux

中文版本

Scrcpy is a software that mirror the screen of an Android phone to your PC, and you can control the phone from your PC. Currently, Scrcpy is only available on Linux/Windows/macOS. Can we run Scrcpy client directly on an Android phone to control another Android phone?

Yes, but I’m not happy with the current solutions, there is no working open source app for Scrcpy for Android (the ones I found on Github are all abandoned), but there are third-party apps that integrate Scrcpy, for example: Duplila, 甲壳虫ADB助手, 魇·无界投屏

Update: Finally we got real open-source Scrcpy for Android! Check out this: https://github.com/zwc456baby/ScrcpyForAndroid

Although they are free to use, they are all proprietary software, and Duplila’s advanced features charge a monthly fee for $2? 甲壳虫ADB助手 only costs $1.

So I decided to use my open source solution: Using Termux X11 to run Scrcpy. There are ADB and Scrcpy packages in Termux’s official repository, so there’s no need to install a proot-distro to run Scrcpy.

Running Scrcpy in Termux X11 on an Android phone to remotely control another Android phone.

  1. Setup XFCE4 Desktop for Termux and install Termux X11.

  2. Install the following packages

pkg install scrcpy android-tools
  1. Pair with another Android phone via wireless ADB
# Enable wireless debugging in Developer Settings
adb pair <IP>

adb connect <IP>
  1. Launch XFCE4 in Termux.

  2. Start Scrcpy from Termux terminal:

GALLIUM_DRIVER=virpipe scrcpy -m 1080 -b 5M --audio-codec=aac --fullscreen
  1. The Scrcpy window will now appear in Termux X11! For better touch control, go to Termux X11 settings and enable Direct Touch mode.

Related


此處提供二種留言板。點選按鈕,選擇您覺得方便的留言板。

(留言板載入中)這是Giscus留言板,需要Github帳號才能留言。支援Markdown語法,若要上傳圖片請善用外部圖床。您的留言會在Github Discussions向所有人公開。

Click here to edit your comments.

(留言板載入中)這是Disqus留言板,您可能會看到Disqus強制投放的廣告。為防止垃圾內容,有時留言可能會被系統判定需審核,導致延遲顯示,請見諒。若要上傳圖片請善用外部圖床網站。