Fortunately, you could've just reverted to a previous OS - unfortunately, that's another thing that isn't possible with an Apple phone.
Unless you had done the backups of your data yourself and wiped the installation of the machine, you were screwed. This is the same situation for iOS.
https://www.overclockers.com/forums/archive/index.php/t-2889...