yashsingh1/xdaforums huggingface dataset:
[One (M9) Android Development] squabbi:
Update v1.2 Released!

Hey guys! This is the major update to version 1.2! It featured a complete rewrite and recode to make things simpler that included removing those pesky windows and combined it into a beautiful single window! :D

So links are here: Download Version 1.2 annnd an in-depth review of the changes:

Removed wyUpdate

Embedded all DLL's into 1 executable

Made things simpler (1 main window)

New Metro UI

Fixed Fastboot Commands not Working!

Thanks for downloading and if there are any issues or bugs, please reply to this thread so I can fix them for everyone! :o
[One (M9) Android Development] dida1:
help

my phone stock on the silver HTC logo

what to do
[One (M9) Android Development] squabbi:
You can press the reboot button under fastboot. Btw which command did you use? :)
[One (M9) Android Development] dida1:
this what I get

program hang up

my phone stock on silvet HTC logo

I tried to hold power bottom but no response
[One (M9) Android Development] squabbi:
Yeah to get out of that state you'll need to restart the toolkit and press reboot under the fastboot title in the commands tab or force power off by holding power and both volume buttons until your phone turns off.

Also make sure that your phone is plugged in! ?
[One (M9) Android Development] METALLICAM:
Attached is the error and it's log everytime I fire up the toolkit.

Also, when I go to get unlock token, my phone boots into the SILVER HTC and hangs and the toolkit freezes up. Can't get passed that point.
[One (M9) Android Development] dida1:
this what I get

the phone stock on this screen and all bottoms are nor responding when press them

how to solve this issue
[One (M9) Android Development] squabbi:
You're supposed to use the volume buttons to navigate the menu and use the power button to select.
[One (M9) Android Development] squabbi:
Thanks for the error file! It appears that rRecovery1.xml is not there in the data/recoveries folder. If you do find it there try running the toolkit as an administrator. But I'll have a look on my end.

About getting the token code, does the toolkit hang on "rebooting into download mode" of something similar?
[One (M9) Android Development] METALLICAM:
The rRcovery1.xml is NOT there nor can I find it in any other folder.

Yes, the toolkit freezes on "Rebooting into download mode..." (I have to use task manager to end task just to close it out) and my device reboots into the silver HTC logo and hangs there. (3 finger salute to get the device to reboot)
[One (M9) Android Development] squabbi:
I'm currently uploading a new version (1.2.1) that hopefully fixes the Download Mode issue. Yeah to get out you'll need to force it or press reboot under the fastboot section. Could you try the new one for me? Thanks! :)

https://basketbuild.com/filedl/devs?dev=squabbi&dl=squabbi/m9/toolkit/version/M9Toolkit v1.2.1.exe
[One (M9) Android Development] METALLICAM:
Still getting this error upon boot of the toolkit. Log attached

Same outcome......."Rebooting into download mode..." and it freezes along with my device booting into the "silver HTC" logo

**EDIT**

Using Windows 8.1 64bit OS

I was using a non HTC cable through a USB Hub....switched to HTC cable that came with my device plugged straight into my ports on the front of the machine. When clicking the "Get Unlock Token Code" button, it goes through and creates a txt file with nothing for my token....it's blank. I don't believe my device actually boots into the download mode for it to grab the token as I still am being brought to the silver HTC logo. The toolkit allows me to reboot my device but after it reboots normally, the toolkit freezes up. I have to kill the task yet...

**EDIT**

I uninstalled HTC Sync Manager keeping the drivers, rebooted and now the toolkit does not freeze after trying to get the unlock token.....but still no TOKEN in txt file...
[One (M9) Android Development] squabbi:
Okay, thanks for helping me with this! :) As for the first error in the 'recoveries' folder do you see a Recovery1.img? I'll take a look at the freezing after rebooting. Is that straight from trying to get the token? Or did you press another button? I'll try to fix the empty token issue with another method.

I'll let you know when I have compiled a new version. Thank you! :)

edit: The silver HTC Screen is download mode or RUU mode. :)
[One (M9) Android Development] METALLICAM:
Yes, I have "Recovery1.img" in the Recoveries folder.

The toolkit is not freezing anymore after I uninstalled HTC SYNC, runs smooth.

We are currently stuck with the empty token txt file.

When I manually boot into download mode, it is actually labeled "HTC DOWNLOAD MODE" with 6 options to chose from.......
[One (M9) Android Development] squabbi:
Ok, looks good so far!

1. I should be able to come up with a quick fix so you have Recovery1.img but not the xml that accompanies it. So in the client box, everything says null?

