You can do this with soft power.
Decare that the government will only buy tech with publicly available data sheets.
People are then free to do what they want, but going counter to openness would cost them a considerable market.