yashsingh1/xdaforums huggingface dataset:
[HTC One Max] matthewtech770:
OK just deleted it thanks im now rooted will try now :fingers-crossed:
[HTC One Max] mwebb34:
Was having problems with terminal emu on android, got everything resolved.
[HTC One Max] mwebb34:
How do I copy and past the # prompt to the terminal emu I'm using my max.

EDIT

Problem solved
[HTC One Max] mwebb34:
Everything is fixxed, bootloader is locked unrooted and 100% stock. Ready for a upgrade. Only problem now is which device do I wanna get or do I wait a little while longer.
[HTC One Max] waco2hot33:
i achieved everything you just posted Bootloader locked im unrooted 100% stock ...but cant get into stock recovery are you? ...Ive tried from the fastboot screen vol down to recovery just sit at the phone with triangle and exclamation point
[HTC One Max] mwebb34:
Hey bro holla at fly or dottat or imtheonetheycallneo. I'm at work, you will get it straightened out hopefully.

---------- Post added at 12:40 PM ---------- Previous post was at 12:38 PM ----------

Go ahead and upgrade, remember ya got 2 weeks if you don't like the device you can send it back!
[HTC One Max] scotty1223:
That is the stock recovery. Hold vol up/power and you'll get a menu
[HTC One Max] Bogardan:
Thanks worked like a charm on my Sprint One Max
[HTC One Max] sidgallup:
SO... in order to use this mehtod which ends on a usable finger scanner, first i have to unlock it via htcDev, then get s-off and root, then relock bootloader and finally unlock it gain using this method... is this right¨?
[HTC One Max] scotty1223:
not if you want the fingerprint scanner to work. if you wish to remain rooted,then your steps are correct,just leave the bootloader locked after achieving root and s off
[HTC One Max] sidgallup:
but isnt it just a matter of relocking the bootloader for the fingerprint scanner to work? just adb oem lock?
[HTC One Max] scotty1223:
What are you asking,exactly?

The fingerprint scanner will not work while the phones flags indicate tampered or unlocked.

You cannot be rooted or run roms with a locked boot loader while s on.

Once you're s off you can be rooted,run a custom recovery,and custom roms while locked.

Yes,you can lock and unlock the boot loader to make the scanner work when you want it to.

Once you're s off,you don't need to flash boot images separately,and you don't need to be unlocked to change recoverys,so there isn't much reason to re-unlock the boot loader. But again,yes you can lock and unlock it as needed and get fingerprint scanner functionality back.

There are not any tricks that enable having an unlocked boot loader and a working scanner at the same time.

I hope that clears it up. :)
[HTC One Max] Octavialicious:
hey, I get the no permission error when typing in the thing to unlock it. I saw it says I need to type in su, but it just says that su is not a command. Could you go more in depth?

I'm using a Verizon model and I have S-Off

Thanks!
[HTC One Max] THEKILLERS97:
Hey dose this work for my HTC one max i seen u had m7 gsm m7_ul devices I'm trying to get my fingerprint scanner to work
[HTC One Max] scotty1223:
Search one max General. There is a thread there.
[HTC One Max] leminhnguyen0703:
I'm using One Max International t6ul with CID HTC_044, rooted, S-OFF. Done the remove tampered banner and pretty much everything else but relocking the bootloader doesn't work. After rebooting into bootloader it stills shows unlocked despite the fastboot commands worked out fine. How can I dump my partition so you can have a look ?

EDIT: Huh. Weird. I tried it again after a few hours and now it works !
[HTC One Max] Boltinvader:
Problem with "locking" Bootloader

Hi there,

(in case sorry for my bad English)

I try to describe my problem like I have it now. My Problem is that my power button is not working. So I flashed the Stock Rom and the Stock Recovery. Before flashing the Stock recovery I installed SuperSu. Don´t know if this will be still installed after flashing the Recovery.

Tried it via this Post but I need to be "LOCKED" not "RELOCKED"

