Skip to content

rahul-bhatt43/droidmirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DroidMirror

Mirror and control your Android phone from Windows — USB first, WiFi optional.

Built with Electron + scrcpy. Zero cloud. Everything runs locally.


⚡ Quick Start

1. Install Node.js

Download from https://nodejs.org (v18+ recommended)

2. Install app dependencies

npm install

3. Add scrcpy + ADB to the bin/ folder

Download the latest scrcpy Windows release from: 👉 https://github.com/Genymobile/scrcpy/releases

Grab scrcpy-win64-vX.X.zip, extract it, and copy all files into the bin/ folder.

4. Enable USB Debugging on your Android phone

  • Settings → About Phone → tap Build Number 7 times
  • Settings → Developer Options → turn on USB Debugging

5. Connect and run

npm start

Connect your phone via USB, approve the RSA fingerprint prompt on your phone, then hit Start Mirroring in the app.


🎮 Controls (while mirroring)

Action Shortcut
Home Ctrl+H
Back Ctrl+B
App switcher Ctrl+S
Notifications Ctrl+N
Power Ctrl+P
Toggle fullscreen Ctrl+F
Tap Mouse click
Swipe Mouse drag
Scroll Scroll wheel
Pinch/zoom Right-click drag
Type text Just type (keyboard forwarded)

📶 WiFi Mirroring (Cable-Free)

DroidMirror supports Android 11+ Wireless Debugging, allowing you to connect without ever using a cable.

1. Wireless Pairing (Android 11+)

  • Go to WiFi tab in DroidMirror.
  • On your phone: Developer OptionsWireless Debugging (Turn it ON).
  • Tap "Pair device with pairing code".
  • In DroidMirror, enter the IP:Port and Pairing Code shown on your phone.
  • Alternatively: Click "Show QR Code" in DroidMirror and use the phone's QR scanner to set the code automatically.
  • Click Pair Device.

2. Connect

  • Look at the main Wireless Debugging screen on your phone.
  • Enter the Connection IP and Port into the "Step 2 — Connect" section in DroidMirror.
  • Click Connect. Your phone will now appear in the Mirror tab with a WiFi badge!

3. Legacy Setup (Android 10 & older)

If you are on an older Android version:

  1. Connect via USB first.
  2. Go to WiFi tab → select your device → click Enable TCP/IP.
  3. Enter your phone's IP and click Connect.
  4. Unplug the cable.

🏗️ Project Structure

droidmirror/
├── bin/              ← Place scrcpy.exe + adb.exe + DLLs here
├── src/
│   ├── main.js       ← Electron main process (ADB + scrcpy control)
│   ├── preload.js    ← Secure IPC bridge
│   └── renderer/
│       ├── index.html
│       ├── style.css
│       └── app.js
├── assets/           ← App icons
├── package.json
└── README.md

📦 Build a distributable .exe

npm run build

The installer will be generated in the dist/ folder.


🔧 Requirements

  • Windows 10/11 (64-bit)
  • Node.js 18+
  • Android phone with USB Debugging enabled
  • Android 5.0+ (API 21+)

🙏 Credits & Attribution

About

Mirror and control your Android phone from Windows — USB first, WiFi optional.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors