Yes, Indians tends to express more hostility towards Pakistan than China. The reasons for this are:
When colonial rule ended, British India was partitioned into three countries - India, West Pakistan and East Pakistan. This resulted in the largest displacement of humans between these countries in the 20th century, with many Hindus and Sikhs choosing to move to India while many muslims voluntary opted to move to Pakistan.
Unfortunately, during the British colonial rule, the British had deliberately flared communal tensions between Hindus, Sikhs and Muslims to keep Indians from uniting against them. This policy had created many religious fundamentalists in India and Pakistan that wanted to create a theocratic state. During partition these Muslim religious fundamentalists attacked the Hindus and Sikhs who had opted to stay in Pakistan, to force them to move to India, while Hindutva religious fundamentalists did the same against the muslims in India who desired to stay in India. All this resulted in many bloody communal riots on both sides with Hindus, Muslims and Sikhs raping, pillaging and killing people out of hatred or in self-defense. Millions of people died, were forcefully displaced, and 100's of thousands of people arrived penniless facing potential poverty in a country that was already impoverished due to British imperialism.
Partition is central to modern identity in the Indian subcontinent, as the Holocaust is to identity among Jews, branded painfully onto the regional consciousness by memories of almost unimaginable violence ... In 1941, Karachi, designated the first capital of Pakistan, was 47.6 per cent Hindu. Delhi, the capital of independent India, was one-third Muslim. By the end of the decade, almost all the Hindus of Karachi had fled, while two hundred thousand Muslims had been forced out of Delhi. The changes made in a matter of months remain indelible seventy years later. - The Great Divide - the violent legacy of Indian Partition.
India's historians assign blame for this whole tragedy - the partition and the massacre - on Muhammad Ali Jinnah, the founder of Pakistan, (and thus in general to Pakistanis) as it was under his leadership that many Muslim leaders broke away from the freedom movement under Gandhi. While India too had Hindutva religious fundamentalists, Nehru and other leaders of the Indian National Congress had managed to subvert them and form a secular nation. Indians thus tend to minimise and disregard the role of their own religious fundamentalists in this tragedy.
Territorial dispute and Indo-Pak wars
The partition of the Indian subcontinent was done hurriedly. Thus, India and Pakistan still had some unresolved disputes about their territories and boundary. Key among this was the state of Jammu and Kashmir. Long story short, as soon as they became independent, India and Pakistan fought a war due to the dispute over Jammu and Kashmir. In total, India and Pakistan have fought 4 major wars - in 1947, 1965, 1971 and 1999. So every generation of indians, since independence, has grown up amidst some war or conflict with Pakistan. Thus, the idea of Pakistan as the "enemy of India" has become entrenched in every generation.
When Pakistan couldn't militarily defeat India, and found that the west were not willing to aid them against India, Pakistan decided to weaken India by a "thousand cuts" by fostering and supporting terrorism in India. This has further continued to antagonise many Indians against them.
Pakistan sees jihad as a low cost option to bleed India. The security apparatus views terrorism as irregular warfare. Islamabad feels this is the only way to ensure some form of military parity. - Husain Haqqani, Pakistani diplomat in 2016
During the cold war between the superpowers, Pakistan allied with the US and was part of SEATO. India chose to be non-aligned and was a founder of the Non-Aligned Movement. This resulted in political hostility against India from the US in the international arena, which was partly attributed to the Pakistanis too.