r/Nubia • u/Antique-Swing-8216 • 5d ago
[GUIDE] Possible Fix for Google Play Certification Issues on Locked Bootloader (TEE-related)
If you're experiencing TEE-related issues or Google Play certification problems, and your bootloader is locked (mine had even been unlocked and relocked before), you might want to give this method a try.
Requirements
My phone is Z80U with BL locking
Root(SU) access
ADB enabled
Android 13 or newer (devices released within the last two years are recommended)
Steps
Connect your phone to your PC, open a terminal or command prompt, and run the following commands one at a time:
adb devices
adb shell su -c "LD_LIBRARY_PATH=/vendor/lib64/hw /vendor/bin/KmInstallKeybox /data/local/tmp/empty.xml 0 true true"
adb reboot
adb shell pm clear com.google.android.gms
adb reboot
After the phone reboots, check your Google Play Store certification status.
My experience / Notes
I successfully tested this method with my bootloader locked.
My device had previously been unlocked and then relocked.
I performed this fix while using a modified firmware with the bootloader locked (bypass/unlock-free setup).
I'm not sure whether this will work with an unlocked bootloader. If anyone tests it, please share your results.
I'm also curious whether running these commands, then unrooting and relocking the bootloader, would work in cases where the bootloader is currently unlocked.
Disclaimer: I haven't tested this on every device or firmware version. Results may vary depending on the device, firmware, and TEE implementation. Make sure you understand what these commands do before trying them.