Advice on MM update process - One (M8) Q&A, Help & Troubleshooting

Hi
I'm on a stock, rooted ROM with TWRP and I'm about to bite the bullet and OTA upgrade from Lollipop to Marshmallow.
I know I need to take a back up, reflash a never-rooted ROM and reflash the stock recovery, but I wasn't sure on the correct/best way to proceed.
Does this look like the correct order to do things?
Download appropriate, clean ROM
Download appropriate original recovery
Make Nandroid back up of apps and data
Install original recovery
Install clean rom
Install Marshmallow OTA update
Install custom recovery
Install SuperSU for root
Import Nandroid back up
Have I got the order right? Missed any steps out?
Any help appreciated.
Thanks

Steps 1 and 2: "Appropriate" ROM and recovery, meaning it should match for your current firmware (OS number on bootloader screen, or main version in getvar output).
Steps 4 and 5: steps need to be swapped. You need to still have custom recovery TWRP in order to restore the stock nandroid backup (TWRP backup). After that, restore stock recovery using fastboot.
Step 9: Are you trying to restore your user data here? Not sure whether that works going from LP>MM. It might be safer to migrate app data using Titanium Backup.
Otherwise, you did a really good job researching the process; and I genuinely applaud the effort.

redpoint73 said:
Steps 1 and 2: "Appropriate" ROM and recovery, meaning it should match for your current firmware (OS number on bootloader screen, or main version in getvar output).
Steps 4 and 5: steps need to be swapped. You need to still have custom recovery TWRP in order to restore the stock nandroid backup (TWRP backup). After that, restore stock recovery using fastboot.
Step 9: Are you trying to restore your user data here? Not sure whether that works going from LP>MM. It might be safer to migrate app data using Titanium Backup.
Otherwise, you did a really good job researching the process; and I genuinely applaud the effort.
Click to expand...
Click to collapse
Thank you for the reply. That's exactly what I needed to hear.
You're right on step 9, that was where I was going to restore user data. I've got titanium pro, so will use that instead.
Thanks again.

Related

[Q] 4.4.4 rooted with TWRP and S-Off but still on stock ROM

I am very new to rooting etc, but managed to root my HTC One M8 Developer Edition 4.4.4 and flash TWRP Recovery with the help of the guides in this forum. Also got S-off with Sunshine. I have not installed any custom ROM and still have stock
My question is - will I still receive OTA's (if and when HTC releases lollipop for the Developer Edition?
You can't take an OTA with a non-stock recovery. It will download, but not install.
Root, on the other hand, hasn't typically caused a problem. (though you almost invariably lose root in the process)
Being S-OFF and actually already being Dev edition all you need is to have a stock backup the way it is before you flash a ROM and when the time comes just wipe from whatever ROM you've chosen and restore the backup along with flash your stock recovery.
Or if you want less steps just download the bone stock no root, stock recovery RUU and rename it to "0P6BIMG.zip" and place it in the root of your external sdcard.
Boot into hboot and when it asks what you want to do just press up ,give it plenty of time to flash and when it finishes just reboot and it will be stock just the way it came out of the box only it will still be bootlooader unlocked and S-OFF
Thanks
Thanks jball and jshamlet
You bet
jball said:
Being S-OFF and actually already being Dev edition all you need is to have a stock backup the way it is before you flash a ROM and when the time comes just wipe from whatever ROM you've chosen and restore the backup along with flash your stock recovery.
Or if you want less steps just download the bone stock no root, stock recovery RUU and rename it to "0P6BIMG.zip" and place it in the root of your external sdcard.
Boot into hboot and when it asks what you want to do just press up ,give it plenty of time to flash and when it finishes just reboot and it will be stock just the way it came out of the box only it will still be bootlooader unlocked and S-OFF
Click to expand...
Click to collapse
OK. I have gone through several guides and posts but am still confused. I had installed TWRP recovery and before rooting had taken a backup of apps, data and system. After rooting I have downloaded several paid apps including Titanium Backup. If I restore from the backup that I had made, these apps will not be available right?. Also I have paid apps running off my SD Card. These would not have been included in the backup and also might not be available?
Is there anyway of flashing stock recovery alone. WIll be grateful for any guidance or link to other posts.
Thanks & Regards
ramsabi said:
OK. I have gone through several guides and posts but am still confused. I had installed TWRP recovery and before rooting had taken a backup of apps, data and system. After rooting I have downloaded several paid apps including Titanium Backup. If I restore from the backup that I had made, these apps will not be available right?. Also I have paid apps running off my SD Card. These would not have been included in the backup and also might not be available?
Is there anyway of flashing stock recovery alone. WIll be grateful for any guidance or link to other posts.
Thanks & Regards
Click to expand...
Click to collapse
After flashing a ROM I do the out of box setup and allow Google to restore what apps I normally use,I haven't used titanium backup sense my S2 days cause it's a tossup that it even works right at any given time in my opinion.
As far as recovery goes
Download and install "Flashify" from the playstore and find the stock
recovery.img file.
After installing Flashify go ahead and open the app,give root permission and choose recovery image,now choose file and navigate with whatever root explorer you use and choose the stock recovery.img you downloaded and tap "yup" and it will flash it for you.
ramsabi said:
OK. I have gone through several guides and posts but am still confused. I had installed TWRP recovery and before rooting had taken a backup of apps, data and system. After rooting I have downloaded several paid apps including Titanium Backup. If I restore from the backup that I had made, these apps will not be available right?. Also I have paid apps running off my SD Card. These would not have been included in the backup and also might not be available?
Is there anyway of flashing stock recovery alone. WIll be grateful for any guidance or link to other posts.
Thanks & Regards
Click to expand...
Click to collapse
Thanks Amber, And just tobe sure - do you know if I will still have root and S-Off after I flash the stock recovery?
ramsabi said:
Thanks Amber, And just tobe sure - do you know if I will still have root and S-Off after I flash the stock recovery?
Click to expand...
Click to collapse
Flashing a recovery in fastboot or with Flashify will do just that: flash a recovery to the recovery partition. Nothing else changes.
Root lives on /system. So as long as you don't flash a non-rooted stock rom you will keep root.
Your paid apps are yours. If you wipe them you can just reinstall them from the PS. If you paid for a root app like TiBu and you don't have root anymore, you still own it but it's not very useful...
You have apps on your external SD??? That is so ICS - don't know if they have libs or app data stored on internal anyway, but let's say you nandroid your current installation, take out your SD card, then wipe everything and install new firmware, recovery and rom. You should still be able to restore just your data partition from the nandroid, re-insert your SD and be good as gold.
As long as your new rom can live with the restored /data that is....
But seriously: Move data to external and install apps to internal - so much easier to manage....
Oh, and once S-off you're always S-off unless you run the code to S-on again. Not even flashing RUU will turn you S-on automatically.

