Wasn't there news a few years back that Android Phones uploaded location history happening while "offline" when they finally connected to WiFi; that ended up blamed as "a bug"? OTOH law enforcement has a direct access to baseband modem anyway, so they can triangulate switched off phones with batteries inside, and if those phones have large enough capacitors, even with removed batteries. Having some competent aggregator like Google might be helpful though.