Short answer
On Android, USB preferences is the menu that decides what a USB connection is used for. When you plug the phone into a computer, the choices usually include charging only, file transfer, photo transfer and MIDI. On some Android versions and phone makers, USB tethering is listed there too. Turning on tethering is a separate setting, usually found in the hotspot and tethering menu.
Where the USB preferences screen appears
After you plug in the phone, Android usually shows a notification saying it is charging over USB. Tap that notification to open USB preferences. You can also reach the same choices through the phone’s USB or connected devices settings. The names and layout vary by Android version and by phone maker.
The usual options
- Charging only. The phone charges and does not share data with the computer.
- File transfer. The computer can browse the phone’s storage.
- Photo transfer. The computer can import photos without full access to the files. This uses a mode called PTP.
- MIDI. Music apps can use the phone as a MIDI device.
- USB tethering. The computer can use the phone’s mobile data. You will only see this here on some versions and phones.
Where tethering fits
To get a computer online over USB, turn on USB tethering in the hotspot and tethering settings. If the USB preferences menu also offers a tethering option, select it. If the phone stays on charging only, the computer may not see a network connection, even when tethering is switched on elsewhere.
Once the connection appears on the computer, the steps for sharing it with other devices are covered in the guide on share tethered internet connection over network. For the full USB setup, see can I share internet via USB cable.
What iPhones do instead
iPhones do not have a USB preferences menu of this kind. When you connect an iPhone to a computer, you may see a Trust This Computer prompt on the phone. Tap Trust and enter the passcode. For USB tethering, you then turn on Personal Hotspot.
When the computer does not see the phone
- Use a data cable, not a charge-only cable.
- Try another USB port, preferably one directly on the computer rather than a hub.
- Check the phone’s USB options and switch away from charging only.
- Unlock the phone and answer any prompts that appear on its screen.
- On Windows, the driver can take a minute to install. Wait, then check whether the new network connection has appeared.