Bootloop while Flashing with S-OFF - One (M9) Q&A, Help & Troubleshooting

Hi guys, I hate to make a new post but I feel like I've exhausted all options. I'm getting a bootloop when flashing Viper 3.5.0 and ARHD 12.0. I have a T-Mobile GSM M9 with S-OFF . My bootloader currently locked. Here are my steps:
1. I've got Super CID
2. Flashed TWRP 2.8.7.0
3. Rooted
Then I wanted to put on a new rom:
4. Flashed different firmware from here: http://forum.xda-developers.com/one-m9/development/firmware-t3068243
I've tried 2.10.401.1 (International) / 2.7.531.6 (T-Mobile US) / 1.32.531.33 (T-Mobile US)
5. Flashed Viper 3.5.0 and AHD 12.0 with the wipe option after each firmware upgrade/downgrade. Each time I boot the phone up (no matter what firmware is used), Android will optimize all the apps, and it will sit at the Android setup screen for a second or two, and then just reboot. Android will optimize all apps again, I'll see the setup screen, and then the loop again.
Anybody have any suggestions? I'm sure I'm missing something simple. I don't need the bootloader unlocked since I have S-OFF, correct? Thanks in advance for any and all help!

Are you able to enter into twrp custom recovery? You can install the ROM zip from there. Other option would be the sideload method.
- Put in the rom you want to install into the same directory where the adb tool is. In your case custom rom isnt it? Rename it to something simple like rom.zip
- Shift+right click in the emtpy area where the ADB tool and your is and open the command prompt.
- Navigate through custom recovery > Advanced > ADB Sideload. Your phone should now be waiting for the rom you are about to send.
-Go back to your command prompt and type the following; adb sideload rom.zip
Note that the rom you are sending needs to be complete and have all the files needed in it.

Hi Nikolay82, thanks for the reply. I'm not having an issue flashing the ROM. The issue i'm experiencing is that my phone goes into an endless bootloop after the ROM is flashed.

sstrunks84 said:
Hi Nikolay82, thanks for the reply. I'm not having an issue flashing the ROM. The issue i'm experiencing is that my phone goes into an endless bootloop after the ROM is flashed.
Click to expand...
Click to collapse
Unlock your bootloader and try again. As far as I know the M9 prevents the system from booting correctly if the bootloader is locked and TWRP is installed.

The rom should flash the boot and fix the problem. As for unlocking your bootloader please check the following;
1. Register here; https://www.htcdev.com/
2. Once registered login and select the "Unlock Bootloader" > Get Started > Select your device.
3. If you do not see HTC One M9 listed, select Last option which is "All other supported Devices"
4. Click on "begin unlock bootloader"
5. Follow the instructions and open the command prompt where your ADB is and prepare phone for fastboot mode / download mode.
6. type in; fastboot oem get_identifier_token
7. You will now get a block of text, mark and copy only the area starting from <<< Identifier token start[block of code here] Identifier token end >>>> (mark also those <<<< and >>>>) c
8. Go back to the htc.dev where you logged in and paste in the code under "My device Identifier token" field and submit the query. Navigate to your e-email where they sent you the token and download file; Unlock_code.bin
9. In that mail you will also have a link to continue unlocking the bootloader process, click it,
10. Place the Unlock_code.bin file into the folder where your ADB tools are.
11. Open up the command prompt again and type in; fastboot flash unlocktoken Unlock_code.bin
12. New dialogue should appear asking you if you want to unlock. Please note that if you proceed everything on your phone will be wiped out, so make sure you backed up things you need.
13. Go back to bootloader mode and it should say "UNLOCKED". Same with download mode.

Thanks @Flippy498! Unlocking the bootloader did the trick!

Related

[GUIDE] How to revert back to stock Android. VERY EASY!

