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.
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.