How To Guide Installing TWRP and LInageOS

Search This thread
Hello, I have the SM-A127M.

I have been able to do the following:
1.Unlock the Bootloader.✅
2. Root with Magisk.✅


But I want to follow this Guide to install LineageOS and I have the following questions:

1. Is it possible to install LineageOS on SM-A127M?

2. Is there a version of TWRP for Android 11 on the SM-A127M? Download a version to install with Odin as AP from here: https://eu.dl.twrp.me/a12/
But the only thing it did was go into an infinite loop in Download mode. Lucky that I was able to unbrick it by flashing the full firmware.

3. Is the reason for switching to LineageOS to improve the phone's performance, do those who already have it really feel an improvement in performance or is it the same as using it with Stock Android from Samsung?

Thank you for your answers.
 

LAST_krypton

Senior Member
Hello, I have the SM-A127M.

I have been able to do the following:
1.Unlock the Bootloader.✅
2. Root with Magisk.✅


But I want to follow this Guide to install LineageOS and I have the following questions:

1. Is it possible to install LineageOS on SM-A127M?

2. Is there a version of TWRP for Android 11 on the SM-A127M? Download a version to install with Odin as AP from here: https://eu.dl.twrp.me/a12/
But the only thing it did was go into an infinite loop in Download mode. Lucky that I was able to unbrick it by flashing the full firmware.

3. Is the reason for switching to LineageOS to improve the phone's performance, do those who already have it really feel an improvement in performance or is it the same as using it with Stock Android from Samsung?

Thank you for your answers.
You can find all information related to RECOVERIS for all types of this phone on the forum here:

In my opinion Linage GSI is better than stock, but haven't yet done any tests to give you a satisfying answer. You have to apply that this is GSI rom, not a ROM based on the phones firmware. GSIs are generic system image, which are cross compatible because they are based on AOSP. A ROM designed for specific hardware will always be better then a generic image.
 
You can find all information related to RECOVERIS for all types of this phone on the forum here:

In my opinion Linage GSI is better than stock, but haven't yet done any tests to give you a satisfying answer. You have to apply that this is GSI rom, not a ROM based on the phones firmware. GSIs are generic system image, which are cross compatible because they are based on AOSP. A ROM designed for specific hardware will always be better then a generic image.



Thanks for your answer. I had already seen the "Quick Start Guide" but it doesn't mention anything regarding TWRP on this phone. I followed the other guide but it gave me the bootloop error in recovery.

If it is GSI, I would still like to test it to see how it behaves and any improvements to this phone are welcome.
 

LAST_krypton

Senior Member
Thanks for your answer. I had already seen the "Quick Start Guide" but it doesn't mention anything regarding TWRP on this phone. I followed the other guide but it gave me the bootloop error in recovery.

If it is GSI, I would still like to test it to see how it behaves and any improvements to this phone are welcome.
Oh sorry, I read it wrong. You mentioned the M model, I red it like F. Excuse me. You might be able to get physwizz or Afaneh92 to build it for that firmware, OR cross flash to the F.
 

jfudisj_17639

Member
Jun 2, 2022
9
0

DISCLAIMER: I WAS NEVER, HAVE NEVER BEEN, AND WILL NEVER BE RESPONSIBLE OF ANY DAMAGES AGAINST YOUR DEVICES BY YOUR OWN MIS-OPERATIONS

Code:
# knox_bit_warranty:0x1
#
# Your warranty is now void
#
# You have been warned.
#
# I will laught at you if you point the finger at me.

Hello everyone, in this guide i'll be showing you how to install TWRP with Andy Yan's LinageOS, or any other ROM you want.

Make sure to follow this guide if you haven't allready unlocked the bootloader and rooted your phone

INSTALLING TWRP



# Make sure you are on android 11 and that you have followed the guide mentioned for unlocking the bootloader and rooting
1. Go in settings app
2. Go in to developer options (they should already be enbled if you folowed the guide mentioned)
3. Enable usb debuging if they aren't allready
4. Reboot to download mode, you can do it with the HW keys or send it from the Android Debuging Bridge (ADB)
For the HW key method power off the phone and conect it to the PC, then hold VOL UP and VOL DOWN at the same time. After that you should get two options, you want the first one which is just press VOL UP.
For the ADB method, install the most up to date SDK platform-tools version and open CMD or TERMINAl in the install folder and type adb reboot download.
A usb debuging request should pop up on the phone, you want to click allow, and it should reboot in to download mode.
5. Open odin, click on AP or PDA and select the twrp file you have downloaded and uncheck auto reboot in options then you can click start
6. After the flashing process hold VOL DOWN and POWER at the same time and immediately after the phone exits the download mode hold VOL UP and POWER at the same time
7. If you failed to boot in to TWRP the instalation process will have to be repeated again.



