An electronic device (100;201;300;400), comprising: a power management circuit configured to supply power to the electronic device; a first battery (301;480) electrically connected with a power input port of the power management circuit; a second battery (302;490) electrically connected with the power input port; a first charging circuit (320;420) configured to charge the first battery; a second charging circuit (330;430) configured to charge the second battery; a first current control circuit electrically connected between the first charging circuit and the first battery, and configured to control a first charging current supplied from the first charging circuit to the first battery and a first leakage current due to a voltage difference between the first battery and the second battery; a second current control circuit electrically connected between the second charging circuit and the second battery, and configured to control a second charging current supplied from the second charging circuit to the second battery and the first leakage current; a first power supply control circuit electrically connected between the first charging circuit and the power management circuit, and configured to control a second leakage current due to the voltage difference between the first battery and the second battery; a second power supply control circuit electrically connected between the second charging circuit and the power management circuit, and configured to control the second leakage current; and a processor connected with the first charging circuit, the second charging circuit, the first power supply control circuit, and the second power supply control circuit, and configured to: upon detecting a connection of an external power supply device, comparing a power level of the first battery and a power level of the second battery level; and turn off the first power supply control circuit if the power level of the first battery is less than the power level of the second battery, and turn off the second power supply control circuit if the power level of the first battery is greater than the power level of the second battery. a power management circuit configured to supply power to the electronic device; a first battery (301;480) electrically connected with a power input port of the power management circuit; a second battery (302;490) electrically connected with the power input port; a first charging circuit (320;420) configured to charge the first battery; a second charging circuit (330;430) configured to charge the second battery; a first current control circuit electrically connected between the first charging circuit and the first battery, and configured to control a first charging current supplied from the first charging circuit to the first battery and a first leakage current due to a voltage difference between the first battery and the second battery; a second current control circuit electrically connected between the second charging circuit and the second battery, and configured to control a second charging current supplied from the second charging circuit to the second battery and the first leakage current; a first power supply control circuit electrically connected between the first charging circuit and the power management circuit, and configured to control a second leakage current due to the voltage difference between the first battery and the second battery; a second power supply control circuit electrically connected between the second charging circuit and the power management circuit, and configured to control the second leakage current; and a processor connected with the first charging circuit, the second charging circuit, the first power supply control circuit, and the second power supply control circuit, and configured to: upon detecting a connection of an external power supply device, comparing a power level of the first battery and a power level of the second battery level; and turn off the first power supply control circuit if the power level of the first battery is less than the power level of the second battery, and turn off the second power supply control circuit if the power level of the first battery is greater than the power level of the second battery. upon detecting a connection of an external power supply device, comparing a power level of the first battery and a power level of the second battery level; and turn off the first power supply control circuit if the power level of the first battery is less than the power level of the second battery, and turn off the second power supply control circuit if the power level of the first battery is greater than the power level of the second battery.