[ROOT] [TWRP] [ROM] How to install LineageOS 19.0 (Android 12) on A20S SM-A207F

Search This thread

Sinshro

Member
Mar 3, 2022
12
8

Requirements

install ubuntu on your pc
Download This lineage image, if you want google apps download BVG if you dont want google apps download BVS Make sure to download arm64 not a64 note if you want a pre-rooted lineage OS choose lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img.xz
Download This GSI make sure to download system-roar-arm64-ab-vndklite-gapps.img.xz or system-roar-arm64-ab-vndklite-vanilla.img.xz These are pre-rooted GSI'S
And Download This FILE We will need it later
==============================================================================================================================

BEFORE WE PROCEED IM NOT RESPONSIBLE FOR BRICKING YOUR DEVICE
extract everything in the same folder right click open in terminal
reboot into download mode voulme up + power
Ok now we"ll need to install heimdall on your ubuntu machine by opening the termanil and typing sudo apt install heimdall-flash
type in the terminal heimdall flash --SYSTEM sysnull.img
system will reboot, go into download mode again
now write heimdall flash --SYSTEM system-roar-arm64-ab-vndklite-gapps.img --VBMETA avbnull.img
or if you downloaded the one without GAPPS Write heimdall flash --SYSTEM system-roar-arm64-ab-vndklite-vanilla.img --VBMETA avbnull.img
Boot into stock recovery and do a factory reset
install Termux and download this TWRP image and rename it to r.img
open Termux and type su
Now Write dd if=/sdcard/Download/r.img of=/dev/block/bootdevice/by-name/recovery
if you saved the TWRP image to your internal storage type dd if=/storage/emulated/0/Download/r.img of=/dev/block/bootdevice/by-name/recovery
ok now reboot into TWRP (power + vol up)
wipe dalvik art, cache, system, data, cache
and move the LineageOS image from your pc to your INTERNAL STORAGE THERE WILL BE A FILE NAMED TWRP PUT IT THERE SD CARD WILL NOT WORK IF YOU FLASH IT FROM AN SD CARD THERE WILL BE A STORAGE PROBLEM AND YOU WONT BE ABLE TO INSTALL ANY APPS
Click select storage (click on internal storage)
Click on install image
and now just flash LineageOS and make sure to choose system image
Thanks to @Hex_101 For the rooting tutorial !!
{This is my first ever xda tutorial so if you have any questions please ask me}
 

Attachments

  • r.img
    21 MB · Views: 198
Last edited:

jfr07

Member
Dec 11, 2022
6
3
Hello, I've been trying to install LineageOS on my device (SM-A207F), and I've followed every instruction so far, but I'm stuck while trying to flash heimdall sysnull.img

After I typed in heimdall flash --SYSTEM sysnull.img in the terminal, I've persistently got this error:

Session begun.

Downloading device's PIT file...
ERROR: Failed to receive end PIT file transfer verification!
ERROR: Failed to download PIT file!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...

I've unlocked the bootloader and enabled USB debugging.
I'm using Ubuntu 22.04 LTS (on VirtualBox, Windows 11), also very new to custom ROM, I've only successfully installed LineageOS on an S5 (SM-G900H).

