i have no idea how to flash a smart phone but i know how to debrand 1,
first back-up your gdfs this is very important,
xs++3.1 should give you the option to change your cda via gdfs script so change your cda number to a (GENERIC) unbranded one,
now update the phone with seus, seus will safely flash the lastest unbranded firmware to your phone.