Hi,
I have frequently noticed that my turned off phone powers on automatically when I connect a usb charger, even when the battery is fully depleted.
This situation almost caused my empty phone to become inoperable after an update, as it initiated the app optimization process and then shut down due to inadequate power from the USB charger. ( I did not use a fast-charging PD charger) .
This led to a boot loop, but fortunately, the device was able to recover after a few restarts.
How can I prevent my powered-off phone from turning on automatically when I plug in a USB charger?
Maybe its a good idea to prevent the app optimization when the battery is too low, or at least give a warning?