[partially solved(in a way)]"Your data may be corrupted" on LineageOS nightly if I update the os.

Search This thread

User699

Senior Member
Feb 28, 2021
102
1
14
18
Besides, I am in twrp again. It booted after waiting a bit after booting into LineageOS again.

My first Backup has the following checked
Boot, System, System Image, Boot Logo, Vendor, Vendor Image, Cache, Data (excl. storage), Persist, Bluetooth, Modem, Firmware, EFS
(everything)

And my second Backup has the following checked
Boot, System, System Image, Vendor, Vendor Image, Data (excl. storage)
because the offical twrp site said that the system could be bricked if I just reflash every partition I backuped.

Do you recommend to backup some other set of those?


EDIT: I could try to
Code:
fastboot flash boot twrp.img
again if you want me to.
 

User699

Senior Member
Feb 28, 2021
102
1
14
18
Okay @tecknight , I did the following now but now I got a recovery loop and cannot boot back into my system (but using adb reboot bootloader I could go back to the bootloader)
Code:
prompt:~$ fastboot flash boot ./twrp-3.5.0-jasmine_sprout.img
target reported max download size of 805306368 bytes
sending 'boot_a' (35497 KB)...
OKAY [  1.115s]
writing 'boot_a'...
OKAY [  0.267s]
finished. total time: 1.382s

That's why I reflashed the original lineageOS recovery, so I can boot into my system again:
Code:
prompt:~$ fastboot flash boot lineage-17.1-20201114-recovery-jasmine_sprout.img
target reported max download size of 805306368 bytes
sending 'boot_a' (24509 KB)...
OKAY [  0.832s]
writing 'boot_a'...
OKAY [  0.227s]
finished. total time: 1.059s

I also sideloaded the twrp.zip you told me to download:
Code:
prompt:~$ adb sideload twrp-installer-3.5.0_9-0-jasmine_sprout.zip
Total xfer: 1.00x
I could normally boot into my system after this, but the recovery stuck at the logo, so I reflashed the original lineageOS recovery again.



