Is it legal for your boss to look through your cell phone?
Not if it's your personal one. If it's the company phone he has the right.
Cell phone spying technology is legal to use. However, if privacy laws are broken while using the technology, the user of the spying technology can be prosecuted. It is illegal to spy on a cell phone unless you both own the cell phone and tell the person carrying the phone that it will be monitored.