Is that legal for professor checking student's cell phone during the exam? (because she think you are cheating but actually the student is not)
Probably not, but if you refuse she may fail you. You choose.