INSTALING LINAGEOS OR ANY OTHER CUSTOM ROM

Download a AB rom, TREBLE CHECK is wrong.

# You will need an a external Sd_card if you are doing the method 1

Method 1.​

1. Transfer the linageos .img file you have downloaded to your sd_card.
2. Boot in to TWRP, VOL UP + POWER while booting or adb reboot recovery.
3. Once in TWRP select wipe, click advanced wipe and select data, system, internal storage, cache, dalvik, optional(efs, and thoes other stuff, not going to name them.)
4. After successful wipeing go in to install and select storage, click Micro Sd card and click ok.
5. Click install image and find your LinageOs.img file and select it.
6. Now you should be in a install image screen, select System Image and swipe to FLASH.
7. Reboot and enoy.


Method 2.​

1. Boot in to TWRP and go in to WIPE, selcect advanced wipe and check data, system, internal storage, cache, dalvik, optional(efs, and thoes other stuff, not going to name them.)
2. Go in to advanced options and select ADB sideload.
3. From the TERMINAL or CMD window type "adb devices" to check if your device is beeing recognized.
4. If the conections is confirmed type "adb sideload LineageOS.zip"
5. After flashing reboot and enoy.


If by any chance you get issues with flashing roms in TWRP because of problems with dynamic partitions flash DynaPatch to allow flashing to dynamic_partitions in recovery, you don't necesery need to use DynaPatch. You can use unviresal system rv disable enable, etc and etc. This is a problem in TWRP it self which soon should be fixed.
Another thing is if you rooted your phone the way in my guide, the patched boot_image might still stick to the new rom.
Knowng bugs:
LinageOs screen touch stop after putting the phone to sleep.



Credits
@edward0181 twrp
@AndyYan LinageOs

Download a AB rom, TREBLE CHECK is wrong.
Hi, thanks for the guide, pretty good.
Can I ask why you say the treble check is wrong?
 

jfudisj_17639

Member
Jun 2, 2022
9
0
@LAST_krypton Is Force Doze the deep sleep option?
I've disabled it and the same thing happens to the screen.
I'm not sure if you have a Samsung A12, but that's what it says under your comments (Current device: Samsung A12 on LineageOS 18.x or GSI 11)
What did you do to it to work properly on Lineage?
View attachment 5425519
Hi, I installed the GSI and have the same problem, did you get something clear about this?
 

RaresCelTare

Member
Apr 27, 2015
19
9
@jfudisj_17639
Nothing and never. A custom rom will probably never work on this piece of trash phone. Better get a xiaomi poco x3 pro which is close in price, but also has official support from lineage os.
The second best option is stock rom with root and a few hours to spend and remove all the spyware bundled with the phone.
 

Sharktruck

New member
Jun 6, 2022
1
0
I can't boot into TWRP. I have followed both this guide and the previous one about rooting and bootloader, the only difference being in the previous guide my phone wiped after I unlocked the bootloader. Phone model is SM-A127F/DSN
 

jfudisj_17639

Member
Jun 2, 2022
9
0
@jfudisj_17639
Nothing and never. A custom rom will probably never work on this piece of trash phone. Better get a xiaomi poco x3 pro which is close in price, but also has official support from lineage os.
The second best option is stock rom with root and a few hours to spend and remove all the spyware bundled with the phone.
Sad but true. I'm researching about fixing it through Smart Kernel app
 

Ziggymcdude

