[General Questions and Answers] I_did_it_just_tmrrow:
THX for your reply.

This is my twrp.fstab, got it with adb in twrp:

WHERE CAN I FIND THIS???? :D

I tried scrcpy. see here:

$ scrcpy --max-size=1920 --max-fps=10
scrcpy 1.21 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed. 0.0 MB/s (39473 bytes in 1.126s)
[server] INFO: Device: Xiaomi Mi 9T (Android 13)
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.AssertionError: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at com.genymobile.scrcpy.wrappers.DisplayManager.getDisplayInfo(DisplayManager.java:30)
at com.genymobile.scrcpy.Device.<init>(Device.java:64)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:63)
at com.genymobile.scrcpy.Server.main(Server.java:309)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at com.genymobile.scrcpy.wrappers.DisplayManager.getDisplayInfo(DisplayManager.java:17)
... 5 more
ERROR: Server connection failed

Perhaps this error comes because I am not able to attache a real display?

My posted logcat from boot is showing this lines with "logcat for 'failed to decrypt'":

01-01 01:37:06.016 601 610 D DrmLibTime: time_getutcsec starts!
01-01 01:37:06.016 601 610 D DrmLibTime: QSEE Time Listener: time_getutcsec
01-01 01:37:06.016 601 610 D DrmLibTime: QSEE Time Listener: get_utc_seconds
01-01 01:37:06.016 601 610 D DrmLibTime: QSEE Time Listener: time_get_modem_time
01-01 01:37:06.016 601 610 D DrmLibTime: QSEE Time Listener: Checking if ATS_MODEM is set or not.
01-01 01:37:06.016 601 610 D QC-time-services: Lib:time_genoff_operation: pargs->base = 13
01-01 01:37:06.016 601 610 D QC-time-services: Lib:time_genoff_operation: pargs->operation = 2
01-01 01:37:06.016 601 610 D QC-time-services: Lib:time_genoff_operation: pargs->ts_val = 0
01-01 01:37:06.017 601 610 E QC-time-services: Lib:time_genoff_operation: Connection failed !!
01-01 01:37:06.017 601 610 D DrmLibTime: QSEE Time Listener: ATS_MODEM is not set. Fallback to Android system time.
01-01 01:37:06.017 601 610 D DrmLibTime: QSEE Time Listener: Retrieved Android system time: 2226
01-01 01:37:06.018 601 610 D DrmLibTime: time_getutcsec returns 0, sec = 2226; nsec = 0
01-01 01:37:06.018 601 610 D DrmLibTime: time_getutcsec finished!
01-01 01:37:06.018 601 610 D DrmLibTime: iotcl_continue_command finished! and return 0
01-01 01:37:06.018 601 610 D DrmLibTime: before calling ioctl to read the next time_cmd
01-01 01:37:07.388 628 665 E keystore2: Failed to decrypt blob; ciphertext or tag is likely corrupted
01-01 01:37:07.390 628 665 E keystore2: keystore2::gc: Error trying to delete blob entry. In process_one_key: Trying to unwrap to-be-deleted blob.
01-01 01:37:07.390 628 665 E keystore2:
01-01 01:37:07.390 628 665 E keystore2: Caused by:
01-01 01:37:07.390 628 665 E keystore2: 0: In unwrap_key: unwrap_key_with_key failed
01-01 01:37:07.390 628 665 E keystore2: 1: In unwrap_key_with_key: Failed to decrypt the key blob.
01-01 01:37:07.390 628 665 E keystore2: 2: In SuperKey::decrypt: Decryption failed.
01-01 01:37:07.390 628 665 E keystore2: 3: Failed to decrypt.
01-01 01:37:07.498 787 787 I odsign : Initialized Keystore key.
01-01 01:37:07.515 787 787 W odsign : Public key of existing certificate at /data/misc/odsign/key.cert does not match signing public key.
01-01 01:37:08.296 789 789 I odrefresh: ART APEX version 330400000
01-01 01:37:08.299 789 789 I odrefresh: Factory ART APEX mounted.
01-01 01:37:08.299 789 789 I odrefresh: System properties are set to default values.
01-01 01:37:08.305 789 789 I odrefresh: Factory ART APEX mounted.
01-01 01:37:08.306 789 789 I odrefresh: System properties are set to default values.
01-01 01:37:08.307 789 789 I odrefresh: Factory APEXes mounted.
01-01 01:37:08.307 789 789 I odrefresh: System properties are set to default values.
01-01 01:37:08.336 789 789 W odrefresh: type=1400 audit(0.0:15): avc: denied { kill } for capability=5 scontext=u:r:odrefresh:s0 tcontext=u:r:odrefresh:s0 tclass=capability permissive=0
01-01 01:37:08.347 787 787 I odsign : Metrics report is empty
01-01 01:37:08.349 787 787 I odsign : /data/misc/odsign/odsign.info not found.
01-01 01:37:08.356 0 0 I init : Wait for property 'odsign.key.done=1' took 2803ms
01-01 01:37:08.366 0 0 I init : starting service 'exec 11 (/system/bin/fsverity_init --lock)'...
01-01 01:37:08.366 787 787 I odsign : odrefresh said artifacts are VALID
01-01 01:37:08.367 787 787 I odsign : On-device signing done.
01-01 01:37:08.436 0 0 I init : SVC_EXEC service 'exec 11 (/system/bin/fsverity_init --lock)' pid 790 (uid 0 gid 0+0 context default) started; waiting...
01-01 01:37:08.440 0 0 I init : Command 'exec -- /system/bin/fsverity_init --lock' action=post-fs-data (/system/etc/init/hw/init.rc:1006) took 80ms and succeeded
01-01 01:37:08.492 0 0 I init : Sending signal 9 to service 'odsign' (pid 787) process group...
01-01 01:37:08.562 0 0 I libprocessgroup: Successfully killed process cgroup uid 0 pid 787 in 66ms
01-01 01:37:08.593 0 0 I init : Control message: Processed ctl.stop for 'odsign' from pid: 787 (/system/bin/odsign)
01-01 01:37:08.603 0 0 I init : Service 'odsign' (pid 787) received signal 9

I found this on my fav. search engine:

https://www.reddit.com/r/datarecovery/comments/1547adu

cannot unlock phone any more: android.security.KeyStoreException: Invalid key blob (#3471) · Issues · LineageOS / issues / android · GitLab

I have updated my phone and now when I try to unlock it using the password, it flash the screen and go back to unlock prompt.

gitlab.com

Set lockscreen to "None" programmatically?

I have the requirement to disable the lock screen and set the lock screen type to "None". My device is rooted (can run with SU permission) + can run as a system application with system permissions ...

stackoverflow.com

So I try to boot my phone without display again. It took always really really long until adb is hsowing up. BTW is use this for help:

while true; do sleep 3 && ./adb shell ; done

After a while I am able to do something in the adb shell. But everything took really long.

I try to unlock my phone with help of this:

How to get or set the lock screen settings via CLI command

The Android CLI command cmd lock_settings can be used to get or set the lock screen settings in an adb session or a script. The command should be executed by the default user in the adb session (-> no root access necessary). The known options...

xdaforums.com

My testing:

130|davinci:/ $ ls
acct bugreports d debug_ramdisk init lost+found odm postinstall sdcard sys system_ext
apex cache data dev init.environ.rc metadata odm_dlkm proc second_stage_resources system vendor
bin config data_mirror etc linkerconfig mnt oem product storage system_dlkm vendor_dlkm

davinci:/ $ ls /data/
ls: /data/: Permission denied

130|davinci:/ $ locksettings verify --old '0123456<BA@?>='
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.android.internal.widget.ILockSettings.asBinder()' on a null object reference
at com.android.commands.locksettings.LockSettingsCmd.onRun(LockSettingsCmd.java:44)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
at com.android.commands.locksettings.LockSettingsCmd.main(LockSettingsCmd.java:32)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

1|davinci:/ $ locksettings verify 82772813
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.android.internal.widget.ILockSettings.asBinder()' on a null object reference
at com.android.commands.locksettings.LockSettingsCmd.onRun(LockSettingsCmd.java:44)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
at com.android.commands.locksettings.LockSettingsCmd.main(LockSettingsCmd.java:32)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

1|davinci:/ $ locksettings verify --old 82772813
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.android.internal.widget.ILockSettings.asBinder()' on a null object reference
at com.android.commands.locksettings.LockSettingsCmd.onRun(LockSettingsCmd.java:44)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
at com.android.commands.locksettings.LockSettingsCmd.main(LockSettingsCmd.java:32)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

1|davinci:/ $ locksettings verify --old 31827728
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.android.internal.widget.ILockSettings.asBinder()' on a null object reference
at com.android.commands.locksettings.LockSettingsCmd.onRun(LockSettingsCmd.java:44)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
at com.android.commands.locksettings.LockSettingsCmd.main(LockSettingsCmd.java:32)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

1|davinci:/ $ locksettings verify 31827728
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.android.internal.widget.ILockSettings.asBinder()' on a null object reference
at com.android.commands.locksettings.LockSettingsCmd.onRun(LockSettingsCmd.java:44)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
at com.android.commands.locksettings.LockSettingsCmd.main(LockSettingsCmd.java:32)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

1|davinci:/ $ locksettings verify --old '0123456<BA@?>=' --user 0
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.android.internal.widget.ILockSettings.asBinder()' on a null object reference
at com.android.commands.locksettings.LockSettingsCmd.onRun(LockSettingsCmd.java:44)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
at com.android.commands.locksettings.LockSettingsCmd.main(LockSettingsCmd.java:32)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)

1|davinci:/ $ find / -name locksettings.db
adb: no devices/emulators found
adb: no devices/emulators found

I restarted because the phone stucked kind of, no adb.

Then:

davinci:/ $ { find / -name *.fstab 3>&2 2>&1 1>&3 | grep -v 'Permission denied' >&3; } 3>&2 2>&1
No results

and

davinci:/ $ { find / -name locksettings.db 3>&2 2>&1 1>&3 | grep -v 'Permission denied' >&3; } 3>&2 2>&1
No results

Puhh..