iPhone stuck at iTunes and Apple logo when recovering

Hi everyone!,

My iPhone:
iPhone 4 16GB CDMA

Question:
does anyone know what do to when an iphone gets stuck at error code 2 bacause i wanted to reset my device after jailbreaking an had putten it in recovery

i also just replaced my lcd and digitizer and lost some screws

Another problem i have is that the iphone only works on the usb cable, if u pull it out the phone turns off


Thank you!
moved thread to jailbreak forum...
Put ur iPhone into DFU mode and restore thru iTunes. U will lose ur jailbreak but you'll have your iPhone working again

Original thread: https://forums.imore.com/threads/iphone-stuck-at-itunes-and-apple-logo-when-recovering.259090/