http://xdaforums.com/showthread.php?t=2718415

Now my Problem is that I need a "LOCK" and no "RELOCKED" Banner in bootloader. I tried all but now I am at the and of my latinum.

Can someone help me please? This is the Message I get from the Command Prompt.

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell

shell@t6ul:/ $ su

su

1|shell@t6ul:/ $ echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1 s

eek=33796

d of=/dev/block/mmcblk0p3 bs=1 seek=33796 <

/dev/block/mmcblk0p3: cannot open for write: Permission denied
[HTC One Max] scotty1223:
You are not rooted.

You'll need to install a recovery. Enter the command in recovery,or use it to install SuperSU so you can enter the command in the os
[HTC One Max] Boltinvader:
But how do I get to Stock? Stock ROM and Recovery.

I have TWRP 2.8.3.0 Installed

Because if I lock the bootloader I can´t flash my recovery
[HTC One Max] scotty1223:
1 lock boot loader

2 remove tampered banner

3 change cid and mid to stock

4 run ruu

If no ruu is available,install stock os and recovery. You don't need to be unlocked,just install as a zip file in fastboot/ruu mode
[HTC One Max] Boltinvader:
So changed cid and mid to Stock but still have the Problem to lock the Bootloader. Don´t want to have a relock ;)
[HTC One Max] gabrielvl:
Hi adb problem

I try to have my device full to stock,and it wark fastboot comands,but adb dont work when i m in fastboot mode. It say device not found.

I use win 7 64,usb 2.0 i change to 2 pc ,my phone is s-off rooted.

Any help?
[HTC One Max] scotty1223:
What problem do you have?

In order to use Adb, you'll need to boot to a custom recovery, fo a rooted operating system

Sent from my HTC One max
[HTC One Max] farazhassankhan:
adb commands won't work in fastboot mode. What command are you trying by the way.
[HTC One Max] gabrielvl:
I'm writing adb devices, and it shows nothing. And adb she'l, and device not find. If iI write with phone open adb devices, it show my device, and adb reboot bootloader, it works. After it start in Faltboot USB, don't work adb commands, but Faltboot commands works
[HTC One Max] scotty1223:
as i said above:
[HTC One Max] gabrielvl:
If I flash twrp, as a custom recovery, it must be working. But I need this to look back bootloader.
[HTC One Max] farazhassankhan:
Like I said "adb" commands won't work while you are in fastboot mode. You have to start your command with "fastboot"
[HTC One Max] gabrielvl:
So how i can lock bootloader using fastboot comands,if the command i want to use is via adb

to LOCK your bootloader,enter the following:

adb devices

adb shell

su (if needed to get a # prompt)

echo -ne '\x00\x00\x00\x00' | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796

(i would very strongly recomend you copy/paste this)

exit

(exit a second time if you need to to get back to a normal > prompt)

adb reboot bootloader
[HTC One Max] farazhassankhan:
You have to be booted up in your phone to use all these commands. By booted up i mean, your phone must be in a state where you can use your phone for calls, messages etc etc. You don't have to boot into fastboot mode to use all those commands.
[HTC One Max] scotty1223:
You can also be booted to a custom recovery.

Sent from my HTC One max
[HTC One Max] gabrielvl:
Thanks,it was workind :))
[HTC One Max] k18682699:
One max t6ul

hello and I tried everything and do not get locked

with 4.4.2 to 5.0.2 I want nothing works help the sensor back

** I enclose my mmc file ... p7
[HTC One Max] scotty1223:
I need p3 not p7.

I also need a getvar all

Sent from my HTC One max
[HTC One Max] k18682699:
There is requested
[HTC One Max] scotty1223:
Your screen shot is very difficult to see on my phone, but it looks like you are s on.

Sent from my HTC One max
[HTC One Max] k18682699:
It has a solution for locked
[HTC One Max] scotty1223:
Yes, you are definitely s on. re read the original post. This will not work for you

