spy hack with GcM (google cloud mms push)

An ex friend of mine has hacked my phone using the info in title of this thread. He didnt need physical access to phone either. Sent a pic with code in it. There is a google video showing a guy hack someone in 7 minutes flat using this. As usual i cant find anything on how to get rid of it. Data reset does not help…HELP…