How to enable adb tracing

I am interested in viewing packages sent between the adb client and adbd via usb. I tried to set the environment variable ADB_TRACE to 1. But when I run the "adb shell", although the shell appears, I do not see any traces. Any help would be appreciated thanks

+4
source share
2 answers

Try adb logcat . This will show you the magazine.

+4
source

The below patch should help you. Additional information is available at https://events.linuxfoundation.org/images/stories/pdf/lf_abs12_kobayashi.pdf

 diff --git a/adb/adb.hb/adb/adb.h index 622ca70..ecf9597 100644 --- a/adb/adb.h +++ b/adb/adb.h @@ -379,7 +379,7 @@ void adb_qemu_trace(const char* fmt, ...); extern unsigned char adb_trace_output_count; void adb_trace_init(void); -# define ADB_TRACING ((adb_trace_mask & (1 << TRACE_TAG)) != 0) +# define ADB_TRACING 1//((adb_trace_mask & (1 << TRACE_TAG)) != 0) /* you must define TRACE_TAG before using this macro */ # define D(...) \ @@ -415,7 +415,7 @@ void adb_qemu_trace(const char* fmt, ...); #endif -#if !DEBUG_PACKETS +#if 1//!DEBUG_PACKETS #define print_packet(tag,p) do {} while (0) #endif 
+1
source

All Articles