[Samsung Galaxy A12] System23:
##########################################

A Required STEP in LineageOS 20.0 is these

##########################################

adb shell settings put global restricted_networking_mode 0

or

settings put global restricted_networking_mode 0

This Command Fix the Internet Connection so that it Works Normaly

Download Files

Setup-LineageOS-SM-A125F-Binary-3

So if you are on Binary 2 all is working TWRP/Magisk and Ya can Flash the Known Way your CustomFiles,

if you are on Binary 3 all that would not work, but i have Found 2 Ways to Use LineageOS on SM-A125F!!!

But your Bootloader must be Unlocked Ya need no Root to Do these Steps!!!

Method 1# use DSU-Sideloader

############################

Install DSUSideloader.apk on your Device and Open it!!

-Setup the First Steps and as directory make in /sdcard/DSU Folder and Select it

-now You need the GSI i Tested/Use these "lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img.xz"

you can Download it from Here

AndyYans GSI Download

Now Extract the "lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img.xz"

unxz lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img.xz

now Ya have "lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img"

this Ya Copy to your Device to /sdcard/DSU

Open the DSUSideloader App and choose USERDATA Size=5GB

than you choose the Install GSI from "/sdcard/DSU/lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img"

and now Klick Install

if this Process Finished, Ya must start the DSU Loader with adb or Terminal on Device with

adb

adb shell sh "/storage/emulated/0/Android/data/vegabobo.dsusideloader/files/install"

Terminal

sh "/storage/emulated/0/Android/data/vegabobo.dsusideloader/files/install"

now Klick on Install and Wait if its Finished!!!

when its Finished Ya can over the StatusBar in the Notification Reboot your Device into LineageOS,

and in LineageOS Ya can in the StatusBar on the Notification Reboot your Device into STOCK_ROM,

and so on!!!

So Ya can use 2 ROMs on the Device SM-A125F with Firmware Binary 3

Method 2# Rebuild a New Super.img with GSI from STOCK_Firmware

##############################################################

Download the Files

Setup-LineageOS-SM-A125F-Binary-3

Download Your Firmware from SamFW my is in these Example "A125FXXS3CWF3"

SamFW SM-A125F Firmware

Download GSI "lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img.xz"

AndyYans GSI Download

First Ya must Install the Required Tools

apt install simg2img xz-utils lz4 unzip gzip jq android-sdk-libsparse-utils gedit file -y

Then extract repacksuper_v1.15.9.tar.gz & GSI

tar xvf repacksuper_v1.15.9.tar.gz

unxz lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img.xz

go into Folder repacksuper

cd repacksuper_v1.15.9.tar/repacksuper_v1.15.9/repacksuper

mkdir AP

mkdir GSI

mkdir FW

now Copy your Files into the Folders

STOCK_ROM >> "AP_A125FXXS3CWF3_CL25463247_QB66219196_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS12.tar.md5" into "FW" Folder

GSI >> "lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img" into "GSI" Folder

and the "AP" Folder is the Output where the new super.img are Created

now your Ready to Build

sh repacksuper.sh -w FW/AP_A125FXXS3CWF3_CL25463247_QB66219196_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS12.tar.md5 GSI/lineage-20.0-20230716-UNOFFICIAL-arm64_bgN.img AP/super.img

After Finish this Step and Ya have the super.img in AP we must bring it into tar.md5

goto "AP" Folder

lz4 -B6 --content-size super.img

tar -cvf LOS20.tar super.img.lz4

md5sum -t LOS20.tar >> LOS20.tar

mv LOS20.tar LOS20.tar.md5

Now we have a Odin Flashable ROM

open ODIN and Flash LOS20.tar.md5 as AP

at Flashing your Device shown Errors in Download Mode, thats OK the Flash is with that Succsessfull!!

Now start your Device New and Enjoy LineageOS 20.0

##########################################

A Required STEP in LineageOS 20.0 is these

##########################################

adb shell settings put global restricted_networking_mode 0

or

settings put global restricted_networking_mode 0

This Command Fix the Internet Connection so that it Works Normaly