Sent from my HTC One max
[HTC One Max] k18682699:
Can you give me Steps ? please
[HTC One Max] scotty1223:
You'll need to achieve s off. I'm not sure what is working on one Max at this time. Sunshine maybe a solution

S OFF instructions are beyond the scope of this thread. You will need to do your own research, and then repeat the steps in the original post afterward

Sent from my HTC One max
[HTC One Max] k18682699:
where to start ?

I don 't have much knowledge about it
[HTC One Max] k18682699:
Htc one max S-0ff tampered

sunchine use ?

remove tampered ?

and recovery fingerprint
[HTC One Max] dayi:
you are legend man! :)

i try and, worked :)
[HTC One Max] barikatdiss:
my s-off. I did what I did. no fingerprints did not come back. my hboot 2:49. What can I do ? please help me .It does not mean fingerprints.

T6UL PVT SHIP S-OFF RH

CID-HTC__M27

HBOOT-2.49.0000

RADIO-4T.36.3218.06

OPEN DSP-V33.120.274.T6.0829

QSC-

OS-4.14.401.10

eMMC-BOOT 20148MB

AUG 8 2015.13:04:00.10006
[HTC One Max] barikatdiss:
< waiting for device >

(bootloader) version: 0.5

(bootloader) version-bootloader: 2.49.0000

(bootloader) version-baseband: 4T.36.3218.06

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 4.14.401.10

(bootloader) version-misc: PVT SHIP S-OFF

(bootloader) serialno: FA3BFWG00098

(bootloader) imei: xxxxxxxxxxxxxx

(bootloader) meid: 00000000000000

(bootloader) product: t6ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: 0P3P51000

(bootloader) cidnum: HTC__M27

(bootloader) battery-status: good

(bootloader) battery-voltage: 4239mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-d0e3b226

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!
[HTC One Max] scotty1223:
Are you saying that your fingerprint scanner does not work? You must change your bootloader to locked,and leave it that way. Then you must remove the "tampered" banner
[HTC One Max] barikatdiss:
I did all right. fingerprint came yes. If I can now unlocked.
[HTC One Max] zohaibkhan143:
I don't have any OS in the phone. My device is not detecting on adb devices. So how is it possible to detect on adb and do this unlock process ? I need to update twrp in order to flash roms. I can't flash roms, getting error that system partition can't be mount there is no such partition, I think its a recovery issue. How can I go back to pure stock ?
[HTC One Max] scotty1223:
You can be stock by running an ruu.

Assuming you are s off,you can install recovery as a zip file,you do not need to be unlocked. Install current twrp,flash Rom.

Last and not least,ADB should work in recovery,if you currently have a custom recovery installed(even an old one)
[HTC One Max] Fakhri 19:
finally the easiest way to get my fingerprint back. Thankyou so much dev! :):)
[HTC One Max] majidroids:
Hello I unlocked bootloader is and Finger Print I do not ,What should I do?What you should not do.

thanks..my name is majid from iran...
[HTC One Max] sadaqatrajput:
problem in relock the bootloader of htc one max 0p3p7

i want to relock the bootloader of htc one max model 0p3p7 and install all the driver and work nice when i enter fastboot and etc. command but when i enter comaand to relock the bootloader it says dd is not recognized as an external or internal command please help me.

picter of my command[/IMG]
[HTC One Max] sadaqatrajput:
permission denied

hy scotty1223 your are a legend bro but unfortunately i faced a proble whrn i enter command for lock or unlock bootloader it say (cannot open for write : permission denied ) please help me. THANKS

MY COMMAND ISSUE.[/IMG]
[HTC One Max] B-Man2005:
at first i let it unlocked and then did what to do on first post so achieve unlock with the command