For the last two days I tried to revert my HTC One V back to stock android. As in, the way I got it when I first booted it up. I experienced that this progress was pretty difficult. Maybe this was because I was used to the AOSP niceness of Google's LG NExus 4 or because HTC made it very hard to say the least to downgrade/upgrade to their own stock ROM.
I may not have the original sources for all files because I deleted some original .zip files and only have the extracted files.
First off, I wouldn't do any of this if you have important files on your device, I wiped everything from my phone a dozen of times in the process and it didn't care because I didn't had any important files on their.
Alright, so what we want to achieve is to get to the latest version of HTC's RUU version "2.22.401.7". The RUU I could find was "2.22.401.1" so we're gonna have to d/l some OTA's later on via our device if everything is set up.
So obviously everyone who is trying to revert back has somewhere unlocked their bootloader by doing
fastboot oem get_identifier_token
and
fastboot flash unlocktoken Unlock_code.bin
Please remember this: ANY RUU will fail every single time if your device is LOCKED. It will ONLY work if it's unlocked or relocked.
So first off what we gonna have to do is relock/unlock our device. You can relock your device by going into fastboot[1] mode and running the following command:
fastboot oem lock
Myself have expierenced an error that told me it "FAILED". Please reboot your bootload:
fastboot reboot-bootloader
And check the locked status at the top. If it says "RELOCKED", succes! If it didn't, retry the command above.
Next, we're relocked so we can run the RUU. Please look at the text file at the RUU source [2] for the download links. In this .zip file are the files inside the RUU wizard. You can run the wizard by executing "ARUWizard.exe" and you can view the contents of the actual ROM in "rom.zip extracted" and you can find the original ROM in "rom.zip". Since these are the files the wizard will be using (except rom.zip extracted folder) please do not touch them.
Alright, so we've got the extracted files of the RUU and we're ready to update. Please boot your phone in fastboot mode and connect it to your computer via USB. Now run the "ARUWizard.exe" file and let it update. I couldn't think of a situation where this could go wrong, so please ask below if you face any problems.
The wizard will flash stock radio, recovery andsystem.img (the actual ROM you all know) so by doing this you lose your custom revovery.
When your phone boots up you've gotta go through 3-4 updates till it's on "2.22.401.7".
I recommend not flashing a custom recovery right away because when you install/download OTA updates it isn't able to flash it right. In the meantime if you want root[3] use this command:
adb install -s supersu.apk
When you're on the latest version you have to unlock your bootloader, otherwise you cannot flash a custom recovery or kernel or whatever. You can do this via HTC[4]. I think there are enough guides on how to do this, but in short:
- create an account with an legitimate email address
- Select "all other supported devices" from the list
- follow on screen instructions.
Seriously everything is on there, HTC made it really easy.
If you want to install a custom recovery I recommend using TWRP[5]. Please flash TWRP by booting into fastboot and running the following command:
fastboot flash recovery twrp_recovery.img
Troubleshooting
There isn't really a lot that can go wrong if you do this. But when you're stuck on a screen or you think your device is "bricked" or stuck in a bootloop do these things:
- First off, hold the power and volume down button till the device goes down. If it's down, release the buttons and then hold the same buttons again till you're in bootloader
If that doesn't work do either of these commands (make sure your device is connected via USB, hehe)
Make sure fastboot and/or adb is working first:
fastboot devices
adb devices
If fastboot is working:
fastboot reboot-bootloader
If ADB is working:
adb reboot bootloader
adb reboot recovery
If you have any questions, please ask me. I did a dozen of things these two days, I may forgotten something because I did a crapload of things all at once.
Cheers!
Sources:
[1] http://www.technewscentral.co.uk/enter-fastbootbootloader-mode-htc-one/id_7930
[2] http://rg.to/file/aaca8c0c03e655d6df78242b4cea931b/hov.zip.html
http://ul.to/dfmg5dnw
https://mega.co.nz/#!wBcUiIxD!uIkyqZLgFErSItBTu3K7RY3eyUmXVUg60rcB-B-QRWE
Please request other providers below.
[3] http://download.chainfire.eu/supersu
[4] http://www.htcdev.com/bootloader
[5] http://techerrata.com/browse/twrp2/primou
tl;dr
unlock bootloader -> run RUU -> done
This is great and all, but is this for the PRIMO-C or U? US version? etc... etc..

