I get your point, but I think what makes food addiction somewhat easier to manage is that you can pretty easily find "substitution" products which help a lot.
I used to eat a lot of junk food and got pretty fat after an injury which also had me drop my activity level. It's not easy, but with some will power, it's manageable to start eating other things, which help lessen the cravings for the junk. After a few months, the cravings disappeared completely.
Don't know if there's an equivalent for smoking / heroin.