AND `fastboot getvar all' works now!!

Code:
prompt:~$ fastboot getvar all
(bootloader) crc:1
(bootloader) anti:1
(bootloader) token:6Tez+jpN2QsJ1IW6+rrvzAD0fl0=
(bootloader) parallel-download-flash:yes
(bootloader) hw-revision:10000
(bootloader) unlocked:yes
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4355
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) erase-block-size: 0x200
(bootloader) logical-block-size: 0x200
(bootloader) variant:SDM EMMC
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xBB77F7E00
(bootloader) partition-type:vendor_b:raw
(bootloader) partition-size:vendor_b: 0x80000000
(bootloader) partition-type:vendor_a:raw
(bootloader) partition-size:vendor_a: 0x80000000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0xC0000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0xC0000000
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x10000000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0x4000000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0x4000000
(bootloader) partition-type:minidump:raw
(bootloader) partition-size:minidump: 0x8000000
(bootloader) partition-type:rawdump:raw
(bootloader) partition-size:rawdump: 0x8000000
(bootloader) partition-type:modem_b:raw
(bootloader) partition-size:modem_b: 0xC000000
(bootloader) partition-type:modem_a:raw
(bootloader) partition-size:modem_a: 0xC000000
(bootloader) partition-type:logdump:raw
(bootloader) partition-size:logdump: 0x4000000
(bootloader) partition-type:persistbak:raw
(bootloader) partition-size:persistbak: 0x2000000
(bootloader) partition-type:persist:raw
(bootloader) partition-size:persist: 0x2000000
(bootloader) partition-type:splash:raw
(bootloader) partition-size:splash: 0x4000000
(bootloader) partition-type:mdtp_b:raw
(bootloader) partition-size:mdtp_b: 0x2000000
(bootloader) partition-type:mdtp_a:raw
(bootloader) partition-size:mdtp_a: 0x2000000
(bootloader) partition-type:bk1:raw
(bootloader) partition-size:bk1: 0x700000
(bootloader) partition-type:bluetooth_b:raw
(bootloader) partition-size:bluetooth_b: 0x100000
(bootloader) partition-type:dsp_b:raw
(bootloader) partition-size:dsp_b: 0x1000000
(bootloader) partition-type:dsp_a:raw
(bootloader) partition-size:dsp_a: 0x1000000
(bootloader) partition-type:modemst2:raw
(bootloader) partition-size:modemst2: 0x800000
(bootloader) partition-type:modemst1:raw
(bootloader) partition-size:modemst1: 0x800000
(bootloader) partition-type:fsg:raw
(bootloader) partition-size:fsg: 0x800000
(bootloader) partition-type:logfs:raw
(bootloader) partition-size:logfs: 0x800000
(bootloader) partition-type:devinfo:raw
(bootloader) partition-size:devinfo: 0x800000
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc: 0x400000
(bootloader) partition-type:xbl_b:raw
(bootloader) partition-size:xbl_b: 0x380000
(bootloader) partition-type:xbl_a:raw
(bootloader) partition-size:xbl_a: 0x380000
(bootloader) partition-type:sti:raw
(bootloader) partition-size:sti: 0x200000
(bootloader) partition-type:bluetooth_a:raw
(bootloader) partition-size:bluetooth_a: 0x100000
(bootloader) partition-type:keymaster_b:raw
(bootloader) partition-size:keymaster_b: 0x100000
(bootloader) partition-type:keymaster_a:raw
(bootloader) partition-size:keymaster_a: 0x100000
(bootloader) partition-type:mdtpsecapp_b:raw
(bootloader) partition-size:mdtpsecapp_b: 0x400000
(bootloader) partition-type:mdtpsecapp_a:raw
(bootloader) partition-size:mdtpsecapp_a: 0x400000
(bootloader) partition-type:tz_b:raw
(bootloader) partition-size:tz_b: 0x400000
(bootloader) partition-type:tz_a:raw
(bootloader) partition-size:tz_a: 0x400000
(bootloader) partition-type:devcfg_b:raw
(bootloader) partition-size:devcfg_b: 0x100000
(bootloader) partition-type:devcfg_a:raw
(bootloader) partition-size:devcfg_a: 0x100000
(bootloader) partition-type:toolsfv:raw
(bootloader) partition-size:toolsfv: 0x100000
(bootloader) partition-type:ddr:raw
(bootloader) partition-size:ddr: 0x100000
(bootloader) partition-type:dip:raw
(bootloader) partition-size:dip: 0x100000
(bootloader) partition-type:abl_b:raw
(bootloader) partition-size:abl_b: 0x100000
(bootloader) partition-type:abl_a:raw
(bootloader) partition-size:abl_a: 0x100000
(bootloader) partition-type:cmnlib64_b:raw
(bootloader) partition-size:cmnlib64_b: 0x100000
(bootloader) partition-type:cmnlib_b:raw
(bootloader) partition-size:cmnlib_b: 0x100000
(bootloader) partition-type:cmnlib64_a:raw
(bootloader) partition-size:cmnlib64_a: 0x100000
(bootloader) partition-type:cmnlib_a:raw
(bootloader) partition-size:cmnlib_a: 0x100000
(bootloader) partition-type:pmic_b:raw
(bootloader) partition-size:pmic_b: 0x80000
(bootloader) partition-type:pmic_a:raw
(bootloader) partition-size:pmic_a: 0x80000
(bootloader) partition-type:hyp_b:raw
(bootloader) partition-size:hyp_b: 0x80000
(bootloader) partition-type:hyp_a:raw
(bootloader) partition-size:hyp_a: 0x80000
(bootloader) partition-type:rpm_b:raw
(bootloader) partition-size:rpm_b: 0x80000
(bootloader) partition-type:rpm_a:raw
(bootloader) partition-size:rpm_a: 0x80000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp: 0x80000
(bootloader) partition-type:keystore:raw
(bootloader) partition-size:keystore: 0x80000
(bootloader) partition-type:msadp:raw
(bootloader) partition-size:msadp: 0x40000
(bootloader) partition-type:apdp:raw
(bootloader) partition-size:apdp: 0x40000
(bootloader) partition-type:oops:raw
(bootloader) partition-size:oops: 0x20000
(bootloader) partition-type:storsec:raw
(bootloader) partition-size:storsec: 0x20000
(bootloader) partition-type:vbmeta_b:raw
(bootloader) partition-size:vbmeta_b: 0x10000
(bootloader) partition-type:vbmeta_a:raw
(bootloader) partition-size:vbmeta_a: 0x10000
(bootloader) partition-type:sec:raw
(bootloader) partition-size:sec: 0x5000
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd: 0x8000
(bootloader) partition-type:limits:raw
(bootloader) partition-size:limits: 0x8000
(bootloader) partition-type:fsc:raw
(bootloader) partition-size:fsc: 0x2000
(bootloader) partition-type:dpo:raw
(bootloader) partition-size:dpo: 0x2000
(bootloader) partition-type:switch:raw
(bootloader) partition-size:switch: 0x2000
(bootloader) has-slot:modem:yes
(bootloader) has-slot:system:yes
(bootloader) current-slot:a
(bootloader) has-slot:boot:yes
(bootloader) slot-retry-count:b:0
(bootloader) slot-unbootable:b:yes
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:7
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:no
(bootloader) slot-count:2
(bootloader) secure:yes
(bootloader) serialno:97f9a8d
(bootloader) product:jasmine
(bootloader) max-download-size:805306368
(bootloader) kernel:uefi
all:
finished. total time: 0.011s

I don't know what was wrong, but after my device has been unplugged and `let alone' for a few minutes, it started to work very fine.
 
