system
Given the following post, respond as if you're commenting on Reddit:
human
When I use a counterfeit Apple charger on my iPhone it says "not supported" and won't charge. Can my iPhone actually block the power it's receiving from the charging cord? How does it do it?

So let me explain myself. My understanding is that when I plug my cellphone charging, energy is "traveling" from the electrical outlet to my phone. Apple created all these software locks to avoid people from getting counterfeit chargers; however, can a software block the physical phenomenon of charging a cellphone?
gpt
Your phone can turn off the flow of electricity from the charge port to the battery just like the millions of other transistors inside can shut off flow of current to represent a '0'. In their simplest form, a transistor acts like an electronic valve. There isn't a direct wire. In fact you couldn't use a direct wire, it would damage the battery to simply connect it to a constant 5 volts. Even when charging normally, the circuits inside the phone are constantly varying the voltage and current flow to the battery so that it charges most effectively without wearing out.