[Galaxy Grand Prime General] djibe89:
[Guide/tutorial] Samsung Galaxy Grand Prime VELTE/G531F from stock to custom ROM

[Guide/tutorial] Samsung Galaxy Grand Prime VELTE/G531F/grandprimevelte from stock to custom ROM

This detailed step-by-step guide helps you transform your Samsung Galaxy Grand Prime VE/LTE/531F to a powerful one with a custom Android 5.1.1.

Make sure your phone is SM-G531F before going further : in Android, go to Settings -> About -> Check model is G-531F.

AND note down the baseband version in a safe place (in case of device brick) : G531FXXU1APG2 in my case.

If not, quit this tutorial.

### Phone is reset and you can't access Android ? Shutdown phone, start in Recovery Mode (Hold Power + Home + Volume+) until you see Samsung logo and release buttons.

### In the recovery, on the 2nd line, look at the right part of the string after the . : G531FXXU1APG2 in my case, the first letters show G531F. It's good.

### AND note down the baseband version in a safe place (in case of device brick) : G531FXXU1APG2 in my case.

### If it is another model, quit this tutorial.

CHANGELOG ------------------------

v2. Enhenced FRP Lock bypass

v1. Initial release for Android 5.1.1

1) DOWNLOAD ---------------------

- djibe Galaxy Grand Prime VE/G531F pack v1 : http://bit.ly/djibe-grandprimeve-g531f-v1

(contains preconfigured Odin 3.13.1 + Samsung drivers + TWRP3.0.2-0 unofficial recovery + DeviceID app).

Unzip files from my pack.

+ ROM CS-Rom 3.2 (Android 5.1.1) : https://xdaforums.com/grand-prime/general/g531f-galaxy-grand-prime-custom-stock-t3683569

Download from : http://bit.ly/grand-prime-csrom32

+ a microSD card. Copy ROM and deviceID.apk file on microSD card (FAT32 format) and insert it in phone.

+ Charge phone to 100 %

2) BACKUP DATA -------------------

Install Samsung drivers (you unzipped earlier).

Then plug phone to PC in File transfer mode.

Collect all .jpg or .mp4

Use an app like Backupyourmobile to backup texts, contacts, etc.

Check that backup is located on microSD card.

Then copy the backup on your PC.

3) FLASH TWRP3.0 RECOVERY ----------------

Shut down phone.

Boot in Recovery mode : Hold Home + Power + Volume+ until you see Samsung logo and release buttons.

Navigate with volume buttons to go over wipe data/factory reset menu. Confirm with Power.

Confirm again with yes using same buttons.

Shutdown phone.

Boot in Download Mode : hold Home + Power + Volume- until you see the download mode screen and release.

Confirm with Volume+.

Look at the FRP Lock line (5th line). If FRP lock is off, follow these instructions.

### If FRP Lock is on, move to the chapter below : 3bis)

Connect phone in USB, wait for bootloader drivers installation.

Then launch Odin.exe (included in my archive) and wait for Odin indicator ID:COM to become blue.

In options: Verify Auto Reboot and Re-Partition are NOT ticked while F. Reset Time is ticked.

On the right panel -> in AP menu -> select twrp-3.0.2-0-grandprimevelte.img.tar included in my pack.

### Don't use other menus like BL, CP or CSC (I desactivated them but we never know).

### Warranty will be Void after next click ###

Click Start.

Power Off phone when PASS! green message appears : hold Power + Home + Volume- until phone is shut.

3bis) Reset internal memory to bypass Google FRP lock. ONLY IF FRP LOCK IS ON in bootloader mode

If FRP lock is on, follow this chapter.

Boot in recovery mode (Hold Power + Home + Volume+ and release when Samsung logo is appears).

Use volume buttons to select Wipe data/factory reset, confirm with Power button.

Use volume buttons to select Yes -- delete all user data, confirm with Power button.

Then select Power down.

Go back to step 3.

### If it is still not working, follow next chapter 3ter).

3ter) Factory reset is not enough to remove FRP Lock

Go to SamMobile.com and create an account (Join button): https://www.sammobile.com/join/

Select the FREE join, complete registration.

Confirm registration by clicking on the verification email.

Now visite this page : https://www.sammobile.com/firmwares/galaxy-grand-prime/SM-G531F/

Select your corresponding country.

Now there are many versions for your country : look in the PDA column for the ones corresponding to your Baseband version you noted earlier (G531FXXU1APG2 in my case).

Preferably chose the one independant from a telecom operator, click on this line.

Then download the firmware, it's huge so be patient.

You then have a zip file on your PC. Unzip it 1 time (using 7-zip or other tool) to keep the file named like : G531FXXU1APG2_G531FOXX1APG2_G531FXXU1APG2_HOME.tar.md5

Start phone in recovery mode again, connect it to PC and Launch Odin.exe.

In AP, set this brand new ".tar.md5".

Wait for Odin to control md5 signature.

Then flash it. Be patient, all the partitions of the phone are being reset.

When Odin green success message appears, disconnect from PC, shut phone down by holding Power + Home + Volume-.

Now start phone in Download mode right away, FRP Lock line should be OFF.

Go back to step 3) at this line : "Connect phone in USB, wait for bootloader drivers installation.".

4) FLASH CUSTOM ROM

Start phone in recovery mode

TWRP is launching and reboots.

Check never show this screen during boot again and Swipe to Allow Modifications on first TWRP launch.

Go to Wipe menu -> Advanced Wipe : check Dalvik/ ART Cache, cache, system, Data and Internal Storage partitions.

Then Swipe to Wipe and wait for operations pending.

Go back to TWRP Home menu. Then tap on Install -> choose CSR*.zip

### If you don't see the files, tap on Select Storage and make sure Micro SDCard is active

then Swipe to confirm Flash.

Wait for operation to end.

Then tap Wipe cache/dalvik, swipe to confirm,

then Reboot System.

Wait for the phone to boot during 10 minutes.

5) ROOT ACCESS

The ROM has SuperSU preinstalled so no extra work to do.

6) CALIBRATE BATTERY

In Google Play Store, download App Battery Calibration (from IMobS Ltd).

Launch the App.

Confirm root acces.

Plug tab and wait till charge hits 100%, then hit BATTERY CALIBRATION and unplug it.

You can use GPS Status & Toolbox app for faster GPS fix.

7) OBTAIN GOOGLE MOBILE SERVICES (GMS) CERTIFICATION

Google now restricts Google Play and Google apps access to certificated devices. Since you have a custom ROM, you are banned.

We now need to subscribe for the Google Play Certification.

In Android, go to Settings -> Security and activate the Unknow sources

Now use the built in File explorer app to install the deviceID app from you microSD card.

Install it, launch it.

Tap on the Google Service Framework (GSF) line, then tap on the COPY button.

In your Android webbrowser, go to : https://www.google.com/android/uncertified/

Connect to Google using your Google/Android account.

In the input field of the page, paste the 16 digits code.

Click on the Save button, a success message confirms your device is Certified.

Do I need to re-certify it ?

"Your device’s GSF ID is reset every time your device is factory reset (or when you wipe the GSF app itself) since it is stored in your data partition, so you must re-register your GSF ID every time you perform either of these actions."

More info here : https://lineageos.org/Google-Play-Certification/

Enjoy,

djibe

Thanks : [MENTION=8315625]adiJ5FN[/MENTION]