title: Flushing the Android Bluetooth name cache
body: <p>I'm trying to write some code which does Bluetooth device discovery.</p>
  
  <p>Android keeps a cache of the friendly names for Bluetooth devices: calling <code>BluetoothDevice.getName()</code> returns the value in the cache, or <code>null</code> if the name is not cached yet.</p>
  
  <p>I'm trying to test the code path for when no name is available. Unfortunately this is really hard, as the cache is persistent. Once Android has seen a device once, it's cached and I never see Android try to look up the name again.</p>
  
  <p>Is there any way to flush the name cache to force Android to refetch the names --- and, most importantly, report that the name is unavailable while doing so?</p>