help,
i did install lineage os from official site, and then flash twrp.zip
then i cant reboot to system nor twrp, it just stuck at factbood mode.
someone from tele grup told me that twrp breaks with lineage, so basically i cant install twrp on lineage os? is that true? or i need some stuff to properly install twrp and magisk on lineage?
In bootloader (fastboot), make sure what slot you are on:
fastboot getvar current-slot
I typically flash ROMs on slot_a, so in bootloader I swap to slot_b:
Then flash TWRP to that slot:
fastboot flash boot_b twrp.img
Then boot to recovery. Wipe system, data, optional internal, unless you have a zip there because mounting USB under TWRP is finicky. Flash ROM on both slots just to make sure you cover all grounds. Do this by going to TWRP reboot, switch slot to A, and then go back to flash again the ROM. TWRP flashes ROMs on opposite slot, but when it comes wiping, it wipes on current slot, a minor detail for many to miss on.
If you need to flash GApps or Magisk, you must be on the slot where the ROM was installed. So if you flash ROM on slot_a, you cannot use TWRP to install GApps/Magisk, as it does only opposite. So you'll need LineageOS "purple" recovery .img and flash this on same slot as slot_a:
fastboot flash boot_a lineage-17.1-20210118-recovery-mata.img
Then activate ADB sideload:
adb sideload Magisk-v21.4.zip
If GApps, never run system ROM, so as soon as you flash ROM, flash GApps immediately. I recommend microg anyways (
https://lineage.microg.org/). For Magisk, just adb flash.
If you accidentally wiped all including internal where you typically store .zips, TWRP may not mount the internal correctly, failing to be able to drag and drop any .zip ROM for TWRP flashing. If this is your case, you'd have to activate ADB mount, and then unzip a stock ROM zip, locate flashall.bat and run it.