I have a Galaxy S2 i9100g with CM10.1 release. Everything is peachy except that the USB port seems to be going -- most of the time I can't charge or connect to a PC.
I'd like to send it in for warranty repairs, but I figure I should put it back to factory before I do so. Normally I'd find a "stock" image and flash it with Odin or something, but I wouldn't trust a firmware update to complete successfully over the wire with this wonky connection.
(Before you ask: this is definitely not a custom firmware problem; it won't even charge properly when turned off, which is before any custom ROM / bootloader even starts.)
Can I somehow flash back to factory via recovery? If so, can I then re-flash back to CM10.1 (in the event I can't get it repaired for some reason), without using the USB connection?