Skip to content

Instantly share code, notes, and snippets.

@filiprrs
Last active March 26, 2024 11:23
Show Gist options
  • Save filiprrs/b1299090c650bb128e715f2a4aa8ad5a to your computer and use it in GitHub Desktop.
Save filiprrs/b1299090c650bb128e715f2a4aa8ad5a to your computer and use it in GitHub Desktop.
LineageOS 20 sources for compiling
Hello A5 And A7 2017 community. :)
This makes the sources I was using to create LineageOS builds for our devices free, open and available for everyone.
Feel free to use this to create personal builds or update the community with newer security patches or small improvements.
Feel free to also use this as a base for creating other third party roms that are not necessarily LineageOS.
However please note that I have spent a lot of my personal time on this project.
And so did numerous other people from LineageOS team and Samsung exynos developer community.
I would only like to kindly request to give proper credits where due.
Thanks.
a5y17lte device tree: https://github.com/LineageOS/android_device_samsung_a5y17lte branch lineage-18.1
a7y17lte device tree: https://github.com/LineageOS/android_device_samsung_a7y17lte branch lineage-18.1
7880 common tree: https://github.com/universal7880-19-1/android_device_samsung_universal7880-common branch lineage-20
hardware/samsung: https://github.com/LineageOS/android_hardware_samsung branch lineage-20
kernel: https://github.com/filiprrs/android_kernel_samsung_universal7880 branch lineage-20
vendor blobs: It's the best to flash an existing 20 build, connect your phone via adb, open terminal, navigate to the common tree and run "bash setup-makefiles.sh" and "bash extract-files.sh"
(https://github.com/filiprrs/proprietary_vendor_samsung_universal7880 branch lineage-19.1)
bsp: https://github.com/LineageOS/android_hardware_samsung_slsi_exynos branch lineage-19.1
https://github.com/LineageOS/android_hardware_samsung_slsi_exynos5 branch lineage 19.1
https://github.com/LineageOS/android_hardware_samsung_slsi_openmax branch lineage 19.1
https://github.com/LineageOS/android_hardware_samsung_slsi_exynos7880 branch lineage 19.1
cherry-pick https://review.lineageos.org/c/LineageOS/android_hardware_samsung_slsi_exynos/+/331661
cherry-pick https://review.lineageos.org/c/LineageOS/android_hardware_samsung_slsi_exynos/+/331660
git apply all the patches from the following repo:
https://github.com/8890q/patches/
cherry-pick the following commits:
https://github.com/rINanDO/android_vendor_lineage/commit/9951251a5d43056686f0e926dcbbd1def25f25bc
revert the following commits:
https://github.com/LineageOS/android_hardware_lineage_interfaces/commit/bf1967cd88e766ff59836caaf940ec6526815068
https://github.com/LineageOS/android_hardware_lineage_interfaces/commit/7a34d0b8a45837149f1670c9e1f05ea5e1066574
https://github.com/LineageOS/android_hardware_interfaces/commit/3f8f599
https://github.com/LineageOS/android_hardware_interfaces/commit/d90c474
https://github.com/LineageOS/android_hardware_lineage_compat/commit/572788148fbce09dd054c2aa9e18d58b06545b77
(monet menu)
cherry-pick the following:
https://github.com/miscstuff7880/android_frameworks_base/tree/lineage-20.0
https://github.com/universal7880-19-1/android_packages_apps_Settings/commits/lineage-19.1
https://github.com/universal7880-19-1/android_vendor_lineage/commits/lineage-19.1
clone:
https://github.com/ProtonAOSP/android_external_themelib
https://github.com/ProtonAOSP/android_external_colorkt
https://github.com/ScorpionRom/vendor_support branch sr5
(battery health)
cherry-pick the following topic in gerrit:
https://review.lineageos.org/q/topic:eleven-batterylifeextender
- in hardware/samsung make it not turn on by default in includes
- change the strings in packages/apps/Settings/res/values/cm_strings.xml to "To extend the lifespan of your battery, limit the minimum/maximum charge capacity to 15%/85%"
(repainter)
https://github.com/kdrag0n/android_packages_apps_RepainterServicePriv
Finally, Take "system" folder and some updater-script lines from my Lineage20 zip.
I did patchelf --replace-needed libutils.so libutils-v32.so on the already compiled blobs.
My zip is replacing them manually after the flashing process ends.
This, of course, needs to be eventually fixed at the BSP source.
@draekko
Copy link

draekko commented Feb 27, 2024

Not sure this is the correct format but made a possibly temporary repo for the blobs for testing on my A5 2017

Still haven't managed to get anything to compile but would be interested to hear if its missing anything, followed themuppets repo naming structure for it for LOS-20 repo's.

https://github.com/draekko/proprietary_vendor_samsung_universal7880-common

@draekko
Copy link

draekko commented Feb 27, 2024

also up there for the local manifest you have the A5 repo listed twice i think you meant it for A5 AND A7, so looks like there is a typo :)

@filiprrs
Copy link
Author

filiprrs commented Mar 16, 2024

Thanks @draekko. Sources updated now.

@draekko
Copy link

draekko commented Mar 20, 2024

You're welcome. Hopefully i can find a bit more time in the coming week to tinker some more with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment