I have an AT&T G4 running 5.1 that is rooted, has had xposed installed and various modifications made like apps frozen, pimp my rom, and stuff like that. I want to reset it back to stock firmware. What I want to know is how to flash the stock firmware and how safe is it? Do I need to do any prepping like gradually undoing my xposed modifications prior to flashing? I want to reset my phone to like it was out of the box and do not want to brick it. Thanks.