• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] Install Oreo Custom ROMs via TWRP

Status
Not open for further replies.
Search This thread

joeyhuab

Recognized Developer
Nov 5, 2012
3,222
13,498
27
Antipolo
evolution-x.org
Xiaomi Mi A1
Redmi K20 Pro
Good day to everyone! I wish to provide proper steps on how to install the latest Oreo custom ROMs via TWRP in order to lessen the clutter in the custom ROM threads.

You'll need the following:
Considering you already installed TWRP via fastboot, we'll make it so that it will be permanently installed and you will not need to flash TWRP via bootloader again.
  1. Download ROM + GApps (or no gapps if Pixel Experience)
  2. Reboot to latest Official TWRP
  3. Do necessary wipes (FORMAT data if having storage number issue; if not, wipe system/data/cache) then transfer ROM + gapps + magisk to internal/external storage
  4. Flash ROM (don't reboot)
  5. Flash latest TWRP Installer (for Permanent TWRP)
  6. Reboot recovery (no need to transfer slots anymore as TWRP does it automatically)
  7. Flash Gapps + Magisk
  8. Reboot to system
To DIRTY FLASH or update the same ROM with an updated version
  1. Reboot to recovery
  2. Flash ROM
  3. Flash TWRP Installer
  4. Reboot recovery
  5. Flash Gapps + Magisk
  6. Reboot to system
For installing custom kernels
  1. Download custom kernel
  2. Reboot recovery
  3. Flash custom kernel
  4. Reboot to system
All of these has been tried and tested by me already. :)
 
Last edited:

joeyhuab

Recognized Developer
Nov 5, 2012
3,222
13,498
27
Antipolo
evolution-x.org
Xiaomi Mi A1
Redmi K20 Pro

Attachments

  • Clipboard01.png
    Clipboard01.png
    36.3 KB · Views: 815
  • Like
Reactions: pihpih95

kopitalk

Senior Member
Feb 4, 2012
2,709
2,012
Singapore
Is it just me but every time I flash twrp after flashing rom, I got error 20 when flashing gapps. Here's my steps:
- flash rom
- switch partition
- flash twrp
- reboot recovery (or bootloader then flashboot recovery)
- flash gapps -> error 20
Without flashing twrp permanent, I can flash gapps, no error.
 

joeyhuab

Recognized Developer
Nov 5, 2012
3,222
13,498
27
Antipolo
evolution-x.org
Xiaomi Mi A1
Redmi K20 Pro
With custom ROMs we have to install Twrp installer every time along with ROM zip, bit awkward.
Yep. That's because the ROM being flashed overwrites the recovery since there's no recovery partition.

Is it just me but every time I flash twrp after flashing rom, I got error 20 when flashing gapps. Here's my steps:
- flash rom
- switch partition
- flash twrp
- reboot recovery (or bootloader then flashboot recovery)
- flash gapps -> error 20
Without flashing twrp permanent, I can flash gapps, no error.
Did you flash the TWRP.img or TWRP Installer.zip in TWRP?

Sent from my Xiaomi Mi A1 using XDA Labs
 
  • Like
Reactions: madhpharma

cherryb8844

Senior Member
May 24, 2015
369
123
Guys, TWRP Installer IS the Permanent TWRP. That's why you need to flash it every time after flashing custom ROMs. :)
If we need to flash it every time after flash rom so how it's called permanent TWRP I don't understand. That because our device don't have recovery partition? If that so where this TWRP installed ( in which partition)?
 

joeyhuab

Recognized Developer
Nov 5, 2012
3,222
13,498
27
Antipolo
evolution-x.org
Xiaomi Mi A1
Redmi K20 Pro
If we need to flash it every time after flash rom so how it's called permanent TWRP I don't understand. That because our device don't have recovery partition? If that so where this TWRP installed ( in which partition)?
It's called permanent twrp because it won't get replaced by built in recovery whenever you reboot to recovery from system. TWRP gets installed within a part of the system partition.

Sent from my Xiaomi Mi A1 using XDA Labs
 

Lupin The Third