but after that scanner still doesnt work :(
[HTC One Max] scotty1223:
I think you are still misunderstanding. Your bootloader must display locked in order for the fingerprint scanner to work.
[HTC One Max] rootlinux:
Great stuff.
[HTC One Max] pradeepvizz:
+1
[HTC One Max] xhunter187:
So just to be one the safe side.... The bootloader had to be actually locked and not just hex edit locked correct? Also, having the bootloader locked while S-Off doesn't affect being able to flash custom splash screens and such? Thanks in advance.
[HTC One Max] scotty1223:
not sure what youre asking. locked is locked... this leaves the "lock status" flag that tells hboot wether to be unlocked or not, in a locked state,just as it came out of the box.

if you mean "does the lock status flag need to tell hboot to be locked in order for the fingerprint scanner to work" then the answer is

yes

. hex editing hboot to make the unlocked banner read "locked" does absolutely nothing functionally. whatever partition controls the fingerprint scanner is looking at the lock status flag itself,and could care less what hboots banner reads ;)
[HTC One Max] pradeepvizz:
[MENTION=2312238]scotty123[/MENTION] Has anyone tested this on the Sprint or the Verizon version?

[MENTION=5582892]logikzzz[/MENTION] you can post your partition dumps here and scotty would be glad to help :)
[HTC One Max] scotty1223:
Jm@n

reported in post 15 that it was working for sprint. i have looked at vzw dumps and the lock flag is in the correct location. if any vzw users want to test and report yay or nay ill add you to the credits.. or look into it further :)
[HTC One Max] pradeepvizz:
Fast response thanks :) i guess i missed reading the OP on the sprint confirmation.
[HTC One Max] scotty1223:
lol i just ninja'ed it in there ;) i knew someone had reported it,but i found the post just now to make sure. :)
[HTC One Max] pradeepvizz:
lol thanks :)
[HTC One Max] Jiggity Janx:
Since my hboot shows as normal and I don't use the fingerprint scanner I forgot about doing this. I can test later on if no one else does. I prefer the bootloader unlocked and don't need fingerprint so will test lock and unlock and report back.
[HTC One Max] droidrev71:
Giving this a go tomorrow. Thanks guys!!

EDIT: another confirmation that it's golden
[HTC One Max] DVS_Sokar:
Scotty would it be ok if I make a Windows GUI interface for your method?

I.E. a Windows box that has 2 buttons "Lock and Unlock" that pushed the commands in the background?

I am practicing my programming and seems like a really simple project to help me build something.

Credit will be given of course.
[HTC One Max] scotty1223:
sure,no prollem. make sure you credit s-trace and his thread(credited in my OP) for originally figureing out the lock/unlock flag location :)
[HTC One Max] DVS_Sokar:
Just testing the GUI now. Giving Credits so on so forth. Then I should be able to push it out. I will package it with fastboot.exe to avoid "issues" for those not in the know.

Here is a preview. Still working out adb issues in the command execution.
[HTC One Max] shenye:
Hey guys quick Q just so I'm 100% sure.

Unlocking using this method is just a flag change, correct? Therefore it won't go wiping the data partition?
[HTC One Max] scotty1223:
correct. all its doing is changing 4 bytes(8404-8407) in mmcblk0p3 to either 00 00 00 00("....") or 48 54 43 55("HTCU"),depending on what command you enter.

no other partitions should be affected.
[HTC One Max] scotty1223:
nice. looks good :)
[HTC One Max] shenye:
Cheers scotty!

And great work!
[HTC One Max] pradeepvizz:
[MENTION=1732427]DeadPhoenix[/MENTION] good work! thanks
[HTC One Max] RayHeath:
Excellent work bro! When you´re done, let us know. Maybe Scotty will post it in his here. ;)
[HTC One Max] barathan:
Permission Denied

Hi Scotty,

Was trying to lock my bootloader but got this permission denied msg after I cut and paste the string. Could you be kind enough to help me out.
[HTC One Max] pradeepvizz:
You need to root to write that. Do a SU as in the instructions

You need to have the hash prompt, not the $ prompt.
[HTC One Max] DVS_Sokar:
Well I am almost done.. Just have one more hurdle to jump. Pushing ADB commands via Console and parse the output for flag switch in the GUI. I have several ways in mind just need time to test them.

