based on HTC Pyramid Source 3.0.16