[EVO 4G Android Development] gazla1978:
[GUIDE] HTC EVO on METROPCS FULL ROOT > 2.1 DROID CUSTOM ROM > WEB > MMS > PRL UPDATE

***Read this first please​

Hello everyone, life on budget sucks :/ but gotta suck it up till I graduate, so let's show some love to METROPIECSH..:)

This is a combination of tutorials from this site and some other sites that i compiled to get my HTC Evo up and running with MetroPCS.

Since (2.2) Rom still have no proper cure for mms,wap and market apps and after trying several 2.2 Roms, I ended up migrating back to my old steady 2.1. And here is the step by step path I followed.

Before We Start I personally would like to thank to:

SYNTHAXXX from XDA-Developers

FastRX8 from PPCGeeks

Drunkenmojo from Howard Forums

ObsidianX from Droid Forums

who are the true authors of this Guide.

-----------------------------------------------------------------------------

-----------------------------------------------------------------------------

**Please use this guide if you're holding a HTC EVO that has a software version 1.32.651.1 or 1.32.651.6.

And be aware of

things that do NOT Work:​

DOWNLOADING APPS FROM MARKET ON METROWEBWorks when you are on WIFI

VOICE SEARCH ON METROWEBWorks when you are on WIFI

VOICE MAIL NOTIFICATIONS

-----------------------------------------------------------------------------

The rom i am using and suggest you to install is DamageControlv3.1.2-deodexed where you can always try other 2.1 Roms of course but i can not guarantee you can succeed with another Rom of your choice.

-----------------------------------------------------------------------------

ROOTING Part I and Part II (Full Root)

Section 1 - This part gives you basic root access.

Section 2 - This part unlocks NAND and gives you full control. There are 2 versions of Section 2. Either one works.The choice is yours on Section 2

* Version 1 - No PC needed. No ADB Shell needed.

* Version 2 - Using a PC and ADB Shell

Basic Root Access

This is for Full Root access. I dropped the instructions for partial root because they are not needed. With Full Root available, there is no need to only do a partial root. Even if all you want is permissions to load a custom rom, you'll need to have a backup in case something goes wrong and you can't use the backup if you're not fully rooted. So, follow these simple steps and you'll have everything you need.

Before you start

Before you start anything, your phone needs to be able to connect to the pc. If you haven't done so before, install HTC Sync. There is a folder on the sdcard that contains a version of HTC Sync or you can download a newer version from their site. It doesn't matter which version because you're not going to use it. We just need the drivers installed so the phone can communicate with the PC.

Next, make sure "USB Debugging" is turned ON.

Menu>Settings>Applications>Development>USB Debugging

If it's turned on, every time you connect your phone to the PC, you'll see "/!\ USB Debugging connected" in the notifications on the phone.

Items you'll need

1- PC36IMG.zip (Place this on your sdcard)

2- eng-PC36IMG.zip - Mirror 1 - (Place this on your sdcard)

3- Full Root files.zip - This zip contains 3 files you will extract to your sdcard (flash_image, mtd-eng.img, recovery.img)

Now you sdcard should look like this -

4- evo-recovery - Extract this folder to your C:\ drive so you should see C:\evo-recovery

5- Store the DamageControlv3.1.2-deodexed rom into your Evo's sdcard or if you don't want a custom rom, then at least install the rooted version of the Sprint Rom --> here <-- (place this rom on your sdcard too :))

Section 1 -

1A) Connect your EVO to the PC and select "disk drive" so that you can see your storage card from the "My Computer" window

1B) Copy the file PC36IMG.zip and eng-PC36IMG.zip to the storage card. Don't unzip it and don't put it in a folder. Just copy the files.

1C) Take the "Full Root Files.zip" you downloaded and unzip all 3 files to the storage card. Don't put them in a folder.

At this point, you should have 5 new files on your storage card as shown in the picture above under items needed.

1D) Power-off your phone by holding the power-button for several seconds. The top choice is "Power Off."

1E) While holding "Volume DOWN", push the "Power" button so the phone turns on. You don't need to hold the "Power" button, but you do need to hold the "Volume DOWN" button. This will bring you straight to the bootloader screen which says

-FASTBOOT

-RECOVERY

-CLEAR STORAGE

-SIMLOCK

-HBOOT USB

