• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[UNOFFICIAL][a3xelte][SM-A310F]Lineage OS 15.1 for A3 2016

Search This thread

danwood76

Recognized Developer
May 23, 2015
1,305
2,104
https%3A%2F%2Fimg.xda-cdn.com%2FpcscAfEjxfDt7UPGeamYS042gKY%3D%2Fhttps%253A%252F%252Fcdn.neow.in%252Fnews%252Fimages%252Fuploaded%252F2018%252F02%252F1519557694_lineageos.jpg

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * We are not responsible for bricked devices, dead SD cards,
 * thermonuclear war or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at us for messing up your device, we will laugh at you. Hard & a lot.
 *
 */
Introduction

Lineage OS 15.1 for the SM-A310F is based upon the hard work of both @Stricted and I in creating new clean device trees for Exynos7580 devices. This release is a stable release build on the new device trees.

What works
Calls, SMS, Mobile Data
Camera
NFC
WiFi
Bluetooth
Torch
SELinux Enforcing​
What doesn't work
VoLTE (will never work on LOS)
You tell me​
Installation
  1. Download the latest LOS build and transfer it to your phone
  2. Install the latest TWRP (Available Here)
  3. Make a full backup (just in case something goes wrong)
  4. Do a full wipe (Cache, Dalvik Cache, Data, System)
  5. Install LOS
  6. If you are installing GApps do it at the same time (preferably in the same install queue)
  7. And finally boot, the first boot can take several minutes as it optimises all the apps

