Most phone PCB designs do not account properly for the scenario "battery gone bad leads to undervolting of components" at all, the best you're gonna get is the BMC cutting off everything when the voltage at the battery drops way too much - but that is a failsafe mechanism, the flash, memory and processor chips will have undergone brownout events before the BMC emergency shutdown hits.