nic-delhi / AarogyaSetu_Android

Aarogya Setu Android app native code
https://www.aarogyasetu.gov.in/
Other
2.88k stars 1.85k forks source link

why the device.getAddress (MAC address) is not saved in db #523

Closed 16Abhishek closed 3 years ago

16Abhishek commented 3 years ago

why the device.getAddress (MAC address) is not saved in db? how to get correct case if both phones have same deviceName()

plz help me to clear my concept. thank you

16Abhishek commented 3 years ago

After some R&D on bluetooth , got to know that MAC randomization is enabled by default for client mode from Android 8 . So there is no use of getting MAC address to trace / detect person who is having app installed . One way to this is create a unique id and set as bluetooth name and for every near by device scan check for device.getName . Its working for my requirement.

Please correct me if my assumption is wrong . Thanks to ArogyaSetu SourceCode