Samsung Galaxy Grand Prime (samsung-fortuna)

== Contributors ==
* WTechNinja
* minecrell (Helped with things here and there)
== Users owning this device ==
== Variants ==
Model 	Codename 	Arch. 	RAM</br>(GiB)	NFC 	Sensors	Supported	lk2nd
SM-G5306W 	fortunaltezn 	armv7Outdated 4.4 Kitkat bootloader CHU 	? 	? 	? 	? 	?
SM-G5308W 	fortunaltezh</br>fortunaltezm 	armv7Outdated 4.4 Kitkat bootloader CHM TGY	? 	? 	? 	? 	?
SM-G5309W 	fortunaltectc 	armv7Outdated 4.4 Kitkat bootloader CTC 	? 	? 	? 	? 	?
SM-G530A 	grandprimelteuc 	aarch64 	? 	? 	? 	? 	?
SM-G530AZ 	grandprimeltetu 	aarch64 	? 	? 	? 	? 	?
SM-G530BT 	fortuna3gdtv 	aarch64 	? 	? 	k303c 	? 	?
SM-G530F 	fortunaltedx 	aarch64 	? 	s3fwrn5 	k303c 	? 	?msm8916/lk2nd: Samsung Galaxy SM-G530F panel not working on pmOS.
SM-G530FQ 	? 	aarch64 	? 	? 	? 	? 	?
SM-G530FZ 	grandprimelte</br>gprimeltexxDeprecated TWRP codename. grandprimelte should be the correct one.	aarch64 	1 	s3fwrn5 	bmc150 	Y 	Y
SM-G530H 	fortuna3g</br>fortunave3g 	aarch64 	1 	- 	k303c 	Y 	Y
SM-G530M 	fortunalteub 	aarch64 	? 	s3fwrn5 	k303c 	? 	?
SM-G530P 	gprimeltespr 	aarch64 	? 	? 	bmc150 	? 	?
SM-G530R4 	gprimelteusc 	aarch64 	? 	? 	bmc150 	? 	Y
SM-G530R7 	gprimelteacg 	aarch64 	? 	? 	bmc150 	? 	?
SM-G530T 	gprimeltetmo 	aarch64 	? 	? 	bmc150 	? 	?
SM-G530T1 	gprimeltemtr 	aarch64 	? 	? 	bmc150 	? 	?
SM-G530W 	gprimeltecan 	aarch64 	1.5 	s3fwrn5On i2c6	bmc150 	Y 	Y
SM-G530MU/Y	fortunaltezt 	armv7Outdated 4.4 Kitkat bootloader TPABRI 	1 	pn547 	k2hh 	Y 	P
== Architecture ==
== 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.
== Installation ==
== Panel ==
There are 3 panel variants supported, and lk2nd is required to enable the paneldts: msm8916: Add Samsung Galaxy Grand Prime (SM-G530H)arm64: dts: qcom: msm8916-samsung-gprime: Add display panel.
== Touchscreen ==
Sometimes the touchscreen stops working after idling for hours. To fix it, do:
# modprobe -r zinitix
# modprobe zinitix
== Accelerometer ==
gprime variants use bmc150, and fortuna variants use k2hh or k303c.
k2hh 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, s3fwrn5 and pn547. 3G variant fortuna3g has no NFC chip.
NFC is not enabled on grandprimelte. This can be enable fixed if anyone feels like to test it.
== Troubleshooting ==
Please note for some models e.g. G530FZ. Some bugs has been discovered.
See How to report issues
* Forever black screen even if phone is powered on, after few hours of uptime 
See Qualcomm Snapdragon 410/412 (MSM8916)#Suspend
* 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#Issues with apps or interfaces/shells
== 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
== Photos ==
File:Samsung-gprimeltecan.png
== See also ==
* Samsung Galaxy Core Prime LTE (samsung-rossa)
* Samsung Galaxy Grand Max (samsung-grandmax)
* 
* (fortunaltezt)
* 
== References ==