[Galaxy A3, A5, A7, A8, A9 Android Development] DeadSquirrel01:
LineageOS 14.1 for Galaxy A5 A500xx​

You've probably known that cm is "dead", and that there is a new project called "LineageOS" which is a fork on the cyanogenmod project, so this is the "continue" of my cyanogenmod thread. Enjoy :)

NOTE: this ROM is for any A500 model and will not work for 2016 models (A510)

Disclaimer:

I'm not responsable for bricked devices :( , dead phone chargers,
nuclear explosions or global warming.
Flash it at YOUR OWN RISK

Downloads​

1) You need a custom recovery to flash the ROM (zip). You can download TWRP HERE or CTR HERE

2) Optional but recomended: Google Apps (aka gapps). You can download them here: http://opengapps.org/

3) You need marshmallow bootloader and modem. Install latest mm stock ROM to update them

4) You need the ROM obviusly :D. You can download it here:

LineageOS-14.1: https://www.androidfilehost.com/?w=files&flid=145997

How to Install​

If you have TWRP Recovery:

1) Go to wipe section and wipe: cache, dalvik, system and data (internal storage wipe is not needed!)

2) Go to install box and choose the zip which contains the ROM

3) Flash wifi temporary fix (for first build only)

4) Optional but recomended: flash Google Apps' zip

5) Reboot and enjoy :)

If you have CTR Recovery:

1) Go to Wipe Menu, tap Wipe ALL - Preflash button and then tap - Yes - Wipe ALL! button

2) Go to Install zip menu and choose the zip which contains the ROM

3) Flash wifi temporary fix (for first build only)

4) Optional but recomended: flash Google Apps' zip

5) Reboot and enjoy :)

How to Update

If you have TWRP Recovery:

1) Go to install box and choose the zip which contains the ROM

2) Go to wipe section and wipe: cache and dalvik

If you have CTR Recovery:

1) Go to Install zip menu and choose the zip which contains the ROM

2) Go to Wipe Menu, and wipe cache and dalvik

NOTE: For Updating you don't have to wipe data, you only have to wipe data when install different cm version, for example cm-13->cm-14.0 or cm12->12.1

SM-A500XX SECTION​

Note1: if you are on SM-A500FU you don't have to follow this section. Just follow the "How to install" one

NOTE2: some device requires some modifications in blobs and/or in device tree in order to get RIL worling

How to install CyanogenMod-14.1 on any SM-A500XX variant:

1) Install the zip of lineageos rom

2) Install RIL fix zip from this thread's attachements

3) Flash gapps (optional but better)

4) Reboot and enjoy :)

For people running multirom with lineage as secondary ROM:

1) Install the zip of lineageos rom

2) Install gapps (optional but better)

3) Download (from this thread's attachements) and open RIL fix zip for your device

4) Open (inside the zip) /META-INF/com/google/android/updater-script

5) Remove these two lines:

ifelse(is_mounted("/system"), unmount("/system"));

mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");

6) Save the new file and close

7) Go in twrp "Advanced"->"Terminal" and run this command:

ln -s /sdcard/multirom/roms/ROMNAME/system /system

Note: if the output of ln command is "File exists" you made a typo, so, re-run the command without making typos (tab helps); if it gives no output, you typed it correctly, so, you can proceed to the 8th step

8) Flash RIL fix zip

9) Reboot and enjoy :)

NOTE: If you don't find the RIL fix from your variant and you have RIL problems like sim card not detected, read the section for people with RIL problems and follow the instructions

Knowing Bugs

None for now

Report bugs here, or at https://github.com/DeadSquirrel01/android_device_samsung_a5-common/issues

F2FS Guide

If you want to use F2FS, first you need a twrp that supports F2FS partitions formatting like mine:

https://www.androidfilehost.com/?fid=817550096634793304

Then, reboot in twrp, go in "Wipe"->"Advanced Wipe"->Select "System" box->"Repair or Change File System"->"Change File System"->"F2FS"

Do this also for "Data" and "Cache" partitions

NOTE: Everything in the partitions you turn into F2FS will be deleted!!!

NOTE: If you turn userdata partition (/data), everything in /data/media/0 (/sdcard) will be deleted!!!

Now, open the zip of lineage os and change:

mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");

to

mount("f2fs", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");

Read this if you are having problems with RIL

If you have issue with RIL, post a zip with these libs taken from stock rom, and I'll create a flashable zip:

/system/lib/libsec-ril.so
/system/lib/libsec-ril-dsds.so (for dual sim variants only)

SOURCES

Device tree: https://github.com/DeadSquirrel01/android_device_samsung_a5ultexx Branch: cm-14.1

Device Config: https://github.com/DeadSquirrel01/android_device_samsung_a5-common Branch: cm-14.1

Kernel: https://github.com/DeadSquirrel01/android_kernel_samsung_msm8916 Branch: cm-14.0

Telegram group: @GalaxyA5dev

Telegram channel for project updates: @ds01news

Note: If you want to contact me for any question which is off topic, just pm me or email me at m.marcaccini01@gmail.com

XDA:DevDB Information

LineageOS-14.1 for Galaxy A5 SM-A500, ROM for the Samsung Galaxy A Series 2017 A3, A5, A7

Contributors

DeadSquirrel01

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.10.x

ROM Firmware Required: Lollipop or Marshmallow bootloader/modem (mm suggested)

Version Information

Status: Stable

Created 2017-02-17

Last Updated 2017-02-17