So I was messing around with the nearby share feature that google launched last year and I noticed that if you connect your Gmail and have a profile picture , when you try the nearby share feature the other person can see your profile picture. How is this possible if you haven't made a connection between you and the other person yet? Does google save the MAC address of the user and then pulls it off a server or something? I'm pretty confused. I found this post (How is Google's nearby share implemented? ) that is broadly talking about the implementation but only thing mentioned is that they tried to bring more of an identity to this feature. So how does the contact info show without connecting? Is it that when someone is on your contact list google has just saved their device name or MAC address and that's how it knows what profile pic and Gmail to use/show on the nearby devices?
Asked
Active
Viewed 155 times
1 Answers
0
Each device generates a certificate (containing the device's name, photo, etc) and uploads them to a Google server. The device then uploads a list of contacts who are allowed to download that certificate.
Devices periodically download certificates they have access to. Other than the start/end timestamp, the data in the certificate is encrypted. You need to see the decryption key over Bluetooth in order to parse the certificate, after which you can now attach a name to the Bluetooth advertisement you just saw.

Xlythe
- 1,958
- 1
- 8
- 12
-
So the certificate doesn't include a MAC address, cause i would think it needed that to identify the exact device? Basically the key is sent via Bluetooth without a visible connection( interaction or prompt before the main connection) by the other users and then pulls the data from a server to show the photo, name, etc? – Chris_Gr Nov 18 '21 at 20:28
-
The BLE advertisement encodes the decryption key as part of the service data. There is also a MAC address in the encoded certificate, but it's optional since you can connect to the device via BLE L2CAP or GATT. – Xlythe Nov 19 '21 at 20:39