Just wait for a minute. It will read your storage card. This takes about 30secs and there is a progress bar on the top right. It's reading the PC36IMG.zip file you placed on the card.

1F) Once that's done, it says, "Do you want to start update?" Volume UP=YES Volume Down=NO. Hit "Volume UP" and then wait.

1G) Once that's done, it says, "Update Complete. Do you want to reboot device?" Volume UP=YES Volume Down=NO. Hit "Volume UP" and you will reboot.

Now just be patient. It will take a while to start up the first time, but when it's done, you'll be at the setup screen you saw the first time you turned on the device. Skip all the account setups and whatever else. You just want to get to the Home screen so you can go to the next step.

Now you're phone is partially rooted, but we're not stopping there.

Section 2 Version 1 - No PC Needed - (Remember this section is optional you can always skip this and do the Section 2 Version 2 via your PC also.)

2A) Go to the Market and download/install EStrongs File Explorer. Just search for "EStrong" pick "Estrongs File Explorer." Then download/install Barcode Scanner by ZXing. Just search for "Barcode."

2B) Open Barcode Scanner and scan the QR code below. Select "Open Browser" then download/install. Note: This will allow you to install Android Terminal Emulator by Jack Palevich. I couldn't find it in the market, so I'm using this method.

2C) Open Estrongs File explorer. Long-press on the files to rename the file "PC36IMG.zip" --> "root-PC36IMG.zip" and then rename "eng-PC36IMG.zip" --> "PC36IMG.zip"

2D) Open "Android Terminal Emulator" that you installed in step 2B, and type the following commands. Hit Enter after each line.

su
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image misc /sdcard/mtd-eng.img

If you typed each line correctly, you won't see any changes, you'll just go down to the next line w/ a "#"

2E) Power-off your phone by holding the power-button for several seconds. The top choice is "Power Off."

2F) While holding "Volume DOWN", push the "Power" button so the phone turns on. You don't need to hold the "Power" button, but you do need to hold the "Volume DOWN" button. This will bring you straight to the bootloader screen which says

-FASTBOOT

-RECOVERY

-CLEAR STORAGE

-SIMLOCK

-HBOOT USB

Just wait for a minute. It will read your storage card. This takes about 30secs and there is a progress bar on the top right. It's reading the PC36IMG.zip file you placed on the card.

2G) Once that's done, it says, "Do you want to start update?" Volume UP=YES Volume Down=NO. Hit "Volume UP" and then wait.

2H) Once that's done, it says, "Update Complete. Do you want to reboot device?" Volume UP=YES Volume Down=NO. Hit "Volume UP" and you will reboot.

Skip all the account setups and whatever else. You just want to get to the Home screen so you can go to the next step.

2I) Once your back to the home screen, go back to the Market place, go to downloads, and you should still see Estrongs and Android Terminal. You need to download/install them again.

2J) Open Estrongs File explorer. Long-press on the file to rename the file "PC36IMG.zip" --> "eng-PC36IMG.zip"

2K) Open "Android Terminal Emulator" that you installed in step 2B, and type the following commands. Hit Enter after each line.

su
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img

If you typed each line correctly, you won't see any changes, you'll just go down to the next line w/ a "#"

2L) Power-off your phone by holding the power-button for several seconds. The top choice is "Power Off."

2M) While holding "Volume DOWN", push the "Power" button so the phone turns on. You don't need to hold the "Power" button, but you do need to hold the "Volume DOWN" button. This will bring you straight to the bootloader screen which says

-FASTBOOT

-RECOVERY

-CLEAR STORAGE

-SIMLOCK

-HBOOT USB

Just wait for a minute. It will read your storage card. It won't find the PC36IMG.zip file because it was renamed. When it's done searching, use "Volume DOWN" to highlight "Recovery" and "Power" button to select it.

The phone will reboot into Recovery Mode.

2N) From the list, use "Volume DOWN" to highlight "Wipe" and "Power" button to select it.

2O) In the Wipe menu you're going to use the "Volume DOWN" to highlight "Wipe data/factory reset" and "Power" button to select it, then "Power" button again to confirm. Once it's done, repeat this step so you "Wipe data/factory reset" twice.

2P) Use the "Volume DOWN" to highlight "Wipe Dalvik-cache" and "Power" button to select it, then "Power" button again to confirm. Once it's done, repeat this step so you "Wipe Dalvik-cache" twice.

Now push "Power" button to return to the previous menu.

2Q) Use the "Volume DOWN" to highlight "Flash zip from sdcard" and "Power" button to select it.

At this point every zip file on the root of your sdcard will show. Make sure you know which one you want to flash.

2R) Use the "Volume DOWN" to highlight your rom or radio file and "Power" button to select it, then "Power" button again to confirm. Sit back and wait. Mine took about 2mins.

When it's done, hit "Power" button to "Reboot system now" and enjoy your rooted EVO w/ a custom rom.

Section 2 Version 2 - Using the PC - (If you completed the Section 2 Version 1 without a PC than please skip this section)

2A) Connect your EVO to the PC and select "disk drive" so that you can see your storage card from the "My Computer" window

2B) Rename the file "PC36IMG.zip" --> "root-PC36IMG.zip" and then rename "eng-PC36IMG.zip" --> "PC36IMG.zip"

2C) Disconnect the EVO from the USB, wait about 5seconds, then reconnect the EVO but this time select "Charge Only"

Note: Make sure you have USB Debugging turn on

Menu>Settings>Applications>Development>USB Debugging

2D) Open a "run" window by hitting the Windows key + "R" in the command line type (or cut/paste)

c:\evo-recovery\adb-windows shell

then hit "OK"

2E) In the window that opens, type (do not cut/paste this) Hit Enter after each line.

cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image misc /sdcard/mtd-eng.img

If you typed each line correctly, you won't see any changes and the line will just repeat once when you hit enter. Each command takes a second or two.

2F) Power-off your phone by holding the power-button for several seconds. The top choice is "Power Off."

2G) While holding "Volume DOWN", push the "Power" button so the phone turns on. You don't need to hold the "Power" button, but you do need to hold the "Volume DOWN" button. This will bring you straight to the bootloader screen which says

-FASTBOOT

-RECOVERY

-CLEAR STORAGE

-SIMLOCK

-HBOOT USB

Just wait for a minute. It will read your storage card. This takes about 30secs and there is a progress bar on the top right. It's reading the PC36IMG.zip file you placed on the card.

2H) Once that's done, it says, "Do you want to start update?" Volume UP=YES Volume Down=NO. Hit "Volume UP" and then wait.

2I) Once that's done, it says, "Update Complete. Do you want to reboot device?" Volume UP=YES Volume Down=NO. Hit "Volume UP" and you will reboot.

Skip all the account setups and whatever else. You just want to get to the Home screen so you can go to the next step.

2J) Once your back to the home screen, the EVO should be connected as "Charge Only"

Note: Make sure you have USB Debugging turn on

Menu>Settings>Applications>Development>USB Debugging

2K) Open a "run" window by hitting the Windows key + "R" in the command line type (or cut/paste)

c:\evo-recovery\adb-windows shell

then hit "OK"

2L) In the window that opens, type (do not cut/paste this) Hit Enter after each line.

cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery

If you typed each line correctly, you won't see any changes and the line will just repeat once when you hit enter. Each command takes a second or two. The last command will reboot your phone into recovery mode.

2M) From the list, use "Volume DOWN" to highlight "Wipe" and "Power" button to select it.

2N) In the Wipe menu you're going to use the "Volume DOWN" to highlight "Wipe data/factory reset" and "Power" button to select it, then "Power" button again to confirm. Once it's done, repeat this step so you "Wipe data/factory reset" twice.

2O) Use the "Volume DOWN" to highlight "Wipe Dalvik-cache" and "Power" button to select it, then "Power" button again to confirm. Once it's done, repeat this step so you "Wipe Dalvik-cache" twice.

Now push "Power" button to return to the previous menu.

2P) Use the "Volume DOWN" to highlight "Flash zip from sdcard" and "Power" button to select it.

At this point every zip file on the root of your sdcard will show. Make sure you know which one you're using.

2Q) Use the "Volume DOWN" to highlight your rom or radio file and "Power" button to select it, then "Power" button again to confirm. Sit back and wait. Mine took about 2mins.

When it's done, hit "Power" button to "Reboot system now" and enjoy your rooted EVO w/ a custom rom.

Provisioning your HTC EVO For MetroWeb

