[G800F/M/Y][ROM][7.1][NJH47F] LineageOS 14.1 for G800F/M/Y [Beta 19/08/2017]

Search This thread

7wells

Senior Member
Oct 9, 2019
159
9
Encryption fails with LOS 14.1 (20200826)

Hello @hennymcc

I have clean-flashed LOS 14.1-20200826-UNOFFICIAL-kminilte on my S5 mini G800F (without OpenGApps, and no further apps installed), assigned a PIN to lock it, and then tried to encrypt the device (fully charged and plugged into a USB charger). After entering my PIN, an Android logo (green on black) appeared for a very short moment, but then the device rebooted (without encryption). Can you (or anyone) please help me to find out the reason for this and how to eventually fix it?

My plan is to encrypt the device and then update to the latest available LOS (where encryption does not work anymore, I was told, hence the hint to do it on LOS 14.1 first).
 

7wells

Senior Member
Oct 9, 2019
159
9
After clean flashing lineage-14.1-20170819-UNOFFICIAL-kminilte and also open_gapps-arm-7.1-stock-20200916, the encryption has worked. :)
Now I will try to update to LOS 16.0; however, I am not yet sure, which download I shall use, i.e. from which location and date. But that is a question for another thread. ;)
 

sincrociclotrone

New member
Jun 21, 2018
4
1
Issues with TWRP 3.4 and NFC under LOS 14.1

Hi all,

I would like to share my experience with flashing this ROM from Stock MM and ask if I am the only one getting these issues.

I was coming from stock rom 6.0.1 and after reading the whole thread from the beginning (took me some time... :eek:) I tried directly TWRP 3.4.0, which was actually unable to install lineage14.1-20200826 by panzerknacker. Useless to say, I had tried to backup the whole system usin TWRP 3.4.0 but realized too late that the backup made was unusable. So I lost the original OS image.
I then tried any other rom available on xda to check, and none was installing. I went eventually down to TWRP 3.3.1, which managed to install both lineage14.1-20200826 by panzerknacker and OpenGapps pico 20200912 (between the two attemps some time had passed and I had started using my backup phone Nexus 4 as main). Everything went smoth until I tried to switch back to kminilite as main. Then I realized GPS and phone where not working (among the few things i had not been able to try without switching). GPS Status was showing no one single satellite, and the SIMCard was not recognized at all. I was already prepared to follow all the indications in the thread, both for the SIM card and the GPS but wanted first to check the possibility to go back to stock. So I downloaded the stock os available in the Baseband/modem thread and flashed all the files with odin. All working great so I knew I at least had a way back (after I had not been able to backup my own original OS).

I had read that in some cases the issue would be solved by flashing the modem via Odin so I took the chance and triend again lineage14.1-20200826 by panzerknacker and OpenGapps pico 20201002. Incredibly it worked! I have now been using the phone for a week as my main driver and I am very satisfied.
The only issues I can find today are:
  • NFC - Google Pay. Has anybody been able to use it? I was able to use Google Pay using StockRom 6.0.1, though it was pretty slow and many time required longer time than actually taking the physical card from the wallet. In Lineage Google Pay installs fine, but it does not show any sign of life when I put the phone on a contactless POS. Tried from home screen, from Google Pay main screen and from the card screen. Anybody had better luck?
  • Battery consumption: The OS uses indeed more battery. I have not tried Better Battery stats yet, but I can definitely say thebattery lasts shorter (normally 9-20 hours), where I could normally reach 24-36 with stock. I will try spokcityùs kernel, although I have no experience with that and do not yet know where to start. (not to mention the settings for the kernel)

I just noticed the availability of 20201007 build by panzerknacker and I will try better luck with that, but it would be nice to know anybody else's experience with Google Pay.

Cheers

Fabrizio
 

Anikscha

Senior Member
Jun 16, 2018
80
63
Hi all,

I would like to share my experience...

Did you flash the latest Modem/Bootloader file?
https://androidfilehost.com/?fid=11410963190603894068
Modem/Baseband G800FXXU1CRG3
Bootloader G800FXXS1CRJ1

TWRP 3.4 is not recommended as mentioned in some other threads of XDA!
In case you restored EFS Partition by TWRP 3.4 more problems will appear!
https://forum.xda-developers.com/showpost.php?p=83689309&postcount=3108
In that case you better start from the scratch...
1. flash Stock Rom
2. complete the boot sequence, than power off
3. flash TWRP 3.3.1
4. flash latest Modem/Bootloader
5. wipe Sytem/Data/Cache
6. install Lineage
7. optional: install Gapps https://opengapps.org, but if so, it must be installed in one go with the ROM!!
Done! Enjoy...