Last edited:

tecknight

Recognized Contributor
Jun 12, 2010
986
849
123
Las Vegas
Okay @tecknight , I did the following now but now I got a recovery loop and cannot boot back into my system (but using adb reboot bootloader I could go back to the bootloader)
Code:
prompt:~$ fastboot flash boot ./twrp-3.5.0-jasmine_sprout.img
target reported max download size of 805306368 bytes
sending 'boot_a' (35497 KB)...
OKAY [  1.115s]
writing 'boot_a'...
OKAY [  0.267s]
finished. total time: 1.382s

That's why I reflashed the original lineageOS recovery, so I can boot into my system again:
Code:
prompt:~$ fastboot flash boot lineage-17.1-20201114-recovery-jasmine_sprout.img
target reported max download size of 805306368 bytes
sending 'boot_a' (24509 KB)...
OKAY [  0.832s]
writing 'boot_a'...
OKAY [  0.227s]
finished. total time: 1.059s

I also sideloaded the twrp.zip you told me to download:
Code:
prompt:~$ adb sideload twrp-installer-3.5.0_9-0-jasmine_sprout.zip
Total xfer: 1.00x
I could normally boot into my system after this, but the recovery stuck at the logo, so I reflashed the original lineageOS recovery again.



AND `fastboot getvar all' works now!!

Code:
prompt:~$ fastboot getvar all
(bootloader) crc:1
(bootloader) anti:1
(bootloader) token:6Tez+jpN2QsJ1IW6+rrvzAD0fl0=
(bootloader) parallel-download-flash:yes
(bootloader) hw-revision:10000
(bootloader) unlocked:yes
(bootloader) off-mode-charge:1
(bootloader) charger-screen-enabled:1
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4355
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) erase-block-size: 0x200
(bootloader) logical-block-size: 0x200
(bootloader) variant:SDM EMMC
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xBB77F7E00
(bootloader) partition-type:vendor_b:raw
(bootloader) partition-size:vendor_b: 0x80000000
(bootloader) partition-type:vendor_a:raw
(bootloader) partition-size:vendor_a: 0x80000000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0xC0000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0xC0000000
(bootloader) partition-type:cache:ext4
(bootloader) partition-size:cache: 0x10000000
(bootloader) partition-type:boot_b:raw
(bootloader) partition-size:boot_b: 0x4000000
(bootloader) partition-type:boot_a:raw
(bootloader) partition-size:boot_a: 0x4000000
(bootloader) partition-type:minidump:raw
(bootloader) partition-size:minidump: 0x8000000
(bootloader) partition-type:rawdump:raw
(bootloader) partition-size:rawdump: 0x8000000
(bootloader) partition-type:modem_b:raw
(bootloader) partition-size:modem_b: 0xC000000
(bootloader) partition-type:modem_a:raw
(bootloader) partition-size:modem_a: 0xC000000
(bootloader) partition-type:logdump:raw
(bootloader) partition-size:logdump: 0x4000000
(bootloader) partition-type:persistbak:raw
(bootloader) partition-size:persistbak: 0x2000000
(bootloader) partition-type:persist:raw
(bootloader) partition-size:persist: 0x2000000
(bootloader) partition-type:splash:raw
(bootloader) partition-size:splash: 0x4000000
(bootloader) partition-type:mdtp_b:raw
(bootloader) partition-size:mdtp_b: 0x2000000
(bootloader) partition-type:mdtp_a:raw
(bootloader) partition-size:mdtp_a: 0x2000000
(bootloader) partition-type:bk1:raw
(bootloader) partition-size:bk1: 0x700000
(bootloader) partition-type:bluetooth_b:raw
(bootloader) partition-size:bluetooth_b: 0x100000
(bootloader) partition-type:dsp_b:raw
(bootloader) partition-size:dsp_b: 0x1000000
(bootloader) partition-type:dsp_a:raw
(bootloader) partition-size:dsp_a: 0x1000000
(bootloader) partition-type:modemst2:raw
(bootloader) partition-size:modemst2: 0x800000
(bootloader) partition-type:modemst1:raw
(bootloader) partition-size:modemst1: 0x800000
(bootloader) partition-type:fsg:raw
(bootloader) partition-size:fsg: 0x800000
(bootloader) partition-type:logfs:raw
(bootloader) partition-size:logfs: 0x800000
(bootloader) partition-type:devinfo:raw
(bootloader) partition-size:devinfo: 0x800000
(bootloader) partition-type:misc:raw
(bootloader) partition-size:misc: 0x400000
(bootloader) partition-type:xbl_b:raw
(bootloader) partition-size:xbl_b: 0x380000
(bootloader) partition-type:xbl_a:raw
(bootloader) partition-size:xbl_a: 0x380000
(bootloader) partition-type:sti:raw
(bootloader) partition-size:sti: 0x200000
(bootloader) partition-type:bluetooth_a:raw
(bootloader) partition-size:bluetooth_a: 0x100000
(bootloader) partition-type:keymaster_b:raw
(bootloader) partition-size:keymaster_b: 0x100000
(bootloader) partition-type:keymaster_a:raw
(bootloader) partition-size:keymaster_a: 0x100000
(bootloader) partition-type:mdtpsecapp_b:raw
(bootloader) partition-size:mdtpsecapp_b: 0x400000
(bootloader) partition-type:mdtpsecapp_a:raw
(bootloader) partition-size:mdtpsecapp_a: 0x400000
(bootloader) partition-type:tz_b:raw
(bootloader) partition-size:tz_b: 0x400000
(bootloader) partition-type:tz_a:raw
(bootloader) partition-size:tz_a: 0x400000
(bootloader) partition-type:devcfg_b:raw
(bootloader) partition-size:devcfg_b: 0x100000
(bootloader) partition-type:devcfg_a:raw
(bootloader) partition-size:devcfg_a: 0x100000
(bootloader) partition-type:toolsfv:raw
(bootloader) partition-size:toolsfv: 0x100000
(bootloader) partition-type:ddr:raw
(bootloader) partition-size:ddr: 0x100000
(bootloader) partition-type:dip:raw
(bootloader) partition-size:dip: 0x100000
(bootloader) partition-type:abl_b:raw
(bootloader) partition-size:abl_b: 0x100000
(bootloader) partition-type:abl_a:raw
(bootloader) partition-size:abl_a: 0x100000
(bootloader) partition-type:cmnlib64_b:raw
(bootloader) partition-size:cmnlib64_b: 0x100000
(bootloader) partition-type:cmnlib_b:raw
(bootloader) partition-size:cmnlib_b: 0x100000
(bootloader) partition-type:cmnlib64_a:raw
(bootloader) partition-size:cmnlib64_a: 0x100000
(bootloader) partition-type:cmnlib_a:raw
(bootloader) partition-size:cmnlib_a: 0x100000
(bootloader) partition-type:pmic_b:raw
(bootloader) partition-size:pmic_b: 0x80000
(bootloader) partition-type:pmic_a:raw
(bootloader) partition-size:pmic_a: 0x80000
(bootloader) partition-type:hyp_b:raw
(bootloader) partition-size:hyp_b: 0x80000
(bootloader) partition-type:hyp_a:raw
(bootloader) partition-size:hyp_a: 0x80000
(bootloader) partition-type:rpm_b:raw
(bootloader) partition-size:rpm_b: 0x80000
(bootloader) partition-type:rpm_a:raw
(bootloader) partition-size:rpm_a: 0x80000
(bootloader) partition-type:frp:raw
(bootloader) partition-size:frp: 0x80000
(bootloader) partition-type:keystore:raw
(bootloader) partition-size:keystore: 0x80000
(bootloader) partition-type:msadp:raw
(bootloader) partition-size:msadp: 0x40000
(bootloader) partition-type:apdp:raw
(bootloader) partition-size:apdp: 0x40000
(bootloader) partition-type:oops:raw
(bootloader) partition-size:oops: 0x20000
(bootloader) partition-type:storsec:raw
(bootloader) partition-size:storsec: 0x20000
(bootloader) partition-type:vbmeta_b:raw
(bootloader) partition-size:vbmeta_b: 0x10000
(bootloader) partition-type:vbmeta_a:raw
(bootloader) partition-size:vbmeta_a: 0x10000
(bootloader) partition-type:sec:raw
(bootloader) partition-size:sec: 0x5000
(bootloader) partition-type:ssd:raw
(bootloader) partition-size:ssd: 0x8000
(bootloader) partition-type:limits:raw
(bootloader) partition-size:limits: 0x8000
(bootloader) partition-type:fsc:raw
(bootloader) partition-size:fsc: 0x2000
(bootloader) partition-type:dpo:raw
(bootloader) partition-size:dpo: 0x2000
(bootloader) partition-type:switch:raw
(bootloader) partition-size:switch: 0x2000
(bootloader) has-slot:modem:yes
(bootloader) has-slot:system:yes
(bootloader) current-slot:a
(bootloader) has-slot:boot:yes
(bootloader) slot-retry-count:b:0
(bootloader) slot-unbootable:b:yes
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:7
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:no
(bootloader) slot-count:2
(bootloader) secure:yes
(bootloader) serialno:97f9a8d
(bootloader) product:jasmine
(bootloader) max-download-size:805306368
(bootloader) kernel:uefi
all:
finished. total time: 0.011s

I don't know what was wrong, but after my device has been unplugged and `let alone' for a few minutes, it started to work very fine.
Note 1 important var in there.
current-slot:a
This var determines which partitions it attempts to boot into when it boots.


