With ideas like this, it may often be just as dangerous to publish them in the first place. Governments are now aware of it (including Apple's CSAM tech). How long until they start mandating this from browser/phone makers?
When you buy it, it's your hardware, not theirs.
You can take apart the hardware and do anything you want with it. Replace any of chips, use any of the components to make your own console, etc. It’s not Sony or Microsofts fault you don’t have the technical chops for it.
The principal at work here is that if you own it, you can do what you want with it.
It is also Sony and Microsoft's fault if they go after you legally for doing what you want with hardware you bought.