2. Empty token txt should also be a quick fix.

3. Interesting! Could you test out these commands for me (using the fastboot.exe & adb.exe from the /adb/ folder) in a command window. (Shift + Right Click in an empty space in the /adb folder).

fastboot oem rebootRUU (What shows up?)

adb reboot fastboot (Is it the white screen with the options?)

what are the steps of booting into the download mode manually and is it different to when using the 'fastboot oem rebootRUU' command?

Thanks! :)

(I only had the M8 and I was hoping they had similar bootloader structures! :P )
[One (M9) Android Development] METALLICAM:
In the Client box, everything does say null.

Fastboot oem rebootRUU brings up the silver HTC logo

adb reboot "BOOTLOADER" not fastboot (white screen with the options) correct

The steps for booting into "Download Mode" are.....

boot into bootloader

select boot to Download Mode
[One (M9) Android Development] squabbi:
Oh wow ok thanks! So rebooting into the bootloader via ADB goes to the hboot (as the selected state) and not as fastboot usb?
[One (M9) Android Development] METALLICAM:
CORRECT......with device powered up, I enter the command "adb reboot bootloader" and my device will reboot into the bootloader (hboot).
[One (M9) Android Development] squabbi:
Is the device still able to take fastboot commands straight after rebooting into the bootloader via ADB?
[One (M9) Android Development] METALLICAM:
YES, after adb reboot bootloader command, phone boots into bootloader and all commands from there are fastboot commands.
[One (M9) Android Development] squabbi:
Ok thank you for the links as well! I'll try get these fixes out for 1.2.2. Thanks! :)

edit: I just saw how to reboot into download mode from adb! :)
[One (M9) Android Development] squabbi:
I didn't change anything for the TOKEN part just yet. I want to confirm if it was because of the phone not being in the new download mode. Thanks! Now it also checks if the rVersion1.xml file is missing and downloads it (hopefully). Thank you again! :D

Let me know how it goes! :)

https://basketbuild.com/filedl/devs?dev=squabbi&dl=squabbi/m9/toolkit/version/M9Toolkit v1.2.2.exe
[One (M9) Android Development] squabbi:
New Testing Version! v1.2.3

Hey guys! Thanks to [MENTION=2248897]METALLICAM[/MENTION] who has been helping me sort out some issues!

What's new in this version?

Added a 'Uninstall HTC Sync' button

[TESTING] Fixed 'Empty Token' with the new 'Download Mode'

[TESTING] Check for missing files (.xml)s

Download here: HTC One M9 Toolkit v1.2.3 [TESTING]

Please report anything here! THANK YOU!! :D
[One (M9) Android Development] JagSem:
Hi, I've tried to use this tool in order to flash custom recovery, which it did but I can't seem to get any further with it. I had to use the files in download folders to flash the stock recovery because the toolkit didn't seem to achieve it, even though it said that it had.

I tried to change the CID number which it claimed to have done but again, when I checked in cmd it was still VODAP001, 1.32.161.7 firmware.

What can I do in order to this this toolkit working? I returned it to relocked, manually flashed custom recovery and left it unrooted. It still failed to update the firmware, which is what I really wanted to achieve using this toolkit.

Any help appreciated, thanks.
[One (M9) Android Development] Duncan1982:
I just get programme is not responding on every version on my PC but it could and no doubt is something on my end. However I have tried and for the life of me I can't get the boot loader unlocked, my phone wants to remain locked so it seems :P
[One (M9) Android Development] squabbi:
Hi! Thanks for letting me know of these issues. ☺

As for changing your CID you must be s-off to do that.

And things that didn't flash, were you already in download mode? Or were you booted into Android and let the toolkit reboot for you?

Thanks!
[One (M9) Android Development] METALLICAM:
OK, V1.2.3 boots device into download mode after I click "1. Get Unlock Token Code" however the toolkit freezes once my device powers down to reboot. Only way to exit out of it is kill the task again. Something about losing connection to the device while rebooting...?? Maybe force the command to pause for a few seconds while it reboots to re-establish the connection????
[One (M9) Android Development] squabbi:
Sometimes it takes a while for it to load! :)
[One (M9) Android Development] squabbi:
New Version! v1.3.4 - Fixed flashing!!

Hey guys! New version out now! :D v1.2.4

Changes:

Fixed flashing for Recoveries (TWRP and STOCK)

Download:

You can grab em here! Version 1.2.4

