Users & Profiles
Android 5.0+
Risk: READ_ONLY
Get Current User ID
Returns the numerical user ID of the active foreground profile (0 for primary owner).
Command Syntax
adb shell am get-current-user
Generic Syntax:
am get-current-user
Real-World Usage Examples
Execute command
Returns the numerical user ID of the active foreground profile (0 for primary owner).
adb shell am get-current-user