I'm not so good at this. Android Sensor app reports gravity and acceleration sensors like dead. That would put cyanogen out of the question, isn't it? I wouldn't go through a flashing procedure if these tests are definitely pointing to a hardware issue.
Posted via Android Central App