Well China also knows how to deal with India.
No matter what China knows about terror groups
important thing is that China knows Pakistani people have nothing to do with the terrorists
thats why China and Pakistan always have had cordial relationship.