Edit: I found a the library I need. Just need to rewrite the code a bit and get some C# help (Which I have coming) from another XDA member for the command execution.
[HTC One Max] barathan:
Hi Pradeep,

I found where teh prob was. It was in SuperSu. I did not grant adb in it. Now managde to lock but unfortunately can't get the fingerprint to work. Do I need to remove the tampered banner? Is there something else I need to do to get fingerprint to work?

Thanks.
[HTC One Max] pradeepvizz:
Try that as well. i am not entirely sure but the first one i removed was tampered so don't know if that affects the fingerprint scanner or not.
[HTC One Max] barathan:
Hi Pradeep,

Ok will go back and remove the tampered banner and see if it works.

Edit: Happy to report that removing the tampered banner will get back the fingerprint. Thanks Pradeep for your help.
[HTC One Max] pradeepvizz:
Thanks for reporting :)
[HTC One Max] JontyJonty:
Fix fingerprint

Are you on a Vodafone UK HTC One Max? I am not able to run rumrunner successfully. Need to get S-Off so I can fix the fingerprint.

Any help appreciated. Tried using the insecure kernel in the root thread but just causes the Max to constantly reboot. Also which custom Rom do you have installed?

Thanks
[HTC One Max] scotty1223:
What trouble are you having? Are you running rumrunner from windows?
[HTC One Max] pradeepvizz:
Is Vodafone UK the international model? i guess there should not be a problem in S-off if you have the same HBOOT. just make sure you follow the instructions one by one again, as [MENTION=3437245]scotty1223[/MENTION] said, let us know what is your error that you are getting.
[HTC One Max] JontyJonty:
Yes, tried on Windows XP and Windows 7 Ultimate.

---------- Post added at 11:18 PM ---------- Previous post was at 10:28 PM ----------

Tried today at home on a Windows 7 pc. After 9 pouring it said "I need a insecure kernel or a custom Rom" Might just have to try again tomorrow at work.
[HTC One Max] pradeepvizz:
Interesting.. Are you rooted?
[HTC One Max] hectorz321:
yep Vodafone, navalynts rom. need any help just ask
[HTC One Max] scotty1223:
I've not run rumrunner,so I'm not familiar with its steps. First thing I would try is to run it from an ubuntu live cd,or a native install if you have access to one. Windows relies on prollematic drivers and is easily affected by other programs running on the machine.

From there,If installing an insecure kernel doesn't do it,I'd jump on the rumrunner irc and see what advice they have.
[HTC One Max] JontyJonty:
Ok, I have just installed navalynt_1.23.1540.1_RC1_Build2. Installation went well but on restart it now says "Unfortunately, System UI has stopped"

Any help appreciated.

Thanks

Sorry just seen the Hotfix :~)

---------- Post added at 09:23 AM ---------- Previous post was at 09:01 AM ----------

I have navalynt_1.23.1540.1_RC1_Build2 installed but going to the Mobile data settings access point names, network mode and network operators is all greyed out.

---------- Post added at 09:25 AM ---------- Previous post was at 09:23 AM ----------

I have navalynt_1.23.1540.1_RC1_Build2 installed but going to the Mobile data settings access point names, network mode and network operators is all greyed out.
[HTC One Max] pradeepvizz:
Is your radio working? Are you getting Signal on your mobile? Check your IMEI on the settings, is it fine?

Few ppl have reported issues related to radio/IMEI flashing ROM's, the solution is to use alternate recovery to flash the ROM - try TWRP
[HTC One Max] JontyJonty:
Great stuff flashed it using TWRP and it works fine. NOw to S-Off using Rumrunner..
[HTC One Max] DVS_Sokar:
Hi Folks,

Sorry for the delay. I was learning a new module for C# which has explicit Android Controlls built in such as Fastboot and Adb commands so my program would not need any additional files such as Fastboot.exe and Adb.exe.

