Updated November 2026
To unlock phone to use accessories when charging, you usually need to approve the connection on the phone’s screen, then check a few settings that control how accessories and data transfer behave on USB. Most phones block USB accessories while locked as a security measure, so the fix is often a short prompt rather than a hardware problem. This guide walks through the steps that work on most Android and iPhone models.
Why Your Phone Blocks Accessories While Charging
Modern phones treat a connected USB device as a potential security risk. When the screen is locked, the phone may charge normally but refuse to recognize a keyboard, card reader, USB drive, or adapter. Unlocking the screen lifts that restriction for the current session, which is why accessories suddenly start working the moment you enter your passcode.
Shopping for one? See our guide: Cell Phone Accessories Samsung: 7 Best Picks for Every Need (2026).
Charging-only cables are another common cause. Some cables carry power but no data lines, so the phone never sees the accessory at all.
Steps to Unlock Your Phone and Use Accessories
- Connect the accessory through a data-capable USB-C or Lightning adapter, and keep the phone plugged into its charger if needed.
- Wake the screen and enter your passcode, Face ID, or fingerprint so the phone is fully unlocked.
- Watch for a prompt such as “Allow accessory to connect?” or “USB accessories.” Tap Allow or Always allow.
- If no prompt appears, unplug the accessory, unlock the phone first, then reconnect it.
- Test the accessory. A keyboard or drive should respond within a few seconds.
Check the Settings That Control USB Access
If prompts never appear, review the phone’s security and USB settings. Menu names vary by manufacturer and OS version, so search your settings for “USB” or “accessories” to find the right screen.
- Android: Look for USB preferences or USB controller options and set the default USB mode to file transfer or peripheral mode when using accessories.
- iPhone: Confirm Allow Accessories is enabled under Face ID & Passcode (or Touch ID & Passcode), where the “USB Accessories” toggle lives.
- Disable any USB restricted mode only if you understand the security trade-off, since it protects against unknown devices.
Fix Connection Problems When Charging
When the accessory still won’t connect, the issue is usually the cable, adapter, or port rather than the lock screen. Try a known data cable, clear lint from the charging port with a wooden or plastic tool, and restart the phone. A powered USB hub often solves problems with accessories that draw more current, such as external drives.
| Symptom | Likely cause | Fix |
|---|---|---|
| Phone charges but accessory does nothing | Charging-only cable or adapter | Use a data-capable cable |
| No “allow” prompt appears | Phone locked when connected | Unlock first, then reconnect |
| Accessory disconnects while charging | Insufficient power to the device | Use a powered USB hub |
Common Mistakes to Avoid
- Connecting the accessory before unlocking the phone, then assuming it is broken.
- Using a cheap cable that carries power only.
- Tapping “Don’t allow” on the prompt and forgetting it was there.
- Leaving USB access permanently open on a phone you use in public places.
Recommended Gear
A USB-C data cable makes accessory connections far more reliable than a charge-only cable. A powered USB hub is useful when a drive or card reader needs extra current while the phone charges. A short USB-C to USB-A adapter helps when you want to connect older keyboards or flash drives.
FAQ
Why does my phone need to be unlocked for accessories to work?
Phones restrict USB accessories while locked to prevent unknown devices from reading or controlling data. Unlocking tells the phone you are present and approving the connection.
Can I charge and use an accessory at the same time?
Yes, if you use a data-capable cable and a powered hub when the accessory needs more power. Some devices may still draw too much current from the phone alone.
Is it safe to allow accessories while charging?
Allow only accessories you trust, since connected devices can access data when the phone is unlocked. If you handle sensitive information, consult your IT department or a security professional before changing USB settings.
Conclusion
Most accessory problems come down to unlocking the phone, approving the prompt, and using a cable that carries data. Check your USB settings if prompts never appear, and try a powered hub for accessories that need extra power. Following these steps should get your keyboard, drive, or reader working while your phone charges.