Return to rooted stock from CM

Dearest XDA Gods,
I currently have a rooted HTC One m8 (international) running Marshmallow with an unlocked bootloader, twrp recovery installed and S-Off (thank you Sunshine!).
I'm toying with the idea of switching to cyanogenmod as I have installed it on a couple of my other devices and I love it but I'll probably wait until they've got a CM13 snapshot available (anyone know when this might be?) because I don't want the hassle of downloading nightlies and stability issues.
When I do finally get round to flashing CM, is there a way to get back to my current setup, if I wanted to, without losing root/bootloader/s off? I've created a Nandroid backup of my current system but I understand that this may not be enough to restore the kernel, which I gather is very important if you want your phone to... well... work. I imagine I could just download the stock firmware and flash that but would that mean that I lose my unlocked bootloader and my s off (I love sunshine but I don't want to pay those guys twice!).
Greatly appreciate any advice !
Thanks guys,
George
When you restore your nandroid backup .. it will restore all kernel/boot, data & system (you need to select these in restore menu)
You won't lose unlocked bootloader and S-Off by restoring nandroid (you'll lose them when you manually change them with fastboot commands) and if your nandroid include root, it will restore your root too. If it is not backup with root, simply flash SuperSU.zip will root it again.
Restoring a nandroid will restore your settings too.
ckpv5 said:
When you restore your nandroid backup .. it will restore all kernel/boot, data & system (you need to select these in restore menu)
You won't lose unlocked bootloader and S-Off by restoring nandroid (you'll lose them when you manually change them with fastboot commands) and if your nandroid include root, it will restore your root too. If it is not backup with root, simply flash SuperSU.zip will root it again.
Restoring a nandroid will restore your settings too.
Click to expand...
Click to collapse
Thanks for the fast response man! I think I see what you mean, so if I backup the boot partition (which contains the kernel), and my system and data partitions then it should restore everything on my phone, including root (because I was rooted when I created my backups).
Yes .. correct

TWRP backup question

I need some advice on using TWRP backup there is a few new selection which I am not familiar with what I want to accomplish is to make a full backup of my stock ROM in case I need to reset it completely stock including stock recovery, for example planning to sell it or giving it to a relative and you want them to enjoy the phone at stock is there a chance this can be done.
Backup everything but data, or use the correct RUU.

CWM Recovery on HTC One M8 didn't work

Hello,
I installed the CWM Recovery and created a backup of my phone. But after I restored the backup, the phone doesn't start but only boots in to the CWWM recovery everytime. I didn't found the problem, so I hope anyone here, can probably help me.
1. How can I get back to the original software of the phone (even if in blank state) – because for some reason, factory reset also don't work anymor
2. If the phone works again, how can I create a backup and restore a backup, this time so that it works
3. Or is it possible to restore the backup I have? Maybe I did something wrong (I followed the steps)
Sincerely Veggie
CWM recovery ? I think it doen't support M8 on newer android version.
Use TWRP.
1. Either restore a nandroid backup or install a RUU if available.
Post fastboot getvar all minus serial & imei no. to see which one that you need.
2. Install correct version TWRP and make backup
3. Not sure but most probably cannot.

OTA update to N

