From a look at the Android source code for Android (/frameworks/base/core/jni/android_net_TrafficStats.cpp), this class is pretty dumb, it has network device names hardcoded inside, and it only looks at "rmnet0" and "ppp0" , since the names of mobile devices, So, unfortunately, it will not detect network traffic in the emulator.
source share