Enable USB Debugging on Android 7 Marshmallow
In this article
Yes, you can enable USB debugging on Android 7 Marshmallow in about two minutes. USB debugging lets your phone talk to a computer for tasks like transferring files, running ADB commands, or using developer tools. You’ll need to turn on Developer Options first, then flip the USB debugging switch. Below are the exact steps, plus what to do if something goes wrong.
What You'll Need
- Your Android 7 Marshmallow phone or tablet
- Your device’s unlock PIN, pattern, or password (you’ll need it to confirm the USB debugging prompt)
- A USB cable (only if you plan to connect to a computer right after enabling)
Step-by-Step
- Open Settings. Swipe down from the top of the screen and tap the gear icon, or find the Settings app in your app drawer.
- Scroll to “About phone” or “About device.” It’s usually near the bottom of the Settings list. On some devices (like Samsung), it may be under “General Management” first, but on stock Android 7 it’s directly in the main Settings menu.
- Tap “Software information” or “Build number.” On stock Android 7, you’ll see “Build number” directly in the About phone screen. On Samsung devices, tap “Software information” first, then you’ll see “Build number.”
- Tap “Build number” seven times. After the third tap, you’ll see a message like “You are now 3 steps away from being a developer.” Keep tapping until you see “You are now a developer!” If you have a lock screen PIN, you may be asked to enter it to continue.
- Go back to the main Settings screen. You’ll now see a new entry called “Developer options” (on some devices it’s under “System” or “Advanced”). Tap it.
- Find “USB debugging.” In the Developer options menu, scroll down to the “Debugging” section. The switch is labeled “USB debugging.”
- Toggle the USB debugging switch to ON. A confirmation dialog will appear: “Allow USB debugging?” Tap “OK.”
- Connect your device to a computer (optional). If you plug in a USB cable, your phone will ask: “Allow USB debugging?” with the computer’s RSA key fingerprint. Check “Always allow from this computer” if you trust that computer, then tap “Allow.”
That’s it. USB debugging is now enabled. You can verify it by running adb devices on your computer (if ADB is installed) and seeing your device listed as “device” (not “unauthorized”).
Common Mistakes
- Not tapping “Build number” enough times. It must be exactly seven taps. If you stop early, Developer Options won’t appear.
- Looking for Developer Options before it’s unlocked. The entry only appears after the seventh tap on Build number. If you don’t see it, go back and tap more.
- Turning on the wrong toggle. There are several toggles in Developer options (like “Stay awake” or “OEM unlocking”). Make sure you’re toggling “USB debugging,” not something else.
- Dismissing the “Allow USB debugging” prompt. If you tap “Cancel” or “Deny,” the computer won’t be authorized. You’ll need to plug in again and tap “Allow.”
- Using a faulty or charge-only USB cable. Some cables only charge and don’t carry data. If the computer doesn’t see your device, try a different cable.
Tips
- Turn off USB debugging when you’re done. Leaving it on is a security risk, as it allows any connected computer to run commands on your device. Go back to Developer options and toggle it off when you no longer need it.
- Use “Always allow from this computer” only on your own machine. On public or shared computers, don’t check that box—otherwise the computer can access your device without asking again.
- Keep Developer Options enabled. You don’t need to hide it again after enabling USB debugging. It stays in Settings until you turn it off (if you ever want to, you can toggle the “Developer options” switch at the top of the menu).
- If you’re using a Samsung device, the path may differ slightly. On Samsung running Android 7, go to Settings > About phone > Software information, then tap “Build number” seven times. The Developer options menu will appear under Settings > Developer options.
Troubleshooting
Developer Options doesn’t appear after tapping Build number. Make sure you’re tapping the exact “Build number” field, not “Kernel version” or “Baseband version.” Also, some devices may require you to enter your PIN/pattern before the taps register. If you’ve already tapped seven times and nothing happens, wait a few seconds and try again—some devices have a short cooldown between taps.
USB debugging switch is grayed out. This usually happens on company-managed or school-issued devices where the administrator has disabled it. There’s no official way to bypass that, so you’ll need to contact your IT administrator.
Computer says “unauthorized” when you run adb devices. That means you haven’t accepted the RSA prompt on your phone. Unplug the USB cable, plug it back in, and watch your phone screen for the “Allow USB debugging?” dialog. Tap “Allow” (and check “Always allow” if you want). If the dialog doesn’t appear, try revoking USB debugging authorizations: go to Developer options > “Revoke USB debugging authorizations,” then reconnect.
Device isn’t recognized at all. First, try a different USB port and a different cable. Then, make sure the USB connection mode is set to “File Transfer” (MTP) or “PTP” rather than “Charge only.” On Android 7, when you plug in, swipe down the notification shade and tap the USB notification to change the mode. Also, install the proper USB drivers for your device on your computer (for Windows, download from the manufacturer’s website; Mac and Linux usually work without extra drivers).
You see “USB debugging connected” but the computer still doesn’t list it. Restart both your phone and your computer, then reconnect. Also, make sure you have the latest ADB tools installed on your computer (from the official Android developer site).
Frequently Asked Questions
Is USB debugging safe to leave on?
It’s generally safe if you only connect your phone to trusted computers, but it does open a security hole. Anyone with physical access to your phone and a USB cable could run ADB commands. It’s best to turn it off when you’re not using it.
Will enabling USB debugging void my warranty?
No. Enabling Developer Options and USB debugging is a standard, supported feature on Android devices. It doesn’t void your warranty. However, other actions in Developer options (like “OEM unlocking” or rooting) might.
Do I need a computer to enable USB debugging?
No. You can enable it directly on your phone through Settings. You only need a computer if you want to actually use ADB commands or transfer data via debugging.
Why is my “Build number” not responding to taps?
If you have a lock screen PIN/pattern/password, you may need to enter it before the taps count. Also, some custom launchers or skins might hide the “Build number” field. Try going to Settings > About phone and look for “Build number” (not “Software information” unless you’re on Samsung).
Can I enable USB debugging on Android 7 without a computer?
Yes, the steps above are all done on the phone itself. You don’t need a computer until you want to connect and use ADB.
Does USB debugging drain battery?
No, not noticeably. It only affects battery when your phone is connected to a computer and actively transferring data or running ADB commands.