Will not work, period. you can erase all content and settings without restoring iOS, also do not upgrade your system.
open