The simple solution is that all such devices must be submitted to a central government database and all blue prints, source code etc. will be released into the public domain is the company no longer supports the device or closes down.
Edit: And definitely don't suggest adding a government SQL database or you will trigger him. The government doesn't use SQL.
So, what do we do first? Propose a political solution.
We all know how this is going to end, there have been more than enough cyberpunk videogames and novels for us all to read.