how can I change the contents of /proc/product_name_extra?
/proc isn't a real filesystem, so the 'files' in it can't be changed by normal means. Rather, it gives file-like access to the system state. The only way to change what it reports is to actually change the system: in this case, that means flashing your device with an engineering ROM instead of a production ROM.