Edit: Solved
I entered the wrong Download Mode (step #2), I thought the Download Mode was the one when I'm supposed to press Volume Up on the same recovery mode to unlock the bootloader (pressing volume up & down together and connecting the cable), turns out I'm supposed to enter Download Mode from the Stock Recovery (pressing volume up & power button)
And probably because I used Ubuntu on a VM
 
Last edited:

Wurd4Wurd

Member
Nov 29, 2022
11
4
Hi, may I know which version of LineageOS did you install?
I've managed to successfully flashed LineageOS ( lineage-19.1-20221122-UNOFFICIAL-arm64_bgN-secure.img.xz ) but my phone keeps rebooting while setting up.
you downloaded the wrong version. you can find it at https://sourceforge.net/projects/andyyan-gsi/files/lineage-19.x/History/ and make sure to download lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img.xz use ctrl + f to find it faster. and then flash it again, and it should work perfectly fine.

also if you want root permissions make sure to install phh superuser, flashing Magisk will brick your device.
 

Attachments

  • phh.superuser_1.0.3.3.apk
    1,017.4 KB · Views: 11
Last edited:
  • Like
Reactions: jfr07

Wurd4Wurd

Member
Nov 29, 2022
11
4
Hello, I've been trying to install LineageOS on my device (SM-A207F), and I've followed every instruction so far, but I'm stuck while trying to flash heimdall sysnull.img

After I typed in heimdall flash --SYSTEM sysnull.img in the terminal, I've persistently got this error:

Session begun.

Downloading device's PIT file...
ERROR: Failed to receive end PIT file transfer verification!
ERROR: Failed to download PIT file!
Ending session...
ERROR: Failed to send end session packet!
Releasing device interface...

I've unlocked the bootloader and enabled USB debugging.
I'm using Ubuntu 22.04 LTS (on VirtualBox, Windows 11), also very new to custom ROM, I've only successfully installed LineageOS on an S5 (SM-G900H).
Use Dualboot instead of VirtualBox, you can find tutorials on youtube but you'll need a spare USB drive
 
  • Like
Reactions: jfr07

jfr07

Member
Dec 11, 2022
6
3
Use Dualboot instead of VirtualBox, you can find tutorials on youtube but you'll need a spare USB drive
Yes I've overcome this problem since my second post where my phone keeps rebooting

you downloaded the wrong version. you can find it at https://sourceforge.net/projects/andyyan-gsi/files/lineage-19.x/History/ and make sure to download lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img.xz use ctrl + f to find it faster. and then flash it again, and it should work perfectly fine.

also if you want root permissions make sure to install phh superuser, flashing Magisk will brick your device.
Okay this version works, but I seem to encounter a problem. Everytime I try to open Storage in Settings, the Settings App crashed, and whenever I try to install an App from Play Store, it says that I don't have enough storage. Does it have something to do with this on the original thread?

and move the LineageOS image from your pc to your INTERNAL STORAGE THERE WILL BE A FILE NAMED TWRP PUT IT THERE SD CARD WILL NOT WORK IF YOU FLASH IT FROM AN SD CARD THERE WILL BE A STORAGE PROBLEM AND YOU WONT BE ABLE TO INSTALL ANY APPS
 

Wurd4Wurd

Member
Nov 29, 2022
11
4
Okay this version works, but I seem to encounter a problem. Everytime I try to open Storage in Settings, the Settings App crashed, and whenever I try to install an App from Play Store, it says that I don't have enough storage. Does it have something to do with this on the original thread?
It's a common issue. Try following these steps:
1. Boot into TWRP
2. Go to Advanced
3. Click on Fix Contents and confirm
4. Reboot
 

jfr07

Member
Dec 11, 2022
6
3
It's a common issue. Try following these steps:
1. Boot into TWRP
2. Go to Advanced
3. Click on Fix Contents and confirm
4. Reboot
I thought I made mistakes throughout the process so I tried re-doing everything from the beginning and it finally works without storage issues. Thank you so much for your help, especially pointing out the correct OS image, such a lifesaver
 

jfr07

Member
Dec 11, 2022
6
3
Okay so I've encountered another problem and it looks like a critical one
- My phone's battery was drained, I only realized after trying to boot it up without realizing the battery's at 0 capacity
- It went through the Lineage OS boot animation and went back off
- I charged it and tried to boot it up, then the charging animation comes on
- When I long-pressed the power button, it only showed the charging animation without any other responses.
- The animation keeps going during the charging process, but even after I ejected the charger and tried to boot it up, it still only showed the battery capacity (without the charging animation) and no other responses
- So now I'm stuck with the phone in a battery showing state, pressing Volume Up + Power Button & Volume Down + Power Button does nothing
- I'm currently trying to charge it to full capacity to see if it will actually respond with something after being completely charged
Has anyone ever come across similar situation?

UPDATE: Pressing Volume Up, Volume Down, and Press Button altogether works while in the battery charging state and it booted up normally, so it doesn't look like an actual problem for now
 
Last edited:
  • Like
Reactions: Wurd4Wurd

Wurd4Wurd

Member
Nov 29, 2022
11
4
Okay so I've encountered another problem and it looks like a critical one
- My phone's battery was drained, I only realized after trying to boot it up without realizing the battery's at 0 capacity
- It went through the Lineage OS boot animation and went back off
- I charged it and tried to boot it up, then the charging animation comes on
- When I long-pressed the power button, it only showed the charging animation without any other responses.
- The animation keeps going during the charging process, but even after I ejected the charger and tried to boot it up, it still only showed the battery capacity (without the charging animation) and no other responses
- So now I'm stuck with the phone in a battery showing state, pressing Volume Up + Power Button & Volume Down + Power Button does nothing
- I'm currently trying to charge it to full capacity to see if it will actually respond with something after being completely charged
Has anyone ever come across similar situation?

UPDATE: Pressing Volume Up, Volume Down, and Press Button altogether works while in the battery charging state and it booted up normally, so it doesn't look like an actual problem for now
Good to hear, I was so worried that it will also happen to my a20s.
 

jfr07

Member
Dec 11, 2022
6
3
Good to hear, I was so worried that it will also happen to my a20s.
There's another bug on my phone that I haven't found any solutions yet, on phone calls the phone doesn't have any audio input or output (microphone & handset/speakerphone). But WhatsApp calls work just fine. Does this also happen to your device?
I've tried fixing contents through TWRP but it didn't fix the problem
 

aerglass

Member
Jan 24, 2022
26
0
Does it work on the SM-A207M/DS? I have seen the hardware of both phones and they are identical, the only diference being a letter in the model number, which says the region in which was sold in.
 

Wurd4Wurd

Member
Nov 29, 2022
11
4
There's another bug on my phone that I haven't found any solutions yet, on phone calls the phone doesn't have any audio input or output (microphone & handset/speakerphone). But WhatsApp calls work just fine. Does this also happen to your device?
I've tried fixing contents through TWRP but it didn't fix the problem
I haven't found a solution to this.
try disabling Disable audio effects, and enable Use alternate way to detect headsets, Force headset switch, and Force-disable A2Dpp offload and then restart your phone.
Does it work on the SM-A207M/DS? I have seen the hardware of both phones and they are identical, the only diference being a letter in the model number, which says the region in which was sold in.
I don't know much about this phone. Add me on discord maybe I can help you. lib#0520
 

aerglass

Member
Jan 24, 2022
26
0
I haven't found a solution to this.
try disabling Disable audio effects, and enable Use alternate way to detect headsets, Force headset switch, and Force-disable A2Dpp offload and then restart your phone.

I don't know much about this phone. Add me on discord maybe I can help you. lib#0520
sorry if itype bad (i am typing one handed because my right hand broke)
i installed it on to a broken (that has no wifi or bluetooth, idk why) samsung galaxy a20s from latin america (SM-A207M/DS) which seemed that it was going to no work but it worked perfectly, i have some problems with lineage though, i could fix the phone but i do not care so whatever. I have another samsung galaxy a20s that works fine.
 

minakriss

New member
Jan 9, 2023
2
0
Using this method i flash twrp and repack stock system.img by deleting install-recovery.sh and recovery-from-boot.p
Now i'm have stock rom with twrp
Maybe have methods install system root to stock rom without modify boot.img?
I'm add phh-su to bin and su to xbin and add su.rc to init but phh su can't work with stock rom
 

Wurd4Wurd

Member
Nov 29, 2022
11
4
Using this method i flash twrp and repack stock system.img by deleting install-recovery.sh and recovery-from-boot.p
Now i'm have stock rom with twrp
Maybe have methods install system root to stock rom without modify boot.img?
I'm add phh-su to bin and su to xbin and add su.rc to init but phh su can't work with stock rom
Did you flash the stock system.img via TWRP? I can't seem to do the same. If you have the zip that you flashed, can you upload it here? It means a lot to me. Thanks
 
Last edited:

minakriss

New member
Jan 9, 2023
2
0
I can send u patched system.img for flash via TWRP if u can send me version of previous installed stock Samsung rom
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5

    Requirements

    install ubuntu on your pc
    Download This lineage image, if you want google apps download BVG if you dont want google apps download BVS Make sure to download arm64 not a64 note if you want a pre-rooted lineage OS choose lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img.xz
    Download This GSI make sure to download system-roar-arm64-ab-vndklite-gapps.img.xz or system-roar-arm64-ab-vndklite-vanilla.img.xz These are pre-rooted GSI'S
    And Download This FILE We will need it later
    ==============================================================================================================================

    BEFORE WE PROCEED IM NOT RESPONSIBLE FOR BRICKING YOUR DEVICE
    extract everything in the same folder right click open in terminal
    reboot into download mode voulme up + power
    Ok now we"ll need to install heimdall on your ubuntu machine by opening the termanil and typing sudo apt install heimdall-flash
    type in the terminal heimdall flash --SYSTEM sysnull.img
    system will reboot, go into download mode again
    now write heimdall flash --SYSTEM system-roar-arm64-ab-vndklite-gapps.img --VBMETA avbnull.img
    or if you downloaded the one without GAPPS Write heimdall flash --SYSTEM system-roar-arm64-ab-vndklite-vanilla.img --VBMETA avbnull.img
    Boot into stock recovery and do a factory reset
    install Termux and download this TWRP image and rename it to r.img
    open Termux and type su
    Now Write dd if=/sdcard/Download/r.img of=/dev/block/bootdevice/by-name/recovery
    if you saved the TWRP image to your internal storage type dd if=/storage/emulated/0/Download/r.img of=/dev/block/bootdevice/by-name/recovery
    ok now reboot into TWRP (power + vol up)
    wipe dalvik art, cache, system, data, cache
    and move the LineageOS image from your pc to your INTERNAL STORAGE THERE WILL BE A FILE NAMED TWRP PUT IT THERE SD CARD WILL NOT WORK IF YOU FLASH IT FROM AN SD CARD THERE WILL BE A STORAGE PROBLEM AND YOU WONT BE ABLE TO INSTALL ANY APPS
    Click select storage (click on internal storage)
    Click on install image
    and now just flash LineageOS and make sure to choose system image
    Thanks to @Hex_101 For the rooting tutorial !!
    {This is my first ever xda tutorial so if you have any questions please ask me}
    2
    Okay this version works, but I seem to encounter a problem. Everytime I try to open Storage in Settings, the Settings App crashed, and whenever I try to install an App from Play Store, it says that I don't have enough storage. Does it have something to do with this on the original thread?
    It's a common issue. Try following these steps:
    1. Boot into TWRP
    2. Go to Advanced
    3. Click on Fix Contents and confirm
    4. Reboot
    2
    It's a common issue. Try following these steps:
    1. Boot into TWRP
    2. Go to Advanced
    3. Click on Fix Contents and confirm
    4. Reboot
    I thought I made mistakes throughout the process so I tried re-doing everything from the beginning and it finally works without storage issues. Thank you so much for your help, especially pointing out the correct OS image, such a lifesaver
    1
    Hi, may I know which version of LineageOS did you install?
    I've managed to successfully flashed LineageOS ( lineage-19.1-20221122-UNOFFICIAL-arm64_bgN-secure.img.xz ) but my phone keeps rebooting while setting up.
    you downloaded the wrong version. you can find it at https://sourceforge.net/projects/andyyan-gsi/files/lineage-19.x/History/ and make sure to download lineage-19.0-20220211-UNOFFICIAL-treble_arm64_bgS-vndklite.img.xz use ctrl + f to find it faster. and then flash it again, and it should work perfectly fine.

    also if you want root permissions make sure to install phh superuser, flashing Magisk will brick your device.
    1
    Hello, I've been trying to install LineageOS on my device (SM-A207F), and I've followed every instruction so far, but I'm stuck while trying to flash heimdall sysnull.img

    After I typed in heimdall flash --SYSTEM sysnull.img in the terminal, I've persistently got this error:

    Session begun.

    Downloading device's PIT file...
    ERROR: Failed to receive end PIT file transfer verification!
    ERROR: Failed to download PIT file!
    Ending session...
    ERROR: Failed to send end session packet!
    Releasing device interface...

    I've unlocked the bootloader and enabled USB debugging.
    I'm using Ubuntu 22.04 LTS (on VirtualBox, Windows 11), also very new to custom ROM, I've only successfully installed LineageOS on an S5 (SM-G900H).
    Use Dualboot instead of VirtualBox, you can find tutorials on youtube but you'll need a spare USB drive