[Samsung Galaxy Core.] greggit1986:
Code:

/*

* Your warranty will be VOID after installing a custom ROM.

*

* Get notified yourself that I am not responsible for bricked devices, dead SD cards,

* thermonuclear war, or you getting fired because the alarm app failed.

* Please do some research if you have any concerns about features included in this ROM

* before flashing it!

* YOU are choosing to make these modifications,

* and if you point the finger at me for messing up your device,

* I will laugh at you.

*/

# LineageOS

LineageOS is a free, community built, aftermarket firmware distribution of Android 10, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

# What's not working

Rear camera in Photo Mode

Magnetic sensor

SELinux permissive

Recent menu key (Work around : in Settings/buttons, assign App switch to Home button long press )

Data encryption (FBE, FDE)???

# Downloads

## LineageOS 17.1

lineage-17.1-20230826-UNOFFICIAL-afyonltecan.zip : https://drive.google.com/file/d/1w9pcqiWA6gcaQbhH-KR9JECAPLfENrGy/view?usp=sharing

lineage-17.1_recovery-20230727.tar: https://drive.google.com/file/d/1ueGSkG5oIURHB0EFC-REui9btDdAB13B/view?usp=sharing

## Google Apps

OpenGapps (select Arm, 9.0 then pico or whatever you prefer)

MindtheGapps (Scroll down to MindTheGapps Android 9 then select Arm)

## TWRP Recovery

You can use mine, please visit this thread.

https://xdaforums.com/t/...w-sm-g386t-sm-g386t1-galaxy-core-lte.4623917/

It works well for flashing, but NONE OF THE REBOOT options works - Pull out the battery or Use ADB REBOOT from the command line.

NEW (2023-10-09): If after installation your internal storage content is hidden:

Reboot into twrp

Go to Advanced, then Fix Contexts and reboot to finish (pull out the battery or ADB Reboot)

# How to install

If this is your first time installing a custom ROM, get familiar with the LineageOS official installation procedure (not our device!!, just read it through!): https://wiki.lineageos.org/devices/s3ve3gjv/install

Requirements:

Your device must be on stock Os and on bootloader:

version SM-G386W = G386WVLS1AQA1 (AfyonlteCAN)

version SM-G386T = G386TUVU1ANK3 (AfyonlteTMO)

If neither of these match, please make sure you installed the correct firmware version.

Before you start (May not apply to your device):

Boot your device with the stock OS at least once and check every functionality. Note what is working and not.

Ensure that you can send and receive SMS and place and receive calls (also via WiFi and LTE, if available), otherwise it wont work on LineageOS either! Additionally, some devices require that VoLTE/VoWiFi be utilized once on stock to provision IMS.

Enable the developper options then adb debugging. Ensure adb works properly on your device. If necessary, install the appropriate samsung usb drivers.

IMPORTANT : Ensure you have a back up of your stock rom somewhere safe. If no, DO THE FOLLOWING:

GO GET twrp2.8.1 from https://androidfilehost.com/?fid=24052804347847251.

TO FLASH, USE THE INSTRUCTIONS FOR INSTALLING THE RECOVERY IMAGE WITH ODIN.

Use it to create a backup

IF YOUR DEVICE IS NOT YET ROOTED, YOU WILL NEED TO ROOT IT WITH cf-autoroot FIRST. OTHERWISE, YOU WILL NO BE ABLE TO INSTALL ANY CUSTOM RECOVERY OR ROM.

Get it from https://autoroot.chainfire.eu/(look for SM-G386T afyonltetmo).

TO FLASH, USE THE INSTRUCTIONS FOR INSTALLING THE RECOVERY IMAGE WITH ODIN.

Install the recovery image (lineage-17.1_recovery-20230727.tar) - Odin method