1) Download and install the latest version of the Android SDK from http://developer.android.com/sdk/index.html

2) Connect your phone to your computer and then dial ##3424 [Call Button] on the phone to get into diagnostic mode (A DM Command service screen should appear on the phone). You computer should now detect your phone as HTC Diagnostic Interface COM Port. You can see that mine shows up as COM21. Take note of the COM port number as you will need it in the next step.

3) Run QPST Configuration and look for the COM port that was added for the HTC Diagnostic Interface in step 2. Mine would be COM21 in this example. If you don't see it, use the Add New Port button to add it in.

4) Before we start messing with the phones NV settings. We want to do an NV backup first. In QPST Configuration, From the top menu, select Start Clients > SOFTWARE DOWNLOAD. Next, click on the Backup tab. In Backup, Select the phones port and file name you want to save to. Enter 000000 for the SPC and then click Start to create the backup. Click Exit once the backup completes.

5) In QPST Configuration, From the top menu, select Start Clients > SERVICE PROGRAMMING. Select your phone in the Phone Selection menu (it should be the only selection if no other phone is connected) and hit OK. Next, click Read from phone. Enter 000000 for the SPC when asked for the Service Programming Code.

6) Click on the MIP tab. From there, change the following:

Mobile IP Behavior: Mob + Sim f/back (Simple IP only would probably also work)

Active User: 0

7) Double click the User Profile 0 in the list box to edit it. In the Mobile IP Profile dialog box, change the following:

NAI: 10DigitPhone#@mymetropcs.com

Tethered NAI: 10DigitPhone#@mymetropcs.com

Home address: 0.0.0.0

Primary HA address: 0.0.0.0

Secondary HA address: 0.0.0.0

Click OK

8) Click on the PPP Config tab. You will now need to calculate your MSL code based on the Metro PCS algorithm (i.e. As if your phone was a Metro PCS branded phone). You can use my MSL generator hosted by whiterabbitorg at http://www.whiterabbit.org/android/ or software such as CDMA Workshop 3.5. Next, click the Um button and change the following. Be sure to use the MSL code you just generated where I have 6DigitMSLCode:

Tethered NAI: 10DigitPhone#@mymetropcs.com

User ID: 10DigitPhone#@mymetropcs.com

Password: 6DigitMSLCode

Primary DNS: [leave blank or delete any values]

Secondary DNS: [leave blank or delete any values]

9) Click the AN button and change the following. Again, be sure to use the MSL code you just generated in the Step 8 where I have 6DigitMSLCode:

User ID: 10DigitPhone#@mymetropcs.com

Password: 6DigitMSLCode

10) Click Write to Phone. Make notes of any errors for troubleshooting but you can probably ignore them. Close out QPST once writing is complete.

11) These last few steps are optional if you can complete the entire guide. In which case, you can skip to Part II. Otherwise, go back to the phone & install Any Cut from the Android Market Place via WiFi. Run Any Cut and chose New shortcut > Activity > Proxy settings. Any Cut will create a Proxy settings shortcut on your home screen.

12) Run the Proxy Settings you just created and enter the following:

Hostname: proxy.metropcs.net

Port: 3128

Click Save

Provisioning your HTC EVO For Metro MMS

1) Download and install APN Backup & Restore via WiFi from the Android Market Place.

2) Insert the microSD card into your phone. Run APN Backup & Restore and do a backup by clicking the Backup APNs button. When you are asked to give the backup file a name, go ahead and name it something sensible such as originalAPNs.xml.

3) Connect your phone to your computer and select Disk Drive mode. This will expose the microSD card inside the phone to your computer (you can see mine shows up as G: ). Copy the attached file metropcsAPNs.xml to the ApnBackupRestore folder. Disconnect your phone from the computer.

4) Re-run APN Backup & Restore. This time you are going to first click Delete APNs (be careful NOT to click Delete Backup Files) and click Yes to confirm. Next, click Restore APNs and select the metropcsAPNs.xml file you just copied over to the microSD card in step 3. Click OK to confirm and Yes to check for duplicates.

5) Restart your phone.

6) Download this package.(Precompiled arm binary (with autostart scripts) for the Droid Unzip the RAR - It contains the 3 files which will be used.

7) Put these 3 files anywhere on your SD card (Root of your Sd card prefferred since it is easy to find :).

