Police generally need a warrant to search your phone. The details, though, are a legal and practical minefield.