Google Play services likely does this too, so to actually protect yourself from this spyware you will need to use either microG or containerized Google Play services like how GrapheneOS has implemented.
If you start with a xiaomi, then a motorola and finally end with a custom rom grapheneos smartphone, your number of trackers and bloatware will have dropped by more than 96%
No OS gonna protect you from apps spying you. The solution is to not use the said apps.
Google Play services likely does this too, so to actually protect yourself from this spyware you will need to use either microG or containerized Google Play services like how GrapheneOS has implemented.
If you start with a xiaomi, then a motorola and finally end with a custom rom grapheneos smartphone, your number of trackers and bloatware will have dropped by more than 96%
GrapheneOS is not magic.