Hello everybody, it is time to update to Nougat and I'm ready to do it.
According to this thread https://forum.xda-developers.com/showpost.php?p=59745198&postcount=3
I need a system_image and stock recovery backup for being able to do an OTA.
I did it and I must restore the system_image and the stock recovery as written in point 8.
But according to this other thread https://forum.xda-developers.com/showpost.php?p=64299835&postcount=4
in Hidden Content point 13, I must backup the system_image, the stock recovery and the boot image.
I have only backupped system_image and recovery and I can download boot.emmc.win from the second thead, but I wish to ask:
Is it really necessary to restore boot.emmc.win? Now I'm on ViperOneM9 4.3.0
Why @Captain_Throwback didn't mention it in his official TWRP thread?
I thank you in advance anyone may help me to get the OTA in the right way
Balteck said:
Hello everybody, it is time to update to Nougat and I'm ready to do it.
According to this thread https://forum.xda-developers.com/showpost.php?p=59745198&postcount=3
I need a system_image and stock recovery backup for being able to do an OTA.
I did it and I must restore the system_image and the stock recovery as written in point 8.
But according to this other thread https://forum.xda-developers.com/showpost.php?p=64299835&postcount=4
in Hidden Content point 13, I must backup the system_image, the stock recovery and the boot image.
I have only backupped system_image and recovery and I can download boot.emmc.win from the second thead, but I wish to ask:
Is it really necessary to restore boot.emmc.win? Now I'm on ViperOneM9 4.3.0
Why @Captain_Throwback didn't mention it in his official TWRP thread?
I thank you in advance anyone may help me to get the OTA in the right way
Click to expand...
Click to collapse
If I didn't mention it, then you don't have to do it .
@Captain_Throwback can you maybe explain that a little further? I made the experience that people are facing problems if they return from a custom rom to a stock rom and don't wipe their phone. That's why I added the wiping step to my instructions. After that several users reported that their phones didn't boot after they restored the first version of my backups (which lacked the boot.img). Therefore, I thought the boot.img is needed as well and all backups got replaced over a year ago with the current version which includes the boot.img.
However, all this is based on the reports of users who had problems with returning back to stock. I've never faced these issues myself. So if there is anything wrong with my instructions I'll correct them, of course.
Sent from my HTC One M9 using XDA Labs
I thought it's impossible to backup the stock recovery seeing as twrp is needed to be flashed to make the backup..
Beamed in by telepathy.
shivadow said:
I thought it's impossible to backup the stock recovery seeing as twrp is needed to be flashed to make the backup..
Beamed in by telepathy.
Click to expand...
Click to collapse
Since firmware 3.x you can boot TWRP via fastboot from the bootloader without overwriting the currently installed stock recovery.
Flippy498 said:
@Captain_Throwback can you maybe explain that a little further? I made the experience that people are facing problems if they return from a custom rom to a stock rom and don't wipe their phone. That's why I added the wiping step to my instructions. After that several users reported that their phones didn't boot after they restored the first version of my backups (which lacked the boot.img). Therefore, I thought the boot.img is needed as well and all backups got replaced over a year ago with the current version which includes the boot.img.
However, all this is based on the reports of users who had problems with returning back to stock. I've never faced these issues myself. So if there is anything wrong with my instructions I'll correct them, of course.
Click to expand...
Click to collapse
Not sure what to explain - OTA does no verification on boot.img. So it doesn't have to be stock for an OTA to install. It's that simple.
Captain_Throwback said:
Not sure what to explain - OTA does no verification on boot.img. So it doesn't have to be stock for an OTA to install. It's that simple.
Click to expand...
Click to collapse
OK. I guess there was a little misunderstanding.
The current version of my instructions is meant to be used if you want to return to a clean stock system. (In other words the ability to install OTAs, again, is only a side effect.) I never was talking about the boot.img being necessary for being able to install the OTA. I thought you were saying that the boot.img wouldn't be needed inside a backup if you do a full wipe before the restoration and that the phone would still boot.
Sent from my HTC One M9 using XDA Labs
I'm little confused now.
For installing an OTA update I MUST have an untouched system partition and stock recovery.
But the steps I need to do are:
1) backup apps and settings
2) restore untouched system partiton and stock recovery partition from TWRP, doing a factory reset (wipe data, dalvik and cache)
3) boot the original stock OS, configure wifi and go to Software Update
4) download OTA(s)
5) apply update and reboot phone
6) with ADB start TWRP recovery and backup the new stock recovery and the new stock system_image
7) flash TWRP and new custom ROM
8) restore apps and settings from point 1)
So, is it possible that at step 3 my HTC cannot boot because I didn't restore the boot partition (I'm coming from ViperOneM9 4.3.0)?
Or is there a simpler method, without backuping, wiping, restoring?
Flippy498 said:
Since firmware 3.x you can boot TWRP via fastboot from the bootloader without overwriting the currently installed stock firmware.
Click to expand...
Click to collapse
Looks liks i used an out of date tutorial then.. What a bugger..
Beamed in by telepathy.
Anyone can confirm me that my previous steps are right?
So I may uodate to Android n without doubt
Thank you very much

Categories

Resources