With this picture tutorial you can mod your USB cable to not only flash, but also charge your phone while it is connected.

Note: You need to click on the images in order to enlarge them.

Motorola E398

Motorola E398
This is how the cable looks like (before modding)

Motorola E398
Open it up and get all wires out

Motorola E398
Unpack step 1

Motorola E398
Unpack step 2

Motorola E398
Remove the protection

Motorola E398
Check out the pin scheme by clicking on the picture

Motorola E398
Scratch the panel on the back

Motorola E398
Solder 22Komh resistor end on pin 2 and the second on the scratched place (ground)

Motorola E398
Put back the protector

Motorola E398
Put the wires trough the hole

Motorola E398
Pack

Motorola E398
Make a hole on the plastic cover, so the wire can run out trough it

Motorola E398
Pack

Motorola E398
Ready to connect a switch

Motorola E398
You are ready. You have ON/OFF for USB charger :)

Motorola E398
Proof 1

Motorola E398
Proof 2

Motorola E398
Proof 3