That is great that you can get your vars now . So does it now boot into Lineage recovery ?
 

tecknight

Recognized Contributor
Jun 12, 2010
986
849
123
Las Vegas
Yes, it does
OK great, so do you want to try the OTA upgrade or just flash the full latest version of Lineage ?
I would backup your data first with Lineage recovery
Remember when flash to an A/B system, it normally flashes the inactive slot, which in your case is currently b
as your:
current-slot:a
So once you are done flashing or applying an OTA update you need to run the following command from fastboot:
fastboot set_active b

then
fastboot reboot
to boot into the new system.

Have you looked over this post ?

Here are some important things to consider from that post:
things to keep in mind:
1- when you flash a ROM through TWRP, it will flash to your inactive slot, that's why you need to switch slot after flashing it and then flash everything else, think of it like an OTA update except you need to switch active slot yourself​
2- when you change your active slot in TWRP, it will only change after you reboot, your active slot will always be the one you're currently booted on​
3- the order of flashing anything that modifies boot is​
1) TWRP​
2) custom kernel​
3) noverity​
4)Magisk​
@User699,
I like you you are not afraid to dive in and get your hands dirty. I assure you, it is the BEST way to learn about these things
 
Last edited:

User699

Senior Member
Feb 28, 2021
102
1
14
18
OK great, so do you want to try the OTA upgrade or just flash the full latest version of Lineage ?
I would backup your data first with Lineage recovery