(twrp2.8.1 cannot install lineage 17.1, you need to install this or it won't work!)

Open Odin3_v3.09.exe

Power off the device, and boot it into download mode: hold Volume Down + Home + Power.

click the Volume up button to Continue, and insert the USB cable into the device.

In Odin, ensure auto Reboot is unticked

Click on AP and select lineage-17.1_recovery-20230727.tar

Click on start and let the installation complete

Reboot in recovery mode: hold Volume UP + Home + Power and wait until the phone vibrates and a text similar to: "Recovery booting...set Warranty bit: kernel blah blah" appears and release immediately

!!!! Congratulations NEO, you are inside the Matrix!!!!!

Install the recovery image (lineage-17.1_recovery-20230727.tar) - Heimdall method

(twrp2.8.1 cannot install lineage 17.1, you need to install this or it won't work!)

If you are already using Heimdall on PC (the USB driver for heimdal breaks ODIN):

Extract recovery.img from lineage-17.1_recovery-20230727.tar

Follow the official lineageos instructions for s3ve3gjv to install the recovery image. https://wiki.lineageos.org/devices/s3ve3gjv/install

!!!! Congratulations NEO, you are inside the Matrix!!!!!

++++ Install lineage-17.1-20230826-UNOFFICIAL-afyonltecan.zip ++++​

Follow the official lineageos instructions for https://wiki.lineageos.org/devices/s3ve3gjv/install to install the ROM.

Quick run down anyway:

Factory Reset, then Format data / factory reset and continue with the formatting process.

Return to the main menu, select Apply Update, then Apply from ADB to begin sideload. (you can also select from sdcard if you have in your sdcard)

On the host machine, sideload the package using: adb sideload lineage-17.1-20230826-UNOFFICIAL-afyonltecan.zip

Tip

: Normally, adb will report Total xfer: 1.00x, but in some cases, even if the process succeeds the output will stop at 47% and report adb: failed to read command: Success. In some cases it will report adb: failed to read command: No error or adb: failed to read command: Undefined error: 0 which is also fine.

Optional: Install OpenGApps or MindTheGapps for android 10, architecture=arm

Click the back arrow in the top left of the screen, then Reboot system. DO NO UNPLUG THE PHONE, we need logs!!!

Copy and Run the command below while the phone is rebooting to save a log.

adb logcat | tee logafyonlte-lin17.1_$(date '+%Y%m%d_%H-%M-%S').txt

# Known issues

Camera

Reboot is required if torch is greyed out and camera in use is displayed

Rear camera in Photo Mode, no matter which camera app is used

Snap and Opencam cannot record videos (useless)

Work around

install footej camera 2021.5.3 build 100045 (nodpi)

- Google play

- Apkmirror: https://www.apkmirror.com/apk/zipoa...2-2021-5-3-build-100045-android-apk-download/

Now the trick: To take snapshot with rear camera, stay in camera mode and start recording. there is an option on the left side to take snapshot. you can delete the video after and keep the pictures.

???

Thank all of you for the feedback

# Sources (branch: lineage-17.1)

Device Tree

afyonlte-common: https://github.com/greggit1986/android_device_samsung_afyonlte-common.git

afyonltecan: https://github.com/greggit1986/android_device_samsung_afyonltecan.git

msm8226-common: https://github.com/greggit1986/android_device_samsung_msm8226-common.git

qcom-common: https://github.com/LineageOS/android_device_samsung_qcom-common.git

Kernel: https://github.com/greggit1986/android_kernel_samsung_msm8226.git

Vendor:

afyonlte-common: https://github.com/greggit1986/android_vendor_samsung_afyonlte-common.git

afyonltecan: https://github.com/greggit1986/android_vendor_samsung_afyonltecan.git

msm8226-common: https://github.com/greggit1986/android_vendor_samsung_msm8226-common.git

# Credits / Special thanks to

Android Open Source Project

LineageOS Team

All the S3 Neo guys for their wonderful job on the trees

All the Afyonlte guys for the work on previous Rom for this device.