[G2 and Desire Z General] Nipqer:
I've been meaning to write this guide for a little while, and someone needing it recently posted a question asking how, so I figured I'd get off my ass and do it.

This will work for Vision, Ace and Glacier devices.

NOTE: This will only work if you are TRUE S-OFF

You will need ADB set up and running to finish this off.

Also, make sure you're on charge only mode.

Flashing one of the roms provided will have that as default

Section 1: Download the appropriate rom for your device.

Obtain an appropriate rom from http://thetable.poseidon.feralhosting.com/VISION/VISION/

these are stock roms with the only change being "persist.service.adb.enable = 1" added so /system/build.prop

I modified these roms for people with broken screens/digitzers, so if you're phone is perfectly functional, go ahead and grab a rom from UNMODDED dir. Just enable adb debugging once its flashed

Section 2: Flash the rom via fastboot RUU mode.

If you don't have a fastboot executable, download the zip attached to this post, and run the one appropriate for your OS

Make sure the fastboot executable and the rom are in the same directory, and you're command prompt/terminal is pointed to that directory.

Also, make sure you don't have a PC10IMG/PD98IMG/PG15IMG on your sdcard

A. Make sure phone is powered off

B. Hold Volume Down, and press Power to run phone on

C. Wait a minute or so (while hboot scans for updates) then press Power ONCE

D. Verify you are in fastboot mode by running:

fastboot-[OS] devices

this will return your serial number if you are in fastboot mode

E. Reboot to RUU mode

fastboot-[OS] oem rebootRUU

F. Flash the rom

fastboot-[OS] flash zip [NAME].zip

This will start flashing the rom to your device.

IT (MOST PROBABLY) WILL FAIL

REPEAT THE LAST COMMAND

fastboot-[OS] flash zip [NAME].zip

G. Reboot Phone

fastboot-[OS] reboot

Section 3: Return to S-ON and original CID

A. Obtain temp-root

Download the attached psneuter and gfree zips

> adb push psneuter /data/local/tmp
> adb push gfree /data/local/tmp
> adb shell
$ cd /data/local/tmp
$ chmod 755 *
$ ./psneuter

This will kick you out of adb shell

B. Restore S-ON

If you have your part7backup-xxxxxxx.bin (check sdcard):

> adb shell
# /data/local/tmp/gfree -r /sdcard/part7backup-xxxxxxx.bin

(replace the xxxxxxx's with the correct numbers)

Rejoice! You are back to S-ON!

If you do not have your part7backup:

Find your original cid:

> adb shell
# dd if=/dev/block/mmcblk0p17 bs=1 count=8 2>/dev/null; echo

Restore S-ON and CID

# /data/local/tmp/gfree -s on -c ORIGINAL_CID

Section 4: Rejoice! And Optionally flash an official stock rom

Completely stock/unmodded roms can be found at http://thetable.poseidon.feralhosting.com/VISION/VISION/UNMODDED/

Flash them same as Section 2.

If you have any issues, need help, etc. Please join #G2ROOT on freenode

There are normally people on there all the time, but please either hang around, or come back if no one responds

Credits:

scotty2 for psneuter

scotty2 and Guhl for gfree

Setherio for the fastboot collection zip

pierre_ja for making me make those rom.zips

laga_ for how to make those rom.zips

anyone else I may've forgotten

-Nipqer