China probably knew about the backdoors, but their own domestic alternatives were so far behind they didn't have a choice. Grasping at straws here, but that could be a hand-wavy explanation why China is all of the sudden pro open source, when traditionally GitHub has been a thorn in their side.
Everything above is speculation. The only thing I have clear precedent for is interception of shipments, which has made for some great reading.