A full flash should work, any lose cables or damage would have been noticed when the phone was taken apart, heres a guide
XS++ 3.1 Guide-Flashing,Customizing,Recovering - Top Sony Forums