The Huawei P40 series comes with pre-installed Android 10 AOSP (Android Open Source Project) with EMUI 10.1. It sits within Huawei Mobile Services (HMS), an ecosystem for apps which runs the same Android Open Source Project as Google Mobile Services (GMS).