[Galaxy Grand Prime General] thesecondsfade:
This tutorial gets your MetroPCS Grand Prime (model SM-G530T1) root, a deodexed and bloatware-free TouchWiz, 'fairly stock' ROM, and Xposed Framework. This method will likely work on the T-Mobile variant because much of this is actually intended for that variant... but no guarantees. If you do, indeed, attempt this with a non-MetroPCS variant, please let me know your model number and if it works or not so i can add it to the compatibility/incompatibility list.

Known compatible variants:

SM-G530T1 - MetroPCS

This tutorial comes with no guarantees or warranties. I am not responsible if you brick your device or for any damage caused by following this tutorial. You can most likely recover any problems you find along the way by simply flashing back to Stock with Odin, but I can't guarantee that you will be able to. This is true of basically everything on XDA, so no surprises here.

I estimate the entire process taking less than a half hour, assuming that everything goes as expected, and that you don't need to flash back to stock first.

There is one caveat... the TrapKernel method fully roots the device, but it trips Knox. If you don't want to trip Knox, don't use this method. As an alternative, if all you want is some minor root functionality, KingRoot will give you SOME root functionality, but not enough to install Xposed, or to do many things that a true root gives you. KingRoot can be found here: SITE / DOWNLOAD

At any time, even if you brick your device, you can probably always flash back to Stock. Here is the Stock MetroPCS SM-G530TI 5.1.1 ROM: THREAD / DOWNLOAD

Alright... without further adieu, here are the files you will need:

Odin SITE / DOWNLOAD

ShinySide's TrapKernel for SM-G530T THREAD / DOWNLOAD

DUHAsianSKILLZ's deodexed and bloatware-free ROM for SM-G530T: THREAD / DOWNLOAD

Chainfire's FlashFire SITE / DOWNLOAD

Xposed Installer THREAD / DOWNLOAD

TWRP 2.8.7.0 (for lollipop) THREAD / DOWNLOAD

Custom Xposed Framework for Samsung Lollipop THREAD / DOWNLOAD

Got all the files you need? Here are the steps:

1. On your phone, boot to Download Mode by booting your device while holding down the Down Volume and Home Button, then hitting Volume Up. Connect it to your PC. If your PC doesn't recognize the phone, you need to install drivers. There are lots of threads out there with tutorials on how to do that. This tutorial assumes you already have the drivers.

2. On your PC, open Odin, Click the "AP" button, Select the file: TrapKernel_G530T_AOF8_Root.tar.md5. Flash it. Let the phone boot normally. If it doesn't load after a few minutes, pull the battery and reboot. If it continues to get stuck on boot, it probably failed. Flash back to Stock and try again.

3. On your phone, once it fully boots up, download Chainfire's SuperSU from the Play Store. You'll need it in order to authorize the root app in the next step.

4. On your phone, download FlashFire from the Play Store at the link above, or if you have the APK, install it. Open FlashFire and authorize SU permissions. Hit the + button, then Wipe. Check System data, 3rd party apps, Dalvik cache, Cache partition, and Cache partition format, then click the Checkmark on the top-right to confirm. Now hit the + button again, then Flash Zip or OTA. Select GwizRomSMG530T-V1.1.zip, then click the Checkmark on the top-right. Now click Flash. The screen will go off during this step... DON'T WORRY. It will take about 10 minutes total to boot for the 'first time'. This ROM basically removes Knox, retains root, and frees up a lot of resources that Samsung was using for useless bloatware. Even if you stopped at this step, your phone will be MUCH better off than with a purely Stock ROM on it. I noticed a HUGE performance improvement after installing this ROM.

5. On your phone, install XposedInstaller_3.0_alpha4.apk.

6. On your phone, open FlashFire. Tap the + button, then Flash Zip or OTA. Find TWRP_2870_Samsung_SM_G530H.zip and flash it. This one takes a little while to load, so be patient. I would say, if you're at the 10 minute mark after tapping Flash, it probably failed so pull the battery and reboot. If it continues to happen, you'll likely need to flash Stock and start over completely.

7. The phone will boot back to your home screen. Once it does, restart it and go into Recovery Mode by booting the phone while holding the Volume Up and Home buttons.

8. Once in Recovery, tap Install. Find and choose the file xposed-v86.0-sdk22-arm-custom-build-by-wanam.zip and swipe the slider at the bottom to Install Xposed.

9. Once it finishes flashing and boots back up, you're good to go. Full Root. Bloatware-Free. Really fast. With Xposed.

10. One last thing, I would install an app like NoBloat or something to disable or delete the app com.tmobile.pr.adapt. It doesn't like that you rooted your device and will start acting up. The reason a T-Mobile app is there is because the bloat-free ROM you installed in step 4 above is based on a T-Mobile Stock ROM, not MetroPCS. You don't need it. It will ask for root permissions all the time, use cell data, and deplete your battery. Just disable it if you are not comfortable fully deleting it. I would also look into disabling/deleting some of the other apps like some of the Samsung stuff, but you'll have to research what is safe to remove. I know the com.tmobile.pr.adapt app is pointless and a data/battery hog.