[LG V20 Guides, News, & Discussion] TopHATTwaffle:
When using Google Play Music with AdAway, I get a ton of LogCat spam combine with high CPU usage and terrible battery life. This same issue occurred on my Note 4, but LogCats would not work for some reason on that device. Now with my V20 my LogCats work and I can see what the issue is. Every now and then I'm assuming Google Play Music tries to talk back to some server related to Google Tag Manager. I'm using the paid version of GPM if that matters.

When the issue occurs you'll get about ~800 warnings a second in LogCat until either GPM is closed, or you disable Ad Blocking in AdAway. The errors look like this:

01-12 00:57:52.597 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.599 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.599 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.601 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.601 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.608 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.608 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.611 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.611 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.613 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.613 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.615 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.615 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.617 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.617 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.620 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.620 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.622 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.622 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.625 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.625 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.627 W/GoogleTagManager(9472): Exception sending hit: ConnectException
01-12 00:57:52.627 W/GoogleTagManager(9472): Connection refused
01-12 00:57:52.629 W/GoogleTagManager(9472): Exception sending hit: ConnectException

Screenshot of LogCat

After some digging and packet captures it seems that it's trying to talk to a few different servers. After some trial and error with quite a bit of testing, I believe I have these warnings fixed without disabling AdAway (ads suck!)

My current whitelist is:

*ad.doubleclick.net
*google-analytics.com*
*google.com*
*googleadservices.com*
*googleapis.com*
*googlecode.com*
*googlesyndication.com*
*googletagmanager.com*
*googletagservices.com*

Not all of these may be needed to fix the issue. Initially the warnings stopped when I added: *googletagmanager.com* *googletagservices.com* and *googleadservices.com*. Then after a while it came back. I then added the rest of the Google domains listed and it did not stop. Lastly adding *ad.doubleclick.net fixed it and it has not come back. Be sure to not add a wild card after the domain since there are thousands of entries in the host files that begin with ad.doubleclick.net.

As of now, the spam in LogCat is gone. My battery life is better. Ads are still blocked.

I don't know if anyone else has this issue, but figured I'd share my findings.