USB Debugging

Developer Mode and USB Debugging

A phone accepts adb only after two switches. Tap Settings > About phone > Build number seven times until Android announces You are now a developer!, then turn on USB debugging in Settings > System > Developer options. The emulator works the same way:

Unlocking Developer options on the emulator, and the USB debugging switch
Unlocking Developer options on the emulator, and the USB debugging switch

Connect the phone by USB and accept its Allow USB debugging? prompt, which shows the computer's RSA key fingerprint; until then adb devices lists it as unauthorized. After that its serial works with -s and ./r <serial> like any emulator's.