Input & Automation Android 1.0+ Risk: SAFE

Send Hardware Keyevent / Button Press

Sends hardware keycodes such as Home, Back, Power, Volume Up/Down, Enter, or Camera.

Command Syntax

adb shell input keyevent
Generic Syntax: input keyevent [--longpress] <KEYCODE>

Options & Parameters

Flag Description
3 KEYCODE_HOME
4 KEYCODE_BACK
24 KEYCODE_VOLUME_UP
25 KEYCODE_VOLUME_DOWN
26 KEYCODE_POWER
66 KEYCODE_ENTER
82 KEYCODE_MENU
187 KEYCODE_APP_SWITCH (Recents)
224 KEYCODE_WAKEUP (Turn screen on)
223 KEYCODE_SLEEP (Turn screen off)
--longpress Simulate holding the key down.

Real-World Usage Examples

Press HOME button (Keycode 3)
Returns to home screen.
adb shell input keyevent 3
Press BACK button (Keycode 4)
Navigates back.
adb shell input keyevent 4
Toggle POWER button / sleep / wake (Keycode 26)
Turns display on or off.
adb shell input keyevent 26
Take screenshot via hardware shortcut (Keycode 120 / SYSRQ)
Triggers hardware screenshot.
adb shell input keyevent 120
Zero-Install Browser Android Debug Bridge

Run ADB Commands, Screen Mirror & Manage Android in Your Web Browser

ADB Toolkit is an open-web developer platform powered by the W3C WebUSB standard and client-side cryptography. Connect any Android smartphone, tablet, or smart TV via USB to execute real-time terminal shell commands, mirror screens, uninstall pre-loaded OEM bloatware, check authentic battery health, and sideload APKs with 100% client-side privacy.

Launch WebADB Terminal How to Enable USB Debugging

💻 WebUSB Terminal Shell

Full-featured interactive Unix terminal running directly on Android OS (UID 2000). Execute package manager (pm), window manager (wm), activity manager (am), and system settings commands.

Open Terminal →

🗑️ 1-Click OEM Debloater

Safely remove pre-installed bloatware, telemetry trackers, and ad daemons on Samsung Galaxy (One UI), Xiaomi (HyperOS), OnePlus (ColorOS), and Motorola without root or Knox flags.

Search 100+ Bloatware Packages →

🔋 Battery Health & Cycle Counter

Query hardware kernel sysfs fuel gauges to inspect true battery capacity (µAh), completed 0-100% charge cycle counts, voltage, and real-time mA discharge rates.

Check Battery Cycles →

🎮 Gaming Resolution & 4:3 Studio

Customize screen density (DPI) and unlock iPad View (4:3 stretched aspect ratio) for PUBG Mobile, BGMI, and Free Fire for a wider field of view without root.

Open Gaming Studio →

Complete Directory & Educational Resources

Interactive Tools

Popular Tutorials

In-Depth Tech Blog

Trust & Legal

🔒 Local-First Security & Data Ownership

ADB Toolkit is built on zero-knowledge architecture. When connecting your Android device to our browser application via WebUSB, all cryptographic key generation (Web Crypto SubtleCrypto), transport packet encoding, and binary payload decoding occur strictly on your local computer. We do not operate remote relay servers or collect device serial numbers, shell outputs, or personal files.