Downloads
Latest releases are uploaded HERE
OpenGapps HERE
TWRP is availableHERE
Magisk is available HERE
Source
Exynos7580 Device Trees here
LineageOS sources here
Thanks
@Stricted
@l-0-w
@sekil
@alexax66
@macs18max (BT call audio fix)
@Borduni
All the testers on the Discord group (https://discord.gg/bXe7dN)
And all others who have contributed to the Exynos projects

A special thanks to my donors
XDA:DevDB Information
Lineage OS 15.1 for A3 2016, ROM for the Samsung Galaxy A Series

Contributors
danwood76, stricted, borduni
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.10.x
Based On: LineageOS

Version Information
Status: Stable

Created 2018-07-06
Last Updated 2019-05-16
 
Last edited:

danwood76

Recognized Developer
May 23, 2015
1,305
2,104
Changelog

Code:
Changes in the 09/07/19 release:
[INDENT]July Android Security Patch
LOS updates[/INDENT]
Older changes listed below:

Code:
Changes in the 23/06/2019 release:
[INDENT]camera: added new workaround to fix remaining HAL crashes (Google Camera should work now)
June Android security patch
LOS updates
[/INDENT]
Code:
Changes in the 16/05/2019 release:
[LIST]
[*]kernel: fixed non charging issue if USB is not plugged in for 20+ hours
[*]WiFI: fixed MAC address loading
[*]NFC: default to slower but more reliable firmware loading mechanism
[*]system: optimised the vfs_cache_pressure which improves FS performance and fixes most MTP issues
[*]vendor: Added missing magnetomoter configuration file
[*]vendor: Updated blobs to February security patch
[*]Android May security update
[/LIST]
Code:
Changes in the 08/04/2019 release:
[LIST]
[*]kernel: CPU governor updates and fixes (improved battery life)
[*]kernel: fix issues with WiFi connections dropping randomly due to ipreachability monitor failing incorrectly
[*]APN: added correct "La Poste" entries
[*]Android April security update
[/LIST]
Code:
Changes in the 10/03/2019 release:
[LIST]
[*]Kernel: Updated Android ION driver (should fix some ION crashes I have seen)
[*]Kernel: Updated Android Binder to a much more recent version (should speed up binder transactions and fix bugs)
[*]MDNIE: Fix accessibility SEPolicy so it actually works now
[*]Moved the BT calling fix into our local device tree (now building with no repo picks)
[*]Android March security update
[/LIST]
Code:
Changes in the 12/02/2019 release:
[LIST]
[*]Kernel patched up to version 3.10.108 (many security and stability fixes)
[*]USB MTP stability improvements
[*]Updated vendor blobs from A310FXXU4CRH1
[*]Updated gps config to use closest NTP server (thanks [user=7377908]@Borduni[/user])
[*]Wired up MDNIE features
[*]LineageOS February security patches
[/LIST]
Code:
Changes in the 25/01/2019 release:
(Clean flash suggested as large update)
[LIST]
[*]New cleaner device tree and kernel (better performance/battery)
[*]New HWC/Gralloc (much better performance/battery and smoother UI)
[*]Finally fixed the Snapchat (and others) Audio distortion issue
[*]New camera wrapper (faster flashlight turn on and better bug fixes)
[*]LOS updates
[*]Probably some other fixes I have forgotten about
[/LIST]
Code:
Changes in the 12/01/2019 release:
[LIST]
[*]Faster NFC turn on
[*]Fixed camera wrapper (should not crash now)
[*]Updated WiFi driver (should improve battery usage)
[*]Fixed battery health save/restore (fixes battery level changing on reboot)
[*]January Andoird Security Patch
[/LIST]
Code:
Changes in the 27/11/2018 release:
[LIST]
[*]Added fix for BT headsets/devices that use the WBS profile
[*]Added call recorder fix
[*]November LOS security update
[/LIST]
Code:
Changes in the 09/11/2018 release:
[LIST]
[*]Bluetooth Call audio fixed (thanks @macs18max)
[*]Better 'cancelAutoFocus' camera fix
[*]LOS updates
[/LIST]
Code:
Changes in the 14/10/2018:
[LIST]
[*]Fix network data type selection (thanks @Borduni)
[*]Properly fix encryption
[*]Switch to using OSS mobicore drivers
[*]LOS October security patches
[/LIST]
Code:
Changes in the 28/09/2018 build:
[LIST]
[*]Switched back to open source power HAL
[*]Enabled more verbose camera debugging
[*]Latest LOS updates
[/LIST]
Code:
Changes in the 21/09/2018 build:
[LIST]
[*]Builds now signed with a private digital key
[*]Min CPU frequency increased back to 400MHz to stop music playback issues when screen is off
[*]Issue fixed with battery max_capacity being incorrectly set during boot
[*]AGPS now pulls data over SSL
[/LIST]
Code:
Changes in the 14/09/2018 build:
[LIST]
[*]Increased microphone volume of the camcorder and media recording profiles
[*]Fixed default power HAL profiles (restores performance and power saving in some modes)
[*]Fixed some default settings in the Power HAL 
[*]Updated vendor blobs to A310FXXU4CRG2 (vendor security now 30/07/2018)
[*]September Android security patch
[*]LOS updates
[/LIST]
Code:
Changes in the 08/09/2018 build:
[LIST]
[*] Updated Mobicore (again) which improves battery and overall system stability
[*] Updated power profiles to latest
[*] Reapplied WiFi config update patches
[/LIST]
Code:
Changes in the 30/08/2018 build:
[LIST]
[*]Cleaned and upstreamed patches to Exynos7580 project (now clean builds from upstream repos)
[*]Video recording audio gains fixed
[*]Added patch required for encryption support (should allow encryption but not tested)
[*]Disabled DT2W for now as it seems to cause quite a few issues
[*]Added LOS updates
[/LIST]
Code:
Changes in the 26/08/2018 build:
[LIST]
[*]Added possible fix for low mic volumes in some apps
[*]Added fix for HAL1 camera recording in the august security update
[/LIST]
Code:
Changes in the 22/08/2018 build:
[LIST]
[*]Updated PowerHAL based on latest TeamNexus source
[*]Updated RIL blobs from A310FBTU3CQL2
[*]Updated power profiles so that the "ScreenOff" profile is almost the same as the "PowerSave" profile
[*]Android August security patch level
[/LIST]
Code:
Changes in the 03/08/2018 build:
[LIST]
[*]Disabled bioshock CPU governor as it really doesn't work well for common loads
[*]Fixed limiting of GPU speed in the Power HAL
[*]Created full set of power profiles (and fixed screen off profile)
[*]Fixed touch button LED state when waking up the device when they are disabled
[*]Added Double Tap to Wake setting in the display config menu (enabled by default)
[*]Updated the BCMDHD_1_77 WiFi driver from A3 2017 Oreo source (A320FLXXU2CRE3)
[*]Lots of kernel fixes (thanks again [user=5925090]@alexax66[/user])
[*]LOS Updates
[/LIST]
Code:
Changes in the 29/07/2018 build:
[LIST]
[*]Created new HIDL based power HAL (thanks [user=5925090]@alexax66[/user] for his input)
[*]Lots of Kernel bug fixes
[*]Partially reverted previous camera wrapper change
[*]Updated WiFi config
[*]Updated LOS
[/LIST]
Code:
Changes in the 13/07/2018 build:
[LIST]
[*]Kernel: Copy display colour correction tables from the A3 2017 to fix green tinge in low light mode
[*]Device: Updated cancel_auto_focus logic in camera wrapper to try and solve a battery drain issue
[/LIST]
Code:
Changes in the 11/07/2018 build:
[LIST]
[*]Kernel: ION allocator fixes
[*]Kernel: Sync binder with latest android-4.9-Oreo
[*]Kernel: Fix CPUFREQ memory leak
[*]Kernel: Underclock min frequency to 200MHz by default (more power saving)
[*]Device: Reverted brightness tables to that of 06/06/18
[*]Device: Suppressed camera logcat output
[*]Device: Updated to July security patch release
[/LIST]
Code:
Changes in the 05/07/2018 build:
[LIST]
[*]NFC wrapper added to aid in debugging issues
[*]NFC work around added for the startup issue
[*]Suppressed NFC logging output (it spews a lot of crap over logcat)
[*]Camera wrapper added to fix a couple of bugs in the HAL, some random lockups fixed, QR scanner now works (thanks [user=5368296]@sekil[/user] for the initial wrapper)
[*]Switched to the Bioshock CPU governor as this really saves battery (thanks [user=5918415]@nr23730[/user])
[*]Updated more mobicore blobs that seemd to have been missed from before
[*]Updated some GPS settings in the overlay
[*]Added updating of backlight brightness during doze to fix issues with dark notifications
[*]Added Sekils audio fix for libsec-ril.so blob
[*]Added lots of CVE patches to kernel
[*]Updated to latest LOS
[/LIST]
Code:
Changes in the 26/06/2018 build:
[LIST]
[*]Added latest audio fixes (thanks to stricted)
[*]Added exynos OMX blobs from stock to fix codec issue (thanks to stricted)
[*]Modified display colour temperature and LCD brightness logic
[*]Increased call volume on speaker phone
[*]Updated mobicore to latest A310F nougat versions
[*]Updated to latest LOS
[/LIST]
Code:
Changes in the 06/06/2018 build:
[LIST]
[*]Lots of kernel optimisations
[*]Interactive governor fixes (improves battery life and performance)
[*]Updated WiFi driver
[*]Fix headset microphone path
[*]Updated NFC blobs
[*]Tweaked screen auto brightness levels
[*]Lots of LineageOS fixes
[/LIST]
 
Last edited:

danwood76

Recognized Developer
May 23, 2015
1,305
2,104
Build Instructions

1. Setup a LineageOS build environment based on one of the supported LineageOS 15.1 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-15.1

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 a3xelte manifest (attached)
mkdir .repo/local_manifests/
cp ~/Downloads/a3xelte.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_a3xelte-userdebug

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

Attachments

  • a3xelte.xml
    1.1 KB · Views: 152
Last edited:

Vittario Vicci

Senior Member
Jan 10, 2017
68
21
25
Great work, Danny, Cam issue was fixed, no problems with the cam now.
Apps starts a bit faster compare to l-o-w & sekils one and no glitches during work.
+ battery life a bit better
Didn't have any problems with NFC, but it still works fine

Thank u for your hard work. Seems that this Rom is the most stable AOSP project among A series now.
 
Last edited:

charlander

Senior Member
Jan 14, 2017
63
0
Youtube seems a bit buggy when playing videos in this rom i don't know why, my connection is good.
 

Vittario Vicci

Senior Member
Jan 10, 2017
68
21
25
One minor bug: voice recorder a bit quiet. Found it in default recorder app and telegram (didn't check anywhere else)
 

mohand06

Senior Member
Oct 9, 2015
1,117
362
Bejaia
Hi @danwood76, good job, many thanks for continuing that SM-A310F Lineage OS 15.1 job. After the first incursion in Oreo with l-0-w's project, I liked the feel of it but the many bugs kept me from adopting it as daily driver. Now it seems that you're bringing in lots of improvements so maybe time has come for us A3-2016 owners to definitely turn the N page.
 
  • Like
Reactions: danwood76

thebinf

Member
Jan 6, 2016
49
17
Hi, the ROM is close to perfect for me and I've got the feeling that battery life is even better than when I was last on stock. The only issue for me is LTE not working (I'm on German O2/Telefonica network). Also adaptive brightness is too bright even on lowest setting in medium light conditions. Is there any way to get back the adaptive brightness settings from the 6/6/2018 build? These settings were the best.
 
  • Like
Reactions: danwood76

danwood76

Recognized Developer
May 23, 2015
1,305
2,104
@charlander and @lawliet80

I can confirm this, it may be to do with the recent change of the codec blobs or it may be to do with the CPU governor. I will try and find a solution for the next release.
@thebinf

I have noticed the brightness issue as well (I have to have it set very low) but it was working fine for me. I will tweak the settings again and find the best combination.

The LTE issue is interesting, it works fine for me (UK on EE) but I have not done a clean install in a while.
I will install a fresh start tomorrow and see if I can work out what is wrong, hopefully it is something simple like a setting not being initialised properly.

Regards,
Danny
 

danwood76

Recognized Developer
May 23, 2015
1,305
2,104
Hi, the ROM is close to perfect for me and I've got the feeling that battery life is even better than when I was last on stock. The only issue for me is LTE not working (I'm on German O2/Telefonica network).......

