Feel like you don't understand.
The only thing safe from a attack helicopter is a bunker/base. You need a lot of guns/ and eyes. Everything else it can dominate from the sky, so the air superiority is key. Best bet at shooting down a helicopter is not SAMs or even shoulder mounted manpads, its to have air denial via other birds like F-16s. The helecopter is support unit, meaning you can take it close to the battlefield and as far as you control the skies you yes, useless against america. Unless you can achieve air denial. So for India and attack helecopter can be an offensive weapon whom has the greater air superiority vs the PAF.
Suppose India goes to war against China.
PLAAF have very few bases in Tibet, high altitudes restrict payload, increase fuel consumption etc..
IAF has the number advantage in this arena and time/distance to target. They will have air superiority closer to the battlefield or over it vis the PLAAF. So the PLA would can not be in filled so close to the objective. Meaning a longer trek, by road to the battlefield. This also means not only are the Indian soldiers less tired, they have the ability to do emergency evac and other logistical support that can be done via helicopters or air drops.
Now the PLA knew this, which is why in decades over time, they built extensive tunnels and bunkers close to the Indian border in the middle of nowhere. Best crazy bunker/trenches you can google earth. Point being these positions are what the helicopters can't get too near because over time the PLA stockpiled stashes of small arms like manpads and heavy guns to mortars and shells. these are rather big bunkers and the Indian side doesn't have an equivalents to this. But it is only a small deterrence.
The same is true for the Indo Pak border, like the PLA the PA would be using its helicopters for infills and support and engage in attacks when the enemy is cut off or gets to far ahead of their support. Ie they will operate were they have at least some air cover.