Kindly go to China history thread and read about the foundations of Sino-Pak releations. The Gandhara civilisation has been trading with China for 4000+ years. The Sino-Islamic releations go as far as the Tang dynasty. Unlike Indian, Muslims were never confronted violently in China.
This is typical indian assumption that Pak-USA, Sino-Pak, Turk-Pak and Pak-XXX alliances are all geared towarding countering India.
The sino-pak releation did not start due to India, it was in existence from first day of independence. And yes China was also in the US camp along with PAK with support against Soviet union and arming the mujahideen. Only loser india teamed with ailing soviet union.
Pakistans did not give sh1t about tibetian issue because we favoured fostering better releations with China by keeping out of their internal matters.
Indian-Soviet alliance = failed...soviet union butchered in pieces
India-Sino releations = fail
USA-India releations = at the moment very good due to trade potential.