Exact steps back to Stock with a clean "System Image" - HTC U11 Questions & Answers

Hi guys,
what are the exact steps to go back to stock with a clean "System Image" for taking ota updates?
I've made a clean backup via "System Image" in twrp with an unmodified system as stated in the twrp thread before i did anything else (root, etc.).
Thank you in advance

You dont need to. You can flash via ruu zip. Just use the same firmware as the phone is on now.

shivadow said:
You dont need to. You can flash via ruu zip. Just use the same firmware as the phone is on now.
Click to expand...
Click to collapse
Thank's for the reply. But this was not the questions (please don' be mad). But what if i want to?
I did backup the stock recovery and a System Image backup prior to flashing TWRP via fastboot boot twrp-3.1.1-0-ocn.img (point 4/6 in the twrp thread).
What would be the exact steps? Can I just boot normal to twrp-recovery an restore the system image and the stock recovery? Like this:
Thank you in advance

shivadow said:
You dont need to. You can flash via ruu zip. Just use the same firmware as the phone is on now.
Click to expand...
Click to collapse
Flashing RUU via recovery breaks the ability to take OTAs, correct? Where as running RUU exe doesn't? I think i read this somewhere in the xda ruu collection thread.

Related

[N_7.0][NPJ25.93-14][TWRP][Boot]TWRP Backup of Stock Boot Partition

