Enabling Developer Options & USB Debugging
Before NearMirror can connect to your Android device, USB Debugging must be turned on. This setting lives inside Developer Options, which is hidden by default on all Android devices.
This page walks you through enabling both, with instructions for every major manufacturer.
Step 1 — Unlock Developer Options
Developer Options is unlocked by tapping the Build number entry in Settings a specific number of times.
Stock Android (Google Pixel)
- Open Settings
- Tap About phone
- Tap Build number seven times
- Enter your PIN or password if prompted
- You will see the message "You are now a developer!"
Developer Options now appears under Settings → System → Developer options.
Samsung (One UI)
- Open Settings
- Tap About phone
- Tap Software information
- Tap Build number seven times
- Enter your PIN or pattern if prompted
Developer Options now appears under Settings → Developer options (directly under Settings, not under System).
Xiaomi / MIUI / HyperOS
- Open Settings
- Tap About phone
- Tap MIUI version (or HyperOS version) seven times
- Enter your password if prompted
Developer Options now appears under Settings → Additional settings → Developer options.
Xiaomi devices also have a USB Debugging (Security settings) toggle in Developer Options that must be enabled separately from the standard USB Debugging switch. Enable both.
OnePlus / OxygenOS
- Open Settings
- Tap About device
- Tap Version information
- Tap Build number seven times
Developer Options now appears under Settings → System → Developer options.
Oppo / ColorOS / Realme
- Open Settings
- Tap About phone
- Tap Version (or Build number depending on version)
- Tap it seven times
Developer Options now appears under Settings → Additional settings → Developer options.
Huawei / EMUI
- Open Settings
- Tap About phone
- Tap Build number seven times
Developer Options now appears under Settings → System & updates → Developer options.
On some Huawei devices running EMUI 5 and earlier, the path is Settings → About phone → Build number.
Motorola
- Open Settings
- Tap About phone
- Tap Build number seven times
Developer Options now appears under Settings → System → Developer options.
Step 2 — Enable USB Debugging
Once Developer Options is unlocked:
- Open Settings → Developer options (use the path for your device from above)
- Scroll down to find USB Debugging
- Toggle it on
- Tap OK on the confirmation dialog
If you ever reset Developer Options or do a factory reset, you will need to repeat both steps above.
Step 3 — Authorise your computer
The first time you connect your device to a computer with USB Debugging enabled, Android shows a prompt:
Allow USB debugging? The computer's RSA key fingerprint is: …
Tap Allow. Check Always allow from this computer to skip this prompt in future.
If you don't see this prompt, try unlocking your device screen before plugging in the cable.
Troubleshooting
Device doesn't appear in NearMirror after connecting
- Make sure USB Debugging is enabled (re-check the toggle in Developer Options)
- Try a different USB cable — many cables are charge-only and do not carry data
- Try a different USB port on your computer
- Unlock your device screen and look for the Allow USB debugging? prompt
- On Windows, you may need to install the USB driver for your device — check your manufacturer's website
Device shows as "unauthorized"
This means your computer has not been approved. On the device, go to Settings → Developer options → Revoke USB debugging authorizations, then reconnect and tap Allow on the new prompt.
Device appears and disappears repeatedly
This is usually a faulty cable or a USB hub causing power fluctuations. Connect directly to a USB port on your computer and try a different cable.
USB Debugging toggle is greyed out
This can happen if your device is managed by an organisation (work/school device). Contact your IT administrator, as they may need to allow it through their device management policy.