This is the relevant part of the schematic of an 18650 battery charger and boost converter (to 5V) module:
And here's the module:
Coming from the USB power pin, there's a series Schottky diode and a very low value resistor.
The resistor is found in the TP4056 datasheet typical application schematic, and I think I understand why it's there. The TP4056 is a linear part, and when the battery is mostly discharged, the charger will be supplying 600mA (in this case), and the voltage drop will be at its greatest. While the TP4056 has a built-in current reduction if the die gets too hot, the resistor can take part the voltage drop, and part of the heat, and allow the charger to continue delivering 600mA.
But I don't understand why the diode is there. Of course it would also drop the voltage, but if that's its only purpose, the value of the resistor could have been adjusted to accomplish the same thing - without adding another part. If it's there as a reverse polarity protection, I would just say that as a practical matter you aren't going to get a polarity reversal from a USB port. Of course the 18650 being charged could be inserted backwards, I don't see how that would affect the USB port.
Can anyone suggest why the diode is there, or if they've seen this in other charger circuits? I ask because I'm planning to modify the module to add a load sharing circuit, and the diode would come in handy for that if it's not really needed in its original position. Thanks very much.