To the best of my understanding, the US is no friend of Pakistan, indeed it cannot be and is actually the greatest external threat to Pakistan -- a threat that the leadership of the army thinks it can discount.
Don't get me wrong, I'm not suggesting that it's a good thing, on the contrary, it's sad and dangerous.
There are, it seems to me, two ways for Pakistan to deal with the threat emanating from the US, one is to capitulate and become US puppet, alternately if Pakistan wants to be free, it must reform it's political system such that it's politicians are no longer able to threaten the dismemberment of Pakistan based on ethnic and linguistic, religious basis. Besides her continual political weakness, the unwillingness to acknowledge reality of experience over ideology, continues to ensure that the Pakistan economy can never live up to it's true potential.
In all these problems, the US has not in the last 60 years, been a sincere friend, it can talk the talk, it CANNOT walk the walk.