Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install Custom ROM on T-Mobile G2 (Android)

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Installing a custom ROM on your T-Mobile G2 (HTC Desire Z) replaces the stock Android system with a community-built version, giving you newer Android versions, better performance, or extra features. This guide walks you through the entire process, from unlocking the bootloader to flashing the ROM. You will lose all data on the phone, so back up everything important first. This process is for the T-Mobile G2 (also known as the HTC Vision) only — do not attempt it on other devices.

What You'll Need

  • A T-Mobile G2 (HTC Vision) with a charged battery (at least 80%).
  • A USB cable and a computer with internet access.
  • Android SDK platform tools (for ADB and Fastboot) — download from the official Android developer site.
  • A custom recovery image (e.g., ClockworkMod or TWRP) for the HTC Vision.
  • A custom ROM package (e.g., LineageOS, CyanogenMod, or a lightweight AOSP build) that is specifically built for the HTC Vision.
  • Optional: Google Apps (GApps) package matching your ROM's Android version.

Step-by-Step

  1. Back up your data. Since flashing a ROM wipes everything, copy contacts, photos, and files to your computer or cloud storage. Use the built-in backup or a third-party app.
  2. Enable USB debugging. On your phone, go to Settings > Developer options and enable USB debugging. If you don't see Developer options, go to Settings > About phone and tap “Build number” seven times to unlock it.
  3. Install ADB and Fastboot on your computer. Download the official platform-tools from the Android developer website, extract the ZIP, and note the folder path (e.g., C:\platform-tools). Open a command prompt or terminal in that folder.
  4. Unlock the bootloader. The G2's bootloader is not officially unlockable via fastboot like newer devices. Instead, you must use a known exploit called “G2 Bootloader Unlock” (also known as “visionary” or “rageagainstthecage”). This is a one-time process. Download the appropriate unlock tool (e.g., “g2-bootloader-unlock.zip”) from a trusted XDA-Developers thread. Place it on your phone's SD card, reboot into stock recovery (by holding Volume Down + Power), and apply the update from SD card. This will unlock the bootloader and install a custom recovery (usually ClockworkMod) automatically.
  5. Verify custom recovery. After the unlock, reboot the phone. To enter recovery, turn off the phone, then hold Volume Down + Power. You should see a recovery menu (e.g., ClockworkMod). If you see the stock Android recovery with a triangle, the unlock failed — repeat step 4.
  6. Back up the current ROM (optional but recommended). In recovery, use the volume keys to navigate and the power button to select. Choose backup and restore > backup. This creates a nandroid backup you can restore if something goes wrong.
  7. Copy the ROM and GApps to your SD card. Connect the phone to your computer via USB while in recovery. Select mounts and storage > mount USB storage. Copy the ROM ZIP and GApps ZIP to the root of the SD card. Unmount and disconnect.
  8. Wipe data/factory reset. In recovery, select wipe data/factory reset, then confirm. This clears all user data and caches. It does not remove your SD card files.
  9. Wipe cache and dalvik cache. Select wipe cache partition, then go to advanced > wipe dalvik cache. Confirm each.
  10. Install the ROM. Select install zip from sdcard > choose zip from sdcard, then select the ROM ZIP. Confirm installation. Wait for it to finish.
  11. Install GApps (if needed). Repeat the same process to install the GApps ZIP. Not all ROMs require GApps; some include them.
  12. Reboot. Go back to the main recovery menu and select reboot system now. The first boot may take 5–10 minutes — be patient.

Common Mistakes

  • Using the wrong ROM. Only flash ROMs built for the HTC Vision (T-Mobile G2). A ROM for another device will brick your phone.
  • Skipping the wipe. Flashing a ROM without wiping data often causes boot loops or force closes.
  • Incorrect bootloader unlock. If you skip the bootloader unlock step, the custom recovery won't stick, and flashing will fail.
  • Battery too low. If the phone dies mid-flash, it can be permanently damaged. Always charge fully.
  • Using an outdated recovery. Some newer ROMs require a newer recovery version. Use the latest ClockworkMod or TWRP for the Vision.

Tips

  • Read the XDA-Developers thread for your specific ROM — developers often post known issues and fixes.
  • Keep your nandroid backup on your computer, not just the SD card, in case the SD card fails.
  • After first boot, give the ROM a few minutes to settle before judging performance.
  • If you want to return to stock, download the official RUU (ROM Update Utility) for the T-Mobile G2 and run it from your computer — it will restore the factory system.

Troubleshooting

Boot loop (phone restarts repeatedly): Reboot into recovery (Volume Down + Power), wipe data/factory reset, and wipe cache/dalvik. Reboot. If it still loops, reflash the ROM and GApps after wiping again.

Stuck on boot logo: This often means the ROM is incompatible or the wipe was incomplete. Reboot into recovery, perform a full wipe (including system partition if available), and reflash the ROM.

Custom recovery not sticking: The bootloader unlock may not have worked. Repeat the unlock process from step 4. Ensure you use the correct unlock tool for the G2.

No Google apps after flashing: You likely didn't flash GApps. Reboot into recovery and install the GApps ZIP that matches your Android version (e.g., Android 10, 11, etc.).

Phone not recognized by computer: Install the correct USB drivers for the G2. On Windows, use the HTC Sync driver or the universal ADB driver from XDA. On Linux/macOS, ensure ADB is properly installed.

If all else fails: Restore your nandroid backup from recovery, or run the official RUU to return to stock. If the phone is completely unresponsive (hard brick), seek help on XDA-Developers — do not attempt to fix it with unofficial tools.

Frequently Asked Questions

Will I lose my apps and data?

Yes, flashing a custom ROM wipes the internal storage (apps, settings, and personal files). Your SD card contents are usually preserved, but always back up everything to be safe.

Can I go back to the original T-Mobile software?

Yes. Download the official RUU for the T-Mobile G2 and run it on your computer with the phone in fastboot mode. This will restore the stock ROM and recovery.

Do I need to root the phone first?

No. The bootloader unlock process (step 4) also installs a custom recovery, which gives you root access. You don't need separate rooting.

Will I still get OTA updates?

No. Custom ROMs do not receive over-the-air updates from the phone manufacturer. You'll need to manually flash newer versions of the ROM when they are released.

Is it safe to flash a custom ROM?

It is generally safe if you follow instructions carefully and use the correct files for your device. However, there is always a risk of bricking the phone, so proceed at your own risk and keep a backup.

Which Android version can I install?

The T-Mobile G2 supports up to Android 10 or 11 with community ROMs like LineageOS 17.1 or 18.1. Check the specific ROM's thread for compatibility.