Thanks to [MENTION=2594251]JagSem[/MENTION]
[One (M9) Android Development] squabbi:
I'll try that if 1.3.4 doesn't work for you. :)
[One (M9) Android Development] METALLICAM:
v1.2.4

1. Get Unlock Token Code = WORKS

2a. Open Token Code = broken, doesn't do anything when clicking that button

Under Flashing Recovery

Server Version

TWRP

2.8.6.4

Captian_Throwback

Client Version

null

null

null

Would it be possible to have the output token.txt file read <<<< Identifier Token Start >>>> "device token" <<<<< Identifier Token End >>>>> ?

Instead of [KillSwitch] : disable"device token" which is what it is currently outputting?

Also under the "ABOUT" tab where version is listed it says null.
[One (M9) Android Development] squabbi:
I'll have a look at the client values being null. Also does the actual token show in the txt file?
[One (M9) Android Development] METALLICAM:
Yes, the token is there and is good. I have my unlock.bin file from it.
[One (M9) Android Development] squabbi:
Ok cool! I've tried doing what you wanted with the token (included the <<<>>> on both ends). And could you see if it still says null for the client versions of the recovery? And one last thing! ;) The null on the about page should be ok now! :)

Thanks!
[One (M9) Android Development] squabbi:
New Version! v1.2.5 - Minor Changes + Fixes!

Hey guys! A new version is out now! :D v1.2.5

Changes:

Changed the raw token string

[TESTING] null for some cases for client recovery

[TESTING] Fixed null for version on about tab

Download: Version 1.2.5!

As usual if there are any bugs please let me know! :D
[One (M9) Android Development] METALLICAM:
[TESTING] null for some cases for client recovery ***FIXED***

[TESTING] Fixed null for version on about tab ***FIXED***

Now the toolkit is FC'ing when I click the "Get Unlock Token Code"

Screenshot attached.
[One (M9) Android Development] squabbi:
Ok thanks! I'll have to roll back to the older version. ;)
[One (M9) Android Development] squabbi:
New Version! v1.3 - Minor Changes

Edit: There is a bug in 1.3 that won't reboot into download mode (fastboot). That was an issue with the dll I use that has been fixed. So 1.3.1 will be compiled in 7 hours. (working) ;)

Okey! So 1.3 should be when things settle down now! :) Most things have been fixed and almost perfected! ;)

Changes:

[REVERTED] Changes to the raw token.

Download:

M9 Toolkit Version 1.3

Thank you guys! Now I'll be looking on adding features and functions as they come out! :D
[One (M9) Android Development] yves.alexis:
Hi squabby, thx for your tool. I do have an issue though. I passed all the steps until when I reach the root button nothing happens. So, I am unlocked, have twrp etc but root button refuses to do anything, am I missing something here? My. M9 comes straight out of the box, bought in Belgium..
[One (M9) Android Development] squabbi:
Oh haha I fogot to code that part! A few hours. :)
[One (M9) Android Development] squabbi:
New Version! v1.3.1 - Added ROOT

Okey! So 1.3.1* should be when things settle down now! :) Most things have been fixed and almost perfected! ;)

Changes:

Fixed ROOT button! It does something now. xD

Download:

M9 Toolkit Version 1.3.1

Thank you guys! Now I'll be looking on adding features and functions as they come out! :D
[One (M9) Android Development] squabbi:
Please check out version 1.3.1, as it fixes the root button. :)
[One (M9) Android Development] HkDng:
I need S-off for my device, hope that coming in the couple of next build ...
[One (M9) Android Development] brittoking:
You can do that with sunshine app already?? Are you hoping this great tool will do it for you? For free? I highly doubt that's coming or ever going to happen
[One (M9) Android Development] klloyd:
I tried two versions, both come back with blank token id. Windroid keeps force closing... getting into this m9 has been nothing but a head ache. Cant seem to get in it...
[One (M9) Android Development] squabbi:
Apologies, one user said it was working. When you tried getting the token, were you booted into android? Did you use 1.3.1? :)
[One (M9) Android Development] klloyd:
Yes. It goes through the process, but returns a blank page with the standard copy everything above this line... only there was nothing above that line. I got it done, just used cmd and the commands. just wanted to try out the tool kit.
[One (M9) Android Development] luccie_007:
For me it worked to go into fastboot, and then select goto download mode.

Then i could extract the token on my x64 win7 laptop.

