Only use firmware files that are signed by BlackBerry Ltd. Verify the digital signature with a tool like sigcheck or macOS codesign . Do not install altered or unsigned images.
For Android-based Pangu devices, flashing a fresh factory image or "Autoloader" is the primary fix for software corruption. Flashing and Recovery Methods blackberry firmware pangu bb100015