China has a long and well-documented history of IP theft. So the doubt is legitimate.
And they have to contribute to Linux and other open source projects in order to have an Android-compatible operating system. At some point you need to either fix bugs or add features to support your own hardware. But this shouldn't be seen as altruism.