Go Back   Android Forums > Android Phones > HTC Droid DNA > Droid DNA - All Things Root

Like Tree1Likes
  • 1 Post By scotty85

test: Reply
 
LinkBack Thread Tools
Old February 22nd, 2013, 06:28 AM   #1 (permalink)
AF Addict
Thread Author (OP)
 
scotty85's Avatar
 
Join Date: Jul 2010
Posts: 11,014
 
Device(s):
Carrier: Not Provided

Thanks: 7,893
Thanked 7,228 Times in 4,485 Posts
Default [how to]reset your lock status flag

first and formost special thanks CastleBravo,without whos testing and help in this thread,this would not have happened so quickly. he asked all the right questions,and gave others all the right answers while i was at work and couldnt respond. also to treadwayj,who dumped mmcblk0p3 from his still locked phone for comparison,providing valuable confirmation.

since the current s-off method is not resetting the "lock status" flag,i thot there would be a need for this.

i happened across this thread inthe gsm evo 3d forum: http://forum.xda-developers.com/showthread.php?t=1970252 and found it to work on the rezound,inc 4g,sensation 4g,cdma evo 3d,MT4GS,Amaze 4g,one s,droid DNA,and prolly several others.

this does NOT mean you can unlock your bootloader without going thru htcdev. all this means,is that if your bootloader is unlocked after s-off,you can get rid of the relocked watermark and get back to 100% locked prior to s-on for legitimate warranty purposes.

ive always been unlocked. for S&Gs,i dumped mmcblk0p3 and found the described "HTCU" at 0x8404. changed it to 0x00000000 and voila! back to locked

afterward,relfashed my origianl mmcblk0p3,wich brought me back to unlocked with no getting or flashing tokens.

this is NOT a patched or hex edited hboot.again,this is ONLY to get back your original ***locked*** status.

*this is for s-off phones only

2 ways to do it:

1)old school
this assumes you to have drivers,adb/fastboot,a hex editor,a fair understanding about what youre doing,and the ability to follow directions on the linked thread

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Scott>cd c:\mini-adb_vigor

c:\mini-adb_vigor>adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
HTxxxxxxxxxx    device


c:\mini-adb_vigor>adb shell
shell@android:/ $ su
su
shell@android:/ # dd if=/dev/block/mmcblk0p3 of=/sdcard2/mmcblk0p3
dd if=/dev/block/mmcblk0p3 of=/sdcard2/mmcblk0p3
64734+0 records in
64734+0 records out
33143808 bytes transferred in 9.519 secs (3481858 bytes/sec)
shell@android:/ # exit
exit
shell@android:/ $ exit
exit

c:\mini-adb_vigor>adb pull /sdcard2/mmcblk0p3
2292 KB/s (33143808 bytes in 14.116s)

*modify mmcblk0p3 with a hex editor

c:\mini-adb_vigor>adb push mmcblk0p3mod /sdcard2/mmcblk0p3mod
2478 KB/s (33143808 bytes in 13.059s)

c:\mini-adb_vigor>adb shell
shell@android:/ $ su
su
shell@android:/ # dd if=/sdcard2/mmcblk0p3mod of=/dev/block/mmcblk0p3
dd if=/sdcard2/mmcblk0p3mod of=/dev/block/mmcblk0p3
64734+0 records in
64734+0 records out
33143808 bytes transferred in 18.937 secs (1750214 bytes/sec)
shell@android:/ # exit
exit
shell@android:/ $ exit
exit

c:\mini-adb_vigor>adb reboot bootloader

c:\mini-adb_vigor>
2)noob friendly
-download the appropriate zips,place on sd card.
-boot to recoverywipe cache/dalvik
-flash in recovery. i recomend to run query first,to make sure its working. tested on my personal one s,amaze,jetstream,rezound,inc) 4g,sensation,MT4GS,and gsm evo 3d. tested by castlebravo on DNA.

query:query_bootloader.zip
query_bootloader.zip f335f78f9f46469c823da0c671026de5

unlock:unlock_bootloader.zip
unlock_bootloader.zip f335f78f9f46469c823da0c671026de5

lock:lock_bootloader.zip
lock_bootloader.zip f335f78f9f46469c823da0c671026de5

a little bit of explanation. yes,the md5s are all the same. its the same file,just named differently. the script behaves based on the name of the zip. i knew if i only included 1 download and instructed folks to change the name there would be confusion,so this is my attempt to keep it simple. feel free to download one file and just change the name to make the other zips.

it also works to make your phone relocked if for some reason you want it that way(rename relock_bootloader.zip). i didnt include a zip for that because i figued there would be no demand.

before:


after:


sure,i could have easily faked the above photos,but i dint.

again,all credit goes to s trace on the above thread,be sure to click the thanks button on his post. all i did was remove the device check per his instruction. DO NOT flash on other devices without checking for the proper location of the lock flag first.

DISCLAIMER:this is not my work. i have tested it on my own device,but use it at your own risk. if it melts your phone into a lil pile of goo,its not my fault.

enjoy

special thanks
-BC for originally dumping mmcblk0p3 for me to know this was worth exploring for dna
-CastleBravo for testing and suport on the original test thread,as well as the pics you see here
-treadwayj for dumping mmcblk0p3 from his still locked phone.
-brian for unlocking his bootloader,then dumping mmcblock0p3 to make sure it would work for cdma evo3d phones too
-brian and donb for fearless testing of the zip files on evo3d cdma
Bob Cat likes this.

Advertisements
__________________
The Delivery Guy
If someone has helped you,please click the THANKS button on that post.
Please post questions so others can benefit from the answers.
donate to my device fund
scotty85 is offline  
Last edited by scotty85; February 27th, 2013 at 08:32 AM.
Reply With Quote
The Following 2 Users Say Thank You to scotty85 For This Useful Post:
Bob Cat (February 22nd, 2013), Ibrick (February 23rd, 2013)
sponsored links
Old March 4th, 2013, 02:02 PM   #2 (permalink)
Senior Member
 
ouch1976's Avatar
 
Join Date: Nov 2011
Posts: 539
 
Device(s): HTC One, LG G Pad 8.3, Rooted Motoactv
Carrier: Not Provided

Thanks: 76
Thanked 89 Times in 80 Posts
Default

So I had a rooted/rom'd DNA but I wanted to go back to stock and see what a fresh install experience was like on my phone. So I re-locked my bootloader and flashed the stock RUU and everything worked fine...except, my bootloader status is showing "RELOCKED" instead of "LOCKED"...is it too late to reset it? Or do I have to unlock the bootloader, root it again, and then follow the steps above?

Thanks in advance.
ouch1976 is offline  
Reply With Quote
Old March 4th, 2013, 03:47 PM   #3 (permalink)
AF Addict
Thread Author (OP)
 
scotty85's Avatar
 
Join Date: Jul 2010
Posts: 11,014
 
Device(s):
Carrier: Not Provided

Thanks: 7,893
Thanked 7,228 Times in 4,485 Posts
Default

the only requirements are that you are s-off,and have a custom recovery to flash the zip files in.

so if your s-off,no,definately not too late. just re-inastall your recovery and then flash the zip.

if youre s-on,then this is not going to work for you anyway
scotty85 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > HTC Droid DNA > Droid DNA - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:17 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.