This also has to be done when flashing TWRP,
[One (M9) Android Development] biyor:
with this tool i can flash TWRP and then flash any rom without unlock bootloader?
[One (M9) Android Development] squabbi:
No currently flashing any custom image requires an unlocked bootloader or at least S-Off and root.
[One (M9) Android Development] xda23:
Not to go off topic but is there a app or tool that can pre-root my HTC one m 9 without using a Computer? Thanks ;)
[One (M9) Android Development] squabbi:
Not currently. You'll probably need to wait for something like towelroot again. :)
[One (M9) Android Development] TheAtheistOtaku:
im trying to get twrp install on the phone but when i try i get something like "cannot something something in s-on state" so then when i go and try to use the superCID function to get s-off i get the error "unknown command" in the console. anyone know what im doing wrong? i got the bootloader unlocked with no problems. i would post logs, but the app wont let me copy paste from the console
[One (M9) Android Development] squabbi:
If your bootloader is unlocked, did you try pressing the flash under the twrp section? You'll need to be in android or download mode.

Supercid is to change it to 11111111 which requires s-off.
[One (M9) Android Development] TheAtheistOtaku:
yes, yes i have,when i do i get the errors stated above. i cant read it fully because the console keeps updating and scrolling down.

EDIT::Uhhhh nevermind, reconnecting the phone in download mode worked. weird
[One (M9) Android Development] squabbi:
Sorry about that, I gotta fix up the console from that spam.

About twrp not flashing.. I don't know why it said something about being s-on. I'll make a quick build that saves the log. And I'll get back to you. :)

Thanks
[One (M9) Android Development] TheAtheistOtaku:
its fine now. disconnecting and reconnecting the phone while in download mode worked. As soon as i connected it again, it flashed the recovery. what was weird is that i had already forced closed your program to try again. guess it ques up the commands in the background or something
[One (M9) Android Development] squabbi:
Oh haha that's strange as well. I'm glad it worked in the end. :)
[One (M9) Android Development] TheAtheistOtaku:
one last thing, does this install the lastest beta twrp? im reading on some customs roms that its required
[One (M9) Android Development] squabbi:
The latest twrp from captain throwback is 2.8.6.4. Is that what it says in the toolkit window for version? :)
[One (M9) Android Development] squabbi:
New Version Upcoming!

Another update in the works! :D Which will be version 1.3.2.

- It will feature an added log.txt for the console.

- Add toggles to what you want to see in the console, instead of the continuous spam of adb devices and fastboot devices commands running. ;)

- Add adb sideload button

Thanks for waiting guys! :D
[One (M9) Android Development] naziiaxx:
Htc one m7 bootloop

Hey, I have recently purchased a second hand HTC ONE M7. my phone worked perfectly fine for the first few months until i went to do the latest update on it. When the update had finished, i went to install it. During that process something happened and it didn't update properly. After doing much research on the internet, i found out that my phone has been "bootlooped". I have tried very hard to get it fixed but nobody has found the solution. Is there any chance you can have a look up at that and give me some tips so i can have a go myself.

Many thanks,

Naziiaxx
[One (M9) Android Development] squabbi:
Hey there! This isn't the right place to post this . You should be on the M7 forum and in the Q&A section! ;) But I'll try throwing my 2 cents in (although it may be a bit late)...

1. Have you tried factory resetting?

2. Are you able to flash a ROM via recovery?

:)
[One (M9) Android Development] squabbi:
New Version! v1.3.2 - More adjustments

Hey guys! I am pleased to announce a new version: 1.3.2 that addresses a few things. :)

They include:

[TESTING] Updater will download the new version if found

Time stamp on Log file from console

ADB Sideload

Download here: Version 1.3.2

Please request features and report issues and bugs here! :D
[One (M9) Android Development] benmeroff:
Can't Get Token

So I just got an HTC One from Swappa, but when I've tried using either Windows CMD or OSX Terminal to run "fastboot oem get_identifier_token", it returns "FAILED: Unknown Command".

Now I'm trying to use your tool, but when I try to retrieve my unlock token, it has nothing in the file above the text... I've attached my log and the token file it generated, not sure what I'm doing wrong.
[One (M9) Android Development] benmeroff:
Well I just tried it again, and it worked... go figure!
[One (M9) Android Development] squabbi:
Strange haha well at least it worked. Just for further development interests... Did you have to go into download mode for it to work the second time?
[One (M9) Android Development] benmeroff:
I did go into Download Mode for that last time, but I'd tried that before and it didn't see my phone... Could very well be this cable I'm using, it's well over a year old now.

