If something has gone wrong and you have a Nandroid backup already, thankfully you can fix it and today’s tutorial will show you how to restore said back on the HTC One M9.
Just like I said yesterday, mistakes can happen and they might be from something we did my mistake or they might be from something one of the community developers made. Either way, you should always create a backup before you install something as powerful as a custom ROM, a custom kernel or even an application that requires root access. Giving an application root access gives it a lot of power and they can make some changes on your phone that might not work well with the rest of the apps you have installed.
Either way, even if you can’t boot up into Android you will be able to restore from your HTC One M9 Nandroid backup and today I’m going to show you how that is done.
Requirements
In order to restore from a previously created custom recovery backup, you’re going to need a few things ahead of time. Naturally, if you’re wanting to restore from a backup from a custom recovery, you’re going to have to have a custom recovery installed on the HTC One M9. Beyond that, you’re going to have to have a previously created Nandroid backup on the HTC One M9 too. If you have both of those already done, only then should you proceed with this tutorial. Failing to make sure you already have a backup on file could result in you having to perform a factory reset on the HTC One M9 in order to get back into Android.
HTC One M9 Restore Nandroid Backup
- Boot the HTC One M9 into Recovery Mode
- Tap on the ‘Wipe’ Option
- Then Tap on the ‘Advanced Wipe’ Option
- From Here, Make Sure the Following Partitions are Checked. . .
- Dalvik Cache, System, Data, Cache
- Double Check to Make Sure the ‘Internal Storage’ Partition is NOT Checked
- When Ready, Swipe the Blue Arrow at the Bottom, All the Way to the Right
- Wait Until the Selected Partitions Have Been Wiped
- When Done, Tap on the Home Button at the Bottom of the Screen
- Then Tap on the ‘Restore’ Option
- Tap on the Nandroid Backup You Want to Restore From
- Make Sure All Available Partitions are Checked
- When Ready, Swipe the Blue Arrow at the Bottom, All the Way to the Right
- Wait Until the Restore Process has Completed
- When Finished, Tap on the ‘Wipe Cache’ Option
- Lastly, Tap on the ‘Reboot’ Option to Boot into Android
Explanation
Naturally, to restore a Nandroid backup we are going to have to boot the HTC One M9 into recovery mode. Once there, you’ll want to tap on the ‘Wipe’ option from the main menu. The reason we want to do this is so that we have a clean slate to work with. After tapping on the Wipe button, go ahead and tap on the ‘Advanced Wipe’ button. From here you should see a list of partitions and you’re going to want to select only a few of them. The partitions you want to select are the Dalvik Cache, System, Data and Cache partitions. Again, make sure that the ‘Internal Storage’ option is NOT checked. Once you are ready to proceed, go ahead and swipe the blue arrow at the bottom all the way to the right.
After those partitions have been wiped clean, then you can press the Home button so that you are taken back to the TWRP main menu. From here, we can go ahead and tap on the ‘Restore’ option and you should be shown a previously saved list of Nandroid backups. If you gave them custom names like I suggested in the tutorial yesterday, then you’ll easily be able to recognize which one is which and which one you want to restore from. Tapping on the backup that you want to restore from will bring up a screen asking you if you want to proceed. Make sure all of the available partitions are highlighted here and then swipe the blue arrow at the bottom again.
This will start the restore process and when it is done you are given the option to reboot or wipe the cache. Again, just to make sure we are starting with a clean slate I like to wipe the cache partition. So tap on the ‘Wipe Cache’ option and when that is done we can tap on the reboot option. This will reboot your HTC One M9 and it should take you back into the standard Android OS. It will also be as if you had just created that backup too, so any applications that were installed and any data that was added after that backup was created will not be there.