I want to do the ota update. My only goal is to update my OS (OTA-update) without having to factory reset my device.
So if we find a solution to perform this update without factory reseting, my problem would be solved.

Lineage Recovery has no backup function, but I have that twrp backup and could also boot into twrp if that would be necessary.
 

User699

Senior Member
Feb 28, 2021
102
1
14
18
Have you looked over this post ?

Here are some important things to consider from that post:
things to keep in mind:
1- when you flash a ROM through TWRP, it will flash to your inactive slot, that's why you need to switch slot after flashing it and then flash everything else, think of it like an OTA update except you need to switch active slot yourself​
2- when you change your active slot in TWRP, it will only change after you reboot, your active slot will always be the one you're currently booted on​
3- the order of flashing anything that modifies boot is​
1) TWRP​
2) custom kernel​
3) noverity​
4)Magisk​

Well I did all that with lineageOS' recovery exactly as they told on their official site. Since Lineage's OTAs are the whole os.zip, I only need to apply an update via recovery, right?
 

tecknight

Recognized Contributor
Jun 12, 2010
986
849
123
Las Vegas
Well I did all that with lineageOS' recovery exactly as they told on their official site. Since Lineage's OTAs are the whole os.zip, I only need to apply an update via recovery, right?
Yes. However you may need to uninstall Magisk before you apply the update, then re-apply Magisk after the update.
You could try the update with Magisk in place, but if it fails then I would suggest updating an unmodified LineageOS
 