After a bit of playing on a clean flash I can confirm the issue.

I have found a workaround though. What seems to work is disabling the "Automatic Network Selection" (Settings->Network and Internet->Mobile Network->Advanced) and once it's finished searching manually select your home network, most of the time this seems to drop back out and re-enables "Automatic Network Selection" but you then have LTE. If it simply selects your network (and no LTE) re-enable the auto selection and reboot. I was able to get LTE working each time using this method. I will have a search for a fix now that I can recreate and work around it.

Regards,
Danny
 

chertVdetali

Member
Apr 8, 2011
30
7
Unstable

Hi,
I finally started converting my private phone to an A310F (used device, rooted, TWRPed, full wipe). I first installed your ROM from the last month a week ago and yesterday the last build from this thread.

The June version worked well, at least for the bits I was testing. The version from yesterday has glitches:

a) automatic display brightness is crazy - it's ok in darkness and in sunlight but in env with average ambient light it tends to be way too bright. Not the full brightness but not battery saving for sure, even if the control bar is set to 20% or so

b) after about 20 hours the phone got hot in my pocket. PIN entry worked but was getting stuck again and again - some functions did work (like adb), most were laggy (notification area, ...), launcher did not respond at all. ADBed into it and saw some kernel thread going nuts (cannot remember the name), tried to dump dmesg output and had to abort it after if dumped over 30mb and was not going to stop.
A little sample below.

