[Xperia Z4/Z3+ Original Android Development] DiscMan55:
Hello, I am facing a problem with Sony Xperia Z3+ Ivy with encrypted /data (encrypted using 32.2.A.0.305 stock rom with kernel modified using this tool: http://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 to only enable TWRP support, keeping dm-verity, RIC enabled since I use systemless mods only).

I tried using recovery.img posted in the first thread as well as the twrp-3.0.2-0-ivy.img in the "Downloads" tab of this thread.

Although TWRP asks for password, my PIN is rejected even though it is correct. The log looks like this:

Updating partition details...
...done
Failed to mount storage
Full SELinux support is present.
Failed to decrypt data.
Failed to decrypt data.

Also, I should note that android asks for PIN to boot and it accepts it there.

Are there any adb commands or steps I can take to gather more info to help solve this ?

Recovery is flashed to /recovery, also tried using fastboot boot <image> to test both recoveries.

Here is the output of "mount":

~ # mount
rootfs on / type rootfs (rw,seclabel)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1424220k,nr_inodes=356055,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime,size=1424220k,nr_inodes=356055)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/block/mmcblk0p41 on /cache type ext4 (rw,seclabel,relatime,data=ordered)
~ #

Here is my recovery.log

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting TWRP 3.0.2-0 on Tue Jan 13 23:32:21 1970
(pid 338)
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/leds/wled/brightness
I:Found brightness file at '/sys/class/leds/wled/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 4095
I:LANG: en
Starting the UI...open_overlay cannot open fb0: No such file or directory
setting DRM_FORMAT_RGB565 and GGL_PIXEL_FORMAT_RGB_565
cannot find/open a drm device: No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
cannot open fb0 (retrying): No such file or directory
fb0 reports (possibly inaccurate):
vi.bits_per_pixel = 32
vi.red.offset = 0 .length = 8
vi.green.offset = 8 .length = 8
vi.blue.offset = 16 .length = 8
setting GGL_PIXEL_FORMAT_RGBA_8888
double buffered
framebuffer: 0 (1080 x 1920)
Using fbdev graphics.
I:TWFunc::Set_Brightness: Setting brightness control to 4095
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
=> Linking mtab
Renaming regular /etc/recovery.fstab -> /etc/recovery.fstab.bak
Moving /etc/twrp.fstab -> /etc/recovery.fstab
=> Processing recovery.fstab
I:Processing '/boot'
I:Processing '/system'
I:Processing '/cache'
I:Processing '/data'
I:Processing '/external_sd'
I:Created '/external_sd' folder.
I:Processing '/usbdisk'
I:Created '/usbdisk' folder.
I:Setting up '/data' as data/media emulated storage.
I:Created '/sdcard' folder.
I:Can't probe device /dev/block/mmcblk0p42
I:Unable to mount '/data'
I:Actual block device: '/dev/block/mmcblk0p42', current file system: 'ext4'
I:Can't probe device /dev/block/mmcblk0p42
I:Unable to mount '/data'
I:Actual block device: '/dev/block/mmcblk0p42', current file system: 'ext4'
get_crypt_ftr_info crypto key location: 'footer'
I:Backup folder set to '/data/media/TWRP/BACKUPS/CB5A27RUD5'
I:Settings storage is '/data/media'
Updating partition details...
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'vfat'
I:Unable to mount '/usbdisk'
I:Actual block device: '', current file system: 'auto'
...done
Unable to mount storage
I:Unmounting main partitions...

Partition Logs:
/boot | /dev/block/mmcblk0p29 | Size: 64MB
Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
Primary_Block_Device: /dev/block/mmcblk0p29
Display_Name: Boot
Storage_Name: boot
Backup_Path: /boot
Backup_Name: boot
Backup_Display_Name: Boot
Storage_Path: /boot
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/system | /dev/block/mmcblk0p43 | Size: 5053MB Used: 4449MB Free: 603MB Backup Size: 4449MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/mmcblk0p43
Display_Name: System
Storage_Name: System
Backup_Path: /system
Backup_Name: system
Backup_Display_Name: System
Storage_Path: /system
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/cache | /dev/block/mmcblk0p41 | Size: 192MB Used: 0MB Free: 192MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/mmcblk0p41
Display_Name: Cache
Storage_Name: Cache
Backup_Path: /cache
Backup_Name: cache
Backup_Display_Name: Cache
Storage_Path: /cache
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/data | /dev/block/mmcblk0p42 | Size: 23616MB
Flags: Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Is_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
Symlink_Path: /data/media
Symlink_Mount_Point: /sdcard
Primary_Block_Device: /dev/block/mmcblk0p42
Length: -16384
Display_Name: data
Storage_Name: Internal Storage
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data/media
Current_File_System: emmc
Fstab_File_System: ext4
Backup_Method: dd
MTP_Storage_ID: 65537

