Post Reply

HTC Misctool [Tool to read/write main version]

OP drellisdee

2nd March 2012, 04:32 AM   |  #1  
OP Recognized Developer
Flag East Coast
Thanks Meter: 825
 
617 posts
Join Date:Joined: Jan 2008
Donate to Me
More
This tool will allow reading and directly writing the main version in Htc's misc partition to allow flashing if your main version is higher than the hboot/fastboot zip you are trying to flash or for the purpose of software downgrading on most HTC devices.

Pre-reqs:

Device must be an emmc based HTC & you must have root.
This should work on all emmc based HTC devices G2 to current such as rezound. This tool has been tested on Incredible 2 and on Rezound.

Useage is :

misctool <option> <value to write>

r: read main version from misc partition. No <value to write> needed
w: write new value to main version in misc partition & read back new value

ex. misctool w 1.00.000.0

Setting a value of 1.00.000.0 will allow all hboot zips to pass version checking.

If you are testing to see if it works on another htc run "misctool r" and if the version read back is correct the write will work also.

This can be used in userspace & recovery.

Example of use in updater-script:
run_program("/tmp/misctool", "w", "1.00.000.0");

I will eventually have this included into my RA Revamped recovery lineup as time permits.

If you find this useful consider donating to my development device fund (I'm hoping one day to join the Rezound club) as I was considering releasing this in a paid for apk but changed my mind and decided to GPL source it.

Static pre-compiled binary & gpl source is attached.
Attached Files
File Type: zip misctool.zip - [Click for QR Code] (306.6 KB, 4171 views)
Last edited by drellisdee; 2nd March 2012 at 02:24 PM.
The Following 51 Users Say Thank You to drellisdee For This Useful Post: [ View ]
2nd March 2012, 04:56 AM   |  #2  
con247's Avatar
Retired Recognized Developer
Flag Ann Arbor
Thanks Meter: 3,117
 
3,070 posts
Join Date:Joined: Sep 2010
More
Looks good bud!
2nd March 2012, 04:57 AM   |  #3  
Doddzilla's Avatar
Senior Member
Thanks Meter: 27
 
305 posts
Join Date:Joined: Oct 2008
So just flash the zip in recovery?

Sent from my ADR6425LVW using XDA App
2nd March 2012, 04:58 AM   |  #4  
con247's Avatar
Retired Recognized Developer
Flag Ann Arbor
Thanks Meter: 3,117
 
3,070 posts
Join Date:Joined: Sep 2010
More
Flash this in recovery and your main version gets set to a generic 1.00.000.0

This will allow any PH98IMG.zip or the newest RUU to run on your phone. I recommend flashing this before you flash a ROM that autoboots to install a PH98IMG.zip or before loading a PH98IMG.zip manually.

How to use: Just flash it in recovery as if it were a rom. Main Version Older issue will be solved.
Attached Files
File Type: zip SetMainVersionLOW.zip - [Click for QR Code] (436.9 KB, 9893 views)
Last edited by con247; 6th March 2012 at 04:17 AM. Reason: edited for clarity, better instructions, more info overall
The Following 60 Users Say Thank You to con247 For This Useful Post: [ View ]
2nd March 2012, 05:01 AM   |  #5  
Doddzilla's Avatar
Senior Member
Thanks Meter: 27
 
305 posts
Join Date:Joined: Oct 2008
Quote:
Originally Posted by con247

No. I can make a flashable zip. Hold tight.

Sweetness!!!!!

Edit: U guys are awesome. You just helped a lot of people
Sent from my ADR6425LVW using XDA App
2nd March 2012, 05:02 AM   |  #6  
con247's Avatar
Retired Recognized Developer
Flag Ann Arbor
Thanks Meter: 3,117
 
3,070 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by Doddzilla

Sweetness!!!!!


Sent from my ADR6425LVW using XDA App

It is up
10char
2nd March 2012, 05:10 AM   |  #7  
pwned3's Avatar
Senior Member
Cullman
Thanks Meter: 259
 
1,160 posts
Join Date:Joined: Jul 2011
More
This is a super tool I've been using fast boot to keep from running into problems with main version. May still but this is an unfortunately necessary tool. If we had s-off this wouldn't be a issue. But thanks again for this

sent from ics land
2nd March 2012, 05:17 AM   |  #8  
con247's Avatar
Retired Recognized Developer
Flag Ann Arbor
Thanks Meter: 3,117
 
3,070 posts
Join Date:Joined: Sep 2010
More
it can be dropped in rom scripts to fix the main version. This can be used to avoid future mainversion problems.
2nd March 2012, 03:29 PM   |  #9  
Doddzilla's Avatar
Senior Member
Thanks Meter: 27
 
305 posts
Join Date:Joined: Oct 2008
Has anyone tried it yet? Think I'm bout to take the leap tired of this damn mainver issue

Sent from my ADR6425LVW using XDA App
2nd March 2012, 03:43 PM   |  #10  
OP Recognized Developer
Flag East Coast
Thanks Meter: 825
 
617 posts
Join Date:Joined: Jan 2008
Donate to Me
More
Quote:
Originally Posted by Doddzilla

Has anyone tried it yet? Think I'm bout to take the leap tired of this damn mainver issue

Sent from my ADR6425LVW using XDA App

Umm of course. Think something would be just thrown together and not tested?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Rezound Original Android Development by ThreadRank