3

Whenever it decrypts data or applies a zip, it displays the message and then takes a rather long time.

What is it doing during that time?

In top I can see that the recovery process is fully utilising a core (and more), so it's not like it's sitting around waiting for some timeout either.

Is there anything I can do to speed this up?

Atemu
  • 560
  • 3
  • 13
  • it takes less than a second, something is wrong. so your question should be how to determinate why it takes that long (or how to fix) – alecxs Feb 01 '22 at 19:25
  • It depends on the situation (it's really fast if I'm just wiping cache) but after decrypting or installing something, it takes over a dozen seconds. If that's not normal, I'd indeed like to know what causes this and how to fix it. – Atemu Feb 02 '22 at 07:13
  • try disable free space check in settings – alecxs Feb 02 '22 at 12:16
  • Doesn't help unfortunately. – Atemu Feb 22 '22 at 12:13

1 Answers1

2

It's updating the partition sizes so that it doesn't get messed up while you're backing up the partition.

(Source: partitionmanager.cpp in TWRP source code)

Tri
  • 101
  • 8
  • Could you expand on what you mean by "get messed up"? Why should anything get messed up when I'm not actually changing any partition sizes? – Atemu Feb 01 '22 at 10:36
  • You're not changing the partition sizes themselves, but you might be changing the size of the content inside of the partitions. You can also see that by the source I mentioned. – Tri Feb 01 '22 at 19:00
  • not only. also /etc/fstab is rewritten and all mounts set to default (determinate file system type, decrypt, mount /data, bind mount /data/media/0 to /sdcard, umount /system, etc ...) depending on what action was performed – alecxs Feb 01 '22 at 19:24
  • 1
    As far as what the "Updating partition details..." does itself, it only updates the partition sizes for backups. – Tri Feb 01 '22 at 19:31
  • Can I disable that? I don't use TWRP's backup feature. – Atemu Feb 02 '22 at 07:14
  • Nope, sorry. If you go down from the source I mentioned, you'll also see that it updates the free storage size. It's not related to the message directly, but it's also a part of that function. – Tri Feb 02 '22 at 13:53