- Edited
On stock android your imei is sent to google when you connect to the internet (before you sign in to a google account).
On grapheneos sandboxed google play does not have access to your imei. If you use e-sim a privileged app google has access to your imei.
If you use google fi, google has access to your imei.
https://grapheneos.org/faq#hardware-identifiers