Connect your Huawei P40 Lite to the computer using a USB cable. Ensure that USB debugging is enabled on your device.
Before using third-party software, try the official recovery paths provided by Huawei Global Support : huawei p40 lite huawei id remove unlock tool full
After extensive testing and community feedback, the following tools are recognized as the most reliable for a unlock: Connect your Huawei P40 Lite to the computer