User699

Senior Member
Feb 28, 2021
102
1
14
18
So once you are done flashing or applying an OTA update you need to run the following command from fastboot:
fastboot set_active b

then
fastboot reboot
to boot into the new system.

Okay, did that. But the result is the rescue party again. It says slot b is affected and if I press the 'Try again' button often enough, it boots back to the unupdated slot a


@User699,
I like you you are not afraid to dive in and get your hands dirty. I assure you, it is the BEST way to learn about these things
Yep, thank you! I totally agree with you!
 

User699

Senior Member
Feb 28, 2021
102
1
14
18
Yes. However you may need to uninstall Magisk before you apply the update, then re-apply Magisk after the update.
You could try the update with Magisk in place, but if it fails then I would suggest updating an unmodified LineageOS
Oh, I see. Do you think just `uninstall' Magisk would do it, or do I have to remove other things as well?
 

User699

Senior Member
Feb 28, 2021
102
1
14
18
I think that the Magisk patched boot image might need to be unpatched, but what the heck, try it without unpatching first, it might work
Like first uninstalling it without unpatching? However, I never thought Magisk could cause that issue as I thought it doesn't affect the system in that way, since it's systemless.
Still thank you and hanks once again!
 

tecknight

Recognized Contributor
Jun 12, 2010
986
849
123
Las Vegas
Yes, I know. It has been downloaded via the inbuild updater app, but I cannot apply this update because it always opens rescue party and says my data may be corrupted.
If it says that, then reformat/wipe your userdata and cache partitions in recovery before installing. We can restore your data from backup after install.
Good luck my friend
 

User699

Senior Member
Feb 28, 2021
102
1
14
18
If it says that, then reformat/wipe your userdata and cache partitions in recovery before installing. We can restore your data from backup after install
I did a fresh install of lineage because it told me that. But it hasn't been solved through that.
I mean I could just flash the whole OS again, but I cannot actually do that for every single update they release. That's why I was hoping it would be possible to solve this issue, to update the OS without factory resetting all the time
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    OK @User699 I have some ideas as to what your issues are.
    But I have several questions and/or requests for you in order to determine what your issues are.

    It sounds to me like your userdata is encrypted and LineageOS has access to the encryption keys, but perhaps your recovery does not have access to the keys.
    FYI: RescueParty is a boot subsystem that attempts to recover if a bootloop is detected.

    Here are some questions or requests that I need you to answer:

    1. When you boot your system normally, you DO have access to your userdata partition.
    You can install or remove apps and otherwise function normally when you boot into LineageOS, correct ?

    2. Which recovery (type and version, ie: TWRP ver 3.4.0.1) do you currently have installed ?
    You mentioned booting into TWRP by telling fastboot to boot the TWRP directly.

    3. You say you have Magisk installed, so I need you to boot up, enable adb, connect a USB cable and open up a Windows command line.
    in the command line, type:
    adb shell + enter
    You should see something like:
    jasmine_sprout: / $
    Now type:
    su + enter
    you should see:
    jasmine_sprout: / #
    Now type:
    ls /dev/block/by-name -l + enter
    copy the output and post it to this thread.
    Thanks.

    4. You can boot your phone into fastboot mode and run fastboot commands from as PC, correct ?

    5. Download this image: https://androidfilehost.com/?fid=17248734326145702860
    I will tell you what to do with it in a minute

    Once you respond, I will tell you what you need to do next. If you can get to the adb shell and get root by running su, we should be able to backup everything, so worst case we CAN wipe your data, update your ROM, then restore your data
    1
    It runs and tells me


    -- Further information following shortly --
    The cannot access /data is clearly due to the encryption
    1
    Update: I tried this https://www.thecustomdroid.com/install-ota-update-rooted-android-device-guide/ as well, but it won't boot either. There's just the rescue party.
    1
    Update:
    FIXED my error (at least I can update my system now).


    Here's what I did

    1) I applied that LOS system update to my inactive slot (b, in my case).
    2) Rebooted. And got rescue party. The log shows decryption problems, but I just proceeded anyways.
    3) I pressed the back arrow in the rescue party to get back to the main screen of LOS' recovery.
    4) Since I was in slot b now, I sideloaded the update package which is going to be applied to slot a in my case.
    5) Rebooted into system.
    6 DONE.

    I did't had to reset my data and the os in slot a is bootable and updated.



    However, slot b still is unbootable... But atleast I can Update my OS.



    Thank you @tecknight for all of your help and time! Even though we couldn't solve the unbootable slot b, you still helped me to learn a lot of interessting things and even provided a version of twrp which can decrypt my user data. Really, thank you!
    1
    Update:
    FIXED my error (at least I can update my system now).


    Here's what I did

    1) I applied that LOS system update to my inactive slot (b, in my case).
    2) Rebooted. And got rescue party. The log shows decryption problems, but I just proceeded anyways.
    3) I pressed the back arrow in the rescue party to get back to the main screen of LOS' recovery.
    4) Since I was in slot b now, I sideloaded the update package which is going to be applied to slot a in my case.
    5) Rebooted into system.
    6 DONE.

    I did't had to reset my data and the os in slot a is bootable and updated.



    However, slot b still is unbootable... But atleast I can Update my OS.



    Thank you @tecknight for all of your help and time! Even though we couldn't solve the unbootable slot b, you still helped me to learn a lot of interessting things and even provided a version of twrp which can decrypt my user data. Really, thank you!
    @User699 I'm glad you got this fixed.
    I was out of town for a couple days.
    Also I'm glad you (we) learned a lot in the process.
    It was a pleasure working with you. I expect to see you helping others as you are a quick learner, my friend.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone