Under California law, school officials cannot search your phone, tablet, or laptop unless they have a search warrant, there is a legitimate emergency (like a bomb threat), or you say it's OK. No snooping through your photos or Facebook feed to see who you dated over the summer.
via "KNOW YOUR RIGHTS: YOUR CELL PHONE BELONGS TO YOU, NOT YOUR SCHOOL" - https://www.aclusocal.org/en/news/know-your-rights-your-cell-phone-belongs-you-not-your-school