With StrictMode enabled I just started getting this exception:
java.lang.Throwable: Untagged socket detected; use TrafficStats.setThreadSocketTag() to tra
if (BuildConfig.DEBUG) {
StrictMode.setThreadPolicy(
StrictMode.ThreadPolicy.Builder()
.detectDiskReads()
.detectDiskWrites()
.detectNetwork() // or .detectAll() for all detectable problems
.detectAll() // .penaltyDeath()
.penaltyLog()
.build()
)
StrictMode.setVmPolicy(
VmPolicy.Builder()
.detectLeakedSqlLiteObjects()
.detectLeakedClosableObjects()
.detectAll()
.penaltyLog() // .penaltyDeath()
.build()
)
}