HTC 10 - OEM Unlocked - TWRP Recovery - SuperSU Rooted - Sunshine S-OFF

I had the hardest time figuring out the whole unlock, root and install ROM on my HTC 10. The biggest issue was that I encrypted my phone, and most guides did not take that into consideration. After consolidating all my notes from multiple sources on the interweb, here's what I have.
GOAL: To have an HTC 10 that is OEM unlocked, custom recovery on board, rooted and has S-OFF setting. This will allow for most flexible customization of software and ROM choices. This may affect your warranty, so proceed with caution.
ASSUMPTIONS: This guide is for an American stock T-Mobile HTC 10 phone with a separate microSD card. It may work with other carriers or countries, but I honestly don't know for sure. This is also written for a Windows PC with access to microSD. You have time and $25 to spare. Money is for a certain unlocking app; not for me. You understand the meaning of bootloader unlocked, custom recovery, rooted, S-OFF and custom ROM. Please look elsewhere for what these mean. They are not synonymous.
GENERAL STEPS:
Prepare stock phone for unlocking and rooting
OEM unlock the phone
Install custom recovery software
Backup stock phone image
Install root access software
Install S-OFF software
Install custom ROM
Download required software
Create folder C:\android
Download and install HTC Hotsync Manager to recognize the device by USB.
Download Google's Android Platform Tools. Unzip and place files in C:\android. Unless you want to waste 4GB of time and storage, you can also download the full Android Studio.
HTC's custom fastboot.exe will be downloaded later on.
Download latest TWRP for HTC 10. Copy file into C:\android
Download latest SuperSU. Copy file into C:\android then copy it to the microSD card.
Download latest Sunshine. Copy file into C:\android then copy it to the microSD card.
Download ROM zip file
Pick a ROM to download. Can get custom ones as listed in xda forums page. Copy ROM zip file into C:\android. If you pick a custom ROM, disregard the rest of this section.
Or pick a stock HTC ROM from website. Can pick most recent ROM for specific carrier or the Unlocked/Developer ROM.
To extract ROM zip file from *.exe, do the following.
Download Microsoft Process Monitor. Unzip folder and run program.
Press CTRL-L to set proper filters: "Process name", "is", [name of ROM with .exe] > click Add; "Path", "contains", "rom.zip" > click Add > Click OK
Run the ROM exe. Do not "install" it. Just run the program to start the "process". Go back to Process Monitor and look for the temp folder that the installer extracted the files to.
Go to the temp folder above that contains the rom.zip. Copy this to C:\android
Close the ROM exe install program.
Get CID for the HTC ROM. Open multi-volume zip archive via Winrar. The usual Windows zip cannot open multi-volume archives. DO NOT extract the file. But find the text file within the ROM zip archive that contains CID, and write it down for later (just keep opening text files; some will be errors; some will open; it'll be obvious). The phone's CID and the ROM's CID must match (more on this later).
Prepare stock phone for unlocking and rooting
Save/backup everything to the cloud or microSD. All data will be deleted with this process!!
Turn on Developer options: Settings > About > Software information > More > tap "Build number" many times until you see "You are now a developer".
Settings > Developer options > check "OEM unlocking", check "USB debugging"
Reboot to Download Mode via Volume-Down+Power. Do not let go of the buttons until you see the gray HTC on a black screen (otherwise won't boot to Download Mode).
HTC OEM Unlock The Phone
Go to HTCdev website. They have screwy SSL certificate and port forwarding. You will have to create a login; and so I recommend making sure it is https -- unless you don't care. Click on Unlock Bootloader and select HTC 10. Go through all the usual prompts.
No need to download all the files on the right side panel. They were already downloaded up above.
Be sure to download the HTC Windows fastboot.exe in Step 4. In C:\android rename Google's version to fastboot-google.com and then unzip and place HTC's version into this folder.
Plug in phone (make sure it is in Download Mode) to PC.
Open command prompt. Press WINDOWS+R and type cmd. In command prompt type cd \android
In C:\android> type fastboot oem get_identifier_token
As the HTCdev website shows, copy all the text between (and including) <<<< Identifier Token Start >>>> and <<<<< Identifier Token End >>>>> into the appropriate part of the website. Make sure the extra text/characters are not included (see example from HTCdev site).
Go to email and download Unlock_code.bin sent by HTCdev. Save this file to C:\android>
In C:\android> type fastboot flash unlocktoken Unlock_code.bin
Press Volume-up or -down on phone and select YES for OEM unlock.
Allow phone to reboot and do a factory reset.
After factory reset, reboot to Download Mode via Volume-Down+Power
Flash TWRP Custom Recovery Software to Phone and Prepare for SuperSU
In C:\android> type fastboot flash recovery [twrp-file-downloaded-above]
After flashing TWRP, you MUST do a hardware reboot by pressing Volume-Down+Power. If you allow reboot by any other method, phone will erase TWRP. For example, do not use adb or fastboot to reboot at this point.
Use Volume-up and -down buttons to highlight reboot to bootloader and press Power button to select it; then do the same for boot to recovery mode.
TWRP now loads
If you happen to have encrypted your phone, you MUST enter your password here. To get phone rooted, a file needs to be created in /data/ folder. This folder can only be accessed by TWRP after putting in encryption password.
If your phone is not encrypted, TWRP should not ask for a password.
Swipe right to access TWRP (cannot use TWRP in read-only mode, if you want it to do anything to the phone ... duh).
Go to Advanced > Terminal
In # type echo KEEPFORCEENCRYPT=true >> /data/.supersu
Backup Working Phone System Image
Unless you've done this before, you will likely miss a step or two. Doing so may end up with a bootloop or other error where you can't get to a user interface. Backing up your system now is a MUST.
While in TWRP, go to Backup. Select all the folders. Rename the file to something meaningful to you. Be sure it saves to microSD card.
Now do the back up.
Install SuperSU Root Access and Prepare for Sunshine
While in TWRP, go to Install.
Select the microSD and then the most recent SuperSU file you copied there earlier.
After install, select Reboot. If phone is encrypted, you will be asked to enter password, and it will likely reboot another time or two.
After phone boots up, load the SuperSU app and go through all the prompts.
Go to Settings > Security > check "Unknown sources"
Install Sunshine S-OFF App
Go to Settings > Storage > sd card (e.g., "New Storage") > select sunshine-latest.apk
Run Sunshine app
Select Grant when SuperSU pops up. If you see this pop up, your phone was successfully rooted.
Pay Sunshine $25. If you want S-OFF, I don't know of any alternatives.
Go through all prompts. Phone will likely reboot. This is part of the process. If Sunshine does not load after reboot, then load it up again and go through all the prompts. You'll have success, once the phone automatically turns off.
Turn on to Download Mode via buttton combo. This will confirm if phone is UNLOCKED and S-OFF
If you will be changing your CID later on, note all settings here (including CID) and save in case you want to revert to this state.
Alternatively, you can get the CID and MID by fastboot.
Connect phone (make sure in Download Mode) and connect to PC. In C:\android type fastboot oem readcid and then fastboot getvar mid
Install Custom ROM to HTC 10 Phone
If you used a custom ROM from the usual sources via XDA, then follow their instructions. Disregard the rest.
DO NOT perform the steps below unless the ROM is from the official HTC ROM website above for HTC 10.
For using HTC Unlocked/Developer ROM, you must change your phone's CID. If the CID on your phone does not match the ROM CID, then you will see an error before ROM installation begins.
Plug in phone (while in Download Mode) to PC
Note CID in HTC ROM text file above. It should have been BS_US001
The following step requires S-OFF. The $25 step above.
In C:\android type fastboot oem writecid [cid-code-eg-BS_US001]
Rename HTC ROM in C:\android to 2PS6IMG.zip. Copy file to microSD.
Reboot to Download Mode.
Press Volume-Up to install HTC ROM
After HTC ROM installation, TWRP recovery and SuperSU will be overwritten.
Reinstall TWRP as above.
Reinstall SuperSU as above.
Consider back up of system via TWRP onto microSD after completing all custom ROM installation, recovery flashing and rooting.
And you're done. Congrats!!
These days you'll have a better time using Magisk than SuperSU for systemless root and it'll allow you to use Android Pay as well.
Does this process remove the carrier SIM lock as well?
Sent from my HTC 10 using XDA-Developers Legacy app
Simpody said:
Does this process remove the carrier SIM lock as well?
Click to expand...
Click to collapse
No, Sunshine (nor any other app that I'm aware of) has any function affecting SIM lock. Sometimes there are other ways to hack that ability but I've never had to do it so I don't know where to suggest.

How to relock bootloader and flash stock on nexus 5x

Hello friends.
I unlocked my 5x and installed RR ROM . though performance wise this ROM is good but it has battery issues.
Now I want to lock bootloader and flash sstock rom..so that later on I can get official OTA from google too.
Problem is I can't really lock bootloader and flash stock
I need to know how to do it.
Plus I am using twrp right now. I trued to flash android o zip via twrp...but it wasn't possible
You can use adb sideload command to flash android o zip
I tried it bro. But adb can't flash this zip.
I hope that this is already resolved, however if it hasn't been, follow the following steps:
**I AM NOT RESPONSIBLE FOR ANY LOSSES RELATED TO FOLLOWING THIS GUIDE. IF YOU HAVE FURTHER QUESTIONS, REFERENCE GOOGLE'S GUIDE. IF YOU ARE UNSURE WHAT YOU'RE DOING, DO NOT FOLLOW THIS GUIDE.**
1) go to https://developers.google.com/android/images and download the newest package for the Nexus 5x (it should be under "bullhead.")
2) unzip the file.
3) boot your Nexus into the bootloader and connect your phone to your computer via adb
4) using command prompt (not powershell) run the "flash-all.bat" file. (There are plenty of guides online if you need to know how to use command prompt)
5) Proceed only after you get a message saying "press any key to exit." Do not disconnect your device until you see this message.
6) reboot to bootloader.
7) issue the command "flashing lock" to relock your bootloader (you probably want to verify that command)

