this has an advantage of allowing htcdev unlock without changing cid,but with s off, the bootloader can easily be unlocked without htcdev,so that is not of much importance.
since we dont know for sure if any future activities(turning s on,accepting OTAs,etc) will be affected by a non stock MID,it may be worthwhile to return the MID to stock 0P6B20000 "just in case"
this thread is for the folks who wish to revert to stock MID. the method described here is not the only way to skin the cat,but as long as your careful the risk is very minimal, its quick and easy and doesnt require any hboot downgrades,eng hboot install,data loss,or having to run an ruu.
-beaups for schooling me on the echo command protocol
-kdj67f for dumping partitions from his java card s-offed m7
-davehasninjas for dumping rumrunner s offed m7 partitions
-andybones for testing on a vzw m7 device
standard disclaimer: use this information at your own risk. it has been tested,but copying the command incorrectly could have consequences. if you melt your phone into a smoldering little pile of aluminum goo, its not my fault.
IF you are an advanced user with adb/fastboot set up and some basic knowlede of the cmd window,you can skip to #2
1)set up adb
-download this file
-install drivers: if you have htc sync installed,you should allready have drivers. if not,you can install htc sync,or install these modified htc drivers from revolutionary (driver mirror)
-unzip your miniadb_v1031.zip file. this is native funtionality in windows 7. you otherwise may need a utility such as "7-zip" to extract,or unzip it. place the unzipped folder onto the root of your C drive on your PC. root means the top level,not inside any folders. so just copy and paste,or drag and drop the folder onto C with everything else that is there. you may want to rename it to "miniadb_m7" since youll be putting some device specific files in here.
-open a command window. on windows 7,click the start bubble in the lower left and type "command" in the search box. xp i believe is similar or the same. doing this should open a small black command window.
-change to your miniadb_m7 directory. type the following at the prompt in your cmd window:
your command promt should change to "c:miniadb_m7>" provided you: 1)unzipped the miniadb_v1031 zip file,and 2)put the folder on your c drive,and 3)entered the name of the folder correctly ("miniadb_m7" in this case)
-now make sure usb debugging is checked in developer options(you will need to turn it on first),and plug your phone into your PC with a usb cable
-make sure your phone is being recognized- type:
if your drivers are installed correctly,this should return your phones serial number. you should hear the "found device" noises when you plug your phone in. if it starts installing drivers,wait for it to finish before typing the adb devices command.
if you get your serial number back,then enter this command:
adb reboot bootloader
this should take your phone to the "fastboot" screen,wich is white with colored letters. this is one mode of your bootloaders interactive modes. at the top youll see fastboot devices as confirmation youre in fastboot.
again,this should return your phones serial number. you should hear the "found device" noises when you plug your phone in. if it starts installing drivers,wait for it to finish before typing the adb devices command.
if you get your serial number back,you can enter the following to boot back to the phones OS:
and now,youve installed adb/fastboot and tested youre phones drivers. if at either spot,you have trouble and dont get your serial number back,there is some sort of connection issue. use these steps to troubleshoot:
troubleshooting connectivity issues:
-try a reboot of the PC
-try different usb cables and ports
-dont use a usb hub
-dont use usb 3.0
-make sure nothing capable of comunicating with the phone is enabled and running. htc sync,pdanet,easy tether,and even itunes have all been known to cause issues.
-windows 8 has been known to have issues. try a windows 7 or older machine
failing the above,
-i use these drivers for fastboot and adb(donwload and run as admin): http://downloads.unrevoked.com/HTCDriver3.0.0.007.exe (mirror)
failing that,try manually updating the drivers in the following manner:
-put the phone in fastboot mode(select fastboot from the hboot menu)
-open device manager on the PC
-plug in phone,watch for it to pop up in device manager.
-update drivers with device manager,pointing the wizard to the extracted
driver download folder from above
note that you can check the connectivity of the phone,and make sure drivers are working by in the following manner:
-open cmd window. change to directory containing adb/fastboot utilities
-adb with the phone in the booted OS,usb debug enabled,enter:
adb devices in a cmd window
-fastboot with phone in fastboot,enter:
fastboot devices in cmd window
in either case,a properly connected phone with working drivers installed should report back the phones serial number.
this process,in your cmd window,should look something like this:
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Scott>cd c:\miniadb_m7 c:\miniadb_m7>adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached FAxxxxxxxxxx device c:\miniadb_m7>adb reboot bootloader c:\miniadb_m7>fastboot devices FAxxxxxxxxxx fastboot c:\miniadb_m7>fastboot reboot rebooting... finished. total time: 0.037s c:\miniadb_m7>
2)restore your verizon MID
warning: *do not try and type the command. please copy and paste it
enter the following:
su (if needed to get a #)
echo -ne '\x30\x00\x50\x00\x36\x00\x42\x00\x32\x00\x30\x00\x30\x00\x30\x00\x30' | dd of=/dev/block/mmcblk0p5 bs=1 seek=16384
exit (<- only if needed to get back to your normal > prompt)
adb reboot bootloader
fastboot getvar mid (or getvar all)
verify 0P6B20000 for modelid
your command window should look like this:
c:\miniadb_m7>adb shell root@m7:/ # echo -ne '\x50\x00\x4e\x00\x30\x00\x37\x00\x33\x00\x31\x00\x30\x00\x 30\x00\x30' | dd of=/dev/block/mmcblk0p6 bs=1 seek=16384 00\x30' | dd of=/dev/block/mmcblk0p6 bs=1 seek=16384 < 17+0 records in 17+0 records out 17 bytes transferred in 0.009 secs (1888 bytes/sec) root@m7:/ # exit exit c:\miniadb_m7>adb reboot bootloader c:\miniadb_m7>fastboot getvar all (bootloader) version: 0.5 (bootloader) version-bootloader: 1.44.0000 (bootloader) version-baseband: 4A.17.3250.20 (bootloader) version-cpld: None (bootloader) version-microp: None (bootloader) version-main: 1.27.531.8 (bootloader) version-misc: PVT SHIP S-OFF (bootloader) serialno: HTxxxxxxxxxx (bootloader) imei: xxxxxxxxxxxxxxx (bootloader) meid: 00000000000000 (bootloader) product: m7_ul (bootloader) platform: HBOOT-8064 (bootloader) modelid: PN0731000 <-looky (bootloader) cidnum: 11111111 (bootloader) battery-status: good (bootloader) battery-voltage: 4175mV (bootloader) partition-layout: Generic (bootloader) security: off (bootloader) build-mode: SHIP (bootloader) boot-mode: FASTBOOT (bootloader) commitno-bootloader: dirty-f188f379dbbfee373cd551f7bc62b8435 getvar:all FAILED (unknown status code) finished. total time: 0.092s c:\miniadb_m7>fastboot reboot rebooting... (bootloader) hbootpreupdate: 11 finished. total time: 7.288s
*links to come