yashsingh1/xdaforums huggingface dataset:
[HTC One A9] jmanley69:
HTC will unlock the bootloader of all their phones. You don't need a developer phone, but you do need to create an account at HTC Dev and the website walks you through the process.
[HTC One A9] injuhneer:
Thank you. I did contact SunShine about the problem. Turns out that the ADB drivers didn't get along with the phone when trying to flash recovery. A switch to the universal ADB drivers solved the comm problem. TWRP flashed, SuperSU flashed, and SunShine ran to completion.

Of course all the services stopped after reboot but I'll just wipe data and run through the setup again.

My apologies for buggin' you folks.
[HTC One A9] jmanley69:
No bother! Glad it all worked out for you. Yes, you must wipe everything after you install TWRP and before SuperSU. Otherwise, everything is encrypted and can't be correctly decrypted once you alter the firmware.

You should boot to recovery, wipe, reboot to recovery, then install SuperSU. Then you can boot your phone normally and it'll be rooted.
[HTC One A9] bdizzle1686:
Quick question, when it comes to making the system img. Backup, do we do that before or after wiping data, or does it not matter? I just know to do it before flashing supersu...
[HTC One A9] jmanley69:
Well... that's a quick question, but a detailed explanation LOL...

Quick answer - the latest SuperSU will not modify the system partition, so you it doesn't matter if it's before or after.

Long answer - (see above - plus)... When you boot into TWRP, it checks to see if the system partition has ever been mounted RW. If it hasn't, it will ask you if you want to keep it RO. It wouldn't be a bad idea to keep it RO and make a backup at that point. However, you can always extract the system.img from the RUU and flash it using fastboot. Although there's a special way you have to flash the system.img (it's not the same as flashing the recovery), it's still very simple. I actually prefer to wait until an RUU has been created for an update and apply it that way... gives me more control. OTAs will fail if the system partition does not hash to what the OTA is expecting (as in, ANYTHING has been written to it). I believe, no need to correct me if I'm wrong, the newer OTAs will fail if the system partition has EVER been mounted RW (even if nothing has been written to it), so it's always a good idea to NOT remount /system RW, and don't install any programs that do. Even the BusyBox installer will now put its files in the same partition as SuperSU and leave /system alone.
[HTC One A9] minhajlk:
Hi @jcase,

My Sprint htc one A9 is stuck in bootloader, it does not boot to download mode. Is there anyway I can get the phone to boot to download mode. Device is s-on.

Thanks.
[HTC One A9] jmanley69:
From power off, hold volume down + Power. That is download mode (black screen). If you're at white screen, volume down to BOOT TO DOWNLOAD MODE and press power.

Make sure you have the correct drivers installed.
[HTC One A9] minhajlk:
Hi @jmanley69,

I tried all that, phone does not go beyond bootloader, it bootloops to bootloader everytime. Even if I select recovery it bootloops to bootloader.
[HTC One A9] jmanley69:
You should RUU the phone and try again. Do not follow the instructions at the beginning of the thread. Go back a few posts in this thread and you'll find the correct procedure
[HTC One A9] minhajlk:
Yes, I tried that too, I get an error msg saying that I should put the device in download mode and try again.
[HTC One A9] jmanley69:
If you download the RUU from HTC, it will do everything it needs to. Make sure you have the correct drivers installed so that the RUU can see your phone.
[HTC One A9] minhajlk:
I have the correct drivers installed and I can see the phone using fastboot commands, when I issue fastboot getvar all; that what I get

(bootloader) version:0.5

(bootloader) ramdump-mode:false

(bootloader) variant:MTP eMMC

(bootloader) secure:yes

(bootloader) version-baseband:

(bootloader) version-bootloader:

(bootloader) max-download-size: 0x20000000

(bootloader) partition-type:cache:ext4

(bootloader) partition-size:cache: 0x10000000

(bootloader) partition-type:userdata:ext4

(bootloader) partition-size:userdata: 0x638000000

(bootloader) partition-type:system:ext4

