First of all, we don't need China's involvement in an armed conflict with India. We are handling the situation perfectly well at LoC where more Indian soldiers are being killed than Pakistanis.
What Pakistan needs from China in case of war with India, is only the assistance in nullifying the blockade of Pakistani ports because we will need extra supply of oil from KSA during the conflict. Pakistan is working with Chinese navy to ensure this.
http://www.hindustantimes.com/world...histan-port/story-CvVthH3ZKLyvKYUxiMdHiM.html
China can also supply arms to Pakistan if the war prolongs. That is what we want and China will do it happily.
Both India and Pakistan cannot win a short 2-3 months war. LoC will not change much, few kilometers here and there and that's it. International borders cannot change. In a prolonged war, Pakistan is securing itself by:
1 - Supporting Kashmiris who will create a tough resistance in Indian Occupied Kashmir
2 - Securing sea routes, as noted above.
3 - Maintaining minimum deterrence capability that will ensure that the LoC doesn't change.
Pakistan doesn't have much to lose in a short or a long war with India. Our FDI is still low and foreigners will not lose too much in Pakistan. In India, the situation will be quite different. That's why when India made tall claims of conducting surgical strikes, Indian stock markets couldn't handle the situation. Imagine, there was no war, and the way markets crashed in India shows the insecurity of investors, specially foreign investors in India. Pakistani stock markets weren't bothered too much by Uri attack or the surgical strikes drama. In a full scale conflict, 75-100 missile hits on major commercial centers in India will hurt India so much that it will push India back to 90s era when all this economic activity started.
War will not go nuclear. India has a 2:1 advantage in conventional strength. In an armed conflict, China will only mobilize its Army in the south, where India and China have border conflicts, and this will force India to station a large force on that border as well. Technically, China will not be involved, however, this will be the biggest help to just troll Indians to force them to believe that China may attack to get the occupied regions of Kashmir back from India, which are rightfully Chinese. Effectively, this move of China will leave India with 1.25:1 advantage against Pakistan that is simply not enough against a professional Army and India knows this.
Now there is a 1% chance that things do not turn out for Pakistan as planned and Pakistan's sea route is blocked, and we start losing territory in a prolonged conflict of a couple of years, Pakistan will not hesitate to use its tactical nuclear weapons, inside its own borders to inflict maximum damage on Indians who have come significantly inside Pakistan. In case this doesn't change the scenario (that is highly unlikely), Pakistan will attack India with nuclear. But war reaching that stage carries only 0.001% possibility. In that scenario, both countries will suffer so much that they will have to start fresh from 1900.
India knows every bit of what I have mentioned. This is not my analysis. It's an analysis of on-duty and retired Pakistan Army officers, who also say that the same thoughts are shared by our Indian counterparts. If any Indian member has access to any Indian military strategist, he should ask him about the future conflict.
Indian Army fanboys, things are not quite the same what you are being told by your government and media. If India had the capability of overcoming Pakistan, it would have already done in late 2000s (after fake mumbai attacks). That was the best opportunity for India as Pakistan was fully involved with Indian sponsored Baloch separatists and TTP extremists.
That said, both countries will continue with their proxy war in Balochistan and Kashmir. This is the only war that is currently affordable.