Retired Forum Moderator
Mar 26, 2011
3,960
5,025
Planet Earth
Is it just me but every time I flash twrp after flashing rom, I got error 20 when flashing gapps. Here's my steps:
- flash rom
- switch partition
- flash twrp
- reboot recovery (or bootloader then flashboot recovery)
- flash gapps -> error 20
Without flashing twrp permanent, I can flash gapps, no error.

Error 20 if I'm not wrong, means you are using the wrong gapps package.

Are you using the right one?
 

kopitalk

Senior Member
Feb 4, 2012
2,709
2,012
Singapore
Error 20 if I'm not wrong, means you are using the wrong gapps package.

Are you using the right one?
Yes, I certainly use the right one (8.1), that's why I was baffled when twrp says that my device is 7.1.2 every time I tried to flash the 8.1 gapps. Anyway, flashing rom then straightaway followed by gapps and magisk was fine. I can flash twrp installer later on. But I just don't understand why.
 
Last edited:

joeyhuab

Recognized Developer
Nov 5, 2012
3,222
13,498
27
Antipolo
evolution-x.org
Xiaomi Mi A1
Redmi K20 Pro
Yes, I certainly use the right one (8.1), that's why I was baffled when twrp says that my device is 7.1.2 every time I tried to flash the 8.1 gapps. Anyway, flashing rom then straightaway followed by gapps and magisk was fine. I can flash twrp installer later on. But I just don't understand why.
Well that's weird. Works for me by flashing Gapps and Magisk after rebooting to recovery since it switches slots when you do that. Did you possibly come from a Nougat ROM which is why that's the error showing up?

Sent from my Xiaomi Mi A1 using XDA Labs
 

kopitalk

Senior Member
Feb 4, 2012
2,709
2,012
Singapore
Well that's weird. Works for me by flashing Gapps and Magisk after rebooting to recovery since it switches slots when you do that. Did you possibly come from a Nougat ROM which is why that's the error showing up?
I was thinking of that too but no, I was on Oreo Jan built the first time I rooted the phone and flash LOS15.1. Do you think I should at least flash Oreo stock once? Maybe my bootloader is still Nougat :eek:
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Good day to everyone! I wish to provide proper steps on how to install the latest Oreo custom ROMs via TWRP in order to lessen the clutter in the custom ROM threads.

    You'll need the following:
    Considering you already installed TWRP via fastboot, we'll make it so that it will be permanently installed and you will not need to flash TWRP via bootloader again.
    1. Download ROM + GApps (or no gapps if Pixel Experience)
    2. Reboot to latest Official TWRP
    3. Do necessary wipes (FORMAT data if having storage number issue; if not, wipe system/data/cache) then transfer ROM + gapps + magisk to internal/external storage
    4. Flash ROM (don't reboot)
    5. Flash latest TWRP Installer (for Permanent TWRP)
    6. Reboot recovery (no need to transfer slots anymore as TWRP does it automatically)
    7. Flash Gapps + Magisk
    8. Reboot to system
    To DIRTY FLASH or update the same ROM with an updated version
    1. Reboot to recovery
    2. Flash ROM
    3. Flash TWRP Installer
    4. Reboot recovery
    5. Flash Gapps + Magisk
    6. Reboot to system
    For installing custom kernels
    1. Download custom kernel
    2. Reboot recovery
    3. Flash custom kernel
    4. Reboot to system
    All of these has been tried and tested by me already. :)
    2
    thnx man.
    please add instructions to flash twrp permanent or share link.
    Guys, TWRP Installer IS the Permanent TWRP. That's why you need to flash it every time after flashing custom ROMs. :)
    1
    Hey , where to flash rom?
    As you have written gapps + magisk , gapps + magisk twice

    I don't know what you mean. Read it again but slowly.
    1
    You're welcome! Good luck in switching ROMs! :)
    I really want to thank you for putting this up. Its immensely helpful and once again you are best at what you do.
    1
    I really want to thank you for putting this up. Its immensely helpful and once again you are best at what you do.
    You're more than welcome and I'm always more than glad to help out the community. :highfive:

    Sent from my Xiaomi Mi A1 using XDA Labs