Use the Googlefier app to install Google services on your locked, stock EMUI. If you absolutely need root or a debloated system, pay a professional to unlock the bootloader and flash EliteROM—but never, ever flash a non-Huawei-base ROM if you care about your camera.
Power off. Hold Volume Up + Power. In TWRP, wipe Dalvik, Cache, System, Data. (Never wipe Vendor or Product). Custom Rom For Huawei P40 Pro
Use DC-Unlocker. Install the client, connect the phone in fastboot mode, pay for credits, and retrieve the unlock code. Command: fastboot oem unlock [YOUR_CODE] Use the Googlefier app to install Google services