/external_sd | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage
Primary_Block_Device: /dev/block/mmcblk1p1
Display_Name: Micro SDcard
Storage_Name: Micro SDcard
Backup_Path: /external_sd
Backup_Name: external_sd
Backup_Display_Name: Micro SDcard
Storage_Path: /external_sd
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files
MTP_Storage_ID: 65538

/usbdisk | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage
Primary_Block_Device: /dev/block/sda1
Alternate_Block_Device: /dev/block/sda
Display_Name: USB OTG
Storage_Name: USB OTG
Backup_Path: /usbdisk
Backup_Name: usbdisk
Backup_Display_Name: USB OTG
Storage_Path: /usbdisk
Current_File_System: auto
Fstab_File_System: auto
Backup_Method: files
MTP_Storage_ID: 65539

I:Loading package: TWRP (/twres/ui.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
I:Checking resolution...
I:Loading resources...
I:Failed to load image from indeterminate013, error -1
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Including file: /twres/portrait.xml...
I:PageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page flashimage_confirm
I:Loading page clear_vars
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page wipe
I:Loading page advancedwipe
I:Loading page formatdata
I:Loading page formatdata_confirm
I:Loading page checkpartitionlist
I:Loading page partitionoptions
I:Loading page refreshfilesystem
I:Loading page selectfilesystem
I:Loading page backup
I:Loading page backup_options
I:Loading page backupname1
I:Loading page backupname2
I:Loading page backupencryption
I:Loading page backupencryption2
I:Loading page checkbackuppassword
I:Loading page backup_run
I:Loading page restore
I:Unable to open '/data/media/TWRP/BACKUPS/CB5A27RUD5'
I:Loading page restore_read
I:Loading page restore_decrypt
I:Loading page try_restore_decrypt
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page system_readonly_check
I:Loading page reboot
I:Loading page system_readonly
I:Loading page settings
I:Loading page settings_timezone
I:Loading page settings_screen
I:Loading page settings_vibration
I:Loading page settings_language
I:Loading page advanced
I:Loading page partsdcardsel
I:Loading page partsdcardcheck
I:Loading page partsdcard
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageraction
I:Loading page decrypt
I:Loading page decrypt_pattern
I:Loading page trydecrypt
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page fixcontexts
I:Loading page installsu
I:Loading page slideout
I:Loading page select_storage
I:Loading page select_language
I:Switching packages (TWRP)
SELinux contexts loaded from /file_contexts
Full SELinux support is present.
I:Not using /misc, not defined in fstab.
I:Not using /misc, not defined in fstab.
Startup Commands:
ro.bt.bdaddr_path=/data/etc/bluetooth_bdaddr
ro.sf.lcd_density=480
ro.adb.secure=0
ro.com.google.clientidbase=android-google
ro.com.android.dataroaming=true
ro.com.android.wifi-watchlist=GoogleGuest
ro.nfc.port=I2C
ro.qti.sdk.sensors.gestures=false
ro.qti.sensors.wu=true
ro.qti.sensors.amd=false
ro.qti.sensors.bte=false
ro.qti.sensors.cmc=false
ro.qti.sensors.dpc=false
ro.qti.sensors.fns=false
ro.qti.sensors.pam=false
ro.qti.sensors.qmd=false
ro.qti.sensors.rmd=false
ro.qti.sensors.smd=false
ro.qti.sensors.tap=false
ro.qti.sensors.vmd=false
ro.qti.sensors.gtap=false
ro.qti.sensors.tilt=false
ro.qti.sensors.georv=false
ro.qti.sensors.facing=false
ro.qti.sensors.game_rv=false
ro.qti.sensors.pedometer=false
ro.qti.sensors.scrn_ortn=false
ro.qti.sensors.max_mag_rate=false
ro.qti.sensors.step_counter=false
ro.qti.sensors.max_gyro_rate=false
ro.qti.sensors.step_detector=false
ro.qti.sensors.tilt_detector=false
ro.qti.sensors.max_accel_rate=false
ro.qti.sensors.max_geomag_rotv=50
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.usb.pid_suffix=1C9
ro.boot.selinux=permissive
ro.boot.baseband=msm
ro.boot.hardware=ivy
ro.boot.serialno=CB5A27RUD5
ro.boot.bootdevice=f9824900.sdhci
ro.boot.bootloader=s1
ro.data.large_tcp_window_size=true
ro.hwui.path_cache_size=32
ro.hwui.layer_cache_size=48
ro.hwui.texture_cache_size=72
ro.hwui.gradient_cache_size=1
ro.hwui.r_buffer_cache_size=8
ro.hwui.drop_shadow_cache_size=6
ro.hwui.text_large_cache_width=2048
ro.hwui.text_small_cache_width=1024
ro.hwui.text_large_cache_height=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.texture_cache_flushrate=0.4
ro.omni.device=ivy
ro.omni.version=6.0.1-20160504-ivy-HOMEMADE
ro.twrp.boot=1
ro.twrp.version=3.0.2-0
ro.wifi.channels=
ro.allow.mock.location=0
ro.board.platform=msm8994
ro.build.id=MOB30D
ro.build.date=Wed May 4 23:01:36 CEST 2016
ro.build.date.utc=0
ro.build.host=build2.dev.xda-developers.com
ro.build.tags=test-keys
ro.build.type=userdebug
ro.build.user=olivier
ro.build.flavor=omni_ivy-userdebug
ro.build.display.id=omni_ivy-userdebug 6.0.1 MOB30D eng.olivier.20160504.225854 test-keys
ro.build.product=ivy
ro.build.selinux=1
ro.build.version.sdk=23
ro.build.version.base_os=
ro.build.version.release=6.0.1
ro.build.version.codename=REL
ro.build.version.incremental=eng.olivier.20160504.225854
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2016-04-02
ro.build.description=omni_ivy-userdebug 6.0.1 MOB30D eng.olivier.20160504.225854 test-keys
ro.build.fingerprint=Sony/omni_ivy/ivy:6.0.1/MOB30D/olivier05042301:userdebug/test-keys
ro.build.characteristics=default
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.alarm_alert=Argon.ogg
ro.config.notification_sound=pixiedust.ogg
ro.dalvik.vm.native.bridge=0
ro.secure=1
ro.zygote=zygote64_32
ro.carrier=unknown
ro.product.cpu.abi=arm64-v8a
ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=arm64-v8a
ro.product.name=omni_ivy
ro.product.board=E6553
ro.product.brand=Sony
ro.product.model=Xperia Z3+
ro.product.device=ivy
ro.product.locale=en-US
ro.product.manufacturer=Sony
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=ivy
ro.opengles.version=196609
ro.revision=0
ro.serialno=CB5A27RUD5
ro.bootimage.build.date=Wed May 4 23:02:22 CEST 2016
ro.bootimage.build.date.utc=1462395742
ro.bootimage.build.fingerprint=Sony/omni_ivy/ivy:6.0.1/MOB30D/olivier05042301:userdebug/test-keys
ro.telephony.call_ring.multiple=false
ro.telephony.default_network=9
ro.bootloader=s1
ro.debuggable=1
ro.modversion=OmniROM-6.0.1-20160504-ivy-HOMEMADE
ro.setupwizard.enterprise_mode=1
ro.use_data_netmgrd=true
drm.service.enabled=true
net.bt.name=Android
net.change=net.bt.name
ril.subscription.types=NV,RUIM
sys.usb.ffs.ready=1
init.svc.adbd=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.set_permissive=stopped
rild.libargs=-d
rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
twrp.crash_counter=0
vidc.debug.level=1
wifi.interface=wlan0
debug.atrace.tags.enableflags=0
debug.qualcomm.sns.hal=0
debug.qualcomm.sns.daemon=0
debug.qualcomm.sns.libsensor1=0
media.aac_51_output_enabled=true
camera.disable_zsl_mode=0
dalvik.vm.isa.arm.variant=cortex-a7
dalvik.vm.isa.arm.features=default
dalvik.vm.isa.arm64.variant=cortex-a53
dalvik.vm.isa.arm64.features=default
dalvik.vm.heapsize=512m
dalvik.vm.lockprof.threshold=500
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.heapmaxfree=8m
dalvik.vm.heapminfree=512k
dalvik.vm.heapstartsize=8m
dalvik.vm.dex2oat-threads=2
dalvik.vm.heapgrowthlimit=192m
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.image-dex2oat-threads=4
persist.hwc.mdpcomp.enable=true
persist.sys.usb.config=adb
persist.sys.wfd.virtual=0
persist.sys.debug.multi_window=true
persist.sys.dalvik.vm.lib.2=libart
persist.sys.root_access=1
persist.data.qmi.adb_logmask=0
persist.data.netmgrd.qos.enable=true
persist.audio.fluence.speaker=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.voicecall=true
persist.debug.wfd.enable=1
persist.debug.sensors.hal=0
persist.radio.oem_socket=false
persist.radio.add_power_save=1
persist.radio.apm_sim_not_pwdn=1
persist.camera.ois.disable=0
persist.camera.HAL3.enabled=1
service.adb.tcp.port=5555
service.adb.root=1
keyguard.no_require_sim=true
telephony.lteOnGSMDevice=1
telephony.lteOnCdmaDevice=0

I:Copying file /cache/recovery/log to /cache/recovery/last_log
I:Is encrypted, do decrypt page first
I:Switching packages (TWRP)
I:Set page: 'decrypt'
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
crypt_ftr->fs_size = 48365536
Using scrypt with keymaster for cryptfs KDF
could not find any keystore module
Failed to init keymaster
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
crypt_ftr->fs_size = 48365536
Using scrypt with keymaster for cryptfs KDF
could not find any keystore module
Failed to init keymaster
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
Failed to decrypt data.
I:Set page: 'decrypt'
I:operation_end - status=1
I:Set overlay: 'slideout'
I:Set overlay: ''
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 4095
I:Set overlay: ''
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
crypt_ftr->fs_size = 48365536
Using scrypt with keymaster for cryptfs KDF
Invalid hex string
Failed to convert passwd from hex, using passwd instead
could not find any keystore module
Failed to init keymaster
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
crypt_ftr->fs_size = 48365536
Using scrypt with keymaster for cryptfs KDF
could not find any keystore module
Failed to init keymaster
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
Failed to decrypt data.
I:Set page: 'decrypt'
I:operation_end - status=1
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 4095
I:Set overlay: ''
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
crypt_ftr->fs_size = 48365536
Using scrypt with keymaster for cryptfs KDF
Invalid hex string
Failed to convert passwd from hex, using passwd instead
could not find any keystore module
Failed to init keymaster
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
crypt_ftr->fs_size = 48365536
Using scrypt with keymaster for cryptfs KDF
could not find any keystore module
Failed to init keymaster
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
Failed to decrypt data.
I:Set page: 'decrypt'
I:operation_end - status=1
I:Set overlay: 'slideout'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 4095
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 4095
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 4095
I:Set overlay: ''
I:Set overlay: ''
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Unable to mount settings storage during GUI startup.
I:Cannot load settings -- encrypted.
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:Translating partition display names
I:Backup folder set to '/data/media/TWRP/BACKUPS/CB5A27RUD5'
I:Switching packages (TWRP)
I:Set page: 'system_readonly'
I:Is_Mounted: Unable to find partition for path '/vendor'
I:operation_start: 'Toggle System Mount'
I:operation_end - status=1
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'settings'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0

It also fails to see my 32 GB external microsd attached to the phone (formatted as external sd in android, not adopted)

On this phone, on stock ROM, encryption says it is "hardware-backed".

Is https://github.com/TeamWin/Team-Win-Recovery-Project/issues/484 related ?