Most code is copied and pasted from adb.h. Any file can just include it to enable tracing. Removed some duplications. Change-Id: Ie1ed9e9edbf92158aac84669fbcbf7dc85fe2cf0