To install the midiag.apk (often used for Xiaomi or Qualcomm diagnostics), you must manually open your device's file manager to bypass the standard app store installation. Step 1: Enable "Install Unknown Apps"
“For security, your phone is not allowed to install unknown apps from this source.” Open File Manager And Complete Midiag.apk Installation
Install an app from unknown sources on Android device - PandaSuite Docs To install the midiag
Android blocks installations from outside the Play Store by default. You must grant permission to your File Manager first. Open Settings on your phone. Go to Apps (or Apps & notifications) > Special app access. Tap Install unknown apps. Android 8