(bootloader) partition-size:system: 0xc6000000

(bootloader) serialno:HT5APSZ02377

all:

finished. total time: 0.130s
[HTC One A9] jmanley69:
There are 3 different drivers that need to load for your phone to be recognized by Windows. Make sure you have all 3 of them correct and that your computer recognizes your phone when it's in fastboot (obviously, that works because you can issue fastboot commands), regular boot (that's not necessary yet), and download mode (seems like you're having problems with this one).

We can try this... If you're able to get to it with fastboot, then let's try flashing the firmware from the latest RUU. You MUST do the full RUU after you do this or your phone will not work correctly. This may work if you're s-on, but if not, the only option is to get the RUU to run. You should be able to run the RUU from HTC from fastboot.

If your bootloader is unlocked, you'll need to do fastboot oem lock

Then do fastboot oem rebootRUU

then fastboot flash zip firmware.zip

The message on your computer will say you need to flash again immediately. issue the fastboot flash zip firmware.zip again.

When it's done, you should be able to reboot the phone in to booloader, download, or recovery and run the RUU from HTC http://dl3.htc.com/application/RUU_HIA_AERO_WHL_M60_SENSE7GP_SPCS_MR_Sprint_WWE_1.60.651.4.exe

Here's the firmware.zip for Sprint A9 v1.60.651.4 https://www.androidfilehost.com/?fid=385035244224397829

If that doesn't work with s-on, then you can unlock your bootloader again and using fastboot, you can flash the boot.img and recovery.img and possibly hboot.img
[HTC One A9] minhajlk:
Hi [MENTION=1588425]jmanley69[/MENTION],

Thanks you so much for your help and all links, I tried all the above methods;

Bootloader unlock does not work as I need to be on download mode, so is flashing recovery, boot or hosd.

RUU ends with error battery lower than 30%

If the device is s-off mode, some of the above method would have been a success. I'll keep trying to get this phone to work, in the meantime if you come across any solution, please keep me posted.

Thanks again.

Minhaj.
[HTC One A9] Damirzvo:
Best regards!

I need help, I can give only install TWRP and make root my device, without changing the original OS or I have to put custom RUU. And I was wondering whether I lose all data and settings from the device if only I install Super user and TWRP. Finally, you'll lose and nothing to gain by installing only TWRP and SU?

P.S. sorry for my bad english
[HTC One A9] jmanley69:
The root process will erase all data.

Step 1 - Unlock bootloader - This will erase all data

Step 2 - install TWRP

Step 3 - Boot to recovery & wipe data - this will erase all data

If you want to install a custom ROM, that will be after Step 3, and you will need to wipe data before you install a custom ROM - This will erase all data
[HTC One A9] suquet.paul:
So, whats the new thread? I can't get twrp on my a9.

FAILED (remote: cannot flash this partition in s-on state)

Do, do I really need S-OFF? I didn't need S-Off on my HTC 10 to get TWRP, is this different?
[HTC One A9] jmanley69:
You do not need s-off to flash TWRP using fastboot flash recovery recovery.img.

You DO need unlocked bootloader. Go to HTC Dev and they will walk you through the process. You must get the unlock code from HTC. It will erase your phone.
[HTC One A9] suquet.paul:
Yeah, I do have an unlocked bootloader. But I can't seem to get TWRP working.
[HTC One A9] Whileitlasted:
Just wanna understand the difference between a signed zip and a combined_signed zip.

What difference does it make to have a not encrypted first zip? When should one use signed zip or combined signed? Does combined zip contain the signed_hboot zip or one has to update the hboot zip separately?
[HTC One A9] dauninno:
Htc one a9 no boot

Hello Jcase. Hope you're well.. Sorry for late consultation but I have an HTC One A9 does not boot, has S-ON with a Locked Bootloader.. I attempted to flash with 1.27.502 which it was initially running but i get a utility error saying i should get the correct Rom.. when i try to get the token identifier it gives me the oem unlock block error..

Is there a way to S-OFF and Unlock bootloader with no os and later flash a custom os

THANKS in advance
[HTC One A9] timsah:
Everything went well until I started the device, went to the store to update Superuser (I waited for the store to finish all the other app updates). I started the Superuser, it said it is necessary to do a binary update, tried to do over TWRP, didn't really see, if something happened, because the update page disappeared pretty quick. When I try to restart the device, it is getting stuck at Boot. Factory Reset didn't help either.

I used the following boot.img (a9-ee-635503.7.zip) and the TWRP from Captain_Throwback.
[HTC One A9] Will972:
[MENTION=2376614]jcase[/MENTION] i've follow your guide but twrp ask me for a password to decrypt data ???????
[HTC One A9] jcase:
Format data
[HTC One A9] timsah:
[MENTION=2376614]jcase[/MENTION]

Any suggestions, what I could/should try?

I tried the guide twice, now it passes the splash screen and gets stucked on boot screen.
[HTC One A9] jcase:
a) Did you flash the right boot.img

