• PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi

    From Maria Sophia@mariasophia@comprehension.com to comp.mobile.android,alt.comp.os.windows-10,alt.os.linux on Sat May 9 21:02:40 2026
    From Newsgroup: alt.os.linux

    PSA:
    How to mirror modern Android onto your PC using scrcpy & adb over Wi-Fi
    (Works on Android 11 and up)

    Windows or Linux, this mirrors your phone on your PC monitor two feet tall. (The keyboard, mouse, clipboard, speakers all mirror Android over Wi-Fi).

    1. Connect your phone to the LAN
    2. Longpress the Wireless Debugging tile at the top of your homescreen
    3. Note the "IP address & Port", for example
    a. IP address (e.g., 192.168.1.2)
    b. Connection Port (e.g., 46003)
    3. Tap "Pair device with pairing code" to get another port & pairing code
    a. IP address (e.g., 192.168.1.2)
    b. Pairing Port (e.g., 40005)
    c. Pairing code (e.g., 450824)
    4. Pair & connect:
    adb pair 192.168.1.2:40005 450824
    adb connect 192.168.1.2:46003
    5. Run scrcpy without leaving an unusable console behind:
    Windows: scrcpy-noconsole.vbs (see below)
    Linux: mirror (see below)

    6. That mirrors Android on your monitor while using the PC mouse, keyboard,
    speakers & clipboard to control the device full-height on your monitor.

    For Linux, this mirrors Android thereafter without the console locking up:
    alias mirror ='scrcpy --keyboard=sdk --always-on-top &'

    This is the default Windows scrcpy-noconsole.vbs shipped with scrcpy.
    strCommand = "cmd /c scrcpy.exe"
    For Each Arg In WScript.Arguments
    strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
    Next
    CreateObject("Wscript.Shell").Run strCommand, 0, false

    I modified it slightly to reduce one step when using the Android keyboard.
    ' strCommand = "cmd /c scrcpy.exe"
    strCommand = "cmd /c scrcpy.exe --keyboard=sdk --always-on-top"
    For Each Arg In WScript.Arguments
    strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
    Next
    CreateObject("Wscript.Shell").Run strCommand, 0, false

    There is minor one-time setup, such as turning on Developer Options in the phone to enable "USB debugging" & "Wireless debugging" & adding the wireless-debugging tile which you do only once in the life of the phone.

    Note once you have paired a device, you usually only need the adb connect command in the future, especially with a static IP address.
    adb connect
    scrcpy-noconsole.vbs (for Windows)
    mirror (for Linux

    There are, of course, a billion options, but this is a quickie for all.
    And there is the old-school way of using adb connect 192.168.1.2:5555
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.mobile.android,alt.comp.os.windows-10,alt.os.linux on Sun May 10 20:01:23 2026
    From Newsgroup: alt.os.linux

    Maria Sophia wrote:
    There are, of course, a billion options, but this is a quickie for all.
    And there is the old-school way of using adb connect 192.168.1.2:5555

    If you're tapping on your phone while at your desk, you're not efficient.

    There are three ways to connect your phone to your PC to control it from
    the PC (& which can makes the phone as tall & as wide as your monitor is).

    1. Wi-Fi
    2. USB
    3. Hybrid USB + Wi-Fi

    We covered the Wi-Fi steps prior, which work only on Android 11+.

    The USB method is the simplest (and most reliable) overall.
    a. Connect the phone to the PC via USB
    b. adb devices
    c. scrcpy --always-on-top --full-screen --stay-awake --keyboard=sdk

    For all Android versions, including older Android, there's a half-and-half
    a. Connect the phone to the PC via USB
    b. adb tcpip 5555
    c. adb connect 192.168.1.2:5555
    d. scrcpy --always-on-top --full-screen --stay-awake --keyboard=sdk

    In my humblest of opinions, if you're at your PC, there's no reason to
    touch the phone in order to do whatever it is that you want to do with it.

    Note there are a billion scrcpy options, so those are just examples.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.mobile.android,alt.comp.os.windows-10,alt.os.linux on Mon May 11 20:34:18 2026
    From Newsgroup: alt.os.linux

    Maria Sophia wrote:
    There are three ways to connect your phone to your PC to control it from
    the PC (& which can makes the phone as tall & as wide as your monitor is).

    One very nice feature of this PC to Android setup is for automatic archival
    of APKs on the PC & automatic installation from the PC to Android.

    Here's the flow that I use for universal APKs (one package for all phones).

    1. I often download an APK using the PC web browser & save to a USB drive.
    2. Most sites will provide a universal APK (such as F-Droid or Github).
    3. From the file explorer, when you slide the APK on top of the Android
    mirror image, it automatically runs "adb install" to install that APK.
    <https://i.postimg.cc/wvsbcNBz/scrcpy05.jpg>

    Note the quick efficiency as you never need to physically copy the APK.
    It's automatically archived, and installation is as simple as sliding it.

    However.... Google is getting more & more like Apple... in that...

    The google play repo is serving almost exclusively the PITA split APKs.

    Apparently, Google wants you to use their bundletool to install split APKs
    <https://github.com/google/bundletool/releases>
    <https://github.com/google/bundletool/releases/download/1.18.3/bundletool-all-1.18.3.jar>
    Name: bundletool-all-1.18.3.jar
    Size: 32520401 bytes (31 MiB)
    SHA256: A099CFA1543F55593BC2ED16A70A7C67FE54B1747BB7301F37FDFD6D91028E29

    bundletool install-apks --apks=myapp.apks

    While you can unzip a split APK and stream over adb to install it
    adb install-multiple base.apk config*.apk
    what's simpler in most cases is just sliding it over the same way.

    However, since it's a split APK, it goes into /sdcard/Downloads and,
    from there, you can use SAI or Muntashirakon App Manager to install.

    Note: I haven't used all the methods above because I use a simple approach.
    --- Synchronet 3.22a-Linux NewsLink 1.2