• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[OFFICIAL][a5xelte][SM-A510F]Lineage OS 16.0 for A5 2016

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113

Introduction

LineageOS 16.0 is a free, community built, aftermarket firmware distribution of Android 9.0 (Pie), which is designed to increase performance and reliability over stock Android for your device. The port for the Exynos7580 based devices was created by @Stricted and I along with many contributions from other people in the Android community.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

What works
Calls, SMS, Mobile Data
Camera
NFC
WiFi
Bluetooth
Torch
Sensors
GPS
SELinux Enforcing
HWC​
What doesn't work
IMS services (VoLTE, VoWiFi, etc). Samsung has their own proprietary implementation. It is not really possible to easily port that to LineageOS.
Installation
Install the latest TWRP (Available Here)
Make a full backup (just in case something goes wrong)
Do a full wipe (Cache, Dalvik Cache, Data, System)
Download the latest LOS build and transfer it to your phone
Install LOS
If you are installing GApps do it at the same time (preferably in the same install queue)
And finally boot, the first boot can take several minutes as it optimises all the apps
Downloads
Latest official releases HERE
Latest unoficial releases are uploaded HERE
OpenGapps HERE
TWRP is availableHERE
Magisk is available HERE
Thanks
@Stricted
@l-0-w
@sekil
@alexax66
@macs18max (BT call audio fix)
@Borduni
All the testers on the Discord group (https://discord.gg/8fp9cr7)
And all others who have contributed to the Exynos projects past and present
A special thanks to my donors
XDA:DevDB Information
Lineage OS 16.0 for A5 2016, ROM for the Samsung Galaxy A Series

Contributors
danwood76, stricted
Source Code: https://github.com/LineageOS

ROM OS Version: 9.x Pie
Based On: LineageOS

Version Information
Status: Stable

Created 2019-06-25
Last Updated 2019-08-22
 
Last edited:

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113
Changelog

Code:
Changes in the 18/08/19 release:
[INDENT]Fixed GPS SEPolicy (thanks @stricted)
[/INDENT]
Older changes listed below:
Code:
Chaages in the 16/08/19 release:
[INDENT]Revert one HWC change to correct slight UI lag
LOS updates[/INDENT]
Code:
Chaages in the 11/08/19 release:
[INDENT]More HWC improvements (thanks @Stricted)
Added volume keys as a wakeup source (now visible in button settings)
Corrected fingerprint sensor location on the "add fingerprint" GUI
Synced WiFi config with stock (now same as A3)
August security patches[/INDENT]
Code:
Changes in the 23/07/19 release:
[INDENT]Fixed remaining HWC issues (we now build with no hacks to upstream LOS)
Added buildprop to skip waiting for buffer fences to signal (thanks @stricted and @ivan_meler)
Build new HIDL lights HAL
[/INDENT]
Code:
Changes in the 19/07/19 release:
[INDENT]Fixed TWRP device list so it will now install correctly on  variants other than A510F (thanks @dariotr)
Fixed SSWAP
Synced with latest LOS sources[/INDENT]
Code:
Changes in the 07/07/2019 release:
[INDENT]Fixed HWC (Improves UI fluidity and power usage)
SELinux cleanup (thanks @Stricted)
Migrate to new HIDL LiveDisplay and Touch HALs (thanks @Stricted)
July Android Security Patch
LOS updates[/INDENT]
Code:
Changes in the 27/06/2019 release:
[INDENT]SEPolicy: Fixed SELinux denial that broke fingerprint on some variants
kernel: added config option to fix WiFi hotspot
[/INDENT]
Code:
Changes in the 25/06/2019 release:
[INDENT]
Initial release
[/INDENT]
 
Last edited:

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113
Build Instructions

1. Setup a LineageOS build environment based on one of the supported LineageOS 16.0 devices: https://wiki.lineageos.org/index.html
Note: All commands below are executed from the LineageOS root directory

2. Initialise the LineageOS repositories
repo init -u git://github.com/LineageOS/android.git -b lineage-16.0

3. Sync the repos (can take a log time, around 30GB of downloads)
repo sync

4. Create the .repo/local_manifests directory and add the a5xelte manifest (attached)
mkdir .repo/local_manifests/
cp ~/Downloads/a5xelte.xml .repo/local_manifests/

5. Sync our device trees in
repo sync

6. Setup the build environment
source build/envsetup.sh

7. Finally start the build:
brunch lineage_a5xelte-userdebug

To pull in new changes it is usually only necessary to repeat steps 5 - 7.
 

Attachments

Last edited:

Lungss

Member
Feb 24, 2019
22
4
0
Great ROM

Runs smoothly on my phone everything seems to work just fine, only problem is the system seems to read the fingerprint scanner as an on display scanner.
 

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113
Runs smoothly on my phone everything seems to work just fine, only problem is the system seems to read the fingerprint scanner as an on display scanner.
How do you mean?

The fingerprint scanner location variable can only be front/back/left/right and I configured it for the front. It is working fine for me.

Regards,
Danny
 

Lungss

Member
Feb 24, 2019
22
4
0
How do you mean?

The fingerprint scanner location variable can only be front/back/left/right and I configured it for the front. It is working fine for me.

Regards,
Danny
The thumbnail under the instruction to locate fingerprint scanner shows the scanner location on the screen, while the scanner itself doesn't respond to any input.

This is what I see:
 

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113
The thumbnail under the instruction to locate fingerprint scanner shows the scanner location on the screen, while the scanner itself doesn't respond to any input.

This is what I see:
--snip--
I think you are taking that image too literally :).