c) For some reason .ogg files cannot be played with native player. However, if I import my ringtone (an ogg file) it gets renamed to .ogx in Ringtones folder and then it can be played. WTF? Some typical Oreo problem?

d) maybe unrelated... I am missing the fast unlock setting (with LOS12 there was an option to skip pressing OK button in the lockscreen PIN entry dialog). Anyone knowing where to find it?

Code:
[11828.052637] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.052675] CPU: 2 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.052706] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.052742] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.052777] [<ffffffc00087b8b8>] compat_ion_ioctl+0x32c/0x6b8
[11828.052817] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.052837] CPU: 2 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.052868] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.052889] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.053042] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.053069] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.053101] ---[ end trace 8d09ec93132f4b47 ]---
[11828.053120] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.053151] Call trace:
[11828.053162] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.053245] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.053278] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.053311] ---[ end trace 8d09ec93132f4b48 ]---
[11828.053361] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.053383] CPU: 2 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.053391] Call trace:
[11828.053415] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.053452] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.053505] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.053538] ---[ end trace 8d09ec93132f4b49 ]---
[11828.053559] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.053643] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.053668] [<ffffffc000aee9cc>] dump_stack+0x20/0x28
[11828.053692] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.053714] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.053811] [<ffffffc000369bd8>] compat_sys_ioctl+0xb4/0x1394
[11828.053842] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.053864] CPU: 2 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.053886] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.053896] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.053957] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.053968] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.053991] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.054003] [<ffffffc00087b8b8>] compat_ion_ioctl+0x32c/0x6b8
[11828.054024] ---[ end trace 8d09ec93132f4b4b ]---
[11828.054045] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.054063] CPU: 2 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.054104] Call trace:
[11828.054140] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.054222] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.054303] [<ffffffc00087b8b8>] compat_ion_ioctl+0x32c/0x6b8
[11828.054506] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.054527] CPU: 2 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.054559] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.054596] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.054630] [<ffffffc00087b8b8>] compat_ion_ioctl+0x32c/0x6b8
[11828.054651] ---[ end trace 8d09ec93132f4b4d ]---
[11828.054672] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.054681] ion_handle_add: buffer already found.
[11828.054690] CPU: 2 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.054700] Call trace:
[11828.054711] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.054721] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.054733] [<ffffffc000aee9cc>] dump_stack+0x20/0x28
[11828.054744] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.054755] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.054778] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.054810] ---[ end trace 8d09ec93132f4b4e ]---
[11828.054880] ion_handle_add: buffer already found.
[11828.054908] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.055547] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.055587] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.055622] ---[ end trace 8d09ec93132f4b4f ]---
[11828.055656] ion_handle_add: buffer already found.
[11828.055688] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.055725] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.055758] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.055792] ---[ end trace 8d09ec93132f4b50 ]---
[11828.055822] ion_handle_add: buffer already found.
[11828.055852] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.055889] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.055924] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.055956] ---[ end trace 8d09ec93132f4b51 ]---
[11828.055986] ion_handle_add: buffer already found.
[11828.056017] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.056051] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.056085] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.056119] ---[ end trace 8d09ec93132f4b52 ]---
[11828.056149] ion_handle_add: buffer already found.
[11828.056180] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.056214] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.056248] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.056311] ion_handle_add: buffer already found.
[11828.056341] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.056375] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.056409] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.056442] ---[ end trace 8d09ec93132f4b54 ]---
[11828.056498] ion_handle_add: buffer already found.
[11828.056565] [<ffffffc00020da40>] dump_backtrace+0x0/0x130
[11828.056613] [<ffffffc000227c34>] warn_slowpath_fmt+0xa4/0x114
[11828.056677] [<ffffffc0008777b8>] ion_ioctl+0x514/0x918
[11828.056735] [<ffffffc000369bd8>] compat_sys_ioctl+0xb4/0x1394
[11828.056784] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
[11828.056804] CPU: 3 PID: 3197 Comm: Recents-TaskRes Tainted: G        W    3.10.108-g3e4120ad034 #15
[11828.056843] [<ffffffc00020db84>] show_stack+0x14/0x1c
[11828.056876] [<ffffffc000873fd4>] ion_handle_add+0xe8/0xf0
[11828.056911] [<ffffffc00087b8b8>] compat_ion_ioctl+0x32c/0x6b8
[11828.056952] WARNING: at ../../../../../../kernel/samsung/exynos7580-common/drivers/staging/android/ion/ion.c:696 ion_handle_add+0xe8/0xf0()
 