This is a rock solid ROM and works like a charm that way !!

BTW, NFC needs a battery with antenna !
 
Last edited:
  • Like
Reactions: bravur

sincrociclotrone

New member
Jun 21, 2018
4
1
Did you flash the latest Modem/Bootloader file?
https://androidfilehost.com/?fid=11410963190603894068
Modem/Baseband G800FXXU1CRG3
Bootloader G800FXXS1CRJ1

TWRP 3.4 is not recommended as mentioned in some other threads of XDA!
In case you restored EFS Partition by TWRP 3.4 more problems will appear!
https://forum.xda-developers.com/showpost.php?p=83689309&postcount=3108
In that case you better start from the scratch...
1. flash Stock Rom
2. complete the boot sequence, than power off
3. flash TWRP 3.3.1
4. flash latest Modem/Bootloader
5. wipe Sytem/Data/Cache
6. install Lineage
7. optional: install Gapps https://opengapps.org, but if so, it must be installed in one go with the ROM!!
Done! Enjoy...

This is a rock solid ROM and works like a charm that way !!

BTW, NFC needs a battery with antenna !

It turns out I was not using ODIN properly because I was not repartitioning after the failure with TWRP 3.4.
I did not have a clue I should have loooked at an another thread regarding another device to find out TWRP was not suitable in this version on this device...
As I mentioned, I was using Google Pay with stock, which implies I do have an NFC-enable battery. I do have three indeed.

By the way, I followed now your guidance step bu step all the way through and got everything to work. I can confirm, this ROM works really fine.
Surprisingly enough, I was able to use Google Pay at a first instance, and it was even performing extremely faster than Stock Rom. All good for two days. Then Google Pay ONLY (!) stopped working and is not using NFC any longer.
My S800F acn recognize and use other NFC devices, but does not POS payments with Google Pay. Just seems like nothing happens when I put the phone over the POS.

Is there any way I can check/debug on this?

GPS is now solved. I actually also applied Andy's suggestion with the antenna contact pull-up trick, as I happened to need to open that cover becasue my power button got worn out after 6 years of use.

Thanks

cheers
Fabrizio
 

Anikscha

Senior Member
Jun 16, 2018
80
63
Surprisingly enough, I was able to use Google Pay at a first instance, and it was even performing extremely faster than Stock Rom. All good for two days. Then Google Pay ONLY (!) stopped working and is not using NFC any longer.

You didn't provide any info about your device is rooted?
If so, many payment and banking apps won't work and it's constantly checked and updated by the "User Data Monster" called Giigle!
In other words, it can work one day and fails a day later.
With LineageSU or SuperSU you wan't have a chance to hide root, but Magisk keeps that "cat and mouse" game alive since years...

However, first check via app if SafetyNet will pass.

If not, there is a bunch of reasons for that case...
and on XDA you'll find heaps of those stories concerning SafetyNet.
 

sincrociclotrone

New member
Jun 21, 2018
4
1
Hi Anikscha, thanks again for your reply.
Phone is actually not rooted and passes the SafetyNet test correctly

CTS profile match: true
Basic Integrity: true

SafetyNet `attest` version 0.7 [7]
SafetyNetResponse{nonce='jeylnakDO9to7UMFC9bqbm+O0S4UybgAuSCl6Eo8+p0=', timestampMs=1608215435169, apkPackageName='com.scottyab.safetynet.sample', apkCertificateDigestSha256=[MZNsDhz8VAJMmFxPPso38ZRvZE6r7VIyzUqypkakG8E=], apkDigestSha256='mBsy0z8iqFCjNF1aLB7o38VafqQ84zI0/j0SOOPxX/Q=', ctsProfileMatch=true, basicIntegrity=true, advice=null}

I happen to have another G800F available, still with Stock and I will try to play around with it.
Any other suggestion, or probably anybody that is using Google Pay?

I actually forgot to mention another major issue that is still alive: Battery life. My phone does not last longer than 10-14 hours at the moment, even without touching. It is clearly some battery drain and I haven't looked at it yet, but would still like to have feedback from regular users on their battery life.

Cheers
Fabrizio
 

a-dead-trousers

Senior Member
Jul 28, 2016
282
1
141
I actually forgot to mention another major issue that is still alive: Battery life. My phone does not last longer than 10-14 hours at the moment, even without touching. It is clearly some battery drain and I haven't looked at it yet, but would still like to have feedback from regular users on their battery life.
There are a few possibilities that I know of:
Bad reception on LTE network --> Switch to 3G when you are in area with bad reception.
Wifi network drains the battery --> This is what I experienced: Turning of Wifi (and Wifi positioning service) gives an extra day of battery life (from around 2 days up to 3-4 days).
Battery is nearly dead --> Thankfully the battery for this phone can still be changed.

