Working notes on ADB: ADB path, ADB over WiFi, Freeze background, logcat, ADB notes, and Run to debug, and related topics.
Topics
ADB path
Default adb locations in Android SDK platform-tools on Windows and Mac.
ADB over WiFi
Put adbd on TCP port 5555, connect over WiFi, and switch back to USB.
Freeze background
Set RUN_IN_BACKGROUND appops to ignore or allow for a package.
logcat
Filter adb logcat, tag logs with Log.d, and show one tag exclusively with -s.
ADB notes
Push a file to device paths and set a property with adb shell setprop.
Run to debug
Start an activity in debug wait with am start -D.
WiFi debugging
Enable Wireless debugging, pair with a code, then adb connect.
Updated:
2026 Aug 19