[How To] Unlock Bootloader, Install Recovery and Root

Everytime I have to unlock,flash recovery and root I can't remember how to do it....
So I'm writing this very easy guide.
First off get the One X drivers from here:
https://forum.xda-developers.com/showthread.php?t=2217384
These are old drivers as HTC have stopped including them in HTC Sync.
Download Android SDK Slim from here:
https://mega.nz/#!8tETTbga!iVOYHGwT7SYV9s9AKqT6hukX-odb7PNuQCrX6zJxpwQ
Unzip it anywhere you like, desktop's easy but it can be anywhere...
Go to https://www.htcdev.com log in click on Get Started then Unlock Bootloader and choose All Other Supported Models from the dropdown.
Click Yes and Tick the two boxes for all the legal stuff.
Now go into your One X Phone Developer Settings and switch on USB debugging.
Next go to Power settings and switch off Fastboot.
Then connect the phone to your PC via USB cable.
Allow your PC to recognise it and download any stuff it wants to.....
Go make a cup of Tea while this is happening.
Next go to your SDK folder, wherever you ended up putting it, click through to the Platform Tools folder where you will see ADB and Fastboot.
Hold down Shift and Right Click anywhere in the folder, choose Open Command Window Here.
In Command Window Type: adb reboot bootloader
Your Phone will boot into Bootloader
Keep the Command Window open...from now until the very end!!
That has just skipped all the 4 Steps on the HTC Dev site!!!
Proceed to Step 5
Now in the Command Windows Type: fastboot oem get_identifier_token
You will see a long block of text. Copy and paste this text into the the token field on the HTC Dev site. Right Click choose Mark and highlight the square bit of code then press Enter to copy.
Paste that into the My Device Identifier Token
HTC will email you a little Unlock_code.bin file within seconds (Check your Junk folder)
Then copy or move the token to the Platform Tools folder.
Back to your Command Window which should still be open!!
Type: fastboot flash unlocktoken Unlock_code.bin
Now follow the instructions on the Phone....
The phone will Unlock the bootloader....
And Reboot your phone....
You need to go back to settings and switch on USB Debugging and switch off Fastboot (See start of tutorial)
Make sure you are still plugged into your PC
In Command Window Type: adb reboot bootloader and your phone will go back into the Bootloader screen.
Next go here: https://twrp.me/Devices/HTC/
Choose your One X and download an early version of TWRP as the newer ones need the old ones to be installed!!
The One X comes in different flavours so make sure you get the right one for your model....
For sake of argument say I downloaded this file: twrp-2.4.4.0-endeavoru.img
Place that file in the Platform Tools folder
Then in Command Window type: fastboot flash recovery twrp-2.4.4.0-endeavoru.img
This will install your TWRP Recovery!!!
Excellent...now you can unplug from your PC and boot into Recovery.
In TWRP select Reboot and it will ask you if you want to install SuperSU.
You do, swipe the screen and your phone will Reboot into the Operating System.
From there open the Super SU app and update your Super User Binaries...
And that's how to Unlock the Bootloader, Install TWRP Recovery and Root....
EASILY!!!!
:silly::silly::silly:
Hit Thanks if its Helped You!!

Custom recovery TWRP for Infocus bingo 21 m430

Working TWRP custom recovery for infocus m430 bingo 21.
To do this, you would require:
data cable if not rooted phone
stock marshmallow running infocus m430 bingo 21
if not rooted, you need adb and fastboot installed on your computer-> google this if never heard of.
download attachments of this post(twrp_recoveryimg)
Problems:
Before you do this, you need to know the temporary problems you would encounter and their solutions
TWRP is in other language but you can use this link to bring it back to english, 1 time thing
http://www.teamandroid.com/2017/04/30/change-twrp-recovery-language-english/
if the above link does not work out, there are lot of youtube videos to enable english in twrp. google out.
once mobile boots into recovery, it will not come back to normal. There is a bit being set by infocus on some partition to reboot to recovery always. Until i find it, you would have to use following the process below to come back to normal boot.
Steps to come back to normal boot
1. in recovery, select option advanced
2. select adb sideload option
3. swipe to start sideload(this will start adb in recovery mode)
4. cancel
5. in your computer type
Code:
adb reboot bootloader
6. After mobile shows fastboot mode: in top of the screen with infocus logo type the below command
Code:
fastboot continue
7. This should boot your device back to normal android boot.
8. You have to do this every time you boot to recovery.
Now follow the below procedures to get a custom recovery on your mobile.
Procedure 1 : (does not require root)
unlock developer options -> google this if you never knew this until now.
unlock oem. Do this by going to developer options -> oem unlocking(enable).
unzip the recovery image attachment
enter fastboot by typing following command.
Code:
adb reboot bootloader.
flash twrp_recovery.img in the attachement. Do this by using following commands.(place your twrp_recovery.img in the current directory of terminal / cmd)
Code:
fastboot erase recovery
fastboot flash recovery twrp_recovery.img
Procedure 2 : (requires root) I have not tried this but it would work. Try it on your own risk.
Download the attachments
send them to your mobile sdcard
install mobile uncle tools or similar app from play store which would flash recovery images
select install recovery and point to the twrp_recovery.img in your sdcard.
Message me in case of questions or reply this thread.
Sir,where to type the code 'adb reboot bootloader' and other codes?
Want your contact number, for the purpose of custom recovery.
I tried that steps many times on my phone via pc. So help me for the custom recovery. I want your contact number to do this process correctly without worrying any problem occurs on my phone.
You should be able to find youtube video on how to install adb and fastboot online. After that, you should type those commands in command prompt in windows computer if you have or in terminal if you have linux or mac.
[email protected] said:
Sir,where to type the code 'adb reboot bootloader' and other codes?
Click to expand...
Click to collapse
Gimme your whatsapp or telegram number, i should be able to reach you out.
iyyappan001 said:
I tried that steps many times on my phone via pc. So help me for the custom recovery. I want your contact number to do this process correctly without worrying any problem occurs on my phone.
Click to expand...
Click to collapse
Problem while using adb fastboot method in In focus M425
What about infocus M425 phone ????

Categories

Resources