b) did you format (not wipe) data after flashing the boot.img
[HTC One A9] elevation_2:
So in my excitement I might have flashed the wrong boot image because Im stuck on the HTC logo. I got my phone from handtech.co.uk and its sim free. I assumed(Yes this was stupid of me) File Type: zip	a9-ee-635503.7.zip was the one for me. Any suggestions what I should/can do now? I can get into download mode so I think there's hope. Any help would be greatly appreciated.
[HTC One A9] jaypeg123:
Is the format data done from twrp or is it an adb command?
[HTC One A9] elevation_2:
I havent formatted as yet. I was under the impression that needs to be done once the image is flashed and sice im on the HTC logo I cant format. Whats the adb command to do this?
[HTC One A9] jollywhitefoot:
I don't think he was suggesting a solution to you.

Did your build.prop match the one for the boot.img you flashed? I take it you didn't make a backup of boot partition in TWRP before flashing? You might have to wait until a kernel (or and RUU) becomes available for your specific variant.
[HTC One A9] jcase:
Find and flash a RUU, this is using a different type of supersu, which is why i provided the boot images and a superuser.apk
[HTC One A9] jcase:
From recovery, give me the fingerprint from /system/build.prop or flash a ruu
[HTC One A9] elevation_2:
I unfortunately didn't check the build.prop. And no didn't make a backup of the boot partition either because I didn't have TWRP installed. My variant is 2PQ910000. Would really appreciate if anyone can confirm if they have the same variant and if all is working fine. Thank you

---------- Post added at 10:19 PM ---------- Previous post was at 10:09 PM ----------

I was an exclamation mark when trying to get into the default recovery so I just flashed the Custom recovery in your post(without factory resetting since I get load the Os) now I just get a message saying failed to boot to recovery. Could you pls point me to where I can get the Ruu?thank you

---------- Post added at 10:27 PM ---------- Previous post was at 10:19 PM ----------

Re download and reflashed recover and finally am in the recovery but can't find where the fingerprint is. Pls see the attachment. Many thanks for taking the time to try resolve my mistake.
[HTC One A9] FatKris:
I got all prepared last night sat down got everything set up. I was ready to root! Then I stopped. First off, I'm working from a Mac so that makes it just annoying enough to make me stop and wait. I have the US unlocked version. I think I'm going to wait until more bugs are worked out. But if by some off chance there's any help I can give, I'd be happy too.
[HTC One A9] elevation_2:
Thanks for the offer. Can you pls share what version it is?
[HTC One A9] Captain_Throwback:
First off, screenshot in recovery is Power+Volume Down.

Secondly, in order to read anything from /system, you first have to mount it in the Mount menu. Then you can locate build.prop and retrieve the build.fingerprint from it.
[HTC One A9] FatKris:
1.11.617.5

---------- Post added at 07:06 PM ---------- Previous post was at 06:40 PM ----------

I hope that was the right one.
[HTC One A9] jcase:
No bugs at this time, I did all of this on a mac
[HTC One A9] eelpout:
that looks to be the same as mine, the U.S. unlocked variant.