I have it coded and I am just in the testing phase now. I plan on adding some additional information such as device detection and application path awareness in future builds but I want to get a beta out. I am working with a android C# dev to debug one line of code I am still having trouble with and Hopefully will have a release today.

Just some prerequisite warnings:

You will need:

A windows Operating System (Windows 7 Preferred)

This is a unsigned customer app so AV may flag it because of the unsigned nature

You will need HTC Drivers installed on your machine

You will need S-Off on your Device

You will need superuser on your device

Because Root Shell is invoked as part of the process you will need to Grant Root on your phone when prompted.

Thanks,
[HTC One Max] DVS_Sokar:
Just to show you where the current state of the program is here is a screenie. Just need to figure out this last bit of code for the Shell Root push of the echo command. I am planning on future builds to detect Root status. Detect the mode your phone is in.. I.E. Recovery, Normal or Bootloader which is all very doable just not high priority.
[HTC One Max] pradeepvizz:
I can confirm that the unlock and the relock flags also work with hboot version 2.47 ( this was in the OTA)
[HTC One Max] B-Man2005:
is there someone here that unlocked his bootloader with htcdev and fingerprint scanner stopped working afterwards

and got it working again by locking it again and unlocked it again with this method and got it working again ?

thanks
[HTC One Max] scotty1223:
Have you read this thread?
[HTC One Max] pradeepvizz:
Yes, everyone here on the thread went through that.

LOL
[HTC One Max] DVS_Sokar:
Special Thanks to the following:

Scotty1223 - Step by Step guide

strace - Original identification of the memory block and flags

beanup - all his contributions

regaw_leinad - AndroidLib help and implementation

Release GUI Based Boot Switcher:

I will make a dedicated thread once I get a more polished version. As for now here is what you get. The attached Zip included a folder that you will extract (doesn't matter where). Once Extracted Run the HTC One Max Bootswitcher.exe file.

Just because it has to be said. I am in no way responsible for your device or computer if you choose to use this software. You accept all liability and no warranty is offered or implied.

That said:

1. Once loaded you will agree to the terms by clicked the "Agree to All" button

2. The text box tells you when you can lock or unlock using the buttons accordingly.

3. Once you choose lock or unlocked the process takes about 5-10 secs depending on the speed of your computer. Usually less then 5 secs for me on a i5 intel. (I want to improve this and will in a future build)

4. You will see in the Console Output box the output of said task. (You must grant access to the superuser shell request to complete.)

5. The reboot bootloader button is a little finicky at the moment but does work. I think it's and threading issue I can fix in a future release. just wait 10 seconds or so and click it.

6. You phone will boot to bootloader for you to confirm the flag change.

That's all Folks. It's still a work in progress but I tested it successfully with the config below on my Verizon Wireless HTC One Max:

Computer:

Windows 7 Professional 32-bit

.Net 4.0

HTC Drivers Installed

Phone:

S-Off Rumrunner

super user installed (Permission granted)

What in the Zip?

The following Files are included in the HTC One Max Bootswitcher folder:

adb.exe (I want to automate a search on your pc for it so I don't need a local copy in the future)

AdbWinApi.dll

AdbWinUsbApi.dll

AndroidLib.dll

fastboot.exe (for future functionality... currently not used)

HTC One Max BootSwitcher.exe (The GUI app)

This was written in C# on Visual Studio 2013.

The file is unsigned and some Anti-Virus Programs may flag it. (Just an FYI)

This is my first C# Form Application be kind.

HTC One Max Bootswitcher v.1 Alpha.zip
[HTC One Max] DVS_Sokar:
Download Link is UP.
[HTC One Max] mini88448:
Scotty1223!! My Max is rooted but not s-off how did you get yours s-off!!

Htc One Max 8060
[HTC One Max] scotty1223:
I don't have a max,but you can achieve s off with rumrunner:

Rumrunner.us

There should be threads about it the the max original development section