بسم الله الرحمن الرحيم

As we always used to publish the new, useful and tested،
Today we share with you how to make your Qualcomm processor provision a key for the RPMB sector
We also know that the Qualcomm processor, if you want to change the memory, requires you to install a clean memory
As for the EMMC memory, you can use a Samsung memory and update the firmware for it to make it clean
As for all UFS memories, they cannot be made clean at the present time. I mean, if you change the memory for a phone that carries a Qualcomm processor, you need to buy new memories because they come clean, but they are not cheap, especially the memories that have integrated RAM.
As we know that Xiaomi phones that carry a Qualcomm processor, when you change the memory for it, you need to write the devcfg file from the eng rom flash in order to bypass RPMB protection.
After this post, you will not need this matter because you will be able to provision the RPMB key
The JTAG box can provision you the RPMB key by writing a random key, but this method does not work with Qualcomm because the processor will consider the memory not clean because it does not know the key that you wrote through the JITAG box, and therefore it will consider the memory not clean
But if the processor itself provisioned the RPMB key, the phone will work normally and you will not need the devcfg file.
We come to the KEY RPMB provisioning method with a Qualcomm processor
First, the memory must be clean
Secondly, if the memory is UFS, the frequency must be set to 19.2 mhz. According to our experience, the only box that succeeds in this matter is the mipi tester.
Third, write the eng rom flash to the memory
(Because the method requires that the phone be on normally)
Fourth, we connect the phone to the computer, while it is booted normally.
Fifthly, we open the command prompt in the computer and write this code
adb shell
qseecom_sample_client v smplap64 14 1
Then we choose option number 0
(This option is Provision Production key)
Then the processor will provision the RPMB key itself and the result will be like this
RPMB key provisioning completed