DISCLAIMER: I AM NOT LIABLE TO ANY DAMAGE THAT HAPPENS TO YOUR DEVICE BECAUSE OF DOING ANYTHING WRONG.
MOTO G4 PLUS [XT1643]
This is for those who had flashed a custom kernel on their stock ROM and now want to revert to stock.
REQUIREMENTS:
1. TWRP 3.0.3-n2 by @Shreps .
https://forum.xda-developers.com/mo...covery-twrp-3-0-2-r3-moto-g4-g4-plus-t3494337
This one is more updated/maintained than the official 3.0.2 version.
2. 7Zip Compression Utility:
Download and install on your PC. I use this as it gives the maximum ultra level compression. See Downloads below.
PROCEDURE:
1. Download and extract the TWRP.7z using 7Zip.
2. Place the TWRP folder it in the root directory of your INTERNAL STORAGE.
2. Just reboot TWRP once and choose Restore and then choose this: athene_93-14_boot
3. Swipe to restore.
NOTE: As a general recommendation for all zip installations and backup/restore using twrp, Wipe Cache and ART Cache before you Reboot to System.
4. You're DONE
DOWNLOADS:
Google Drive Link for the file:
https://drive.google.com/open?id=0B25DpDahxm52MDlBRlVqNElkaUE
7-ZIP Download Link:
http://www.7-zip.org/download.html
IF YOU WANT ENTIRE STOCK ROM ( TWRP BACKUP) VISIT THIS THREAD BY @Greekgodmerwyn .
https://forum.xda-developers.com/moto-g4-plus/how-to/android-7-0-moto-g4-plus-npj25-93-14-t3544601
HIT LIKE IF I HELPED YOU! :fingers-crossed: :good:
Hey I need the file bit it is in bin so give a alternative link
Can i install this to xt1644 retus?
Dont know bro I just want the 1643 one
dedik46 said:
Can i install this to xt1644 retus?
Click to expand...
Click to collapse
Not tried. Make additional backups and try. :good:
https://drive.google.com/open?id=0B25DpDahxm52MDlBRlVqNElkaUE
Not Found
Error 404
Please re-upload.
nextheart said:
https://drive.google.com/open?id=0B25DpDahxm52MDlBRlVqNElkaUE
Not Found
Error 404
Please re-upload.
Click to expand...
Click to collapse
Oh wait. Try this, @nextheart
https://www.androidfilehost.com/?fid=745425885120722570
@tywinlannister7 Thanks for quick reply.
As far as I can understand, this file should be flashed (restored) after restoring my TWRP back up of nougat stock rom taken in January-2017. Currently I am on RR-MM.
Shall I able to take OTA then?
nextheart said:
@tywinlannister7 Thanks for quick reply.
As far as I can understand, this file should be flashed (restored) after restoring my TWRP back up of nougat stock rom taken in January-2017. Currently I am on RR-MM.
Shall I able to take OTA then?
Click to expand...
Click to collapse
For OTA updates to work, you'd need a stock recovery on your device too; TWRP is a no go. Once you've restored your TWRP backup of your Nougat stock ROM (which hopefully may have the stock boot still), you can flash the stock recovery linked here https://forum.xda-developers.com/moto-g4-plus/how-to/how-to-ota-rooting-nougat-npj-25-93-14-t3601747
I imagine the easiest option is to flash the recovery in fastboot (same as you did with TWRP) using 'fastboot flash recovery recovery.img', then rebooting into recovery.
I think, though I've not tried it with a stock recovery, that you should be able to flash the recovery image in TWRP:
tap Install in the TWRP menu
Select 'install image's
Find your stock recovery image and select
Choose recovery as the image type
Flash and reboot to recovery.
Then, provided your system has a stock kernel, no modifications to your system and a stock recovery (bootloader doesn't matter), you should be able to update via OTA.
@echo92 Thanks for detailed guide.
I had flashed SuperSU on Nougat stock ROM, so stock boot might be affected. Am I right?
In short, I want to sell the device, so I want to return to stock.
nextheart said:
@echo92 Thanks for detailed guide.
I had flashed SuperSU on Nougat stock ROM, so stock boot might be affected. Am I right?
In short, I want to sell the device, so I want to return to stock.
Click to expand...
Click to collapse
You could have directly flashed the latest March 1 Security firmware via fastboot and lock your bootloader too.
tywinlannister7 said:
You could have directly flashed the latest March 1 Security firmware via fastboot and lock your bootloader too.
Click to expand...
Click to collapse
Thank you for pointing out.
Will I lose my IMEI or WIFI MAK or any thing else by fastboot method? Because I have read that some users are losing such things by fastboot method.
nextheart said:
Thank you for pointing out.
Will I lose my IMEI or WIFI MAK or any thing else by fastboot method? Because I have read that some users are losing such things by fastboot method.
Click to expand...
Click to collapse
Shouldn't create any such issues. Anyways, you can make an entire backup of the fsg and other partitions in twrp.
Yes, your data will be wiped though.

back to stock recovery

I have HTC one a9 with build number 1.58.709.1. Rooted and unlocked bootload and have twrp. Never flash any roms.
I want to remove every thing that prevent ota to be installed.
I think twrp will cause problem for ota. So how can I remove it an have stock recovery?
The ruu is not available for x.xxx.709.x in web. But I find ota matching my build number. Is that help?
ghasemi.hussein said:
I have HTC one a9 with build number 1.58.709.1. Rooted and unlocked bootload and have twrp. Never flash any roms.
I want to remove every thing that prevent ota to be installed.
I think twrp will cause problem for ota. So how can I remove it an have stock recovery?
The ruu is not available for x.xxx.709.x in web. But I find ota matching my build number. Is that help?
Click to expand...
Click to collapse
Yes, you can extract the recovery.img using this tool.
CSnowRules said:
Yes, you can extract the recovery.img using this tool.
Click to expand...
Click to collapse
Thanks.
I will do that. Then what should I do with it? Flash it?
And I remember that after installing twrp I had format my internal storage to make it decrypted. How can I undo that?
ghasemi.hussein said:
Thanks.
I will do that. Then what should I do with it? Flash it?
And I remember that after installing twrp I had format my internal storage to make it decrypted. How can I undo that?
Click to expand...
Click to collapse
Yes, you can flash the extracted recovery image via recovery.
For encryption, if you do the OTA update and let it reboot stock, it will automatically encrypt your data. Obviously, first boot might take a long time. If you interrupt it, you will lose your data.
CSnowRules said:
Yes, you can flash the extracted recovery image via recovery.
For encryption, if you do the OTA update and let it reboot stock, it will automatically encrypt your data. Obviously, first boot might take a long time. If you interrupt it, you will lose your data.
Click to expand...
Click to collapse
After restoring stock recovery, I need to unroot and lock boot loader for getting ota?
ghasemi.hussein said:
After restoring stock recovery, I need to unroot and lock boot loader for getting ota?
Click to expand...
Click to collapse
To manually install an OTA, definitely not. All you need is the stock recovery, a COMPLETELY untouched system (never mounted r/w), and the correct ota.zip.
CSnowRules said:
To manually install an OTA, definitely not. All you need is the stock recovery, a COMPLETELY untouched system (never mounted r/w), and the correct ota.zip.
Click to expand...
Click to collapse
Is there a way to check if system modified or not?
I read before that some ota are patches asn some of them are complete os. They said only when you want to install patches you need untouched system partition.
The next ota will be android 7. So it format every partitions and modified system cannot make any problem.
Is it correct?
No, the Nougat OTA (for US unlocked at least) patched the existing system partition.
The easiest way to check is to attempt to install the OTA with the stock recovery. It will tell you.
If I were you, I'd flash stock recovery and system from your current RUU, then OTA update.
Another option is to just install the RUU. That will revert your phone to completely stock, wipe your data, and allow you to start fresh.
CSnowRules said:
No, the Nougat OTA (for US unlocked at least) patched the existing system partition.
The easiest way to check is to attempt to install the OTA with the stock recovery. It will tell you.
If I were you, I'd flash stock recovery and system from your current RUU, then OTA update.
Another option is to just install the RUU. That will revert your phone to completely stock, wipe your data, and allow you to start fresh.
Click to expand...
Click to collapse
That's the problem. There is no ruu available for my build number (1.58.709.1.). I just find an ota with this bluid number. The ota did not contain a system.img.
ghasemi.hussein said:
That's the problem. There is no ruu available for my build number (1.58.709.1.). I just find an ota with this bluid number. The ota did not contain a system.img.
Click to expand...
Click to collapse
Did you flash the stock recovery and attempt to install the OTA?
If so, what is the result?
CSnowRules said:
Did you flash the stock recovery and attempt to install the OTA?
If so, what is the result?
Click to expand...
Click to collapse
Yes. I flash stock recovery. then I try to side load the ota to phone. Adb did not recognize device in boot loader or recovery. I don't know why. I use 15 sec Adb installer. It said it installs drivers.
Update: I notice that in bootloader on top of screen there is writing: "software status: official".
Does that mean system partition is untouched?
If your stock recovery has a menu, you can copy the OTA.zip to your phone or sdcard and install from there.
It said system partition has mounted r/w.
What can I do now? There is no ruu with my build number in web. I think s-off is my only way to get android 7? Or maybe htc publish ruu for all regions this time?
If I found system partition backup of my build number in web, is restoring it help?
update:if previous ota (1.56.709.70) has system image in it can i flash that sysem.img?
and do i have to install twrp again to be able to flash system.img?
ghasemi.hussein said:
It said system partition has mounted r/w.
What can I do now? There is no ruu with my build number in web. I think s-off is my only way to get android 7? Or maybe htc publish ruu for all regions this time?
If I found system partition backup of my build number in web, is restoring it help?
update:if previous ota (1.56.709.70) has system image in it can i flash that sysem.img?
and do i have to install twrp again to be able to flash system.img?
Click to expand...
Click to collapse
System backups found online can be unreliable for OTA updates. Here's what I suggest:
Install TWRP to your phone, and backup your current boot and system to an external sd. Be sure that the 1.58.709.1 ota.zip is located on your external sd as well.
Extract the system image from 1.56.709.70 RUU, place it on your external sd card as well, and flash it in TWRP.
Reboot to stock recovery and install the 1.58.709.1 ota. It should verify the 1.56.709.70 system and patch it.
That should complete successfully. When it reboots, it will take a long time since it will encrypt data by default.
You will then be 1.58.709.1 stock and be able to take OTA updates.
If something doesn't complete successfully, stop and post the log here.
CSnowRules said:
System backups found online can be unreliable for OTA updates. Here's what I suggest:
Install TWRP to your phone, and backup your current boot and system to an external sd. Be sure that the 1.58.709.1 ota.zip is located on your external sd as well.
Extract the system image from 1.56.709.70 RUU, place it on your external sd card as well, and flash it in TWRP.
Reboot to stock recovery and install the 1.58.709.1 ota. It should verify the 1.56.709.70 system and patch it.
That should complete successfully. When it reboots, it will take a long time since it will encrypt data by default.
You will then be 1.58.709.1 stock and be able to take OTA updates.
If something doesn't complete successfully, stop and post the log here.
Click to expand...
Click to collapse
Unfortunately the latest ruu for Taiwan is 1.27.709.x for android 6.0.0. I download 1.56.709.70 ota. It doesn't contain system image too. 1.56 was first update if android 6.0.1 and 1.27 was latest build of android 6.0. I think system image of 1.27 is same as 1.5x updates.
I want to try your way in 1.27.
Ok, that MIGHT work with system images only. 1.2x boot and recovery images will not boot on 1.5x firmware.
CSnowRules said:
Ok, that MIGHT work with system images only. 1.2x boot and recovery images will not boot on 1.5x firmware.
Click to expand...
Click to collapse
this is what i do step by step:
1. flash twrp
2. backup system and boot partition
3. flash system image from 1.27
4. flash stock recovery
5. try to install 1.56 ota. unsuccessful. see image 1.
6. try to install 1.58 ota. unsuccessful. see image 2.
7. boot to system. it got stuck in bootloop.
8. install twrp and restore system and boot backup.
9. boot to system and it booted successfully.
what else can i do?
ghasemi.hussein said:
this is what i do step by step:
1. flash twrp
2. backup system and boot partition
3. flash system image from 1.27
4. flash stock recovery
5. try to install 1.56 ota. unsuccessful. see image 1.
6. try to install 1.58 ota. unsuccessful. see image 2.
7. boot to system. it got stuck in bootloop.
8. install twrp and restore system and boot backup.
9. boot to system and it booted successfully.
what else can i do?
Click to expand...
Click to collapse
Did you swipe to allow system to be mounted r/w in TWRP? If you did, that could be the problem.
If not, you can attempt to use the system backups that you can download. You may have the same result, though.
Have you tried using HTC sync manager from download mode? Sometimes that will RUU your phone. Your data would be wiped though.
CSnowRules said:
Did you swipe to allow system to be mounted r/w in TWRP? If you did, that could be the problem.
If not, you can attempt to use the system backups that you can download. You may have the same result, though.
Have you tried using HTC sync manager from download mode? Sometimes that will RUU your phone. Your data would be wiped though.
Click to expand...
Click to collapse
Yes. I allow twrp to mount system as r/w because without this twrp cannot flash system.img.
I don't understand last paragraph. Will you please explain more?
ghasemi.hussein said:
Yes. I allow twrp to mount system as r/w because without this twrp cannot flash system.img.
I don't understand last paragraph. Will you please explain more?
Click to expand...
Click to collapse
TWRP can flash the image without mounting system r/w. That is most likely what is breaking your OTA. Once the system is mounted r/w, it breaks dm-verity, even if you make no modifications.
You should start over and not allow system to be mounted r/w.
HTC sync manager can RUU most modern devices if you connect them in download mode with the software open.
It can be downloaded from HTC's website. I normally wouldn't recommend it since it usually interferes with fastboot and adb if it is installed.

How to OTA upgrade to NOF26V?

a little background information
current build: NMF260
recovery: TWRP RC1
kernel: elemental x 1.03
rooted: yes
Mods: weta audio 9.1
So I have completely forgotten how to do a manual sideload for an OTA. Could someone give me step by step, hand holding instructions?
What I have downloaded onto PC
sailfish-ota-nof26v -4bbb310d.zip
twrp-3.0.2-0-RC1-fastboot-sailfish.img
boot.img from nof26v build (that is for recovery right?)
and i have twrp zips for supersu, elemental x, and twrp rc1
basically i forgot how to flash stock recovery, because I need to to manually update OTA right? also do I need to remove the weta audio 9.1 mod first before doing the OTA? or can i just flash over it? anyone know?
Thanks!
https://developers.google.com/android/images <---- Click Full OTA update and follow instructions. Will not wipe anything. You do need to be on official.
If you want to just flash the peices download all of them and boot into bootloader then use fastboot commands per each item. Google the commands for bootloader, radio and the kind. Very easy.
cstrife999 said:
https://developers.google.com/android/images <---- Click Full OTA update and follow instructions. Will not wipe anything. You do need to be on official.
If you want to just flash the peices download all of them and boot into bootloader then use fastboot commands per each item. Google the commands for bootloader, radio and the kind. Very easy.
Click to expand...
Click to collapse
hey thanks but I have TWRP recovery, those instructions are if youre on stock recovery. do you know how to get back onto stock recovery?
With the OTA zip flash the recovery using command.. flash recovery (recovery name.zip)
cstrife999 said:
With the OTA zip flash the recovery using command.. flash recovery (recovery name.zip)
Click to expand...
Click to collapse
where can we get the stock recovery.img?
that is not in the ota.zip file and neither in the full factory image zip file
I'm not rooted but since no one answered as of yet then I do believe stock recovery is now in the boot.img file. Search the Pixel XL forums too.
Stock recovery is in the OTA under boot.
kazemitsui said:
hey thanks but I have TWRP recovery, those instructions are if youre on stock recovery. do you know how to get back onto stock recovery?
Click to expand...
Click to collapse
No need for stock recovery. TWRP has a sideload option. Check my guide here.
spiller37 said:
No need for stock recovery. TWRP has a sideload option. Check my guide here.
Click to expand...
Click to collapse
thanks ill remember that for future uses, i used skipsoft to reflash stock recovery and all that.

Update received - flashing via TWRP?

Hey there fellow U11 Users,
I just received the update concerning 60fps HD-Video etc. I use TWRP so the update can't be installed by itself. So I have two questions:
A
Where do I find the update file. I looked around a lot but couldn't locate it.
B
Once found, can I just flash it with TWRP?
Thanks in advance!
Dito13 said:
Hey there fellow U11 Users,
I just received the update concerning 60fps HD-Video etc. I use TWRP so the update can't be installed by itself. So I have two questions:
A
Where do I find the update file. I looked around a lot but couldn't locate it.
B
Once found, can I just flash it with TWRP?
Thanks in advance!
Click to expand...
Click to collapse
See here: https://forum.xda-developers.com/u11/how-to/collection-htcu-u11-ruu-firmware-t3612048/page63
Alright, thanks! :good: That only leaves the first question unanswered.
Dito13 said:
Alright, thanks! :good: That only leaves the first question unanswered.
Click to expand...
Click to collapse
/data/data/com.htc.updater/files
btw...twrp can install the update but you need to flash the firmware.zip inside the ota manually
Thank you kindly!
OMJ said:
/data/data/com.htc.updater/files
btw...twrp can install the update but you need to flash the firmware.zip inside the ota manually
Click to expand...
Click to collapse
Just to be clear: I only flash the firmware.zip manually via TWRP or do I need to flash the whole ota?
Sorry for the question. I mostly handled Nexus devices...
Dito13 said:
Just to be clear: I only flash the firmware.zip manually via TWRP or do I need to flash the whole ota?
Sorry for the question. I mostly handled Nexus devices...
Click to expand...
Click to collapse
twrp will install the ota zip but it wont install the firmware.zip inside, you have to extract & manually install from download mode
grrr.... I tried following your suggestions, but recieved error 7 in TWRP. Can you help me in the right direction?
Dito13 said:
grrr.... I tried following your suggestions, but recieved error 7 in TWRP. Can you help me in the right direction?
Click to expand...
Click to collapse
list your steps your using to install the ota via twrp....personally, I let the system initiate the install (booted into OS) as if I was 100% stock, once twrp loads, it automatically installs except for the firmware.zip
more details here...
OK, I am a Noob to the HTC world. I am used to easy flashing/rooting/etc. on Nexus devices.
TWRP doesn't do anything after accepting the ota. When I try to install the OTA via TWRP I receive Error 7. I worked my way through a lot of guides here on XDA concerning manual OTA installing. One thing I tried was flashing back to stock recovery which I found in the firmware.zip of the OTA in bootloader mode. That failed also ("FAILED (remote: not allowed on PRODUCTION device).
Edit: The device has obviously an unlocked bootloader, s-on, rooted via magisk and is a DGLU device, software number 1.16.400.5
Are you on an Untouched System Image? Completely stock ROM? While it is great we can flash the OTA in TWRP, the system stills needs to be stock, and of course will still have to fastboot firmware.
schmeggy929 said:
Are you on an Untouched System Image? Completely stock ROM? While it is great we can flash the OTA in TWRP, the system stills needs to be stock, and of course will still have to fastboot firmware.
Click to expand...
Click to collapse
Yes, everything is stock.
I managed to flash the stock recovery now. I didn't remember to use the download mode /sorry. Then Then I checked for the ota again, downloaded it and tried to apply but I landed in the stock recovery with the red exclamation mark and then nothing happened.
Dito13 said:
Yes, everything is stock.
I managed to flash the stock recovery now. I didn't remember to use the download mode /sorry. Then Then I checked for the ota again, downloaded it and tried to apply but I landed in the stock recovery with the red exclamation mark and then nothing happened.
Click to expand...
Click to collapse
re-flash twrp and try it again.
schmeggy929 said:
re-flash twrp and try it again.
Click to expand...
Click to collapse
Same result unfortunately. TWRP hands out Error 7 and "system partition has unexpected contents" or something like that although I didn't do any tinkering with the stock rom. I flashed Magisk and did a backup before and that was all.
Dito13 said:
Same result unfortunately. TWRP hands out Error 7 and "system partition has unexpected contents" or something like that although I didn't do any tinkering with the stock rom. I flashed Magisk and did a backup before and that was all.
Click to expand...
Click to collapse
Only thing I would say is start fresh. Backup all the data for your apps first. Flash the RUU, Take the OTA and reinstall all your apps.
schmeggy929 said:
Only thing I would say is start fresh. Backup all the data for your apps first. Flash the RUU, Take the OTA and reinstall all your apps.
Click to expand...
Click to collapse
Thanks again - seems to have worked. It will be interesting to see which problems occur with the Android Oreo update which was announced till the end of the year by HTC

Return to stock & re-lock bootloader: HOW?

Hello,
I recently unlocked the bootloader and installed TWRP as custom recovery, but I'm now in need to return full-stock:
could anyone please tell me (or link me - I searched but I didn't found anything about it) a full procedure to restore the phone status?
I need a stock ROM, I guess, but then what? Flash it in TWRP? Does it also include stock recovery or is it a separate file instead?
Thank you very much!
shakathesaint said:
Hello,
I recently unlocked the bootloader and installed TWRP as custom recovery, but I'm now in need to return full-stock:
could anyone please tell me (or link me - I searched but I didn't found anything about it) a full procedure to restore the phone status?
I need a stock ROM, I guess, but then what? Flash it in TWRP? Does it also include stock recovery or is it a separate file instead?
Thank you very much!
Click to expand...
Click to collapse
so you do know that relocking the bootloader will cause a factory reset and all data will be wiped from device.
First, all you need to do is download a full rom update and flash in system local update. that will put stock software and stock recovery back.
second, Reboot phone to bootloader mode. Then you just type in cmd "fastboot oem lock"
MrSteelX said:
so you do know that relocking the bootloader will cause a factory reset and all data will be wiped from device.
First, all you need to do is download a full rom update and flash in system local update. that will put stock software and stock recovery back.
second, Reboot phone to bootloader mode. Then you just type in cmd "fastboot oem lock"
Click to expand...
Click to collapse
Thanks for your fast answer!
So is it better to flash stock ROM through local update than through TWRP? Or it's the same procedure both ways?
Thanks again!
They both will work.
Use the msmdownloadtool it's easiest, safest and fastest way.
Lownita said:
Use the msmdownloadtool it's easiest, safest and fastest way.
Click to expand...
Click to collapse
File name : 6T_MsmDownloadTool_v4.0.58_OOS_v9.0.12
Hi, i have downloaded many times file above, why the said .rar file can not be extracted?
What is content the .rar file above?
Download Source : https://forum.xda-developers.com/oneplus-6t/how-to/tool-6t-msmdownloadtool-v4-0-oos-9-0-5-t3867448
DancingFate said:
File name : 6T_MsmDownloadTool_v4.0.58_OOS_v9.0.12
Hi, i have downloaded many times file above, why the said .rar file can not be extracted?
What is content the .rar file above?
Download Source : https://forum.xda-developers.com/oneplus-6t/how-to/tool-6t-msmdownloadtool-v4-0-oos-9-0-5-t3867448
Click to expand...
Click to collapse
This is for 6t. Is OP at 6t or 6?
Latest and greatest https://forum.xda-developers.com/oneplus-6/how-to/op6-collection-unbrick-tools-t3914109
These tools will return your phone to 100% stock.
I've use them multiple times.
I recommend using these qualcomm drivers.
https://drive.google.com/file/d/1k1cXnVaz5d2IRLqxFE9AiY8GFMmx3CDG/view?usp=sharing

Categories

Resources