Annotated. Each entry says why you would open it, so you can pick the right one under time
pressure.
A command reference has an unusual failure mode: the commands are easy to find and easy to run, so
the temptation is to skip the documentation entirely. The cost shows up later, in a report. adb
shell runs as the shell user, not as an app — so a content query that succeeds from your
terminal proves nothing about whether a third-party app could do the same. Half the sources below
exist to keep you from making that class of mistake.
Useful for testing offline paths and certificate-validation fallbacks
setprop
Sets a system property
Only unrestricted properties, and only from a root shell. Reads bypass SELinux; writes do not — see 06-Android-Architecture
Record every state change. A finding that depends on a setting you changed and forgot is a
finding you will retract. The session log in scripts/session.sh exists
for this reason.
Where these commands are actually implemented. Read on cs.android.com.
Reach for these when a command's output is ambiguous and the documentation does not say.
Read at least one of these before writing a provider or component finding. The shell user
(UID 2000) holds privileges no third-party app has, so reachability from adb shell is not
reachability from an app.