I don't think anyone has made a boot.img of this yet. if I decide to keep mine (not sure yet), I'll do that when I get a chance.
[HTC One A9] elevation_2:
Thanks for the screenshot tip :) I was actually unable to access my device so i wouldnt have been able to use that screenshot.

Everything is working fine and and I am rooted.

I formatted the data in recovery and rebooted and it did. Followed the instructions to root and was successful. Ive attached my build.prop Can you tell me what the issue was?

Many thanks for all the support.
[HTC One A9] jaypeg123:
Did you format data in twrp recovery?
[HTC One A9] Tommmii:
This thread is the way for rooting today.

You don't say which A9 ?

1.27.502.5 is meant for AT&T modelid 2PQ912000 cidnum CWS__001

Does that correspond to your device?
[HTC One A9] jcase:
Find a proper ruu and flash it, or you can mail it to us and we can s-off it/unlock it
[HTC One A9] dauninno:
the hTC is AT&T modelid 2PQ912000 cidnum CWS__001 running os:1.27.502.5 ive downloaded the exact same RUU and it gives me an error after sending 4% that i should find the correct RUU..

Ive downloaded 2 roms (RUU_HIA_AERO_UL_M60_SENSE7GP_ATT_Cingular_US_1.27.502.5) and (RUU_HIA_AERO_UL_M60_SENSE7GP_ATT_MR_NA_Gen_Unlock_1.57.617.60) and they both give me the error of incorrect ruu..

Please help me if maybe im downloading the wrong ruu

I wouldnt mind mailing it but i work at a mobile service center and the htc is for a client
[HTC One A9] Tommmii:
you checked the mid & cid with "fastboot getvar all ", right ?

RUU_HIA_AERO_UL_M60_SENSE7GP_ATT_Cingular_US_1.27 .502.5 is definately the right RUU if the device is indeed 2PQ912000 cidnum CWS__001 running os:1.27.502.5

Don't use USB3 ports, verify your download against the MD5 hash.
[HTC One A9] dauninno:
Thanks Tommi i using the Usb3 port the whole time and yes I checked the mid&cid, downloaded the ruu from the xda collection for A9... and unfortunately the phone blacked out wont boot and shows unrecognized usb when i connect it to the pc... this happened after i tried to run an update using sd card (2PQ9IMG_HIA_AERO_UL_M60_SENSE7GP_ATT_Cingular_US_1.27.502.5_Radio_1.0.U00297.1@51002.2_29.05_F_release_458436_signed_Hboot_2_4)..

now i am stuck not sure where to start

Thankz for the help

---------- Post added at 02:39 PM ---------- Previous post was at 02:24 PM ----------

Does that correspond to your device? YES that is the mid and cid
[HTC One A9] Tommmii:
Do any of the button combinations from this thread result in anything ?
[HTC One A9] dauninno:
Not at the moment its completely off but when i connect it to the pc it connects after a couple of seconds and the usb unrecognized pop up appear yet before trying the update it was connecting perfectly..

i was thinking of opening it up so i can disconnect the battery manually the try to restart it
[HTC One A9] Tommmii:
those button combinations are best tried from POWEROFF, and without USB connected.
[HTC One A9] dauninno:
Let me give them a shot again a couple of times then give you feedback

tho while trying the update it failed on a couple of installations then blacked out

Thanks...
[HTC One A9] dauninno:
Hello Tommmii, this thing has not responded to any of the combinations:(:(:(
[HTC One A9] Tommmii:
reflashing stock RUU through SD-card method ?

PS : are you certain that there is no sticky button ?
[HTC One A9] dauninno:
reflashing stock RUU through SD-card method ? ive have tried that but connection error on the part of verifying phone information /'error 170\] NB: On the RUU.exe

PS : are you certain that there is no sticky button ? Ther was no issue with the buttons, the phone just went off instead of rebooting after the update installation

reflashing stock RUU through SD-card method ? I cant flash using sd anymore coz the phone isnt booting up
[HTC One A9] Tommmii:
Flashing from SD does not involve USB. Did you properly rename the rom file on the SD ??

What does windows device manages show exactly, when you connect the phone ?
[HTC One A9] dauninno:
Unknown USB Device (Device Descriptor Request Failed) is all i get
[HTC One A9] Tommmii:
no device properties available ? no usb vendor id ? no usb device id?

have you tried the obvious : different cable, usb port, computer, usb drivers ?

failing all of the above...i'd say it's a brick.
[HTC One A9] kenb00:
Hey guys. Anyway to root android 7?
[HTC One A9] mrsubway:
Yes. Unlock bootloader, get S-OFF, flash TWRP, flash SuperSU. Or, flash TWRP and then use https://xdaforums.com/one-a9/develo...ntegrated-release-4-24-t3365326/post66525503.

Search the forums.
[HTC One A9] JohnRogers23:
Unlock Bootloader at HTCDev

Fastboot flash TWRP

Mount /system read only and flash Magisk

I would recommend Magisk over SuperSU for numerous reasons. Enjoy.
[HTC One A9] CarinaPDX:
And S-OFF is not needed for rooting. At least not if you have a Dev phone. If you cannot unlock the bootloader at HTCDev then you might have to spend the money.

Greg
[HTC One A9] antho59124:
Hello, links dead, possible to have an other one of it? Thank you
[HTC One A9] Feri Zulvia 011:
good
[HTC One A9] BoobySteelz.:
Anyone please, does locking back the Bootloader erase user data (factory reset) ?
[HTC One A9] JochenP:
Relocking does not erase any data

Sent from HTC U11
[HTC One A9] Olamide223:
Plz help

Plz somebody help....how do I unlock my HTC one A9 .....?
[HTC One A9] survivor_evil:
PD....
[HTC One A9] survivor_evil:
I tried those and still getting an error when flashing magiskv16

how do you install it?
[HTC One A9] JohnRogers23:
What phone and firmware are you on? What is your error? What steps did you take?
[HTC One A9] elfasito:
hello people.

exist any ways to flash a recovery without PC?

long time ago the connector of my a9 are burned. now only works for charge battery (without boost)

I already have unlocked and S-off

but im stock android 7 and no root.
[HTC One A9] anning felix:
Hello am a developer
[HTC One A9] elevation_2:
Yes I did.
[HTC One A9] FatKris:
Really? I know I rooted my m8 on my Mac, but that was a long time ago. I've since forgot how to abd and fastboot. I know it's not difficult I'll just look around YouTube. But I don't see my boot.img right now anyway. I can wait, I'm keeping my a9 so I'm in no rush. Thanks for the info though, good to know I don't need to go to Best Buy to get a PC only to return it the next day. :)
[HTC One A9] jcase:
Issue was taht /data did not get formatted
[HTC One A9] FatKris:
I'm trying to abd in terminal but I keep getting error: device not found. I've for debugging on, I unlocked the boot loader through HTC and on the device. Any ideas any one? I'm on a Mac.

---------- Post added at 10:44 PM ---------- Previous post was at 10:42 PM ----------

adb devices shows list of devices and its blank

---------- Post added at 10:46 PM ---------- Previous post was at 10:44 PM ----------

I don't need drivers do I?

---------- Post added at 10:56 PM ---------- Previous post was at 10:46 PM ----------

Ugh, never mind. Sorry with the he dumb questions.

---------- Post added at 11:17 PM ---------- Previous post was at 10:56 PM ----------

Okay, now I have a real question, adb is showing my device as offline. Any advice?
[HTC One A9] paperecho:
Monitoring this thread for sunshine compatibility.
[HTC One A9] jaypeg123:
Get The last version
[HTC One A9] JontyJonty:
A9 UK Sim Free

Please find attached my build.prop. I have a A9 UK sim free handset.
[HTC One A9] Captain_Throwback:
FYI

I posted an updated TWRP at the link in the OP that fixes the USB connection issues. Besides decryption (which isn't supported in TWRP because HTC uses proprietary encryption), TWRP should now be working 100%. I'll be submitting my device files soon for official inclusion, and probably starting an official TWRP thread as well.
[HTC One A9] FatKris:
I have the US factory unlocked version. ro.build.fingerprint

htc/hiaeul_00617/htc_hiaeul:6.0/MRA58K/639737.5:user/release-keys
[HTC One A9] JontyJonty:
Ok so ive managed to brick my A9. Ive managed to delete the os, can get to both TWRP and download mode, have tried flashing two A9 ruu but gives a security failure message. I think the only way to fix this is to get s-off.. might be waiting a while for that to happen... Anyone with any other ideas please let me know. All help is appreciated. Am willing to pay for s-off.
[HTC One A9] Captain_Throwback:
If you build a ROM from the dump Llabtoofer posted, you could just flash that so at least you have something (unless you have a different variant).
[HTC One A9] jollywhitefoot:
First off, it's not bricked. Bricked means it does nothing...no download mode, no recovery, just a blank screen. You have simply wiped your system partition and have no OS to boot to.

So, in download mode, find the OS line (for example, 1.11.617.5). This will tell you what RUU you can use.

Next, go to this thread and see if there's a matching RUU for your version.

http://xdaforums.com/one-a9/general/wip-ruu-htc-one-a9-t3240344

If no RUU exists yet, you might have to wait until HTC, or your carrier release one. Or wait until someone posts a recovery-flashable ROM.

If you are in the US, HTC puts their RUUs here:

http://www.htc.com/us/support/rom-downloads.html

If an ruu does exist that matches, place it in your fastboot folder, put the phone in download mode and flash it using "fastboot flash zip NAMEOFROM.zip"

If the RUU is over 2 GB, you'll need to find "htc_fastboot.exe" and use it instead of regular fastboot.exe. There should be several threads in the M9 section with links to htc_fastboot download. The commands are the same as with fastboot.exe.
[HTC One A9] Pan Skrzetuski:
Thanks for your great work jcase. I would like to help out with my version, but I can't figure out how to pull the boot.img.

I have the US Unlocked version

build.prop:

htc/hiaeul_00617/htc_hiaeul:6.0/MRA58K/639737.5:user/release-keys

cat /proc/partitions and MTK tool seem to indicate that the boot.img is in block 60 (mmcblk0p60), but I can't pull from the dev block without su...

If someone can tell me what to do here, I will happily provide the boot.img for my model.
[HTC One A9] jollywhitefoot:
He should have this one already.
[HTC One A9] FatKris:
I cant wait.
[HTC One A9] techlogik:
US unlocked version. Unlocked bootloader.

shell@htc_hiaeul:/ $ getprop ro.build.fingerprint

getprop ro.build.fingerprint

htc/hiaeul_00617/htc_hiaeul:6.0/MRA58K/639737.5:user/release-keys

So same here, will stand by and wait.
[HTC One A9] danifilth4king:
I have the O2-UK version, 1.10.206.7 but I can't figure out how to pull the boot.img either :(

Can anyone help? Thanks
[HTC One A9] Captain_Throwback:
Easiest way is to flash TWRP and do a backup of boot. That backup file, though named boot.emmc.win is the same as your boot.img.
[HTC One A9] danifilth4king:
Cheers mate. Is there any way to backup stock recovery before flashing TWRP for returning to stock? I only plan to keep the phone until the M10/O2 is released. Thanks :)
[HTC One A9] Captain_Throwback:
Nope. You'll have to wait until there's a decrypted RUU or an OTA and get stock recovery from there.
[HTC One A9] timsah:
a) Yes

b) Yes

I ended up flashing the Combined RUU since the device is S-OFF.

It bootet without issues.

I followed the guide again, actually the same way i did before, this time it worked well. :good:

The only difference was, superSU wasn't asking for a binary-update, so it didn't try to boot into TWRP. It looks, something went wrong there...

Thank you for the support.
[HTC One A9] jcase:
email me