###CHAPTER ONE - UGLY WINDOWS STUFF #How to open a cmd in platform-tools: open 'my computer' and navigate to your 'AndroidSDK' folder hold the shift button and right click on your 'platform-tools' folder choose 'open cmd here' from the dropdown #How to pastebin: right click in your cmd and select 'mark all' hit enter to copy go to pastebin.com, paste there and hit 'submit' give us the url # md5 for windows http://getmd5checker.com/ http://db.tt/6v8JWBa #adb for noobs http://forum.xda-developers.com/showthread.php?t=865685 #get rom.zip from ruu.exe start the exe, don't click 'next', start explorer and type %temp% in the adress bar. look in all the folders starting with a { sign and also in the sub directories if it also starts with a { sign, in one of the subdirectories there should be a rom.zip file copy this rom.zip to your SD-Card and rename ###CHAPTER TWO - random cool stuff. #CHECK THE RADIO - gfree does not work on new radios!!!!!!!!!!!!!!! #sdcard is not executable, so no chmod on it. it is possible in /data/local/tmp #there is no SHIP HBOOT with FAKE S-OFF #check the md5 of an img (recovery in this case) that is smaller than the partition it resides in dd if=/dev/block/mmcblk0p21 bs= count=1 | md5sum #mmcblk0p #dz 2.2 downgrade guide: http://wiki.cyanogenmod.com/wiki/HTC_Desire_Z:_Firmware_Downgrade_%28Froyo%29 #gingerbread 2.3.3 and 2.3.4 downgrade http://forum.xda-developers.com/showthread.php?t=1178912 #ACE 3.1x (sense 3) downgrade: http://forum.xda-developers.com/showthread.php?t=1424023 #goldcard http://www.thinkthinkdo.com/trac/project1/wiki/flashgc download flashgc to your platform-tools folder: http://www.thinkthinkdo.com/trac/project1/raw-attachment/wiki/flashgc/flashgc adb push flashgc /data/local/tmp/ adb shell cd /data/local/tmp chmod 755 flashgc ./fre3vo -debug -start FAA90000 -end FFFFFFFF (or ./psneuter) when it kicks you out of the shell adb shell cd /data/local/tmp ./flashgc exit flash the rom #find the software version (to check if misc_version did its job) dd if=/dev/block/mmcblk0p17 skip=160 bs=1 count=10 2>/dev/null; echo dd if=/dev/block/mmcblk0p17 bs=1 skip=160 count=10 #find the cid stored in partition7 dd if=/dev/block/mmcblk0p7 bs=1 count=8 skip=512 2>/dev/null ; echo #find the cid stored in partition17 dd if=/dev/block/mmcblk0p17 bs=1 count=8 #check s-off with dd (Guhl, 07.11/11) dd if=/dev/block/mmcblk0p7 bs=1 count=2 skip=2559 | /data/local/tmp/busybox hexdump -C # if the output is (first line): 00000000 ff 00 - S-OFF # 00000000 ff 01 - S-ON #mount /system as rw mount -o remount,rw /dev/block/mmcblk0p25 /system mount -o remount,rw /system (because it is in the fstab - Guhl) !!!!!!!! #mount /system ro mount -o remount,ro /dev/block/mmcblk0p25 /system mount -o remount,ro /system #mount /cache mount /dev/block/mmcblk0p27 /cache #mount /data mount /dev/block/mmcblk0p26 /data #mount a partition as executable mount -o remount,exec /dev/block/ #install dz hboot, recovery and radio http://www.virtuousrom.com/2011/06/t-mobile-g2-users-migrating-to-desirez.html *fastboot binary download locations http://www.thinkthinkdo.com/trac/project1/raw-attachment/wiki/vision_utilities/fastboot http://www.thinkthinkdo.com/trac/project1/attachment/wiki/vision_utilities/fastboot.exe #usage: http://wiki.cyanogenmod.com/wiki/Fastboot #the .img files can be taken from a nandroid backup #to flash a pc10img.zip: #- IF NOT IN RUU MODE, SHIP HBOOT WILL NOT FLASH THE ZIP!!!! ## RUU MODE RECREATES PARTITIONS! ## adb reboot bootloader or fastboot reboot bootloader fastboot oem rebootRUU fastboot flash zip .zip #if fastboot flash zip is run in bootloader mode (eng-hboot needed!), it will only write to partitions, not recreate them. #To recreate partitions - fastboot oem rebootRUU fastboot flash recovery .img fastboot flash boot .img fastboot flash radio .img fastboot erase boot fastboot erase userdata fastboot erase cache fastboot reboot fastboot reboot bootloader fastboot boot (boot.img, recovery.img)- for test boot of boot.img or kernel or whatever #manual update howto (s-on, no root) http://forum.xda-developers.com/showthread.php?t=1202060 # check /system, /data and /cache for errors (from root CLOCKWORKMOD RECOVERY console, 'unmount /data' 'unmount /cache' 'unmount /system' first if they are mounted): # e2fsck /dev/block/mmcblk0p25 #- /system # e2fsck /dev/block/mmcblk0p26 #- /data # e2fsck /dev/block/mmcblk0p27 #- /cache #repair with -f #format system (or any other partition that should be ext 3) mke2fs -m 0 -j -L system /dev/block/mmcblk0p25 #for /cache mke2fs -m 0 -j -L cache /dev/block/mmcblk0p27 #tmpfs in recovery, exec /data (Guhl, #g2root, 08.19.2011) 1. boot to recovery adb shell mount tmpfs -t tmpfs /data -o size=10m 2. in a second terminal: adb push misc_version /data/ 3. in the first terminal (still #-shell) cd /data/ chmod 777 * mount /sdcard ./misc_version -s 1.00.000.0 - thats basically it. reboot the phone and do a normal downgrade using hboot or fastboot RUU # mount points in cwm recovery /etc/fstab /dev/block/mmcblk0p22 /boot emmc rw /dev/block/mmcblk0p27 /cache auto rw /dev/block/mmcblk0p26 /data auto rw /dev/block/mmcblk0p25 /system auto rw /dev/block/mmcblk1p1 /sdcard vfat rw #to find the numbers that should be reversed for goldcard cat /sys/class/mmc_host/mmc2/mmc2:*/cid # for people with broken LCD: (thanks to laga_). #the pre-made roms can be found at http://ratherphallic.co.cc/ Say thanks to Nipqer for modifying and uploading the roms. # Guide: http://forum.xda-developers.com/showthread.php?t=1442988 58ab6de42f18943c2fec341183396fab G2_PC10IMG.zip b582005fcb5b88f99eea7a6e6528dedd MT4G_PD15IMG.zip 621f7c807cde340f1353fc43f34a4ea4 DZ_PC10IMG.zip 8c2f79f0566c5f8965e1540a1f3084d3 DHD_PD98IMG.zip Modify a RUU so USB debugging is enabled: * extract rom.zip from RUU.exe (can provide details). * unzip rom.zip * mkdir system && mount -o loop system.img /system/ * add the following lines to system/build.prop: ??? persist.service.usb.setting = 1 ???? persist.service.adb.enable = 1 # last line is the relevant one, i believe * umount system * zip rom.zip * * fastboot oem rebootRUU && fastboot flash zip rom.zip && fastboot reboot This works only on S-OFF devices as the rom.zip is not signed. # mt4g root and unlock http://wiki.cyanogenmod.com/index.php?title=TMobile_myTouch_4G:_Full_Update_Guide#Rooting_the_HTC_Glacier # DHD (incl. 2.3) temproot and downgrade http://forum.xda-developers.com/showthread.php?t=905003 # Ace rooting http://wiki.cyanogenmod.com/wiki/HTC_Desire_HD:_Rooting # cyanogen vision rooting http://wiki.cyanogenmod.com/wiki/TMobile_G2:_Rooting # rmk's ril automatcher http://forum.xda-developers.com/showthread.php?t=1021463 # gapps http://goo-inside.me/gapps # md5 for windows http://getmd5checker.com/ # partition table fdisk /dev/block/mmcblk0 # in the fdisk prompt - p to list the partition table, q to quit). The message "Warning: deleting partitions after 60" does not matter # sloppy fingers and enter can screw up the emmc partitioning (m for list of all bad stuff that can be done to the emmc) # kmsg cat /proc/kmsg # emmc name cat /sys/devices/platform/msm_sdcc.2/mmc_host/mmc0/mmc0:0001/name # the dead M4G2DE emmc cases cat /proc/kmsg | grep mmc0 #search for "mmc0: Deferred resume failed" # gfree 0.8 to flash hboot. (-w is not the same as in gfree 0.7) In recovery (3.0.2.4) download gfree and gfmod.ko from http://www.thinkthinkdo.com/trac/project1/wiki/gfree_experimental#no1 adb shell mount /data adb push gfree /data/local/tmp/ adb push gfmod.ko /data/local/tmp/ adb push hboot-eng.img /data/local/tmp/ adb shell chmod 755 /data/local/tmp/gfree adb shell mount /sdcard cd/data/local/tmp cat /proc/kmsg > /sdcard/kmsg.log insmod gfmod.ko ./gfree -w no -k no -f -b hboot-eng.img # efs wipe http://forum.xda-developers.com/showthread.php?t=1028405 #desire z, dhd, mt4g unroot and return to stock: two user case scenarios: 1. you have stock gingerbread on the phone in this case you need to downgrade to froyo: http://forum.xda-developers.com/showthread.php?t=1178912 -which brings us to: 2. you have a gfreeable froyo: follow this: http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Unrooting_and_Returning_to_Stock skip "Install the stock image" - you already have that -scenario 2.1 : you have your partition 7 backup - follow "radio S-ON and original CID" by the word, down to (but not including) "Alternative: Use gfree to get radio S-ON and the original CID" -scenario 2.2 : you don't have your partition 7 backup do the temproot part, then (in adb shell) issue the following command: 'dd if=/dev/block/mmcblk0p17 bs=1 count=8' the output of that command is your CID (8 symbols) - put that one in the place of "T-MOB010' in the '/data/local/tmp/gfree -s on -c T-MOB010' command then finish the guide #ril libs (made for n00b_) # to pull the files from your current rom: adb pull /system/lib/libhtc_ril.so adb pull /system/lib/libreference-ril.so adb pull /system/lib/libril.so # get these files and place them in a folder (on your pc) named "stock_rom_ril" # to push them in your new rom: # get the rils from a stock rom, move the three files to a folder named "custom_rom_ril" # then open a cmd/shell, navigate to your first folder (the "stock_rom_ril" one) and from there: adb remount adb push libhtc_ril.so /system/lib/ adb push libreference-ril.so /system/lib/ adb push libril.so /system/lib/ # wipe efs data: http://forum.xda-developers.com/showthread.php?t=1028405 #guide to recovery and stuff http://forums.virtuousrom.com/index.php?topic=33.0