Pekka Helenius 79413ecf85 | 3 years ago | |
---|---|---|
lineage_src_root | 3 years ago | |
misc/heimdall | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago |
This repository has the following patches such as:
Enable NFC service
Bypass safe volume warning dialog
Enable call recording
Original source code repositories:
Follow Lineage OS for Samsung S5 Neo guide until brunch s5neolte
command. Before issuing that command, you need to put files of this repository in place.
DO NOT install recovery.img
. LineageOS Recovery is horrible, TWRP is great. Use TWRP. Thanks. If you mistakenly install recovery.img
anyway, getting rid of it requires use of heimdall to flash back TWRP recovery.img
(heimdall flash --RECOVERY <twrp-recovery>.img
)
Install only contents of LineageOS zip file lineage-18.1-YYYYMMDD-UNOFFICIAL-s5neolte.zip
using TWRP
You may already have repo
command pre-installed on your system
Use command repo init -u https://github.com/LineageOS/android.git -b lineage-18.1
./extract-files.sh
commands relative to LineageOS source dir:
device/samsung/universal7580-common/extract-files.sh
device/samsung/s5neolte/extract-files.sh
Both must be executed
In order to ./extract-files.sh
commands fully succeed, you must have Samsung Android 6.0.1
preinstalled on your phone. Otherwise you get errors for missing files.
If you have original Samsung Android OS installed, it must be version 6.0.1
. LineageOS installation on phones using older Android versions (5.1.1
, etc.) simply fails.
If you do not have Android 6.0.1
, get official Samsung update with samloader. Extract zip
and tar.md5
files, until you get all required .img
and .bin
files. Flash extracted .bin
and .img
files with heimdall
Samloader Arch Linux PKGBUILD (AUR)
Take backup with TWRP before issuing heimdall
commands
Relevant files are as follows: boot.img
, system.img
, userdata.img
, cm.bin
, param.bin
, sboot.bin
, modem.bin
, cache.img
, hidden.img
If you use custom recovery such as TWRP, do not flash recovery.img
File S5NEOLTE_<XXX>_OPEN.pit
is a partition definition file. You may extract one directly from your phone using heimdall
, as well.
You must patch heimdall to successfully flash your Samsung S5 Neo phone. Compile heimdall, and apply patch file misc/heimdall/patch_filepartindex.patch. See this GitHub issue for details.
Heimdall source code: GitHub - alexax66/Heimdall
Heimdall Arch Linux PKGBUILD
Heimdall usage and command explanations: SAMMobile - [Firmware]Restoring Stock Firmware with Heimdall
Heimdall flash command for Samsung S5 Neo: heimdall flash --BOOT boot.img --SYSTEM system.img --USERDATA userdata.img --CM cm.bin --PARAM param.bin --BOOTLOADER sboot.bin --RADIO modem.bin --CACHE cache.img --HIDDEN hidden.img
WARNING: Use absolutely correct, Samsung provided files in heimdall
command. Otherwise the flash process may fail and you end up with a bricked phone.
Flashing USERDATA
is not necessary
You may build parts of LineageOS using mm
and mmm
commands after sourcing build/envsetup.sh
This is useful for partial patches
For instance, building only Dialer
APK, run mmm packages/apps/Dialer
in lineage source root dir
Before starting Lineage OS, you may need to wipe cache & Dalvik cache in TWRP (Wipe -> Advanced Wipe -> [Dalvik / ART Cache, Cache]
)
No, do not use /system/etc/init.d/
or look for such folders. Simply put your boot time scripts into /etc/adb/service.d/
folder, set their owner to root:root
and permission bits to 0700
. You may give less restrictive permissions at your own risk. Default owner of these scripts seems to be root:shell
. You may use TWRP to set owner & permission information.
Optionally, folder /etc/adb/post-fs-data.d/
may be used, as well.