The fingerprint scanner is the home button and it doesn't work whilst the charger is plugged in (not tested that on stock but it doesn't work whilst plugged in for me on LOS).

If you are having issues with the scanner then please dump a full logcat in matlog or via ADB which should help me debug.
 

Guigui_11

Member
Mar 14, 2019
10
4
3
I've tried your ROM, and everything is working fine for me exept the firgerprint scanner, but I understand that this will be solved soon.

Very happy with this ROM, thanks for the job !

Guigui
 
  • Like
Reactions: danwood76

ashwini215

Senior Member
Nov 17, 2014
375
97
0
Mumbai
@danwood76, I am trying to build lineageos for microg 16.0 based on your rom, but failing evertime due to the following error :-
Syncing branch repository
sed: can't read build/core/version_defaults.mk: No such file or directory
sed: can't read build/core/version_defaults.mk: No such file or directory
sed: can't read build/core/version_defaults.mk: No such file or directory
[Wed Jun 26 10:23:17 UTC 2019] Can't detect the android version

the error log, suggests this :-
"Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists"

I know this has got to do something with the ssh thing and I even tried to generate a ssh key for my local device but nothing happened.

Could you possibly suggest a solution to this.
Thanks.
The local manifest is the same that you have posted in this forum.
 

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113
@danwood76, I am trying to build lineageos for microg 16.0 based on your rom, but failing evertime due to the following error :-
Syncing branch repository
sed: can't read build/core/version_defaults.mk: No such file or directory
sed: can't read build/core/version_defaults.mk: No such file or directory
sed: can't read build/core/version_defaults.mk: No such file or directory
[Wed Jun 26 10:23:17 UTC 2019] Can't detect the android version

the error log, suggests this :-
"Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists"

I know this has got to do something with the ssh thing and I even tried to generate a ssh key for my local device but nothing happened.

Could you possibly suggest a solution to this.
Thanks.
The local manifest is the same that you have posted in this forum.
I have changed the manifest in the build post to https so it should work if you update yours.

Regards,
Danny
 
  • Like
Reactions: ashwini215

KaroloBC

Member
Feb 7, 2019
41
4
0
I have a few questions, mini review and bugs report. (and sorry for my English, i'm from Poland)

1. HWC is a Hardware Composer? Why is disabled?

2. WiFi hotspot doesn't work.

3. I saw glitches when I switched to Youtube Vanced from playback in background for a few seconds (but this is probably a problem with this app)

4. ROM is a bit faster compared to Lineage 15.1 build by danwood76, but it still having a 2D animation stuttering sometimes.
 

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113
I have a few questions, mini review and bugs report. (and sorry for my English, i'm from Poland)

1. HWC is a Hardware Composer? Why is disabled?
HWC is buggy on Pie so you get black screens / lockups. We use the graphics hardware acceleration instead and it works well.

2. WiFi hotspot doesn't work.
Looks like I was missing a config option for Pie, I have added this and it will work in the next build (uploading now).

3. I saw glitches when I switched to Youtube Vanced from playback in background for a few seconds (but this is probably a problem with this app)
I am not the author of YouTube Vanced.

4. ROM is a bit faster compared to Lineage 15.1 build by danwood76, but it still having a 2D animation stuttering sometimes.
The phones hardware isn't the quickest, when I had stock on the A5 it ran very slow. We may see slight improvements if we ever manage to fix HWC.
 
  • Like
Reactions: MBechirM

danwood76

Recognized Developer
May 23, 2015
1,123
1,808
113
Hi,

I'm currently uploading a quick bug fix release.

Code:
Changes in the 27/06/2019 release:
[INDENT]SEPolicy: Fixed SELinux denial that broke fingerprint on some variants
kernel: added config option to fix WiFi hotspot
[/INDENT]
Regards,
Danny