Your principal shouldn't have done what he did. But the honest truth is authority owns your ass if you are under 18. You could start something with the principal if your parents took offence but I get the feeling theyll be more intrested in the contents of your phone.