Wait a minute now, this is just cargo cult security advice. Yes, MD5 has been broken since the 1990s and now is considered useless for anything other than file integrity checks. On the other hand, SHA1 has had theoretical breaks but it's not actively exploited in the wild and few, if any, of the attacks include being able to choose the substitution "text" at all, let alone adding a trojan.
The advice has been "don't use SHA1 in new projects" not "immediately eliminate all existing usage of SHA1." Yes, Google and others are getting rid of SHA1 but it's because of potential future risk rather than existing risk.
If the hash is intended for anything other than a simple file integrity check, it should be *at least* SHA-256 for future proofing. If not, md5 is fine to check for bit-flipping. Not that we really see that anymore.