My application requires to change the device name as the identification of the device. However, we found the changing the device name might not be detected by the Android App because the Android phone seems to cache the device name for some performance reasons. So we need to change the device MAC too so the Android App can correctly re-read the new device name.
This seems work okay but we then realize this breaks the DFU function. DFU uses the original(default) MAC address plus one to recognize the device among reboot. But, since we use the custom MAC for the device, the Android DFU library failed to find the device after the device reboot to DFU mode.
So, any suggestion for above issue? or any guideline I can read for reference?
Ray