[Galaxy Grand Prime General] AfonsoOnXDA:
Hello everyone! This is your Starter Guide for modding the SM-G531F!

(This document is based on: GuestD2581 guide. =))

DRIVERS & UTILITIES

Odin [v3.13.1]

Samsung USB Drivers [Link]

__________________________________________________

STOCK ROM , BOOT & RECOVERY IMAGES

[Link]

__________________________________________________

CUSTOM RECOVERY [TWRP]

TWRP 3.1.1-0 : img

TWRP 3.0.2-0 : tar

TWRP 2.8.7.1 : img | tar

__________________________________________________

CUSTOM ROM

Linage OS 13.0

__________________________________________________

CUSTOM KERNEL

[Link]

__________________________________________________

ROOT

•MAGISK

XDA | GITHUB​

MagiskManager-v7.5.1.apk

Magisk-v20.4.zip

Magisk-uninstaller-20200323.zip

MUST HAVE MAGISK MODULES​

•SUPERSU

CHAINFIRE | SUPERSU RELEASE​

SuperSU-v2.82-201705271822.zip

•MUST HAVE ROOT APPS

__________________________________________________

XPOSED [WANAM]

XposedInstaller_3.1.5.apk

xposed-v87.1-sdk22-arm-custom-build-by-wanam-20161125.zip

xposed-uninstaller-20160211.zip

XPOSED MODULE REPOSITORY​

MUST HAVE XPOSED MODULES​

__________________________________________________

ZIPS

FRP Destroyer

Lock Screen Fixer

__________________________________________________

THEMES

THEME CHOOSER S6Plus

????? Theme| G531F | 5.1.1

__________________________________________________

TUTORIALS

FLASH STOCK ROM , TWRP , ROOT & XPOSED​

Note :- *Before starting backup all your data to an external storage

*Your warranty would be void after rooting

*Do some research on risks of rooting such as "Bootloops" and "Bricking" (a bricked phone is completely unusable)

_____________________________________________

1.Download and install Samsung USB Drivers

2.Download Odin and extract (no installation is needed)

_____________________________________________

3.Download latest Firmware and extract it once

4.Run Odin (make sure the only checked Options are "Auto reboot" and "F.Reset Time" make sure "RE-Partition" is not checked

5.Now click on AP and pick your Firmware file (in .tar.md5 format)

6.First Enable Developer Options (go to Settings > About phone> tap 7 times on build number) Then enable "OEM Unlock" and "USB debugging"

7.Now reboot to Odin/Download mode turning off your device and holding VOLUME DOWN + HOME + POWER button simultaneously until you see a disclaimer on the screen then press Volume Up to continue

8.Connect USB cable to the phone , text "Added" should appears in Message box in Odin , click Start and wait to complete , when it shows "Pass" you can disconnect the cable , wait for autoreboot (of the device) and you are done!

_____________________________________________

Note :- *Before flashing Custom recovery you must remove your google account(by going into settings>accounts) to turn off FRP lock

*It is better to have a Factory reset (rather than removing google account) to have a clean start

_____________________________________________

9.Download latest TWRP (.tar) , again reboot to odin/download mode and flash it using the same AP button in Odin but remember to untick auto reboot and make sure repartition is not checked

10.After flashing don't do a normal reboot , After the flash has succeeded disconnect the usb cable, then power down the phone by holding the power button for 10 sec , once it's powered off use the VOLUME UP + HOME + POWER button combo to boot directly into recovery. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP

(If you don't follow this step, you will have to repeat the install)

_____________________________________________

Note:- After having a custom recovery flashed when you sign in your google account and the next time you boot into recovery (or sometimes a normal boot) you will get a message "custom binary blocked by FRP lock" and your phone will not boot after this and you have to flash the firmware again to get out of this

So, before adding your google account you have to flash a zip called "FRP Destroyer" (by Zillinium) which completely removes the FRP partition

Hence,you can have a custom recovery and google account added at the same time

_____________________________________________

11.Get Magisk Manager APK and Magisk zip file

12.Boot into recovery (TWRP) and install the zip file then wipe cache/dalvic and then reboot your phone

13.The Magisk framework is now installed on your device. To manage it, you’ll need Magisk Manager App

_____________________________________________

Note :- Make a NANDroid backup in TWRP (allows you to restore your phone to the exact condition at backup)

So if anything goes wrong with further modding, you'll be able to restore all of your apps and settings to working order in no time

_____________________________________________

14.Install Xposed installer app like you normally would

15.Flash "xposed.zip" file through TWRP.

Reboot and Wait, it may take several minutes to boot up depending on your Rom size.

__________________________________________________

Before using this guide:

*** Disclamer

Your warranty is now void.

I am not responsible for bricked devices, dead SD cards,

thermonuclear war, or you getting fired because the alarm app failed. Please

do some research if you have any concerns about features included in this ROM

before flashing it! YOU are choosing to make these modifications, and if

you point the finger at me for messing up your device, I will laugh at you.

A lot.

Check my website, because why not: web.galaxxyafonso.codes​