[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] munjeni:
Found this in tz_X_BOOT of the H8314_Customized CE1_1316-0774_51.1.A.11.51_R1A, can it be used for decrypting something?

"7Tt3QFpJX46qNUqzExqX", Keystore Entry Encryption Key
"tPMYHBWHwsgT4RjcqzWA", Key Entry Auth Key

---------- Post added at 05:38 PM ---------- Previous post was at 05:11 PM ----------

One news (old news) for you https://xdaforums.com/showpost.php?p=73573646&postcount=396

Possible we can relock bootloader in case we have trim area backup! More info https://xdaforums.com/showpost.php?p=73548128&postcount=389

With this file https://xdaforums.com/showpost.php?p=73524154&postcount=375

And it might be true! Many devices uses devinfo for keeping information as like this

It might be the_laser is right! After unlocking, devinfo partition hold those "unlocked state" not allowing relock to become lock after restoring ta backup. Anybody dump devinfo partition and post it here?

Its clearly seen in sub_27A08 at the end it call sub_27D3C which update devinfo:

void __fastcall sub_27A08(__int64 a1, char a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, __int64 a7, __int64 a8, char a9)
{
char v9; // w21
int v10; // w20
__int64 v11; // x19
__int64 v12; // x3
__int64 v13; // x4
__int64 v14; // x5
__int64 v15; // x6
__int64 v16; // x7
char *v17; // x1
__int64 v18; // x0
BOOL v19; // w8
__int64 v20; // x20
__int64 v21; // x3
__int64 v22; // x4
__int64 v23; // x5
__int64 v24; // x6
__int64 v25; // x7
char *v26; // x1
__int64 v27; // x1
__int64 v28; // x2
__int64 v29; // x3
__int64 v30; // x4
__int64 v31; // x5
__int64 v32; // x6
__int64 v33; // x7
__int64 v34; // x2
__int64 v35; // x3
__int64 v36; // x4
__int64 v37; // x5
__int64 v38; // x6
__int64 v39; // x7
unsigned __int64 v40; // x0
unsigned __int64 v41; // x20
__int64 v42; // x0
__int64 v43; // x19
__int64 v44; // x1
__int64 v45; // x2
__int64 v46; // x3
__int64 v47; // x4
__int64 v48; // x5
__int64 v49; // x6
__int64 v50; // x7
char v51; // ST00_1
__int64 v52; // x2
__int64 v53; // x3
__int64 v54; // x4
__int64 v55; // x5
__int64 v56; // x6
__int64 v57; // x7
unsigned __int64 v58; // x0
unsigned __int64 v59; // x20
__int64 v60; // x1
__int64 v61; // x2
__int64 v62; // x3
__int64 v63; // x4
__int64 v64; // x5
__int64 v65; // x6
__int64 v66; // x7
int v67; // w0
__int64 v68; // x0
__int64 v69; // x1
__int64 v70; // x2
__int64 v71; // x3
__int64 v72; // x4
__int64 v73; // x5
__int64 v74; // x6
__int64 v75; // x7
char v76; // [xsp+0h] [xbp-490h]
char v77; // [xsp+0h] [xbp-490h]
char v78; // [xsp+0h] [xbp-490h]
char v79; // [xsp+0h] [xbp-490h]
int v80; // [xsp+8h] [xbp-488h]
int v81; // [xsp+Ch] [xbp-484h]
int v82; // [xsp+10h] [xbp-480h]
int v83; // [xsp+14h] [xbp-47Ch]
char v84; // [xsp+18h] [xbp-478h]
__int64 v85; // [xsp+58h] [xbp-438h]
void *v86; // [xsp+458h] [xbp-38h]

v9 = a2;
v10 = a1;
v86 = off_FB0C0;
v82 = -1637314660;
v83 = -1591535077;
v80 = -2102605537;
v81 = 1248343420;
if ( (_DWORD)a1 == 1 )
{
if ( byte_107CE6 != a2 )
{
byte_107CE6 = a2;
sub_2112C();
v11 = a1;
if ( a1 )
{
sub_447C(a1);
if ( !(_BYTE)a1 )
goto LABEL_43;
sub_44C0(2147483648);
if ( !(_BYTE)a1 )
goto LABEL_43;
v17 = "Unable set the unlock critical value: %r\n";
LABEL_42:
sub_3F40(2147483648, v17, v11, v12, v13, v14, v15, v16, v76);
goto LABEL_43;
}
}
}
else
{
if ( (_DWORD)a1 )
goto LABEL_43;
if ( byte_107CE5 != a2 )
{
byte_107CE5 = a2;
sub_2112C();
v11 = a1;
if ( a1 )
{
sub_447C(a1);
if ( !(_BYTE)a1 )
goto LABEL_43;
sub_44C0(2147483648);
if ( !(_BYTE)a1 )
goto LABEL_43;
v17 = "Unable set the unlock value: %r\n";
goto LABEL_42;
}
}
}
sub_21804(a1);
v11 = v18;
if ( v18 )
{
v19 = v9 == 0;
if ( v10 )
{
if ( (unsigned __int8)byte_107CE6 == v19 )
goto LABEL_39;
byte_107CE6 = v9 == 0;
sub_2112C();
v20 = v18;
if ( !v18 )
goto LABEL_39;
sub_447C(v18);
if ( !(_BYTE)v18 )
goto LABEL_39;
sub_44C0(2147483648);
if ( !(_BYTE)v18 )
goto LABEL_39;
v26 = "Unable set the unlock critical value: %r\n";
}
else
{
if ( (unsigned __int8)byte_107CE5 == v19 )
goto LABEL_39;
byte_107CE5 = v9 == 0;
sub_2112C();
v20 = v18;
if ( !v18 )
goto LABEL_39;
sub_447C(v18);
if ( !(_BYTE)v18 )
goto LABEL_39;
sub_44C0(2147483648);
if ( !(_BYTE)v18 )
goto LABEL_39;
v26 = "Unable set the unlock value: %r\n";
}
sub_3F40(2147483648, v26, v20, v21, v22, v23, v24, v25, v76);
LABEL_39:
sub_447C(v18);
__setReg(18, (void *)(unsigned __int8)a1);
if ( !(_BYTE)a1 )
goto LABEL_43;
sub_44C0(2147483648);
a1 = (unsigned __int8)a1;
if ( !(_BYTE)a1 )
goto LABEL_43;
v17 = "Unable to set the Value: %r";
goto LABEL_42;
}
(*((void (__fastcall **)(char *, signed __int64, _QWORD))off_FD7B0 + 45))(&v84, 1088i64, 0i64);
sub_6258(
(__int64)"recovery\n--wipe_data\n--reason=MasterClearConfirm\n--locale=en_US\n",
v27,
v28,
v29,
v30,
v31,
v32,
v33,
v76);
v41 = v40;
if ( v40 + 1 >= 0x42 )
sub_6EEC((__int64)"AsciiStrLen", 1412i64, v34, v35, v36, v37, v38, v39, v77);
if ( v41 >= 0x42 )
sub_6EEC((__int64)"AsciiStrnCpyS", 558i64, v34, v35, v36, v37, v38, v39, v77);
sub_4F2C(
(__int64)&v85,
0x400ui64,
"recovery\n--wipe_data\n--reason=MasterClearConfirm\n--locale=en_US\n",
v41,
v36,
v37,
v38,
v39,
v77);
v43 = v42;
sub_6258((__int64)"boot-recovery", v44, v45, v46, v47, v48, v49, v50, v51);
v59 = v58;
if ( v58 + 1 >= 0xF )
sub_6EEC((__int64)"AsciiStrLen", 1412i64, v52, v53, v54, v55, v56, v57, v78);
if ( v59 >= 0xF )
sub_6EEC((__int64)"AsciiStrnCpyS", 558i64, v52, v53, v54, v55, v56, v57, v78);
sub_4F2C((__int64)&v84, 0x20ui64, "boot-recovery", v59, v54, v55, v56, v57, v78);
if ( !(a1 | v43) )
{
sub_18398(a1, v60, v61, v62, v63, v64, v65, v66, v79);
if ( v67 != 2 || (sub_21224((__int64)&v80), !a1) )
sub_21694((__int64)&v80, (__int64)&v84, 0x440u);
}
LABEL_43:
if ( off_FB0C0 != v86 )
{
sub_17880(a1);
sub_27D3C(v68, v69, v70, v71, v72, v73, v74, v75, a9);
}
}

