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

Search This thread

TimMayle

Senior Member
Dec 16, 2010
125
54
Did you remember to turn on OEM unlock or Android Device Bridge (ADB) setting on your device?

Also when you succeed flashing be sure to press VOLUME UP and POWER key during reboot or your phone will use the stock recovery software (I remember this was a headache before figuring that out!).

I succeeded installing TWRP. :) Thanks guys !
I'm not sure if my problem was the ADB option unchecked or more my USB port not to his liking :) (Even I flashed all my last phones through it).

I'm ready to prepare the next big step.
I'll start now backing up stuff (and buy some flowers to support the process of change :D).
And of course, I'll go with LOS 16 as it seems quite stable :good:

Tim
 

bitandro

New member
Apr 15, 2019
1
1
Hi guys,
I am struggling with getting radio fm application working on my phone. My phone is rooted. I installed Spirit2 2015_04_14.0 but when I launch it I receive message:
"ERROR: Tuner API did not start or stop.
This device may need a kernel with a working FM driver."

Does anyone know how to get fm radio working on this rom, maybe there is another fm radio app?

EDIT: I somehow missed previous post. So it is impossible to have fm radio on this rom, right?
 
Last edited:
  • Like
Reactions: daschlumpf

danwood76

Recognized Developer
May 23, 2015
1,409
2,307
Hi guys,
I am struggling with getting radio fm application working on my phone. My phone is rooted. I installed Spirit2 2015_04_14.0 but when I launch it I receive message:
"ERROR: Tuner API did not start or stop.
This device may need a kernel with a working FM driver."

Does anyone know how to get fm radio working on this rom, maybe there is another fm radio app?

EDIT: I somehow missed previous post. So it is impossible to have fm radio on this rom, right?

It requires a driver/hal modification to make it work. It is very low down on my list of priorities.
 

exzemat

Senior Member
Sep 16, 2013
61
11
Hello,
My wife use this rom since 1 week.
Battery drain : with stock rom 2 or 3 day, just 1 day with this rom.
Same with greenify (with playstor or magisk)
Disable wifi and blutooth Location.
Use pico gapps.
But...
See in attachement brtterbattery logcat. Any idea ?
 

Attachments

  • logcat-2019-04-18_133140479.txt
    69.2 KB · Views: 15

danwood76

Recognized Developer
May 23, 2015
1,409
2,307
Hello,
My wife use this rom since 1 week.
Battery drain : with stock rom 2 or 3 day, just 1 day with this rom.
Same with greenify (with playstor or magisk)
Disable wifi and blutooth Location.
Use pico gapps.
But...
See in attachement brtterbattery logcat. Any idea ?

In better battery stats what percentage of deep sleep are you getting?

Are you able to enable NFC? (if you can't enable it reboot and try again)
Does the camera work? (not able to focus or not able to open camera app means a crashed HAL)

If the NFC or camera are in a crashed state then you will get battery drain, reboot usually solves it.

Also it usually it takes a few full discharge/charge cycles for LOS to know the true battery size, leave the phone on charge for a few hours after it reaches 100% also as this is where the battery driver is doing some profiling.

I get 3 days with a couple of hours screen on time on my 2.5 year old battery.
 

exzemat

Senior Member
Sep 16, 2013
61
11
Thanks dan,
_ NFC seems ok. my wife don't use so It's no enable. But we can enable and disable.
_ camera is ok. Focus is ok . But one time crash, few days ago (we do reboot the phone since this crash).
Better battery stats for deep sleep is 70% or more (see screenshots). But i don't know the normal percentage...

We do some full discharge and charge, but no few hours after it reaches 100% .
Will try and feedback
 

Attachments

  • Screenshot_20190418-192711_BetterBatteryStats.png
    Screenshot_20190418-192711_BetterBatteryStats.png
    116.8 KB · Views: 146
  • Screenshot_20190418-193444_BetterBatteryStats.png
    Screenshot_20190418-193444_BetterBatteryStats.png
    110.2 KB · Views: 143

danwood76

Recognized Developer
May 23, 2015
1,409
2,307
Hi,

Uploading a new release now (16/05/19).

I have changed my mega drive around so the download link has changed and all of the old tree releases have been removed.

Changes since last build:
  • 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

Regards,
Danny
 

witampanstwa_

Senior Member
May 14, 2016
116
33
Hi,
Is there a way to enable exFAT USB drives support (not through all those play store apps)?
I've had that functionality on the firmware that was a port based on the SM-A530 (android 7.1.1)
 
Sep 2, 2018
8
0
Network switching is not working on A310N0.

on A310N0 it seems like network switching from 2G/3G/4G is not working.
It always stays same & always taking mobile data connection only on 2G.
 

Stricted

Recognized Developer
Apr 3, 2017
721
2,258
29
Hesse
Samsung Galaxy S4
Samsung Galaxy S7
Okay I just started recreating the device tree based on newer guidelines from LineageOS. I will also include different cherry picks that haven't been implemented for the past inactive months of the developer and build the HALs directly from hardware/samsung instead of cloning them locally as every new commit needs to get manually picked which wasn't done too and results in outdated HALs. I will directly create a pie device tree.
It will take some more time and even if I am done it could need even more time to test everything and ensure if it works. :laugh:

wat?
the device trees in the gitlab orgs are pretty much to lineage rules (that was the point on the recreating on gitlab in the first place)
why wasting time in redoing it when we have perfectly fine trees already

putting local hal clones into hardware/samsung is a bad idea (and probably wont get merged into lineage) the standard is to just copy them into the device trees
 

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