More interesting is to look at what Google did for Nexus Phones with the same issue.
>If you're among those affected, your phone will randomly shut down and completely die, even though your battery indicator might have said you had plenty of juice left. It's not a simple system crash, because your phone will stay dead until you connect it to a charger
No, it was the fact that Apple fixed people's out of warranty phone so that it wouldn't suddenly go dead that suggests they fixed it.
Google, on the other hand, lost it's court case after refusing to fix a known defect that had Nexus phones die while reporting they had more than a 50% charge remaining, and staying dead until you connected them to a charger.
>Nexus 6P owners eligible for up to $400 from Huawei and Google in class action settlement
>If you're among those affected, your phone will randomly shut down and completely die, even though your battery indicator might have said you had plenty of juice left. It's not a simple system crash, because your phone will stay dead until you connect it to a charger
https://android.gadgethacks.com/news/nexus-6p-battery-random...
Instead of fixing the issue, Google's solution was to tell you to buy a new phone.