8) Using Root Explorer, copy "u2nl" to root/system/bin/ (Root is not a folder it is the root of your sd card :) )

9) Using Root Explorer, create a new folder within root/data/ and name it "opt" (without quotes). (You need a full version of this which costs money or you can do it your way from wild wild web :) )

10) Using Root Explorer, copy "autostart.sh to root/data/opt/

11) Download "Autostart (Root)" from the market.

12) Download "APN Backup and Restore" from the market.

13) Open APN Backup and do a backup of your current APN (for safe keeping).

14) Using APN Backup, delete APN's.

15) Using any file explorer, move the metropcsAPNs.xml to the APN backup folder on your SD card.

16) Using APN Backup, restore APN's and select the metropcsAPNs.xml as the file to restore.

17) Reboot and you are done.

Provisioning Data Access For Apps

Data access for apps without the need for WiFi. (Remember you can NOT download apps via Metro data from Market place.)

1) Go to http://www.whiterabbit.org/android/ and download the ZIP file containing the precompiled binary of u2nl and autostart.sh (it's the link labeled precompiled arm binary). Unzip the download and locate the files u2nl and autostart.sh for the eris (in the main folder and autostart\htcheroeris\metropcs subfolder of the unzipped file, respectively).

2) With the microSD card into your phone, connect your phone to your computer and select Disk Drive mode. copy both u2nl and autostart.sh to the root of your SD card. Once finished, disconnect the phone from your computer.

3) On the phone, enable USB debugging by going to Settings > Applications > Development. This will help reduce the chances that Superuser request will lock up the phone. You can turn USB debugging off after you've completed the guide.

4) Using WiFi, download and install Autostart (Root) by blank.online.eu from the Android Market Place. Once Autostart finishes installing, exit the Android Market Place and turn off WiFi.

5) Connect your phone to your computer and select HTC Sync mode. On the computer, open up a DOS command prompt window. You can do this by going to Start > Run and then typing in cmd [ENTER].

6) You are now going to start an adb shell to copy the files you downloaded in Step 1 to the phone as well as changing some permissions. There are many ways to accomplish this same task: from the adb shell, a terminal emulator on the phone, or a combination there of. This is only my suggested way as it has worked for me without issue. During the process outlined bellow, the phone may ask you to allow for Superuser Permissions when you issue the su command. If it does ask, click Allow on the phone. In the command prompt windows type the following:

adb shell
su
mount -o rw,remount /dev/block/mtdblock3 /system
cd /data
mkdir opt
chmod 0755 /data/opt
chmod 0755 /system/bin
mount -o rw,remount /dev/block/mtdblock3 /system
cp /sdcard/autostart.sh /data/opt/autostart.sh
cp /sdcard/u2nl /system/bin/u2nl
chmod 0755 /data/opt/autostart.sh
chmod 0755 /system/bin/u2nl
reboot

7) Once the phone reboots, Superuser Permissions will ask if you want to allow Autostart to run at system startup. Click Always Allow.

Congratulations!!! You did it!!!

BONUS How to flash MetroPCS PRL:

You need "CDMA Workshop" or any PC software that can read and write to your phone's NAND by comport.

1) Download MetroPCS 2001 PRL from this site to your PC's hard drive somewhere.

2) Enable the diagnostic mode on your phone by ##3224#

3) Start CDMA Workshop on your PC and you'll be on the "Main" tab which contains the connection settings. Under COM Settings (AT Mode) you'll have to change the Port to the COM Port your phone is on. Leave the Baud rate at 115200 and then click Connect.

The status bar on the bottom will say something along the lines "Connected to COM5 port successfully". Now you'll need to navigate to the Security tab and under SPC type in 000000 in the box. Next click SPC -> Send. This will unlock the phone for editing. A dialog will pop up to let you know as well

Finally we need to head on over to the Other tab where you'll find the PRL section. I would recommend Reading the NAM1 out of your phone before you do anything in case you need to restore the original settings.

After you've saved it flash any METROPCS PRL from the PRL files you saved from the link given above.

After flashing, quit CDMA Workshop and it will ask if you wish to send Mode Reset to the phone to apply changes (this restarts the phone) say yes and watch the Droid reboot.

VOILA ;)