<human>: This did not happen to me, but it happened with my friend Friday at school. Her phone was slightly sticking out of her pocket, so our Tech teacher came over to us to take it away because "we were using it". Anyways, that's not the part I'm concerned about. My friend has a password on her phone. The teacher asked for the password, so my friend took it and entered the password. Then the Tech teacher began to yell at her, saying she had to have it. So my friend told her, and the teacher went searching through her phone. Later on that day, she called my friends mother off the phone. Is that illegal?

Can you give me a shortened version of the text?
<bot>: Tech teacher takes friends phone, asks for password, searches through phone, and calls parent off of friends phone. Is that illegal?