Closed gabtzi closed 2 years ago
Try deleting that nandswap
folder. This is part of the RAM expansion feature. I have the 4/64 GB variant and it doesn't support that feature, so I can't reproduce it.
Thanks this error disappeared but led to another
Invalid encryption mode 'aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized'
Backing up Protect S...
Invalid encryption mode 'aes-256-xts:aes-256-cts:v2+inlinecrypt_optimized'
I:Creating backup...
I:Creating tar file '/external_sd/TWRP/BACKUPS/4LEUAY95PBGQZLUC/2021-11-22--05-53-39_RP1A200720011_release-keys/protect_s.ext4.win'
I:addFile '/protect_s/md' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LDPLB001' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LD96_000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/ER1D_002' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/MTCSB000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LD85_000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/SL00_000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/ST38_001' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LD82_001' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/ST33B004' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/SL01_000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/MC01_004' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LD40_001' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/MTFW_000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LD83_001' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/ST34B001' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/ST36_002' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/MC00_005' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LD81_001' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/MC06_006' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/ST37_000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/MC05_003' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:addFile '/protect_s/md/LD97_000' including root: 0
==> set selinux context: u:object_r:protect_s_data_file:s0
I:Closing tar
I:Thread id 0 tarList done, 0 archives.
I:Thread ID 0 finished successfully.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/4LEUAY95PBGQZLUC/2021-11-22--05-53-39_RP1A200720011_release-keys/protect_s.info'
I:createTarFork() process ended with RC=0
* Generating digest...
I:SHA2 Digest: 2852fc10ea1d9ee1d96566c1f3ee924c33990f2f753e1131b48dfd5092080bd8 protect_s.ext4.win
I:digest_filename: /external_sd/TWRP/BACKUPS/4LEUAY95PBGQZLUC/2021-11-22--05-53-39_RP1A200720011_release-keys/protect_s.ext4.win.sha2
* Digest Created.
I:Partition Backup time: 0
Backing up Super (system vendor product odm)...
I:Reading '/dev/block/by-name/super', writing '/external_sd/TWRP/BACKUPS/4LEUAY95PBGQZLUC/2021-11-22--05-53-39_RP1A200720011_release-keys/super.emmc.win'
I:Error writing destination fd (Operation not permitted)
Backup Failed. Cleaning Backup Folder.
I:Set page: 'action_complete'
Could be a filesystem issue. FAT32
allows upto 4GB per file. Reformatting to exFAT
might work. You could also backup to internal storage...
Thank you again :) I have small question. After executing
fastboot flash recovery twrp
The twrp recovery loaded fine.
However after a few reboots, the stock recovery loaded again.
Isn't the flash permanent?
It could be due a shell script living inside the stock /vendor which restores stock recovery. I don't exactly remember but it happened when I didn't flash a disabled vbmeta.img or magisk patched boot image
I see, I tried to install magisk to automatically handle the boot image but it caused a bootloop so uninstalled it and rebooted. It was then that twrp got removed
Use canary magisk to patch for the meanwhile
Unfortunately it didn't work either. I'll try to see if the logs have anything useful
I'm closing this issue as the problem in the title is resolved.
Sure yes, I think this issue is magisk related now and no longer twrp related. Thank you very much for your help so far.
Not sure if this is the correct repo to add this issue, if not could you point me to the right one?
I'm trying to create a full backup after issuing
$ adb shell twrp decrypt "your password"
The decryption process worked succesfully.
When trying to create a backup it will throw this error
createTarFork() process ended with error: 255
Here's the trace in /tmp/recovery.log from before the error occured