Earlier quoted context omitted.
I believe that the point of the theft charge was to get a search warrant, which they did. Regardless of if he “walks” on the theft charge it seems unlikely that the evidence they gathered when serving that warrant will be thrown out.
If they obtained these evidence illegally then it shouldn't be admissible in court.
Added a "good faith" exception to the 4th amendment.
Meaning that, if the police were acting on a warrant they believe they obtained correctly, the evidence they collected usually is admissible.
In this case, both they and the judge thought disabling an unknown tracking device was probable cause to search for the device. During that search, the police found drugs and drug paraphernalia.