thebinf

Member
Jan 6, 2016
49
17
After a bit of playing on a clean flash I can confirm the issue.

I have found a workaround though. What seems to work is disabling the "Automatic Network Selection" (Settings->Network and Internet->Mobile Network->Advanced) and once it's finished searching manually select your home network, most of the time this seems to drop back out and re-enables "Automatic Network Selection" but you then have LTE. If it simply selects your network (and no LTE) re-enable the auto selection and reboot. I was able to get LTE working each time using this method. I will have a search for a fix now that I can recreate and work around it.

Regards,
Danny
Thanks for the workaround. Currently I'm in an area where I don't know whether LTE is available. I'll check when I'm back home.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    https%3A%2F%2Fimg.xda-cdn.com%2FpcscAfEjxfDt7UPGeamYS042gKY%3D%2Fhttps%253A%252F%252Fcdn.neow.in%252Fnews%252Fimages%252Fuploaded%252F2018%252F02%252F1519557694_lineageos.jpg

    Code:
    #include <std_disclaimer.h>
    /*
     * Your warranty is now void.
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you. Hard & a lot.
     *
     */
    Introduction

    Lineage OS 15.1 for the SM-A310F is based upon the hard work of both @Stricted and I in creating new clean device trees for Exynos7580 devices. This release is a stable release build on the new device trees.

    What works
    Calls, SMS, Mobile Data
    Camera
    NFC
    WiFi
    Bluetooth
    Torch
    SELinux Enforcing​
    What doesn't work
    VoLTE (will never work on LOS)
    You tell me​
    Installation
    1. Download the latest LOS build and transfer it to your phone
    2. Install the latest TWRP (Available Here)
    3. Make a full backup (just in case something goes wrong)
    4. Do a full wipe (Cache, Dalvik Cache, Data, System)
    5. Install LOS
    6. If you are installing GApps do it at the same time (preferably in the same install queue)
    7. And finally boot, the first boot can take several minutes as it optimises all the apps

    Downloads
    Latest releases are uploaded HERE
    OpenGapps HERE
    TWRP is availableHERE
    Magisk is available HERE
    Source
    Exynos7580 Device Trees here
    LineageOS sources here
    Thanks
    @Stricted
    @l-0-w
    @sekil
    @alexax66
    @macs18max (BT call audio fix)
    @Borduni
    All the testers on the Discord group (https://discord.gg/bXe7dN)
    And all others who have contributed to the Exynos projects

    A special thanks to my donors
    XDA:DevDB Information
    Lineage OS 15.1 for A3 2016, ROM for the Samsung Galaxy A Series

    Contributors
    danwood76, stricted, borduni
    ROM OS Version: 8.x Oreo
    ROM Kernel: Linux 3.10.x
    Based On: LineageOS

    Version Information
    Status: Stable

    Created 2018-07-06
    Last Updated 2019-05-16
    17
    Changelog

    Code:
    Changes in the 09/07/19 release:
    [INDENT]July Android Security Patch
    LOS updates[/INDENT]
    Older changes listed below:

    Code:
    Changes in the 23/06/2019 release:
    [INDENT]camera: added new workaround to fix remaining HAL crashes (Google Camera should work now)
    June Android security patch
    LOS updates
    [/INDENT]
    Code:
    Changes in the 16/05/2019 release:
    [LIST]
    [*]kernel: fixed non charging issue if USB is not plugged in for 20+ hours
    [*]WiFI: fixed MAC address loading
    [*]NFC: default to slower but more reliable firmware loading mechanism
    [*]system: optimised the vfs_cache_pressure which improves FS performance and fixes most MTP issues
    [*]vendor: Added missing magnetomoter configuration file
    [*]vendor: Updated blobs to February security patch
    [*]Android May security update
    [/LIST]
    Code:
    Changes in the 08/04/2019 release:
    [LIST]
    [*]kernel: CPU governor updates and fixes (improved battery life)
    [*]kernel: fix issues with WiFi connections dropping randomly due to ipreachability monitor failing incorrectly
    [*]APN: added correct "La Poste" entries
    [*]Android April security update
    [/LIST]
    Code:
    Changes in the 10/03/2019 release:
    [LIST]
    [*]Kernel: Updated Android ION driver (should fix some ION crashes I have seen)
    [*]Kernel: Updated Android Binder to a much more recent version (should speed up binder transactions and fix bugs)
    [*]MDNIE: Fix accessibility SEPolicy so it actually works now
    [*]Moved the BT calling fix into our local device tree (now building with no repo picks)
    [*]Android March security update
    [/LIST]
    Code:
    Changes in the 12/02/2019 release:
    [LIST]
    [*]Kernel patched up to version 3.10.108 (many security and stability fixes)
    [*]USB MTP stability improvements
    [*]Updated vendor blobs from A310FXXU4CRH1
    [*]Updated gps config to use closest NTP server (thanks [user=7377908]@Borduni[/user])
    [*]Wired up MDNIE features
    [*]LineageOS February security patches
    [/LIST]
    Code:
    Changes in the 25/01/2019 release:
    (Clean flash suggested as large update)
    [LIST]
    [*]New cleaner device tree and kernel (better performance/battery)
    [*]New HWC/Gralloc (much better performance/battery and smoother UI)
    [*]Finally fixed the Snapchat (and others) Audio distortion issue
    [*]New camera wrapper (faster flashlight turn on and better bug fixes)
    [*]LOS updates
    [*]Probably some other fixes I have forgotten about
    [/LIST]
    Code:
    Changes in the 12/01/2019 release:
    [LIST]
    [*]Faster NFC turn on
    [*]Fixed camera wrapper (should not crash now)
    [*]Updated WiFi driver (should improve battery usage)
    [*]Fixed battery health save/restore (fixes battery level changing on reboot)
    [*]January Andoird Security Patch
    [/LIST]
    Code:
    Changes in the 27/11/2018 release:
    [LIST]
    [*]Added fix for BT headsets/devices that use the WBS profile
    [*]Added call recorder fix
    [*]November LOS security update
    [/LIST]
    Code:
    Changes in the 09/11/2018 release:
    [LIST]
    [*]Bluetooth Call audio fixed (thanks @macs18max)
    [*]Better 'cancelAutoFocus' camera fix
    [*]LOS updates
    [/LIST]
    Code:
    Changes in the 14/10/2018:
    [LIST]
    [*]Fix network data type selection (thanks @Borduni)
    [*]Properly fix encryption
    [*]Switch to using OSS mobicore drivers
    [*]LOS October security patches
    [/LIST]
    Code:
    Changes in the 28/09/2018 build:
    [LIST]
    [*]Switched back to open source power HAL
    [*]Enabled more verbose camera debugging
    [*]Latest LOS updates
    [/LIST]
    Code:
    Changes in the 21/09/2018 build:
    [LIST]
    [*]Builds now signed with a private digital key
    [*]Min CPU frequency increased back to 400MHz to stop music playback issues when screen is off
    [*]Issue fixed with battery max_capacity being incorrectly set during boot
    [*]AGPS now pulls data over SSL
    [/LIST]
    Code:
    Changes in the 14/09/2018 build:
    [LIST]
    [*]Increased microphone volume of the camcorder and media recording profiles
    [*]Fixed default power HAL profiles (restores performance and power saving in some modes)
    [*]Fixed some default settings in the Power HAL 
    [*]Updated vendor blobs to A310FXXU4CRG2 (vendor security now 30/07/2018)
    [*]September Android security patch
    [*]LOS updates
    [/LIST]
    Code:
    Changes in the 08/09/2018 build:
    [LIST]
    [*] Updated Mobicore (again) which improves battery and overall system stability
    [*] Updated power profiles to latest
    [*] Reapplied WiFi config update patches
    [/LIST]
    Code:
    Changes in the 30/08/2018 build:
    [LIST]
    [*]Cleaned and upstreamed patches to Exynos7580 project (now clean builds from upstream repos)
    [*]Video recording audio gains fixed
    [*]Added patch required for encryption support (should allow encryption but not tested)
    [*]Disabled DT2W for now as it seems to cause quite a few issues
    [*]Added LOS updates
    [/LIST]
    Code:
    Changes in the 26/08/2018 build:
    [LIST]
    [*]Added possible fix for low mic volumes in some apps
    [*]Added fix for HAL1 camera recording in the august security update
    [/LIST]
    Code:
    Changes in the 22/08/2018 build:
    [LIST]
    [*]Updated PowerHAL based on latest TeamNexus source
    [*]Updated RIL blobs from A310FBTU3CQL2
    [*]Updated power profiles so that the "ScreenOff" profile is almost the same as the "PowerSave" profile
    [*]Android August security patch level
    [/LIST]
    Code:
    Changes in the 03/08/2018 build:
    [LIST]
    [*]Disabled bioshock CPU governor as it really doesn't work well for common loads
    [*]Fixed limiting of GPU speed in the Power HAL
    [*]Created full set of power profiles (and fixed screen off profile)
    [*]Fixed touch button LED state when waking up the device when they are disabled
    [*]Added Double Tap to Wake setting in the display config menu (enabled by default)
    [*]Updated the BCMDHD_1_77 WiFi driver from A3 2017 Oreo source (A320FLXXU2CRE3)
    [*]Lots of kernel fixes (thanks again [user=5925090]@alexax66[/user])
    [*]LOS Updates
    [/LIST]
    Code:
    Changes in the 29/07/2018 build:
    [LIST]
    [*]Created new HIDL based power HAL (thanks [user=5925090]@alexax66[/user] for his input)
    [*]Lots of Kernel bug fixes
    [*]Partially reverted previous camera wrapper change
    [*]Updated WiFi config
    [*]Updated LOS
    [/LIST]
    Code:
    Changes in the 13/07/2018 build:
    [LIST]
    [*]Kernel: Copy display colour correction tables from the A3 2017 to fix green tinge in low light mode
    [*]Device: Updated cancel_auto_focus logic in camera wrapper to try and solve a battery drain issue
    [/LIST]
    Code:
    Changes in the 11/07/2018 build:
    [LIST]
    [*]Kernel: ION allocator fixes
    [*]Kernel: Sync binder with latest android-4.9-Oreo
    [*]Kernel: Fix CPUFREQ memory leak
    [*]Kernel: Underclock min frequency to 200MHz by default (more power saving)
    [*]Device: Reverted brightness tables to that of 06/06/18
    [*]Device: Suppressed camera logcat output
    [*]Device: Updated to July security patch release
    [/LIST]
    Code:
    Changes in the 05/07/2018 build:
    [LIST]
    [*]NFC wrapper added to aid in debugging issues
    [*]NFC work around added for the startup issue
    [*]Suppressed NFC logging output (it spews a lot of crap over logcat)
    [*]Camera wrapper added to fix a couple of bugs in the HAL, some random lockups fixed, QR scanner now works (thanks [user=5368296]@sekil[/user] for the initial wrapper)
    [*]Switched to the Bioshock CPU governor as this really saves battery (thanks [user=5918415]@nr23730[/user])
    [*]Updated more mobicore blobs that seemd to have been missed from before
    [*]Updated some GPS settings in the overlay
    [*]Added updating of backlight brightness during doze to fix issues with dark notifications
    [*]Added Sekils audio fix for libsec-ril.so blob
    [*]Added lots of CVE patches to kernel
    [*]Updated to latest LOS
    [/LIST]
    Code:
    Changes in the 26/06/2018 build:
    [LIST]
    [*]Added latest audio fixes (thanks to stricted)
    [*]Added exynos OMX blobs from stock to fix codec issue (thanks to stricted)
    [*]Modified display colour temperature and LCD brightness logic
    [*]Increased call volume on speaker phone
    [*]Updated mobicore to latest A310F nougat versions
    [*]Updated to latest LOS
    [/LIST]
    Code:
    Changes in the 06/06/2018 build:
    [LIST]
    [*]Lots of kernel optimisations
    [*]Interactive governor fixes (improves battery life and performance)
    [*]Updated WiFi driver
    [*]Fix headset microphone path
    [*]Updated NFC blobs
    [*]Tweaked screen auto brightness levels
    [*]Lots of LineageOS fixes
    [/LIST]
    11
    I am currently uploading a new release.

    Thanks in part to a patch from @macs18max we now have working Bluetooth call audio.
    I have tested this on my cheap Bluetooth headset and my TomTom satnav, both work great now!

    Changes in the 09/11/2018 release:
    • Bluetooth Call audio fixed
    • Better 'cancelAutoFocus' camera fix
    • LOS updates
    11
    Uploading a new release now (built on 14/09/2018).

    Changes:
    • Increased microphone volume of the camcorder and media recording profiles
    • Fixed default power HAL profiles (restores performance and power saving in some modes)
    • Fixed some default settings in the Power HAL
    • Updated vendor blobs to A310FXXU4CRG2 (vendor security now 30/07/2018)
    • September Android security patch
    • LOS updates
    11
    Hi,

    I am off on holiday for a week so thought I would upload a quick update before I go.

    There are only a couple of fixes:
    • Kernel: Copy display colour correction tables from the A3 2017 to fix green tinge in low light mode
    • Device: Updated cancel_auto_focus logic in camera wrapper to try and solve a battery drain issue

    I have only applied part of Sekils panel changes to my tree, it does appear to have fixed the green screen issue but I will need your feedback as I may need to add the rest of the mdnie logic in as well.

    Regards,
    Danny