ADBShellSafe
adb shell whoami
Print active shell user UID / role
What It Does
Displays the user ID name running the current ADB shell process (e.g. shell, root, or u0_a...).
Command Syntax
Terminal
$
adb shell whoamiUsage Examples
$
adb shell whoamiPrerequisites & Requirements
- Device connected
Related Commands
Found an error or missing flag for
adb shell whoami?Submit a correction or request additional examples on GitHub.
Having issue? Contact @mkr_infinity
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.