But yeah, Download Mode on the new Bootloader seems to be the only way to have the unlock token pulled correctly. Otherwise the app would pull it, but it would just be blank above the text below.
[One (M9) Android Development] squabbi:
Yep ok thanks! Its the new download mode. Haha I wish there was a fastboot command that can reboot into that mode. :D Thanks for helping out! :D
[One (M9) Android Development] benmeroff:
No worries, thank you man! This tool is so slick!!
[One (M9) Android Development] image51:
I have tried to root this phone ..I'm over it :) ..I keep getting unlock code failed... Error Code: 140....Error Reason: Token Decryption Fail. .. or token length to short ..I have no Idea what I'm doing wrong..
[One (M9) Android Development] squabbi:
When you get your unlock token from the boot loader, did you copy everything? Otherwise make sure your unlock token isn't corrupt. :)
[One (M9) Android Development] xbxjunkie:
hey there, is this for all variants? don't see any mention of this NOT working for VZW
[One (M9) Android Development] squabbi:
I assume it does, the recovery at least supports Verizon so i guess its only the matter of unlocking the bootloader.
[One (M9) Android Development] xbxjunkie:
if someone can chime in that's tried this on VZW, please do so. I've already tried using HTCDEV, but VZW has that method locked down
[One (M9) Android Development] squabbi:
Unfortunately I guess you'll probably have to wait for an exploit to get root and then s-off. :(

The toolkit only uses the htcdev method for unlocking.
[One (M9) Android Development] sgtslaughter64:
I tried unlocking the bootloader numerous times....fail......on VZW....I hate big red! I bought the phone, I should be able to do what I want with it!!! If someone finds a workaround, please help!!!!
[One (M9) Android Development] clsA:
As of this date all the Verizon users here are getting S-Off via Java card, until Sunshine come up with their exploit
[One (M9) Android Development] eSbek:
For those who struggle:

Just downloaded the latest version (1.3.2) and got the Toolkit frozen on GET UNLOCK CODE as some of users before.

I tried the above v1.2.3 and successfully Toolkit rebooted my phone to download mode and got the token in TXT file via v1.3.2 (just wanted to proceed further with the latest version).

Next I failed again unlocking the bootloader with the unlock code.bin from HTC. The v1.3.2 couldn't reboot into download mode again, so I continued with v1.2.3. I got TWRP flashed with v1.2.3, the SUPERSU for some reason couldn't be flashed with v1.2.3 but was possible with the latest 1.3.2 version.
[One (M9) Android Development] squabbi:
Wow thank you for sharing this detailed response! :) so in 1.3.2 could not reboot into download mode when your phone was booted into android when you tried to flash the unlock token?
[One (M9) Android Development] Rolando88:
HI mate can you add option to relock bootloader?

greetz
[One (M9) Android Development] squabbi:
Yeah sure no problem! I'll get working on it. :)
[One (M9) Android Development] squabbi:
Oops! Even I forgot, but the 'OEM Lock' button will re-lock the bootloader. :)
[One (M9) Android Development] squabbi:
New Update! v1.4

Hey guys! Sorry for the previous versions where code wasn't checked properly. I've done that now so it should be all good! :)

What's New?

Added new downloading page where you can download device related items! Only one there at the moment but you can reply to this thread with a link to the file you want added! :)

And as written before I fixed some code.

Downloads

Downloads

Thank you! :)
[One (M9) Android Development] dincdoes.me:
Having Issues Sprint M9

[KillSwitch] : /dev/block/bootdevice/by-name/frp

[KillSwitch] Last Byte is 0X00, disable unlock

[KillSwitch] oem unlock Turn Off!

thats all ig get in my token.. Ive tried multiple toolkit version the latest one wont even put my phone into boot loader mode the 1.4ver just freezes using windows 8.1 with all the drivers needed

ill add this phone was previously unlocked not by me i just got the m9 i hated the s6 so i traded it once i got it i re locked the boot loader using your app then RUU stock then here i am now retrying to unlock boot loader but having issues,,

it may not be your program i dont know.. any help would be shaweet :) thank you for your time!
[One (M9) Android Development] jollywhitefoot:
go into developer options and check to allow bootloader unlock. It's a new security feature.

If you don't know how to open developer options. Go to Settings > About > Software > More and tap build number 8 times. you'll get a toast saying you've unlocked developer options. Then go back to settings and you 'll see it.
[One (M9) Android Development] nreddell:
I am getting this same error dev/block/bootdevice/by-name/frp. I haven't used your tool yet but I'm going to try it. I do have the option checked in developer options but still get the error. At&t software version 2.6.502. Any suggestions? Just trying to unlock the boot loader so I can root.
[One (M9) Android Development] nreddell:
Still nothing...didn't work either.