I used "BetterBatteryStats" to figure out what is draining my battery.
 

emil19

Member
Mar 20, 2012
11
3
(y) Thanks for the update! I am using this build in my daily phone for about 1 year now with no major problems.
Only one thing hurts me after every update. I am always loosing my battery calibration after the update. Is it possible to leave the battery calibration untouched during a dirty flash?
Or is this only my problem?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Security Patch Level April, plz try
    1
    I hope the person responsible reads it.
    Looks there is nobody except me anymore. Patches welcome.
  • 59
    This is a LineageOS 14.1 ROM for the Exynos3470 based Samsung Galaxy S5 mini (G800F/G800M/G800Y).

    DO NOT USE IT FOR G800H OR YOU WILL BRICK YOUR DEVICE

    Although G800F and G800H share the same name they are not related in terms of hardware due to the different SoCs used (Exynos vs. Snapdragon).
    Hence please do not ask for support or ROMs for the G800H.

    Important note: It is possible that flashing this ROM can cause efs partition issues. Therefore it is strongly recommended to make a backup of your efs partition before flashing this ROM. This can be done via TWRP.

    Working features
    • HW accelerated GUI
    • Camera (pictures+video: Back+Front) (switching between camera and video-recording might crash the camera-app)
    • MTP storage
    • Flash Light
    • Bluetooth (A2DP, HFP, HID)
    • IR
    • Sound
    • SMS
    • Initiate and receive calls
    • Wifi
    • Mobile Data
    • USB-OTG (Keyboard, Mouse, USB-Audio, Mass-Storage)
    • NFC
    • Hardware sensors (Orientation, Compass, Proximity, Acceleration, Hall sensor, Step counter)
    • Light sensor (needed for auto-brightness)
    • Pulse sensor (preliminary and very inaccurate. Works with Apps like Kardiograph)
    • SD-Card as internal storage (new Android M feature)
    • GPS
    • Fingerprint scanner
    • SELinux

    Non-working features:

    Known issues:
    • Camera crashes when switching from camera to video. Use Google camera or Open camera to solve camera issues.
    • See the Bug Report section of this thread.

    Disclaimer:
    • You flash this image at your own responsibility. I am not responsible for any damage that might be caused by flashing this image (bricked device, lost data, ...)
    • Flashing this kernel image will trigger the KNOX counter, so your warranty will be void.
    • Applications that use KNOX (e.g. "Private Mode") might not work anymore when returning to the stock ROM, as the device is regarded as compromised. Do not flash this ROM if you need those applications.
    • The image is only for Exynos3470 based S5 Mini variants SM-G800F/M/Y.
    • It might be instable, crash your device, drain your battery, or even might damage your smartphone (e.g. if an USB-OTG device drains too much power)
    • Some users reported that their touch-screen stopped working permanently after some weeks of usage. For some user's (two at the moment including me) NFC stopped working permanently. Probably this issues are not related to this ROM as also many stock user's complain about hardware issues (random reboots, black screens, unresponsive touchscreen) but you have been warned.
    • Backup your data before flashing and check if the original firmware is present (e.g. at SamMobile)
    Before you start:
    • Backup your data, like call history, contacts, sms, WhatsApp messages, favourite app settings that are on internal and external sd (by using Titanium Backup or other apps available on PlayStore). At least all internal data will be lost in any case. If you have bad luck you might also loose data from your external sd card.

    Download:

    Install recovery:
    • Reboot your device into Download mode: turn off your device, then press Volume-Down + Home + Power button at the same time and release them.
    • Confirm the following warning message with the Volume-Up button.
    • Connect your device to your PC via USB
    • Make sure the device driver's are installed on your PC
    • Start Odin
    • In Odin select "PDA" (in newer versions: "AP") and select the recovery image (recovery.tar.md5)
    • Check that only "F. Reset Time" is set. "Auto Reboot" should be disabled to avoid a reboot into stock ROM.
    • Click on "Start": the recovery image should be flashed now. By flashing the recovery, your warranty will be void.
    • After the recovery flashing process was successful, power of your device, wait a few seconds and reboot into recovery mode (see instructions below).
    • Important: make sure not to boot into stock ROM, otherwise the stock ROM might remove the custom recovery again. If this happens, flash the recovery image again.

    Before you flash:
    • You need the latest TWRP recovery (see above). Otherwise TWRP might not be able to flash the ROM. This is because TWRP checks now if the device is "supported".
    • Wipe the device to avoid problems with remaining files from the old installation (see instructions below). This also applies if you already installed an older version of CM 14.1.

    Flash ROM:
    • Reboot into recovery mode (Press Volume-Up + Home + Power button)
    • If you come from a stock ROM, this is your opportunity to make a Backup of your phone(Backup, then select Boot, System, Data, then swipe to backup). Note that the recovery might fail to restore the backup when you want to go back to the stock ROM (for me it got stuck after a restore during boot. But the backup was made with a different version of TWRP, so it might work in general) - simply do not expect too much of it at the moment.
    • If you haven't copied the installation files yet, you can now copy the GApps and the ROM zip to your internal sd or external sd (be careful not to put the files into the data directory of the internal sd card as this will be deleted in the next step). Be sure that MTP is enabled (inside Mounts, click on Enable MTP), then, from your pc, copy the files. If MTP does not work from recovery, try it directly from Android or remove the external sd card from the phone and put it into your PC.
    • Wipe Dalvik Cache, Cache, System and Data (inside Wipe -> Advanced Wipe). Do not report problems if you did not wipe those partitions as the problems are most probably related to this!
    • Install the CM ROM zip-package
    • Install the GApps zip-package

    How to root:
    LineageOS does not have root support integrated by default. You have to download addonsu-arm-signed.zip for 14.1 from the Lineageos Extras download page and install it with TWRP.
    After that root access is still disabled by default. If you want to activate root access for apps, do the following:
    • Open the Settings menu, select "About Phone"
    • Tap on the "Build number" entry seven times. You should be notified, that the developer settings are now active.
    • Open the Settings menu, select "Developer options". Enable root access by selecting "Apps" in the "Root-Access" setting.

    In case you want to go back to the stock ROM:
    • lf you do not have the latest ROM for the G800F you can download it from SamMobile
    • Reboot your phone into Odin mode
    • Open Odin on your PC and connect your smartphone with your PC via USB
    • If you have a zip-file unzip it so that you have a .tar.md5 file
    • In Odin click on the PDA button and select the .tar.md5 file. Then press "Start".
    • Normally the stock rom fails to boot as the data from CM is still on the data partition. So after flashing the stock rom, reboot into recovery mode (it looks a bit different now). First wipe the data partition, then wipe the cache.
    • Reboot

    Changelog
    Code:
    Changelog:
    19/08/2017:
    * SELinux policy update
    * Update to newest LineageOS sources
    02/06/2017:
    * Firefox crash&reboot fixed (thanks to Spookcity)
    * Enabling the fingerprint reader does not cause bootloops anymore (thanks to Spookcity)
    * Ambient display option added (disabled by default)
    28/05/2017:
    * [COLOR="red"]Note: ROM is stuck in bootloop when fingerprint reader is enabled. ROM removed.[/COLOR]
    * Enabled selinux (thanks to mirhciulica for fixing all those selinux denials). If you encounter problems check for "avc: denied" messages in logcat (see: https://source.android.com/security/selinux/validate)
    * Fixed Snapchat and SafetyNet problems (Snapchat reported server errors, Safetynet Helper reported a 1970 timestamp): Kernel patch was necessary.
    * Updated kernel to 3.4.107
    * Applied most of the patches from [URL="https://android.googlesource.com/kernel/common/+/deprecated/android-3.4"]kernel/common/deprecated/android-3.4[/URL]
    * Updated LineageOS sources
    * FlipFlap added to support smart flip covers: shows a screen with the current time in the window of the smart cover. Note that this relies on the magnetic sensor at the bottom of the phone. So magnets near the sensor can trigger this behavior too.
    * Replaced the buggy Gello webbrowser with Jelly - the new LineageOS default browser
    * Replaced the buggy Snap camera with the LineageOS default camera app
    * Replaced the Samsung battery charger app (lpm) with healthd (looks uglier but at least works with selinux)
    
    20/02/2017:
    * Fixed Youtube scaling issue on window resizing
    * Compass fixed (thanks to mirhciulica for figuring out what's wrong)
    * cpufreq config added
    * Charge mode fixed (starts when plugging USB into a powered-off phone)
    * USB-Tethering and Wifi SoftAP (Hotspot) fixed
    * Camera doesn't crash when switching between camera and video (but might still crash sometimes)
    * Fingerprint libs reverted from MM to LP (maybe that fixes the fingerprint issues - please test)
    
    01/02/2017:
    * conversion to LineageOS
    * updated some libs with stock MM versions
    * fixed robotic voice problem
    * fixed silence on first call
    
    07/11/2016:
    * Initial test build

    This section is for developers:
    A README file with build instructions can be found here:
    Code:
    https://github.com/cm-3470/android_device_samsung_kminilte

    Sources:
    Code:
    https://github.com/cm-3470/android_device_samsung_kminilte
    https://github.com/cm-3470/android_vendor_samsung_kminilte
    https://github.com/cm-3470/android_kernel_samsung_kminilte
    https://github.com/cm-3470/android_device_samsung_smdk3470-common

    Developers welcome
    • At the moment the G800F/M/Y specific port of this ROM is only done by two persons (CTXz and hennymcc). Although Unjustified Dev also works on this ROM he does not own an Galaxy S5 Mini but a Galaxy Light which has a similar base but is different when it comes to camera, nfc and other components (maybe even slightly when it comes to audio and radio).
    • Help from other developers is always welcome. See the bug/feature section and this thread to see what is missing. Just give some short info (here in this thread or PM) that you want to work on some issue or feature so that work can be synchronized. Maybe there are also other devs that want to work with you on the same issue.
    • Knowledge in how the kernel works and good programming skills in C, C++ and Java would be nice but not necessary for all problems. At least you should be able to build the ROM and test your changes yourself but you do not need experience in porting ROMs.

    Thanks to CTXz, Psyafter, spookcity138, ayke and mirhciulica for working on this ROM.

    XDA:DevDB Information
    [G800F/M/Y][ROM][7.1][NJH47F] LineageOS 14.1 for G800F/M/Y [Beta 19/08/2017], ROM for the Samsung Galaxy S5 Mini

    Contributors
    hennymcc, Panzerknakker, spookcity138, psyafter, ayke
    Source Code: https://github.com/cm-3470

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.4.x
    ROM Firmware Required: TWRP Recovery [version >= 15/08/2015]
    Based On: LineageOS

    Version Information
    Status: Beta

    Created 2017-02-01
    Last Updated 2018-08-18
    21
    Hi there is a new build:
    https://www.androidfilehost.com/?fid=529152257862704787

    Changelog:
    • Fixed Youtube scaling issue on window resizing
    • Compass fixed (thanks to mirhciulica for figuring out what's wrong)
    • cpufreq config added
    • Charge mode fixed (starts when plugging USB into a powered-off phone)
    • USB-Tethering and Wifi SoftAP (Hotspot) fixed
    • Camera doesn't crash when switching between camera and video (but might still crash sometimes)
    • Fingerprint libs reverted from MM to LP (maybe that fixes the fingerprint issues - please test)
    21
    Official TWRP 3.1.1

    I've worked together with the TWRP maintainers to make TWRP official, and it's finally here :D
    https://forum.xda-developers.com/galaxy-s5-mini/orig-development/recovery-twrp-3-1-1-exynos-t3626646

    You can download it from here:
    https://twrp.me/devices/samsunggalaxys5miniexynos.html
    21
    A new build is available:
    https://www.androidfilehost.com/?fid=961840155545570720

    It turned out that the patch found by Spookcity not only fixes Firefox but also the fingerprint bootloop. So the new build should be usable again.
    As the initial bootloops probably were also caused by the fingerprints it should not be necessary anymore to wipe everything (although still recommended).

    Changes:
    • Firefox crash&reboot fixed
    • Enabling the fingerprint reader does not cause bootloops anymore
    • Ambient display option added (disabled by default)
    17
    A new build is available.
    https://www.androidfilehost.com/?fid=889764386195902448

    Changelog:
    Code:
    * Enabled selinux (thanks to mirhciulica for fixing all those selinux denials). If you encounter problems check for "avc: denied" messages in logcat (see: https://source.android.com/security/selinux/validate)
    * Fixed Snapchat and SafetyNet problems (Snapchat reported server errors, Safetynet Helper reported a 1970 timestamp): Kernel patch was necessary.
    * Updated kernel to 3.4.107
    * Applied most of the patches from [URL="https://android.googlesource.com/kernel/common/+/deprecated/android-3.4"]kernel/common/deprecated/android-3.4[/URL]
    * Updated LineageOS sources
    * FlipFlap added to support smart flip covers: shows a screen with the current time in the window of the smart cover. Note that this relies on the magnetic sensor at the bottom of the phone. So magnets near the sensor can trigger this behavior too.
    * Replaced the buggy Gello webbrowser with Jelly - the new LineageOS default browser
    * Replaced the buggy Snap camera with the LineageOS default camera app
    * Replaced the Samsung battery charger app (lpm) with healthd (looks uglier but at least works with selinux)
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone