[Samsung Galaxy Tab A series Questions & Answers] retiredtab:
=== apex_payload.img ===

So I cloned my 17.1 gt58wifi mechnical hard drive (250GB) to another drive using dd. Then, I took your roomservice.xml, did a repo sync to your directories as per roomservice and compiled the rom.

Package Complete: out/target/product/gt58ltedo/lineage-17.1-20210801-UNOFFICIAL-gt58ltedo.zip
#### build completed successfully (01:30:21 (hh:mm:ss)) ####

The reason I cloned my gt58wifi is so I don't have to recompile 80,000 files from scratch as a brand new make takes around 9.5 hours. The gt58wifi and gt58ltedo share similar code and libraries so I'm able to save 8 hours of compiling.

When I switched to your roomservice.xml, it had to recompile about 17,000s and took 1.5 hours as shown above. At this point, I'm not willing

to do a make clean which means my machine will be compiling for 9.5 hours.

I highly doubt the image produced will boot into OS since it's your first draft of all the code, but it completed without any apex_payload.img errors.

However, by default, LineageOS builds a recovery.img (similar to TWRP, but with less functionality and UI is different). That file is only 11MB

and if you want, I can send you this file and you can try loading onto your recovery partition. If it doesn't boot into recovery partition, that's

a sure sign that it won't boot into full LineageOS.

If recovery.img fails, you can always reflash it with TWRP if that's what you are presently running. If you don't know how to flash recovery and

get into download mode, please do some research. It's not difficult, but first time people will panic and then possibly make a huge mistake possibly creating a bricked device.

The messages below show up in my compile, but I see them all the time.

[ 77% 11670/15082] Target boot image: out/target/product/gt58ltedo/boot.img
patch boot out/target/product/gt58ltedo/boot.img out/target/product/gt58ltedo/boot.img.lok
cp: bad 'out/target/product/gt58ltedo/boot.img.lok': No such file or directory
Made boot image: out/target/product/gt58ltedo/boot.img
[ 79% 11948/15082] ----- Making recovery image ------
patch recovery out/target/product/gt58ltedo/recovery.img out/target/product/gt58ltedo/recovery.img.lok
cp: bad 'out/target/product/gt58ltedo/recovery.img.lok': No such file or directory
Made recovery image: out/target/product/gt58ltedo/recovery.img

Here's what I suggest. If you have a spare 250GB hard drive, load Lubuntu 20.04. All the LineageOS build instructions that I see are written for an Ubuntu environment and there may be a missing library or some functionality that doesn't work on Fedora? I do all my builds on Lubuntu 20.04. A 250GB drive is enough to hold Lubuntu (only about 6GB) and your build.

If you want to keep trying Fedora, then take a look at

https://wiki.lineageos.org/devices/chagallwifi/builds

and figure out what library you may be missing. I'm not a Fedora user and the last time I tried it was in 2014 so I cannot help you with Fedora questions.

=== twrp ===

If you can't build the LineageOS, you can try building the TWRP. It's a lot easier and faster (only about 8,000 files total instead of 80,000).

I did not build TWRP for SM-T350. Nubianprince did and his code is at

GitHub - Nubianprince/android_device_samsung_gt58wifi at twrp

Device tree for Samsung Galaxy SM-T350. Contribute to Nubianprince/android_device_samsung_gt58wifi development by creating an account on GitHub.

github.com

If you can get a working TWRP for your device, then that will help you build the full LineageOS. Again, you must know how to flash the recovery partition because there's a good chance your first TWRP won't work.

=== dm-verity ===

You shouldn't have to enable it. It's disabled in kernel as per

android_device_samsung_msm8916-common/BoardConfigCommon.mk at lineage-17.1 · Galaxy-MSM8916/android_device_samsung_msm8916-common

Common MSM8916 tree for Samsung devices. Contribute to Galaxy-MSM8916/android_device_samsung_msm8916-common development by creating an account on GitHub.

github.com

android_kernel_samsung_msm8916/arch/arm/configs/msm8916_sec_defconfig at lineage-17.1 · Galaxy-MSM8916/android_kernel_samsung_msm8916

MSM8916/MSM8929/MSM8939 kernel for Samsung devices. - Galaxy-MSM8916/android_kernel_samsung_msm8916

github.com

=== commands to build ===

Because I have a slow machine with limited memory, I use

. build/envsetup.sh

breakfast gt58ltedo

TARGET_BUILD_TYPE=debug TARGET_BUILD_VARIANT=eng make -j2 bacon (as per post #5)