Samsung Galaxy Grand Prime (samsung-gprime)

Contributors

 * WTechNinja
 * minecrell (Helped with things here and there)

How to enter flash mode
Press Volume Down, Power, and Home all at the same time to boot to Odin mode. After lk2nd is installed, press Volume Down and Power at the same time.

Panel
There are 3 panel variants supported, and lk2nd is required to enable the panel.

Touchscreen
Sometimes the touchscreen stops working after idling for hours. To fix it, do:

Accelerometer
variants use, and   variants use   or. accelerometer is not so stable for auto screen rotation, which suggests you to use fixed portrait or landscape mode.

NFC
There are 2 variants of NFC chips,  and. 3G variant  has no NFC chip.

is currently using  device tree, which results in broken NFC. This can be easily fixed if anyone feels like to add a dedicated device tree and test it.

Troubleshooting
Please note for some models e.g. G530FZ. Some bugs has been discovered.

See How to report issues

See Qualcomm Snapdragon 410/412 (MSM8916)
 * Forever black screen even if phone is powered on, after few hours of uptime


 * Internet access makes it freeze for a certain time


 * A white error message could appear on a blackscreen on phosh and plasma

See How to report issues

additional information
here it is for g530fz devices:

used: twrp 1.1.1-1

lk2nd (postmarketos): 0.12.0 msm916

a/ pmos "works" (not so well) on that device

b/ unfortunately, few "bugs" "maybe related" to hardware persists, mainly in the reactivity on touchscreen when locked on inactive since a while.

c/ perf is highly to low (paradox for pmos ;-) ) to use it as a "common daily smartphone", mean: if you want to escape gafamnt, mount your server on a phone, or specific usages: it would be perfect. But dont expect it to run netflix everyday in firefox or falkon, it might freeze for "not only" a while.

d/ my documentation/software related to it: https://kdrive.infomaniak.com/app/share/471663/301b1494-25f4-4dba-9572-c6c182b2c4cd see for each link, normally a .img file. Unforunately, only 1 was able to host a gigabyte-sized, .img file.

Please note, without the following bug being not solved, that device could NOT get postmarketos installed through twrp with zip file:

In addition: Don't know what is the exact issue, but I found a case, where it was fixed:, sadly they didn't document how to solve it properly.

e/ im going on something else now.. if you want ungoogled/ungafamnted android, take lineageos14.1 (gprimeltexx), the fastest/best choice for that device, for common usage

roll back to androstock/lineageos?
for G530FZ:

used: twrp 1.1.1-1

lk2nd (postmarketos): 0.12.0 msm916

download mode
simply use odin with a tar ROM

download mode
use heimdall or odin to flash the twrp used: twrp 1.1.1-1

twrp/recovery mode
use twrp to flash the lineageos zip file (install button) I really advise you to use lineageos14.1 (andro7) for better compatibility/performance

well tested:

lineage 14.1, but you *might* have to odin it, regarding this:

Hi guys

regarding the G530fz to solve the problem I had to be oriented to Lineage 14. Why the cell data was not detected? I don't know, but I discovered a way to fix it: I was used before to install Lineage by just injecting the image file into the phone, then format the /data partition by simple wipe. And for others phone, it was working. Looks like on samsung models, it's requiring steps differently:

1/ use odin to reinstall stock firmware regarding all four files: BL, AP, CP, CSC. In the downloaded archive of the stock firmware, all files matchs with those option with odin. It's necessary to add these four files. Flash it

2/ The phone will start. After finished, you can restart it, but in download mode.

3/ then use again odin, but flash it with only three files, excluding AP. Replace BL by the twrp bootloader.

4/ If at reboot, it's stuck on a recovery start, even without pushing the vol buttons, reflash it again with only BL.

5/ proceed normally to install lineage: download correct image plus arm (it's arm32 if Im right) pico or nano opengapps, copy them to the phone by usb, flash it then wipe /data.

6/ it should work.

If not, I remember I had to firstly flash by stock factory with all four files of stock archive, then only three including twrp instead of factory BL, then only BL if it's booting in loop into recovery instead normal mode.

Normally, it should, with lienage, detect sim cards. If you just flash it with twrp by BL/odin, twrp will be installed, lineage can be installed too, but GSM/3G/LTE modules might never work (in my case, it happened like it)