Well, that gets into the "fruit of the poisonous tree" doctrine, but we're not doing a full criminal procedure law school course today . . .
Ironically, I heard more than one detective say that when they "dumped" a phone like that, they rarely found much useful evidence. There's just too much information on any given cell phone to be able to go through it all. So, in the end, their fishing expeditions end up being a waste of time and resources.
"Fruit of the poisonous tree" simply means the entire chain, the initial evidence that was improperly acquired and anything that was discovered based upon it, gets thrown out. If a warrant was issued to dump the full contents of your phone, and they used location metadata from your photo library to start determining other locations to search and got warrants for those, then that entire chain of evidence gets thrown out if the court finds the initial warrant for your phone was invalid.
exceptions: unless it would have gotten found anyway, regardless (inevitable discovery); or the cops, against whom the doctrine of poisonous tree is held in order to keep them honest, just made an honest mistake.