Remix.run Logo
▲ seba_dos1 13 minutes ago

Nothing mysterious in there. When the battery runs out of power completely, its PD controller ends up advertising being a sink so the "dead battery charging" can work. The phone notices it and starts feeding it power, as it should. A well-designed power bank would cut the power out from the phone before the power for PD IC goes down too and would hold off with advertising being a sink until the cable is unplugged, but that requires a bit more consideration for the particular use-case than just sticking a few generic ICs together and hoping for the best.