How do I set the IMEI number to automatically randomly change every time I connect to a cellular network?
Android 9 introduced a feature that was a huge boon to the privacy of Android users: WiFi MAC Address Randomization.
Starting in Android 8.0, Android devices use randomized MAC addresses when probing for new networks while not currently associated with a network. In Android 9, you can enable a developer option (it's disabled by default) to cause the device to use a randomized MAC address when connecting to a Wi-Fi network.
In Android 10, MAC randomization is enabled by default for client mode, SoftAp, and Wi-Fi Direct.
MAC randomization prevents listeners from using MAC addresses to build a history of device activity, thus increasing user privacy.
As stated, this feature is enabled by default in >= Android 10. So now when you connect to a WiFi network, the owner of the WiFi networks are less able to track your activity between networks.
MAC addresses are the unique identifier of the hardware device that connects to a WiFi network.
IMEI numbers are are the unique identifier of the hardware device that connects to a cellular network.
While this change in Android 9/10 greatly increases a user's privacy on WiFi networks (ie MAC randomization), I've seen no such improvements to increase a user's privacy on cellular networks (ie IMEI randomization).
IMEI randomization is especially important in-light of recent research discovering that loads of PII (including IMEI numbers) are being uploaded to both Google and Apple on average every 4.5 minutes
Abstract — We investigate what data iOS on an iPhone shares with Apple and what data Google Android on a Pixel phone shares with Google. We find that even when minimally configured and the handset is idle both iOS and Google Android share data with Apple/Google on average every 4.5 mins. The phone IMEI, hardware serial number, SIM serial number and IMSI, handset phone number etc are shared with Apple and Google. Both iOS and Google Android transmit telemetry, despite the user explicitly opting out of this. When a SIM is inserted both iOS and Google Android send details to Apple/Google. iOS sends the MAC addresses of nearby devices, e.g. other handsets and the home gateway, to Apple together with their GPS location. Users have no opt out from this and currently there are few, if any, realistic options for preventing this data sharing.
Similar to the WiFi MAC randomization feature, how can I setup IMEI randomization? If this is not currently possible, when is it being planned to be added to AOSP?