void __fastcall sub_27D3C(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, __int64 a7, __int64 a8, char a9)
{
__int64 v9; // x19
__int64 v10; // x0
__int64 v11; // x21
__int64 v12; // x1
__int64 v13; // x2
__int64 v14; // x3
__int64 v15; // x4
__int64 v16; // x5
__int64 v17; // x6
__int64 v18; // x7
char v19; // ST00_1
__int64 v20; // x2
__int64 v21; // x3
__int64 v22; // x4
__int64 v23; // x5
__int64 v24; // x6
__int64 v25; // x7
unsigned __int64 v26; // x0
unsigned __int64 v27; // x20
__int64 v28; // x1
__int64 v29; // x2
__int64 v30; // x3
__int64 v31; // x4
__int64 v32; // x5
__int64 v33; // x6
__int64 v34; // x7
char v35; // ST00_1
__int64 v36; // x2
__int64 v37; // x3
__int64 v38; // x4
__int64 v39; // x5
__int64 v40; // x6
__int64 v41; // x7
unsigned __int64 v42; // x0
unsigned __int64 v43; // x20
__int64 v44; // x1
__int64 v45; // x2
__int64 v46; // x3
__int64 v47; // x4
__int64 v48; // x5
__int64 v49; // x6
__int64 v50; // x7
char v51; // ST00_1
__int64 v52; // x5
__int64 v53; // x6
__int64 v54; // x7
__int64 v55; // x0
__int64 v56; // x4
void *v57; // x0
char *v58; // x2
unsigned __int64 v59; // x3
__int64 v60; // x1
__int64 v61; // x2
__int64 v62; // x3
__int64 v63; // x4
__int64 v64; // x5
__int64 v65; // x6
__int64 v66; // x7
char v67; // ST00_1
__int64 v68; // x2
__int64 v69; // x3
__int64 v70; // x4
__int64 v71; // x5
__int64 v72; // x6
__int64 v73; // x7
unsigned __int64 v74; // x0
unsigned __int64 v75; // x20
__int64 v76; // x1
__int64 v77; // x2
__int64 v78; // x3
__int64 v79; // x4
__int64 v80; // x5
__int64 v81; // x6
__int64 v82; // x7
char v83; // ST00_1
unsigned __int64 v84; // x0
__int64 v85; // x0
__int64 v86; // x19
__int64 v87; // x3
__int64 v88; // x4
__int64 v89; // x5
__int64 v90; // x6
__int64 v91; // x7
__int64 v92; // x0
__int64 v93; // x1
__int64 v94; // x2
__int64 v95; // x3
__int64 v96; // x4
__int64 v97; // x5
__int64 v98; // x6
__int64 v99; // x7
char v100; // [xsp+0h] [xbp-30h]
char v101; // [xsp+0h] [xbp-30h]
char v102; // [xsp+0h] [xbp-30h]
char v103; // [xsp+0h] [xbp-30h]
char v104; // [xsp+0h] [xbp-30h]
char v105; // [xsp+0h] [xbp-30h]
void *v106; // [xsp+8h] [xbp-28h]

v9 = a2;
v106 = off_FB0C0;
sub_590C(a1, L"bootloader", a3, a4, a5, a6, a7, a8, v100);
v11 = v10;
sub_6258((__int64)"sdm845", v12, v13, v14, v15, v16, v17, v18, v19);
v27 = v26;
if ( v26 + 1 >= 8 )
sub_6EEC((__int64)"AsciiStrLen", 1412i64, v20, v21, v22, v23, v24, v25, v101);
if ( v11 )
{
if ( v27 >= 8 )
sub_6EEC((__int64)"AsciiStrnCpyS", 558i64, v20, v21, v22, v23, v24, v25, v101);
sub_4F2C((__int64)&unk_107D28, 0x40ui64, "sdm845", v27, v22, v23, v24, v25, v101);
sub_6258((__int64)"-", v28, v29, v30, v31, v32, v33, v34, v35);
v43 = v42;
if ( v42 + 1 >= 3 )
sub_6EEC((__int64)"AsciiStrLen", 1412i64, v36, v37, v38, v39, v40, v41, v102);
if ( v43 >= 3 )
sub_6EEC((__int64)"AsciiStrnCatS", 656i64, v36, v37, v38, v39, v40, v41, v102);
sub_53AC((unsigned __int64)&unk_107D28, 0x40ui64, "-", v43, v38, v39, v40, v41, v102);
sub_6258(v9, v44, v45, v46, v47, v48, v49, v50, v51);
v56 = v55;
v57 = &unk_107D28;
v58 = (char *)v9;
v59 = v56;
}
else
{
if ( v27 >= 8 )
sub_6EEC((__int64)"AsciiStrnCpyS", 558i64, v20, v21, v22, v23, v24, v25, v101);
sub_4F2C((__int64)&unk_107CE8, 0x40ui64, "sdm845", v27, v22, v23, v24, v25, v101);
sub_6258((__int64)"-", v60, v61, v62, v63, v64, v65, v66, v67);
v75 = v74;
if ( v74 + 1 >= 3 )
sub_6EEC((__int64)"AsciiStrLen", 1412i64, v68, v69, v70, v71, v72, v73, v104);
if ( v75 >= 3 )
sub_6EEC((__int64)"AsciiStrnCatS", 656i64, v68, v69, v70, v71, v72, v73, v104);
sub_53AC((unsigned __int64)&unk_107CE8, 0x40ui64, "-", v75, v70, v71, v72, v73, v104);
sub_6258(v9, v76, v77, v78, v79, v80, v81, v82, v83);
v59 = v84;
v57 = &unk_107CE8;
v58 = (char *)v9;
}
sub_53AC((unsigned __int64)v57, 0x40ui64, v58, v59, v56, v52, v53, v54, v103);
sub_2112C();
v86 = v85;
if ( v85 )
{
sub_447C(v85);
if ( (_BYTE)v85 )
{
sub_44C0(2147483648);
if ( (_BYTE)v85 )
sub_3F40(2147483648, "Unable to Write Device Info: %r\n", v86, v87, v88, v89, v90, v91, v105);
}
}
if ( off_FB0C0 != v106 )
{
sub_17880(v85);
sub_27F7C(v92, v93, v94, v95, v96, v97, v98, v99, a9);
}
}