I can’t set the PIN/password of the lock screen. After confirming the PIN code, it returns to the lock method selection menu and displays “An error has occurred in the Settings application”.
After the firmware for the first time, everything worked.
I was forced to reset my phone. After that, it is impossible to assign a PIN/password. I did different resets, flashed from different TWRP, flashed the service firmware - without result. It works on all firmware except this one.
Try e-1.8.1-r-20230204257076-stable-dreamlte.zip and e-1.8.1-r-20230205257804-dev-dreamlte.zip
yep, you have the same stacktrace as the “Fail to enroll …” user laschrokken in the Lineage Gitlab - but the error messages leading up to the stracktrace read a bit different, but are read/write related for the security enclaves.
Both are trustzone (TZ) / trusted execution enviroment (TEE) related, on-chip security facilities of the ARM platform, keeping keys.
I TeeMcDaemon: open: Open storage file "/efs/TEE/Store_1.tf" [hardware/samsung_slsi/exynos8895/mobicore/Daemon/src/FSD2.cpp:173]
E TeeMcDaemon: open: Permission denied opening storage file "/efs/TEE/Store_1.tf" [hardware/samsung_slsi/exynos8895/mobicore/Daemon/src/FSD2.cpp:177]
E TeeSysClient: mcOpenTrustlet returned INVALID_OPERATION (rc 0x9) [hardware/samsung_slsi/exynos8895/mobicore/ClientLib/src/native_interface.cpp:604]
E TlcTeeGatekeeper: Open session failed: 9
the user from the Lineage Gitlab had
E Tzdaemon: !@[ts] Failed to move /mnt/vendor/efs/tee/srt/.00000000-0000-0000-0000-474154454b45-2147483648 to /mnt/vendor/efs/tee/srt/00000000-0000-0000-0000-4
74154454b45-2147483648 with error 13
..
W : [5: tzlog: 1800] SW> gatekeeper [ERR] (gk_store_fail_counter:52) [store]failed to create fail counter file res=f0100001
What would I do? reflash efs / tz / tee partitions from official stockrom images.
Safe mode.
After experimenting with the firmware/boot, I came to the following:
Without the “Safe Mode”, the phone issues an error about corrupted data every download and asks to format the “date” section via recovery. And so on in a circle. This is provided if you flash EFS.
Without the EFS firmware, the phone is not encrypted and the pincode/password does not work, but it loads without an error.
In safe mode, it loads without formatting and, after enabling encryption, starts working normally.
@peter080 maybe the easy-installer does not flash the efs partition? something missing in the dreamlte scripts?
It reads to me as the OP didn’t use easy-installer and went with odin/heimdal and flashed partitions individually - so was able to fix this selectively. You could repost to the easy-installer category for this issue, if dreamlte is missing the efs.img in the supplied zip
I reread the OPs comments when explaning the reset + safemode-boot procedure. I should be wrong that this is about flashing the efs partition individually - it is not part of the shipped Zip file.
Maybe the safemode is copying over the missing file from a backup partition or corrects its access permissions in place and this is what fixes it.