China has one fear , if Pakistan gets too strong he may get horny and tempted to mount India.
India and Pakistan have vastly different capacities, which cannot support your idea. Also, do you want to deal with a group of Hindus?
We can maintain our viewpoint, but this viewpoint has no evidence to support it.
What can be confirmed is: China firmly supports Pakistan in defending its national sovereignty, independence, and territorial integrity, and firmly supports Pakistan's efforts to maintain national security, stability, and development prosperity.
The Kashmir issue is a historical dispute and should be properly resolved through peaceful means according to the United Nations Charter, relevant UN Security Council resolutions, and related bilateral agreements. These were UN Resolutions 39 and 47 in 1948. At that time, the Pakistani army was at a disadvantage, and these resolutions were favorable to Pakistan. So for a long period, Pakistan needed to passively defend against Indian aggression.
China does not want to see large-scale wars in the region now. If a war breaks out, it cannot be Pakistan that initiates the attack. First, this would violate UN resolutions. Second, India has over 1.4 billion people. War would create a large number of refugees. As a permanent member of the UN Security Council, China would have to carry out humanitarian aid. Do you know how much it costs to assist so many refugees? China assisted Cuba with 90,000 tons of rice, but each Cuban only received 8.2 kilograms. A large number of refugees smuggling into other countries would bring chaos to Asian countries; we can look at the European countries that accepted refugees. Pakistan and India are both nuclear-armed countries, with a certain probability of causing nuclear war. If Pakistan does not gain an advantage, China would need to support Pakistan, which would allow China's enemies to see an opportunity. The United States has always hoped that India would drag China into a long-term war, just like the Russia-Ukraine conflict.
Pakistan needs to wait for an opportunity to resolve territorial issues. When China resolves the Taiwan issue, China, North Korea, and multinational forces led by the United States will go to war. Pakistan, on the other hand, needs to cooperate with the Western Military Region to confront the Indian army, and Pakistan can thoroughly resolve its border issues.