New member
Jun 4, 2022
2
0
I'm new to this and am confused how you get a lineage os zip? (sorry if this has been answered or is a dumb question)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5

    DISCLAIMER: I WAS NEVER, HAVE NEVER BEEN, AND WILL NEVER BE RESPONSIBLE OF ANY DAMAGES AGAINST YOUR DEVICES BY YOUR OWN MIS-OPERATIONS

    Code:
    # knox_bit_warranty:0x1
    #
    # Your warranty is now void
    #
    # You have been warned.
    #
    # I will laught at you if you point the finger at me.

    Hello everyone, in this guide i'll be showing you how to install TWRP with Andy Yan's LinageOS, or any other ROM you want.

    Make sure to follow this guide if you haven't allready unlocked the bootloader and rooted your phone

    INSTALLING TWRP



    # Make sure you are on android 11 and that you have followed the guide mentioned for unlocking the bootloader and rooting
    1. Go in settings app
    2. Go in to developer options (they should already be enbled if you folowed the guide mentioned)
    3. Enable usb debuging if they aren't allready
    4. Reboot to download mode, you can do it with the HW keys or send it from the Android Debuging Bridge (ADB)
    For the HW key method power off the phone and conect it to the PC, then hold VOL UP and VOL DOWN at the same time. After that you should get two options, you want the first one which is just press VOL UP.
    For the ADB method, install the most up to date SDK platform-tools version and open CMD or TERMINAl in the install folder and type adb reboot download.
    A usb debuging request should pop up on the phone, you want to click allow, and it should reboot in to download mode.
    5. Open odin, click on AP or PDA and select the twrp file you have downloaded and uncheck auto reboot in options then you can click start
    6. After the flashing process hold VOL DOWN and POWER at the same time and immediately after the phone exits the download mode hold VOL UP and POWER at the same time
    7. If you failed to boot in to TWRP the instalation process will have to be repeated again.



    INSTALING LINAGEOS OR ANY OTHER CUSTOM ROM

    Download a AB rom, TREBLE CHECK is wrong.

    # You will need an a external Sd_card if you are doing the method 1

    Method 1.​

    1. Transfer the linageos .img file you have downloaded to your sd_card.
    2. Boot in to TWRP, VOL UP + POWER while booting or adb reboot recovery.
    3. Once in TWRP select wipe, click advanced wipe and select data, system, internal storage, cache, dalvik, optional(efs, and thoes other stuff, not going to name them.)
    4. After successful wipeing go in to install and select storage, click Micro Sd card and click ok.
    5. Click install image and find your LinageOs.img file and select it.
    6. Now you should be in a install image screen, select System Image and swipe to FLASH.
    7. Reboot and enoy.


    Method 2.​

    1. Boot in to TWRP and go in to WIPE, selcect advanced wipe and check data, system, internal storage, cache, dalvik, optional(efs, and thoes other stuff, not going to name them.)
    2. Go in to advanced options and select ADB sideload.
    3. From the TERMINAL or CMD window type "adb devices" to check if your device is beeing recognized.
    4. If the conections is confirmed type "adb sideload LineageOS.zip"
    5. After flashing reboot and enoy.


    If by any chance you get issues with flashing roms in TWRP because of problems with dynamic partitions flash DynaPatch to allow flashing to dynamic_partitions in recovery, you don't necesery need to use DynaPatch. You can use unviresal system rv disable enable, etc and etc. This is a problem in TWRP it self which soon should be fixed.
    Another thing is if you rooted your phone the way in my guide, the patched boot_image might still stick to the new rom.
    Knowng bugs:
    LinageOs screen touch stop after putting the phone to sleep.



    Credits
    @edward0181 twrp
    @AndyYan LinageOs
    2
    Probably bugs with TWRP, I had problems with ADB SIDELOAD too, dev should fix them soon. If you don't see SYSTEM_IMAGE then flash DynaPatch to allow flashing to DYNAMIC_PARTITIONS in RECVOERY. You can find DynaPatch here, and you can ask about SIDELOAD problems...
    Thank you so much, it worked! LineageOS is now installed on my phone :)
    1
    After installing TWRP I can't boot into my system. It's always boot on TWRP. What should I do?
    1
    6. Now you should be in a install image screen, select System Image and swipe to FLASH.
    7. Reboot and enoy.
    Everything works (root/twrp) until the last 2 steps. Installing Lineage and enjoying it. I have downloaded the appropriate archive, unpacked and copied it to sdcard alonside with disable dm verity.
    When I try to flash the rom, I get an error that sounds like this: couldn't find partition as system_image. What should I do.
    1
    Flash dynapatch to allow flashing on dynamic partitions in recovery, then you will see system_image where you want to flash on.
    Flashing on SUPER woun't work because of READ_ONLY restrictions thats why you need to flash dynapatch.
    Thank you so much!!!! Lineage OS installed at least!!!!