On Xiaomi/Redmi devices running MIUI, there’s an additional security restriction on ADB. Enabling just USB debugging is not enough — you also need to enable another toggle in Developer Options:
Open Settings → About phone → MIUI version → tap 7 times to unlock Developer Options.
Go to Settings → Additional settings → Developer options.
Enable both:
USB debugging
USB debugging (Security settings) ← this is the key one
Reconnect your phone and tap Allow when the authorization prompt appears.
The “USB debugging (Security settings)” option allows ADB to simulate input events (mouse/keyboard), clipboard actions, and other advanced features. Without it, Xiaomi blocks those for security reasons.
Note: Sometimes this toggle only appears if you’re signed into a Xiaomi account and connected to the internet.