Hi everyone,
I've been running ARHD on my HTC One M8 (S-ON) for the past few days. Recently I decided to get S-OFF using the firewater method.
In step one, I downloaded the OTA 3.0.7-3.0.8 Insertcoin ROM onto my device, instead of the full ROM. Without knowing this, I proceeded to make a nandroid backup from TWRP, then did an Ådvanced Wipe, checking Dalvik Cache, System, Cache, and Data. I then realised I had the wrong Insertcoin ROM file. So with the realisation that I had to download the correct one and transfer it onto my M8, I downloaded the correct one on my Mac and did a restore of the TWRP backup that I had done previously (this was because HTC Sync Manager had to recognise my device, and it couldn't do that whilst it was in TWRP).
I restored, and rebooted the system. It looked like everything had gone smoothly, except after ~20 seconds, my M8 entered into a bootloop, where it would show the white HTC screen with the red letters "This build is for development purposes only...". Sometimes it starts up as normal, but always after a few moments it restarts again into the bootloop.
Any ideas/suggestions? Help would be greatly appreciated!
rkdku said:
Hi everyone,
I've been running ARHD on my HTC One M8 (S-ON) for the past few days. Recently I decided to get S-OFF using the firewater method.
In step one, I downloaded the OTA 3.0.7-3.0.8 Insertcoin ROM onto my device, instead of the full ROM. Without knowing this, I proceeded to make a nandroid backup from TWRP, then did an Ådvanced Wipe, checking Dalvik Cache, System, Cache, and Data. I then realised I had the wrong Insertcoin ROM file. So with the realisation that I had to download the correct one and transfer it onto my M8, I downloaded the correct one on my Mac and did a restore of the TWRP backup that I had done previously (this was because HTC Sync Manager had to recognise my device, and it couldn't do that whilst it was in TWRP).
I restored, and rebooted the system. It looked like everything had gone smoothly, except after ~20 seconds, my M8 entered into a bootloop, where it would show the white HTC screen with the red letters "This build is for development purposes only...". Sometimes it starts up as normal, but always after a few moments it restarts again into the bootloop.
Any ideas/suggestions? Help would be greatly appreciated!
Click to expand...
Click to collapse
Hi!
What version of TWRP have you installed? Did you checked the compression options when you did your nandroid backup?
I ask about the compression because I have read some people having problems with compressed nandroid backups.
If you have TWRP 2.7.1.0, just try again to wipe the same partitions like you did before, and then restore your nandroid backup. But depending on the TWRP version you have installed, wiping data partition could also wipe the sdcard partition (internal storage, not external sdcard).
Some apps store information in that partition, if one of them is having troubles trying to get information, it could lead to a bootloop.
Here you have also nandroid backups for different versions if there is no way to recover your one: http://forum.xda-developers.com/showthread.php?t=2701376
Now that you are s-off, be careful about what you flash to your M8, specially firmwares, because now nothing prevents you to do brick your phone.
Read twice what you downloaded before flashing. Check also if the TWRP version you have matches your device, I think there are different TWRP builds available for different carriers like verizon, international, etc.
Good luck & cheers!
---------- Post added at 08:50 PM ---------- Previous post was at 08:47 PM ----------
You could also install ARHD again and select wipe everything from the installer (clean install), that should work. But you will have to reconfigure everything again...
ducted said:
Hi!
What version of TWRP have you installed? Did you checked the compression options when you did your nandroid backup?
I ask about the compression because I have read some people having problems with compressed nandroid backups.
If you have TWRP 2.7.1.0, just try again to wipe the same partitions like you did before, and then restore your nandroid backup. But depending on the TWRP version you have installed, wiping data partition could also wipe the sdcard partition (internal storage, not external sdcard).
Some apps store information in that partition, if one of them is having troubles trying to get information, it could lead to a bootloop.
Here you have also nandroid backups for different versions if there is no way to recover your one: http://forum.xda-developers.com/showthread.php?t=2701376
Now that you are s-off, be careful about what you flash to your M8, specially firmwares, because now nothing prevents you to do brick your phone.
Read twice what you downloaded before flashing. Check also if the TWRP version you have matches your device, I think there are different TWRP builds available for different carriers like verizon, international, etc.
Good luck & cheers!
---------- Post added at 08:50 PM ---------- Previous post was at 08:47 PM ----------
You could also install ARHD again and select wipe everything from the installer (clean install), that should work. But you will have to reconfigure everything again...
Click to expand...
Click to collapse
Hey, thanks for the reply.
So I got things working again, by adb sideloading the v1.94 SuperSU.zip to my internal storage and flashing it through TWRP. That seemed to get rid of the bootlooping issue. It also meant that I had to reinstall SuperSU on my device (it wasn't there when it booted). Going into SuperSU, it told me that binaries needed to be updated. The installation finished, and I rebooted my device... but then the bootloops started again.
Right now I've re-flashed the SuperSU.zip so I have things working again, it's just that I can't update my SuperSU binary because of the bootloop issue.
Oh and also, I never managed to get S-OFF in the end - I got the ***** device patched by HTC, you are out of luck ***** message ... seems like I downloaded an OTA or something.
You can get s-off by using sunshine which costs around 20/25$ because of the licence...but it's worth it..
It will s-off your phone without problems as long as you are on stock Rom and stock kernel
Related
Hi guys!
I am sorry if this has already been answered somewhere, but I searched pretty thoroughly and I couldn't find a solution
I am trying to S-OFF an HTC Desire for a friend of mine and install CyanogenMod using this guide http://forum.xda-developers.com/showthread.php?t=1016084.
We rooted the phone without any issues, but before going through Alpharev I decided to make a nandroid backup through the phone's original recovery image (just as advised on Alpharev's site: "We try to leave the current ROM and datastructures completely intact. It is, however, advised to ALWAYS nandroid backup your phone before you run this procedure.
You will then always have a correct/current backup to fall back on in case something breaks."). So I just went into the Backup and Recovery menu and I chose backup.
Unfortunately after backing up, the phone went into a boot loop. We tried taking-out the battery and even doing a hard reset but nothing helped. Eventually we flashed the original RUU from O2 (it's an O2 Germany phone) and this fixed the issue.
I am a bit concerned since I wasn't able to find anyone who had the same problem and it is a bit weird that the phone should go into a boot loop without even installing another ROM or anything - just trying to do a backup of the stock ROM. I am thus a bit hesitant to go on with the S-OFF...
Any help would be deeply appreciated!
Well, first of all, you don't need to be S-Off to install CyanogenMod7. Only root. Usually, people do S-Off so they can change the Boot Splash image.
Make a Gold Card for your SD. Some Desire's need it, some don't. Better safe than sorry.
Secondly, after root, I would goto the market and install ROM Manager. Then flash to the latest Clockwork Recovery.
Then,I would make sure I have a recent Recovery image (NandBackup)
Download Gapps.zip to the root of the SD.
Download the CyanogenMod7 to the root of the SD, boot phone to recovery, Wipe cache memory, also goto Advanced and wipe the Delvik memory.
Then Install from SD, do the CM7, then after it finishes, Select Install from SD again, and install the Gapps.zip
Why your backup failed, who knows. I suppose you were using Unrevoked?
Thanks! Do you know why the boot loop could happen?
Moscow Desire said:
Well, first of all, you don't need to be S-Off to install CyanogenMod7. Only root. Usually, people do S-Off so they can change the Boot Splash image.
Make a Gold Card for your SD. Some Desire's need it, some don't. Better safe than sorry.
Secondly, after root, I would goto the market and install ROM Manager. Then flash to the latest Clockwork Recovery.
Then,I would make sure I have a recent Recovery image (NandBackup)
Download Gapps.zip to the root of the SD.
Download the CyanogenMod7 to the root of the SD, boot phone to recovery, Wipe cache memory, also goto Advanced and wipe the Delvik memory.
Then Install from SD, do the CM7, then after it finishes, Select Install from SD again, and install the Gapps.zip
Why your backup failed, who knows. I suppose you were using Unrevoked?
Click to expand...
Click to collapse
I suppose, there was some code that didn't get deleted due to the rooting process, if you used unrevoked. Although it rarely happens, sometimes it does.
Or maybe it didn't like some Application. Who knows. All it takes, is 1 peice of bad code.
With AlphaRev, although many use it, I believe it changes your bootloader code.
And, you can sometimes have problems as well.
But follow the steps I mentioned, and you should be ok.
Just make sure you create and use the Gold Card first.
The boot loop is a common issue with the first nandroid. All you had to do was restore the nandroid you just made.
Sent from my HTC Desire using XDA Premium App
TheGhost1233 said:
The boot loop is a common issue with the first nandroid. All you had to do was restore the nandroid you just made.
Sent from my HTC Desire using XDA Premium App
Click to expand...
Click to collapse
Right - I thought about that, but then I was hesitant, because I figured if it went into a boot loop then it probably did not create the backup image properly... So can I still restore the backup image now? It is saved on the sdcard so it should be intact after the RUU, right?
It "should be", but, one can only assume so.
Typically, I make a couple of backups each week. One never knows. Yeah, it will tell you successsful. but, better safe than sorry.
Ok so I used to have a Samsung Captivate and knew how to root and flash ROMs, was pretty used to it.
I tried to do the same on my HOX, but ran into a bootloop and subsequently I think I've deleted everything on my phone. I used Hasoon2000's All in one kit and unlocked my bootloader, flashed TWRP v 2.3.3.0, but my problem arose after I tried to flash the kernel. It stayed in bootloop so I figured I'd back out and just restore back to the backup I made before flashing the kernel. However, after "successfully" restoring back I was still stuck in bootloop somehow. I know this isn't supposed to happen, it's supposed to restore back to the exact state of your phone at the time.
Anyways, I thought maybe I just needed to wipe things. I looked around and found a source that said to wipe cache, dalvik, factory reset, and system. Wipe those 4, but not external storage or android secure. So I wiped those 4 and I intended to try the backup again but it turns out that cleared everything on my phone. Now when I hit "restore" there is nothing to select. I also used to have a custom rom on the virtual sdcard, but that's gone too.
When in TWRP and I go into "install" the only thing in /sdcard is now TWRP. After looking around, it looks like my only option is to mount the phone to my computer via TWRP and somehow download the standard OS for my One X again. Also in the Mount menu it lists "mount system, mount data, mount cache, mount sd card" I can only check the first 3 options and when I do my computer asks me if I want to format it. I guess I can't mount the sd card because I deleted everything?
If anyone has the time to help me out that would be AMAZING. Right now I don't even care about being able to flash my custom ROM, I just want to get my phone back to functionality. I would love a conversation and would be willing to gmail chat if willing.
Also my phone is the ATT version, 2.20 (or I guess it was before I deleted everything).
Thank you in advance for any help.
I guess the fastest way to get your phone working again is using RUU file, you ll find how to do it here (method 2) or here
It stayed in bootloop so I figured I'd back out and just restore back to the backup I made before flashing the kernel. However, after "successfully" restoring back I was still stuck in bootloop somehow. I know this isn't supposed to happen, it's supposed to restore back to the exact state of your phone at the time.
Click to expand...
Click to collapse
Restoring backup doesnt restore kernel ( boot.img ), you have to flash it manually with fastboot.
Dude. U think htc offers same freedom as Samsung . U are WRONG. If u flash a rom or restore a backup. U also need to flash boot.img separately from pc. Use fastboot flash boot boot.img. i assume you know the basics. Htc don't have s-off , so writing to nand protected system storage is restricted. If u read a little you might have got this. This will solve boot loop prob
Sent from my HTC One X using Tapatalk 2
Fixed
Thanks Yasounet. I managed to flash viper in the end.
Okay let me start by saying that I have 3 backups of my entire phone made through TWRP. Yesterday I was configuring some flashable ZIPs to install a simple app like SMSgo through recovery. I then installed the ZIP. It was successful but the app was nowhere to be found so I decided to restore a backup. I restored the newest one, when I booted I ran into some problems, I was stuck in a loop of lock screen and boot animation. I then searched the web for solutions. On some forums somebody suggested to wipe internal storage and flash boot.emmc.win from my backup through fastboot. I did so and when I booted my phone was factory fresh and okay. But I didn't have my numbers and sms so I restored a backup... BAD idea. My phone was optimizing apps as I booted, it failed near the end, System UI has stopped it said and then threw me on setup screen without on screen buttons. I tried to restore every single backup I had, the same story with everyone, the best result I got was that it optimized all aps and then crashed system UI.
I went on web and searched for TWRP backups that fit my CID HTC__032 and restored. As I'm typing this I'm running factory fresh 4.4.4 from backup and only OTA I can download is 70mb fix. I didn't update yet cuz I dont have stock recovery.
I am currently not rooted as this downloaded backup wasn't but all backups I made myself are rooted. I have also unlocked bootloader and S-ON running TWRP.
What should i do now? I want to get to stock (preferably get one of my backups working) so I will be able to receive OTAs
The downloaded back is for HTC__032cid, 3.28.401.6 version as it was one of few which had working download links.
http://forum.gsmhosting.com/vbb/f485/htc-m8-collection-stock-backups-1882892/
Also worth mentioning that when I rooted before all this happened I had problems with crashing of TV app and I couldn't browse internal storage that I solved with:
adb shell
su
restorecon -FR /data/media/0
subcola said:
Okay let me start by saying that I have 3 backups of my entire phone made through TWRP. Yesterday I was configuring some flashable ZIPs to install a simple app like SMSgo through recovery. I then installed the ZIP. It was successful but the app was nowhere to be found so I decided to restore a backup. I restored the newest one, when I booted I ran into some problems, I was stuck in a loop of lock screen and boot animation. I then searched the web for solutions. On some forums somebody suggested to wipe internal storage and flash boot.emmc.win from my backup through fastboot. I did so and when I booted my phone was factory fresh and okay. But I didn't have my numbers and sms so I restored a backup... BAD idea. My phone was optimizing apps as I booted, it failed near the end, System UI has stopped it said and then threw me on setup screen without on screen buttons. I tried to restore every single backup I had, the same story with everyone, the best result I got was that it optimized all aps and then crashed system UI.
I went on web and searched for TWRP backups that fit my CID HTC__032 and restored. As I'm typing this I'm running factory fresh 4.4.4 from backup and only OTA I can download is 70mb fix. I didn't update yet cuz I dont have stock recovery.
I am currently not rooted as this downloaded backup wasn't but all backups I made myself are rooted. I have also unlocked bootloader and S-ON running TWRP.
What should i do now? I want to get to stock (preferably get one of my backups working) so I will be able to receive OTAs
The downloaded back is for HTC__032cid, 3.28.401.6 version as it was one of few which had working download links.
http://forum.gsmhosting.com/vbb/f485/htc-m8-collection-stock-backups-1882892/
Also worth mentioning that when I rooted before all this happened I had problems with crashing of TV app and I couldn't browse internal storage that I solved with:
adb shell
su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
Here's a stock recovery download.
Here's a stock rooted backup. I'm not sure if that's really what you are looking for though.
You could also try running the 4.16.401.10 RUU to update. That would clean up your phone so that you can start with a fresh slate. The RUU download is here.
After the RUU, you should be able to restore your nandroids. Probably after the OTAs as well.
As I'm typing this I have successfully flashed stock recovery and made an OTA update with my phone from 3.28.401.6 on 4.16.401.10, what concerns me is that I cannot access internal storage and TV app is crashing.
Same problem as my previous post:
Also worth mentioning that when I rooted before all this happened I had problems with crashing of TV app and I couldn't browse internal storage that I solved with:
adb shell
su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
Also I can't turn on WIFI after OTA so I'll try to run that RUU and report if the problem fixes itself. I don't really want to mess with root unless I have to.
EDIT: RUU fails with error code 155: UNKNOWN ERROR, shall I just do what used to work before? or you have other ideas?
Edit2: Did a factory reset and all problems are gone. Just obe more thing, the mobile signal seems weak, is it possible that my radio got messed up? Can I restore radio from one of my backups ?
Hi, when I got the phone I rooted it by installing TWP recovery, it was all working fine after that until an OTA update popped up, after some research I learned that in order to install OTA updates you need to install stock recovery. Firstly, not knowing entirely what I was doing I installed the stock recovery for the wrong software version. The phone booted however and I tried to install the OTA update, upon restarting I was met with the "red triangle" error screen. I restarted the phone and it booted up fine.
Then having found the correct stock recovery (4.16.401.10) I installed it and ran the update again. It seemed to be going fine with the loading bars moving along nicely when it got stuck on the HTC bootup logo. From here I restarted it and now the phone turns on, shows the htc logo, then gets stuck on a black screen,
Please help, Thanks.
http://forum.xda-developers.com/htc-one-m8/help/boot-loop-problem-t3194508
ckpv5 said:
http://forum.xda-developers.com/htc-one-m8/help/boot-loop-problem-t3194508
Click to expand...
Click to collapse
Hi, thanks for that, I guess I should have searched around harder. One question though, you mention that there is a way to restore just system to keep your data, I don't wanna loose all of my data so I'd like to do that, I'm just not sure how to apply that to your guide, what is it that I have to do differently to keep my data?
Thanks.
DarwinW said:
Hi, thanks for that, I guess I should have searched around harder. One question though, you mention that there is a way to restore just system to keep your data, I don't wanna loose all of my data so I'd like to do that, I'm just not sure how to apply that to your guide, what is it that I have to do differently to keep my data?
Thanks.
Click to expand...
Click to collapse
2 options :
1.
In step 8, select dalvik cache, cache, system but don't select data
In step 9, tick only boot & system and don't tick data
or
2.
Make a nandroid backup of your current ROM
Do all the steps, once completed the OTA reinstall TWRP and restore only data from your earlier made nandroid backup
Thank you so much, you're amazing. Just creating a backup now. So once I've flashed the stock rom and the TWRP recovery to restore my data, if I then install the stock recovery again, should it all work fine? or does changing the recovery at any point stop OTA updates working?
The reason I rooted my phone to start with was to use titanium backup to restore apps from a previous phone, so if I can get the phone all stock just with my data, then I don't really need root.
Thanks!
DarwinW said:
Thank you so much, you're amazing. Just creating a backup now. So once I've flashed the stock rom and the TWRP recovery to restore my data, if I then install the stock recovery again, should it all work fine? or does changing the recovery at any point stop OTA updates working?
The reason I rooted my phone to start with was to use titanium backup to restore apps from a previous phone, so if I can get the phone all stock just with my data, then I don't really need root.
Thanks!
Click to expand...
Click to collapse
That's almost same as option 1 above. You need stock recovery for OTA to work.
Most important is the system part must be stock with nothing changed.
Personally, I always do option 2 to make sure OTA is successfully done .. then restore data.
One thing to note ... you don't need to relock bootloader doing all these process.
Also, now that I've created the backup (stored to the phones storage), how do I transfer that to my PC, since the phone doesn't boot, the computer doesn't recognize the storage.
Thanks.
In TWRP you have option to enable MTP then both your internal storage and microSD can be opened on PC
Make sure to use TWRP 2.8.4.0 or newer or latest. I'm still on TWRP 2.8.6.0
It seems I'm on an older version of twrp (2.7.0.2), I made the backup using this version. If I update to a newer version now will the restore work properly?
Thanks.
Usually yes we can restore a backup made with older TWRP version but I'm not so sure about 2.7.0.2 as that is the buggiest TWRP among all versions but very popular because it is included in one very old and not updated toolkit.
Why don't install latest/newer TWRP then redo the backup then transfer to PC.
I'm having trouble viewing files on my pc, I select "mount" from the main twrp menu, it then shows a screen to select which partitions to mount, I tick them, then nothing happens. There's no button to actually start the mount.
I did mentioned enable MTP function ... see below on the right side you should see Disable MTP or Enable MTP (beside Mount USB Storage) .. not those partitions to mount (but in the same screen)
I think you were right about that version being buggy. Those buttons on the bottom were missing. Just installed the latest twrp and I can mount now as the buttons to mount are showing up. Hopefully all will be fine now
Thanks.
Hi, I'm following the guide now and when I try to wipe the phone it doesn't work, I get:
Wipe Complete
Failed
"Unable to mount /cache
failed to wipe dalvik"
This error repeats a few times.
Thanks.
EDIT** scratch that, sorted it
Horray! Everything has now worked out and my phone is back to it's old self with the update, thank you so much ckpv5! you're the best.
I own an HTC one m8 chinese version. I tried to root the phone. I unlocked bootloader, installed TWRP, and Installed supersu.zip from TWRP. the phone turned on.But the superSU was not working because of binary update issue. I google the reason, found out that I have to install newer supersu.So I did. but the phone never truned on again. it shows the chinese logo,but after that goes into a black screen and stays there
I can Reset the phone, the same thing happens. I can go to boolloader and Factory reset, but the result is the same.
Please help me.
The only thing that "factory reset" does is wipe user data (and cache, Dalvik). It can't magically restore the changes you made to OS.
Did you make a TWRP backup of the OS (system partition) before trying to root? Since you should always make a TWRP backup before attempting mods like root. That way, you could have just restored your backup, and rooted with the correct version SuperSU (or alternately Magisk).
Old version SuperSU and also old version TWRP, are the most common reasons for failed root attempts. Make sure you use the proper version of both.
redpoint73 said:
The only thing that "factory reset" does is wipe user data (and cache, Dalvik). It can't magically restore the changes you made to OS.
Did you make a TWRP backup of the OS (system partition) before trying to root? Since you should always make a TWRP backup before attempting mods like root. That way, you could have just restored your backup, and rooted with the correct version SuperSU (or alternately Magisk).
Old version SuperSU and also old version TWRP, are the most common reasons for failed root attempts. Make sure you use the proper version of both.
Click to expand...
Click to collapse
Hi , Thank you for the reply, I did not make a backup before, I just wanted to install google applications like google play services, play store and ... on the phone, because it did not have them. That's why i rooted my phone. is there anyway to restore it without the backup files? Thanks for the help.
arash13131313 said:
Hi , Thank you for the reply, I did not make a backup before, I just wanted to install google applications like google play services, play store and ... on the phone, because it did not have them. That's why i rooted my phone. is there anyway to restore it without the backup files? Thanks for the help.
Click to expand...
Click to collapse
I would need to know more info about the phone, before attempting to answer that question with any degree of specificity.
Namely, do fastboot getvar all, and post the results (delete IMEI serial number before posting).
But put it this way: you made changes to the system partition that are now causing it to not boot. You didn't make a backup of that partition. In order to "restore" you need the original condition partition (you can't restore from nothing). You either need official RUU (which I don't know exists for Chinese version) or a TWRP backup that someone else made. Not sure if the Chinese version has stock backups posted. But you can take a look: https://forum.xda-developers.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860