title: Application name in data usage screen does not match Application Label
body: <p>I am fetching data usage from <code>TrafficStats.getUidRxBytes(uid)</code> and <code>TrafficStats.getUidTxBytes(uid)</code> and trying to build a report similar to the data usage screen present on stock android Settings.</p>
  
  <p>When mapping back app's <code>uid</code> to names is where the confusion starts. <code>uid</code>s can be shared between apps and those apps may have different Application Labels. All that is understandable until you look at that screen and realize that some apps show a label that is none of the labels from the apps related to the <code>uid</code> but something else. <strong>Where is this info coming from?</strong></p>
  
  <p>Example, there are those 2 apps for UID 10015 with their following labels:</p>
  
  <ul>
  <li>UID: 10015 </li>
  <li>Package: com.google.android.gms</li>
  <li>UID Name: com.google.uid.shared:10015 (<code>packageManager.getNameForUid(appInfo.uid)</code>)</li>
  <li>Application Label: Google Play Services (<code>packageManager.getApplicationLabel(appInfo)</code>)</li>
  </ul>
  
  <p><br></p>
  
  <ul>
  <li>UID: 10015,</li>
  <li>Package: com.google.android.gsf</li>
  <li>UID Name: com.google.uid.shared:10015</li>
  <li>Application Label: Google Services Framework</li>
  </ul>
  
  <p>... and yet on the data usage screen I only see <code>Google Services</code> which does not match either.</p>