For random freezes..
Try this...
In build prop
Change this line
Debug.composition.type=dyn
To
Debug.composition.type=gpu
I had that promblem in cm10.1