Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,101 Members 41,412 Now Online
XDA Developers Android and Mobile Development Forum

HTC Misctool [Tool to read/write main version]

Tip us?
 
drellisdee
Old
(Last edited by drellisdee; 2nd March 2012 at 02:24 PM.)
#1  
Recognized Developer - OP
Thanks Meter 825
Posts: 616
Join Date: Jan 2008
Location: East Coast

 
DONATE TO ME
Default HTC Misctool [Tool to read/write main version]

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, 4059 views)
Current toys :
LG G2
Acer Iconia A500

PayPal USD Donations
The Following 51 Users Say Thank You to drellisdee For This Useful Post: [ Click to Expand ]
 
con247
Old
#2  
con247's Avatar
Retired Recognized Developer
Thanks Meter 3,115
Posts: 3,070
Join Date: Sep 2010
Location: Ann Arbor
Looks good bud!
Current Phone: iPhone 5[s]
Check out my GS3 Splash Screen Changer
 
Doddzilla
Old
#3  
Doddzilla's Avatar
Senior Member
Thanks Meter 27
Posts: 305
Join Date: Oct 2008
So just flash the zip in recovery?

Sent from my ADR6425LVW using XDA App
 
con247
Old
(Last edited by con247; 6th March 2012 at 04:17 AM.) Reason: edited for clarity, better instructions, more info overall
#4  
con247's Avatar
Retired Recognized Developer
Thanks Meter 3,115
Posts: 3,070
Join Date: Sep 2010
Location: Ann Arbor
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, 9544 views)
Current Phone: iPhone 5[s]
Check out my GS3 Splash Screen Changer
The Following 59 Users Say Thank You to con247 For This Useful Post: [ Click to Expand ]
 
Doddzilla
Old
#5  
Doddzilla's Avatar
Senior Member
Thanks Meter 27
Posts: 305
Join Date: Oct 2008
Quote:
Originally Posted by con247 View Post
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
 
con247
Old
#6  
con247's Avatar
Retired Recognized Developer
Thanks Meter 3,115
Posts: 3,070
Join Date: Sep 2010
Location: Ann Arbor
Quote:
Originally Posted by Doddzilla View Post
Sweetness!!!!!


Sent from my ADR6425LVW using XDA App
It is up
10char
Current Phone: iPhone 5[s]
Check out my GS3 Splash Screen Changer
 
pwned3
Old
#7  
pwned3's Avatar
Senior Member
Thanks Meter 259
Posts: 1,154
Join Date: Jul 2011
Location: Cullman
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
 
con247
Old
#8  
con247's Avatar
Retired Recognized Developer
Thanks Meter 3,115
Posts: 3,070
Join Date: Sep 2010
Location: Ann Arbor
it can be dropped in rom scripts to fix the main version. This can be used to avoid future mainversion problems.
Current Phone: iPhone 5[s]
Check out my GS3 Splash Screen Changer
 
Doddzilla
Old
#9  
Doddzilla's Avatar
Senior Member
Thanks Meter 27
Posts: 305
Join Date: 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
 
drellisdee
Old
#10  
Recognized Developer - OP
Thanks Meter 825
Posts: 616
Join Date: Jan 2008
Location: East Coast

 
DONATE TO ME
Quote:
Originally Posted by Doddzilla View Post
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?
Current toys :
LG G2
Acer Iconia A500

PayPal USD Donations

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes