Things are changing with the advent of project treble and seamless updates. OnePlus will no longer release ROMs flashable via recovery (either stock or twrp) because is no more needed. The updates will be done on the slot not used for example if you are using slot a the update will be installed on slot b and the slot b will be set as default. If you brick and you are in bootloop how you can restore the rom? You can't with Stock ROM you have, because the zip can be only installed via Update Engine, so what can you do? Flash a stock rom via fastboot. I have extracted all images from the stock zip and i have made a new zip with the Fastboot ROM with a flash-all.bat included. This will work only if your bootloader is unlocked. This will erase all your data and will wipe your internal storage.
HOW TO FLASH
This version is only for not branded devices
Download the zip;
Unpack the zip in a folder;
Reboot the OnePlus 7 in fastboot mode (Power and volume + and volume-);
Connect the OnePlus 7 to PC;
Run flash-all.bat flasher you need;
Wait until the process end;
The phone will automatically reboot.
FLASHER ADVANCED GUIDE
flash-all-partitions-fastboot.bat : this .bat will flash all possible partitions through fastboot (Except persist) , there are some criticals partitions that can't be flashed through fastboot;
flash-only-persist.bat : this .bat will flash only persist partition in fastboot mode (This is good for people that have problems with sensor);
flash-all-partitions-recovery-criticals.bat : this .bat will boot the twrp and will flash criticals partitions, use this carefully;
flash-system-boot-vendor.bat : this .bat is the same of older flash-all.bat and so it will flash only vendor, system and boot;
flash-all-partitions.bat : this .bat will run flash-all-partitions-fastboot.bat , then flash-only-persist.bat and then flash-all-partitions-recovery-criticals.bat .
Now usually the one needed is only the first "flash-all-partitions-fastboot.bat" but if you are badly bricked i recommend to use flash-all-partitions.bat .
DOWNLOAD
All roms on AFH: https://www.androidfilehost.com/?w=files&flid=295200
All roms on Sourceforge: https://sourceforge.net/projects/fastbootroms/files/OnePlus 7
BRANDED PHONE
For now branded device are not supported
MANUAL FLASH: Windows - OSX - Linux
If you want to manual flash these roms these are the commands (you need to extract images.zip before proceed)
Fastboot Partitions:
Code:
fastboot flash aop_a aop.img
fastboot flash aop_b aop.img
fastboot flash bluetooth_a bluetooth.img
fastboot flash bluetooth_b bluetooth.img
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash dsp_a dsp.img
fastboot flash dsp_b dsp.img
fastboot flash dtbo_a dtbo.img
fastboot flash dtbo_b dtbo.img
fastboot flash modem_a modem.img
fastboot flash modem_b modem.img
fastboot flash oem_stanvbk oem_stanvbk.img
fastboot flash qupfw_a qupfw.img
fastboot flash qupfw_b qupfw.img
fastboot flash storsec_a storsec.img
fastboot flash storsec_b storsec.img
fastboot flash system_a system.img
fastboot flash system_b system.img
fastboot flash vbmeta_a vbmeta.img
fastboot flash vbmeta_b vbmeta.img
fastboot flash vendor_a vendor.img
fastboot flash vendor_b vendor.img
fastboot flash LOGO_a LOGO.img
fastboot flash LOGO_b LOGO.img
If you need also persist partition, this is the command:
Code:
fastboot flash persist persist.img
Criticals Partitions, for these you need to boot the TWRP:
Code:
fastboot boot TWRP.img
When you are in TWRP you need to run these commands to push and flash all criticals partitions:
Code:
adb push abl.img /sdcard/abl.img
adb shell dd if=/sdcard/abl.img of=/dev/block/bootdevice/by-name/abl_a
adb shell dd if=/sdcard/abl.img of=/dev/block/bootdevice/by-name/abl_b
adb push cmnlib.img /sdcard/cmnlib.img
adb shell dd if=/sdcard/cmnlib.img of=/dev/block/bootdevice/by-name/cmnlib_a
adb shell dd if=/sdcard/cmnlib.img of=/dev/block/bootdevice/by-name/cmnlib_b
adb push cmnlib64.img /sdcard/cmnlib64.img
adb shell dd if=/sdcard/cmnlib64.img of=/dev/block/bootdevice/by-name/cmnlib64_a
adb shell dd if=/sdcard/cmnlib64.img of=/dev/block/bootdevice/by-name/cmnlib64_b
adb push devcfg.img /sdcard/devcfg.img
adb shell dd if=/sdcard/devcfg.img of=/dev/block/bootdevice/by-name/devcfg_a
adb shell dd if=/sdcard/devcfg.img of=/dev/block/bootdevice/by-name/devcfg_b
adb push hyp.img /sdcard/hyp.img
adb shell dd if=/sdcard/hyp.img of=/dev/block/bootdevice/by-name/hyp_a
adb shell dd if=/sdcard/hyp.img of=/dev/block/bootdevice/by-name/hyp_b
adb push keymaster.img /sdcard/keymaster.img
adb shell dd if=/sdcard/keymaster.img of=/dev/block/bootdevice/by-name/keymaster_a
adb shell dd if=/sdcard/keymaster.img of=/dev/block/bootdevice/by-name/keymaster_b
adb push xbl.img /sdcard/xbl.img
adb shell dd if=/sdcard/xbl.img of=/dev/block/bootdevice/by-name/xbl_a
adb shell dd if=/sdcard/xbl.img of=/dev/block/bootdevice/by-name/xbl_b
adb push xbl_config.img /sdcard/xbl_config.img
adb shell dd if=/sdcard/xbl_config.img of=/dev/block/bootdevice/by-name/xbl_config_a
adb shell dd if=/sdcard/xbl_config.img of=/dev/block/bootdevice/by-name/xbl_config_b
adb push odm.img /sdcard/odm.img
adb shell dd if=/sdcard/odm.img of=/dev/block/bootdevice/by-name/odm_a
adb shell dd if=/sdcard/odm_config.img of=/dev/block/bootdevice/by-name/odm_b
adb push tz.img /sdcard/tz.img
adb shell dd if=/sdcard/tz.img of=/dev/block/bootdevice/by-name/tz_a
adb shell dd if=/sdcard/tz.img of=/dev/block/bootdevice/by-name/tz_b
REMEMBER
"Invalid sparce file format at header magic" is not an error, you need to wait a bit when you see that string, just wait.
These ROMs can't be used to update or downgrade your phone but just to restore your phone, so don't use them to come back to oreo or to update from oreo to pie.
If the rom seems doesn't start go in recovery stock and follow this guideline: English -> Wipe data and cache -> Erase everything.
If you want to rebrand your phone from HydrogenOS to OxygenOS you can follow this guide: Rebrand Guide
If you want you can use also my tool to flash Factory Images, unlock bootloader, flash twrp or to understand if the device is recognized: https://toolaio.tk/
Thanks to @SaiBork for first time tested
If you got some problems like write error or no partition, check this: https://forum.xda-developers.com/showpost.php?p=76658555&postcount=34
DONATE LINK
If you want to support this and others my projects please consider making a donation, thanks.
What does branded devices mean?
What about locking the bootloader. I noticed recovery image is not included
Recovery is a part of the boot image for A/B devices such as Oneplus 7.
---------- Post added at 02:47 PM ---------- Previous post was at 02:46 PM ----------
arvindgr said:
What does branded devices mean?
Click to expand...
Click to collapse
Branded device means it is customized by mobile service provider, such as T Mobile.
any way to flash this without erasing data
Dragonlord07 said:
any way to flash this without erasing data
Click to expand...
Click to collapse
There were multiple scripts included in the zip
Just Be sure to flash the script that does not include -w fastboot parameter
Also, @mauronofrio My phone was originally GM57AA, but since stock image is of GM57BA my phone become GM57BA. Any ideas on how to go back to GM57AA...?
Dragonlord07 said:
any way to flash this without erasing data
Click to expand...
Click to collapse
Just remove -w from the script
arvindgr said:
There were multiple scripts included in the zip
Just Be sure to flash the script that does not include -w fastboot parameter
Also, @mauronofrio My phone was originally GM57AA, but since stock image is of GM57BA my phone become GM57BA. Any ideas on how to go back to GM57AA...?
Click to expand...
Click to collapse
Just flash the GM57AA rom, there are boths in the link you can find in the first post
Ismael034 said:
What about locking the bootloader. I noticed recovery image is not included
Click to expand...
Click to collapse
Hello, I have sent you a message regarding this message. a greeting.
Stuck at boot animation. Is there a way to make it do it's thing on both slots?
fusk said:
Stuck at boot animation. Is there a way to make it do it's thing on both slots?
Click to expand...
Click to collapse
Go in stock recovery, go to wipe data, check also internal storage and wipe it, then it should work.
mauronofrio said:
Go in stock recovery, go to wipe data, check also internal storage and wipe it, then it should work.
Click to expand...
Click to collapse
There is 3 options. Reset system settings, wipe cache & erase everything. There does not appear to be an option to "wipe data" like it would say in twrp or check internal storage. I erased everything and restarted the process, hope that was what you meant.
---------- Post added at 19:23 ---------- Previous post was at 19:15 ----------
That worked, now my question is. The reason i was doing this was because slot B was unable to mount storage, slot A worked fine and phone worked fine. Would this process fix the issue i had with slot B?
fusk said:
There is 3 options. Reset system settings, wipe cache & erase everything. There does not appear to be an option to "wipe data" like it would say in twrp or check internal storage. I erased everything and restarted the process, hope that was what you meant.
---------- Post added at 19:23 ---------- Previous post was at 19:15 ----------
That worked, now my question is. The reason i was doing this was because slot B was unable to mount storage, slot A worked fine and phone worked fine. Would this process fix the issue i had with slot B?
Click to expand...
Click to collapse
if in the slots you have different roms with different security patches only the recent slot will be able to boot. In the .bat there is a command to wipe data, but i don't know why it doesn't work on the oneplus 7 pro
mauronofrio said:
if in the slots you have different roms with different security patches only the recent slot will be able to boot. In the .bat there is a command to wipe data, but i don't know why it doesn't work on the oneplus 7 pro
Click to expand...
Click to collapse
I don't have a 1+7p, so i wouldn't know anything about that. Phone was 9.5.5 when i got it, updated to 9.5.6 with some problems. Wanted to update to 9.5.7 which was unsuccessful. When loading slot B in twrp it could not mount storage or sdcard. Looking at cmd while running your tool, it looks like it's only working with slot A and not touching slot B at any point.
---------- Post added at 19:48 ---------- Previous post was at 19:28 ----------
Appears it worked, can now boot both slots and mount storage and sdcard on both. Thanks for the assist.
fusk said:
I don't have a 1+7p, so i wouldn't know anything about that. Phone was 9.5.5 when i got it, updated to 9.5.6 with some problems. Wanted to update to 9.5.7 which was unsuccessful. When loading slot B in twrp it could not mount storage or sdcard. Looking at cmd while running your tool, it looks like it's only working with slot A and not touching slot B at any point.
---------- Post added at 19:48 ---------- Previous post was at 19:28 ----------
Appears it worked, can now boot both slots and mount storage and sdcard on both. Thanks for the assist.
Click to expand...
Click to collapse
Hello friend, can you say how you did it in the end so that the two slots (A and B) will work? Thank you. Was it because you had encrypted memory and did not let mount slot B? What did you do? Thanks greetings.
mauronofrio said:
Things are changing with the advent of project treble and seamless updates. OnePlus will no longer release ROMs flashable via recovery (either stock or twrp) because is no more needed. The updates will be done on the slot not used for example if you are using slot a the update will be installed on slot b and the slot b will be set as default. If you brick and you are in bootloop how you can restore the rom? You can't with Stock ROM you have, because the zip can be only installed via Update Engine, so what can you do? Flash a stock rom via fastboot. I have extracted all images from the stock zip and i have made a new zip with the Fastboot ROM with a flash-all.bat included. This will work only if your bootloader is unlocked. This will erase all your data and will wipe your internal storage.
Click to expand...
Click to collapse
@mauronofrio Hello friend, thanks for your work, I want to ask you if these files to put a rom by fastboot are valid for my version of OnePlus 7 (not pro) Chinese version Gm1900?
Another question I have is, my oneplus 7 gm1900 came with the AA version and I manually added the BA version locally for local improvement. If this fastboot method works, could I put the BA or do I have to put the AA files first?
Thank you.
tURkOsANsE said:
Hello friend, can you say how you did it in the end so that the two slots (A and B) will work? Thank you. Was it because you had encrypted memory and did not let mount slot B? What did you do? Thanks greetings.
Click to expand...
Click to collapse
I did as mentioned. When the .bat failed, i entered "Go in stock recovery" and choose "erase everything" and then ran the .bat again and it worked. I had encryption on both, so that was not the issue. It's fixed now.
fusk said:
I did as mentioned. When the .bat failed, i entered "Go in stock recovery" and choose "erase everything" and then ran the .bat again and it worked. I had encryption on both, so that was not the issue. It's fixed now.
Click to expand...
Click to collapse
Thank you for answering friend, what version do you have of OnePlus 7? Do you have the Chinese version Gm1900 ?.
Before putting the rom by fastboot did you have Twrp installed?
mauronofrio said:
if in the slots you have different roms with different security patches only the recent slot will be able to boot. In the .bat there is a command to wipe data, but i don't know why it doesn't work on the oneplus 7 pro
Click to expand...
Click to collapse
Hello friend, thanks for your work, I want to ask you if these files to put a rom by fastboot are valid for my version of OnePlus 7 (not pro) Chinese version Gm1900?
Another question I have is, my oneplus 7 gm1900 came with the AA version and I manually added the BA version locally for local improvement. If this fastboot method works, could I put the BA or do I have to put the AA files first?
Thank you.
tURkOsANsE said:
Hello friend, thanks for your work, I want to ask you if these files to put a rom by fastboot are valid for my version of OnePlus 7 (not pro) Chinese version Gm1900?
Another question I have is, my oneplus 7 gm1900 came with the AA version and I manually added the BA version locally for local improvement. If this fastboot method works, could I put the BA or do I have to put the AA files first?
Thank you.
Click to expand...
Click to collapse
Yes it will work on the oneplus 7, there are 2 different thread for the fastboot roms this one is for oneplus 7 only. AA or BA there are not a lot of.differences, just use the one you prefer.
I accidentally made a mistake, flash custom kernel when my phone has custom kernel installed. Now every time i'm trying to boot up, my phone is only able to boot on fastboot mode, no recovery and i unable to install recovery too (stock/custom).
I wonder, is this method can save my phone?
Thank you.
cakriez92 said:
I accidentally made a mistake, flash custom kernel when my phone has custom kernel installed. Now every time i'm trying to boot up, my phone is only able to boot on fastboot mode, no recovery and i unable to install recovery too (stock/custom).
I wonder, is this method can save my phone?
Thank you.
Click to expand...
Click to collapse
Yes
Tried All in One Tool a while ago, but after booting up after flash, and the flashing again it still flashed to partition b.
I forgot. I have done it. Flash with Tool All in One, flash TWRP, change partition in TWRP, reboot to fastboot and flash stock again with Tool All in One, and flash TWRP again.
https://forum.xda-developers.com/android/software/tool-tool-one-driversunlocktwrpfactory-t3358711
andacro said:
I forgot. I have done it. Flash with All in One Tool, flash TWRP, change partition in TWRP, reboot and flash stock again with All in One Tool.
Click to expand...
Click to collapse
In future you can also run this command to change slot in fastboot, fastboot --set-active=a or fastboot --set-active=b depending which slot you need.
liam_davenport said:
In future you can also run this command to change slot in fastboot, fastboot --set-active=a or fastboot --set-active=b depending which slot you need.
Click to expand...
Click to collapse
Great! Thanks a lot
Hi All.
I have stuck in weird issue in my pixel 3. Can't able to install any custom rom
Process I hav gone through..
Flash the stock rom Android 10/11 using flash all.bat (downloaded from Google website)
Then install the custom ROM'S boot image and install rom using adb sideload.
There is no error after adb sideload. Showing success.
After reboot, it normally boot into stock os.
Please help me to fix the same. Thanks in advance.
logeshwywan said:
Hi All.
I have stuck in weird issue in my pixel 3. Can't able to install any custom rom
Process I hav gone through..
Flash the stock rom Android 10/11 using flash all.bat (downloaded from Google website)
Then install the custom ROM'S boot image and install rom using adb sideload.
There is no error after adb sideload. Showing success.
After reboot, it normally boot into stock os.
Please help me to fix the same. Thanks in advance.
Click to expand...
Click to collapse
I recently had similar issues (maybe same) doing Lineage. For me the key was to switch to using a usb 2.0 port. Lineage mentions doing this in their directions. I'm familiar with apps like qfil needing it also. Sure enough, all worked as expected with a 2.0 usb port.
cheers
Did you flash stock to both slots? Here's how I flash a custom ROM, starting with a clean flash of stock image:
Once in fastboot:
fastboot --slot=all flash bootloader stock-bootloader.img(or drag and drop to cmd window)
fastboot reboot bootloader
fastboot --slot=all flash radio stock-radio.img(or drag and drop to cmd window)
fastboot reboot bootloader
fastboot --slot=(current slot) --skip-reboot update stock-image.zip(or drag and drop to cmd window)
fastboot reboot bootloader
fastboot --slot=(other slot) --skip-reboot update stock-image.zip(or drag and drop to cmd window)
Then you enter recovery and wipe/format data and reboot to system after.
From here, you enable USB debugging and reboot back into fastboot and follow the flashing instructions for your preferred ROM.
AlexKarimov said:
Did you flash stock to both slots? Here's how I flash a custom ROM, starting with a clean flash of stock image:
Once in fastboot:
fastboot --slot=all flash bootloader stock-bootloader.img(or drag and drop to cmd window)
fastboot reboot bootloader
fastboot --slot=all flash radio stock-radio.img(or drag and drop to cmd window)
fastboot reboot bootloader
fastboot --slot=(current slot) --skip-reboot update stock-image.zip(or drag and drop to cmd window)
fastboot reboot bootloader
fastboot --slot=(other slot) --skip-reboot update stock-image.zip(or drag and drop to cmd window)
Then you enter recovery and wipe/format data and reboot to system after.
From here, you enable USB debugging and reboot back into fastboot and follow the flashing instructions for your preferred ROM.
Click to expand...
Click to collapse
Thanks for your inputs, will try with your steps.. I have one doubt on this..As per Google's statement "Execute the flash-all script. This script installs the necessary bootloader, baseband firmware(s), and operating system." - Flash-all script won't flash on both slots? please clarify! Because I did stock rom flash in that way only..
AsItLies said:
I recently had similar issues (maybe same) doing Lineage. For me the key was to switch to using a usb 2.0 port. Lineage mentions doing this in their directions. I'm familiar with apps like qfil needing it also. Sure enough, all worked as expected with a 2.0 usb port.
cheers
Click to expand...
Click to collapse
Wholla! It's working fine with 2.0 USB Ports. Many thanks for your suggestions.
Tried with 2 custom roms, perfectly great with first attempts..!
logeshwywan said:
Thanks for your inputs, will try with your steps.. I have one doubt on this..As per Google's statement "Execute the flash-all script. This script installs the necessary bootloader, baseband firmware(s), and operating system." - Flash-all script won't flash on both slots? please clarify! Because I did stock rom flash in that way only..
Click to expand...
Click to collapse
I don't use the flash-all script, I use ADB and fastboot. Someone in the Dirty Unicorns thread had the same issue and edited the flash-all.bat and left instructions but he still had to use ADB and fastboot in the end to set the active slot and run flash-all again.
From the DU thread:
And could you please explain how we flash it to both slots?
Edit; got it working now
- Removed the -w in flash-all (not sure if it was necesarry)
- Runned flash-all while on b
- Then fastboot --set-active a
- Runned flash-all while on a
Then followed the instructions, and it worked.
So, for those that may not realize, we should clarify why we may want to flash to both slots;
A custom rom isn't 'complete' by itself. It uses the 'blobs' that are a part of the original firmware. By flashing 'both' slots with the same firmware, that means when the custom rom does an 'update', both slots will have the same version of the 'blobs', and the update will work as expected.
So, if you never plan to update the custom rom, and only want to 'test' it, there's no reason to flash both slots. But, this does necessitate you know which slot you're on, and which slot things are being flashed to, of course.
Yeah, the A/B slot thing, it's confusing.
cheers
I got Motorola Edge S from China, and plan to:
1. Unlock (Succeeded !)
2a. fastboot flash boot twrp-3.5.2_11.0-2-nio.img
fastboot flash boot_b twrp-3.5.2_11.0-2-nio.img
SD card cannot work properly, as well as Adb sideload, so Official LOS.zip cannot be flashed,
OR
2b. fastboot flash boot lineage-19.1-20220604-recovery-nio.img
fastboot flash boot_b lineage-19.1-20220604-recovery-nio.img
Stucked on the Boot-up screen with Logo before Recovery mode.
3. flash Stock EU rom
(to achieve more international firmware, since I don't find independent firmware.zip)
4. flash LOS rom
N.B. [data] partition had been cleared, and I should haven't cleared [system] partition, but I cannot boot back to stock rom after Step 2, and I believe the stock rom has been removed for any accident.
Please help
Might be a long shot here, but I bricked G100 when trying to flash to both slots. Use the Motorola device recovery tool to bring it back to stock and flash only ONE slot (the active one) with your rom. There's installation scripts on this forum that do exactly this for you.
twelfth said:
Might be a long shot here, but I bricked G100 when trying to flash to both slots. Use the Motorola device recovery tool to bring it back to stock and flash only ONE slot (the active one) with your rom. There's installation scripts on this forum that do exactly this for you.
Click to expand...
Click to collapse
Initially I just flash one slot. Then I read that inconsistency between 2 slots can cause problem, so I have flash 2nd slot also, by copy-partitions-20210323_1922.zip or by "fastboot flash boot_b ...".
Now, I can also recovery and boot back to stock rom, by flash boot.img extracted from stock rom.zip with the same version as mine.
So the KEY problem is:
Under TWRP recovery loader, with ADB sideload turned on, the PC seems cannot connect & send below crucial command to Android:
$ fastboot flash boot lineage-19.1-20220604-recovery-nio.img
N.B. I have already used USB driver from Motorola, so ADB commands can run without problem, except ADB Sideload mode. Also, I have tried using USB 2.0 hub port with 2.0 cable (4-pins) as well.
TWRP for nio is not stable (yet). Use the instructions for lineageos official.
patwwh said:
I got Motorola Edge S from China, and plan to:
1. Unlock (Succeeded !)
2a. fastboot flash boot twrp-3.5.2_11.0-2-nio.img
fastboot flash boot_b twrp-3.5.2_11.0-2-nio.img
SD card cannot work properly, as well as Adb sideload, so Official LOS.zip cannot be flashed,
OR
2b. fastboot flash boot lineage-19.1-20220604-recovery-nio.img
fastboot flash boot_b lineage-19.1-20220604-recovery-nio.img
Stucked on the Boot-up screen with Logo before Recovery mode.
3. flash Stock EU rom
(to achieve more international firmware, since I don't find independent firmware.zip)
4. flash LOS rom
N.B. [data] partition had been cleared, and I should haven't cleared [system] partition, but I cannot boot back to stock rom after Step 2, and I believe the stock rom has been removed for any accident.
Please help
Click to expand...
Click to collapse
Late here but on 2a step, you can actually copy the ROM zip to internal storage since windows can detect your phone as storage device when it is in TWRP recovery.
https://wiki.lineageos.org/devices/nio/install is telling everything you need to know.
Though:
NEW:
Code:
fastboot devices
fastboot --set-active=a
// Update firmware
// Files taken from https://mirrors.lolinet.com/firmware/motorola/nio/official/RETEU/
fastboot flash modem_a NON-HLOS.bin
fastboot flash modem_b NON-HLOS.bin
fastboot erase mdmddr
fastboot flash fsg_a fsg.mbn
fastboot flash fsg_b fsg.mbn
fastboot erase mdm1m9kefs1
fastboot erase mdm1m9kefs2
fastboot flash bluetooth_a BTFM.bin
fastboot flash bluetooth_b BTFM.bin
fastboot erase carrier
fastboot erase ddr
fastboot reboot bootloader
fastboot devices
fastboot --set-active=a
// First setup
// Files taken from https://mirror.math.princeton.edu/pub/lineageos/full/nio/
fastboot flash dtbo_a dtbo.img
fastboot flash dtbo_b dtbo.img
fastboot flash vendor_boot_a vendor_boot.img
fastboot flash vendor_boot_b vendor_boot.img
fastboot reboot bootloader
fastboot devices
fastboot --set-active=a
// Install recovery
// Files taken from https://download.lineageos.org/nio
fastboot flash boot <recovery_filename>.img
for example:
fastboot flash boot_a <recovery.img>
fastboot flash boot_b <recovery.img>
fastboot reboot recovery
// Be sure all firmware is consistant
// Files taken from https://mirrorbits.lineageos.org/tools/copy-partitions-20220613-signed.zip
adb sideload copy-partitions-20220613-signed.zip
fastboot reboot recovery
FRESH INSTALL OF LINEAGE
Code:
Reboot into recovery
CHECK WHICH IS THE ACTIVE PARTITION, FIRST TIME A
Goto “Factory reset”
Goto “Format data/factory reset”
Goto “Format data”
Goto “Apply Update”
Goto “Apply from adb”
adb sideload <lineageos.zip>
Goto “Advanced”
Goto “Reboot to recovery” (now active partition is changed to the updated one)
CHECK WHICH IS THE ACTIVE PARTITION, FIRST TIME SHOULD BE B!!
Reboot to system and setup...
(This is how I do it...)
(On updates, active partition is switching on reboot after you have done a flash of lineageos.zip file)
(Forget TWRP for this device as it is not finished and several bugs are there. Just use Lineage OS)
TWRP only works on Android 11, above that nothing will work and it will be very buggy