PackageInstaller does not work on MIUI optimization mode


SergWolf

Members
May 27, 2021
1
3
I created a test application for installing apk files. PackageInstaller was used for this. The app works well. However, for Xiaomi in BroadcastReceiver I get the "INSTALL_FAILED_INTERNAL_ERROR: Permission Denied" error. But if you enable developer mode and disable MIUI optimization, then the application also successfully installs packages. I can't get users of my application to force them to turn off the optimization mode, how can I deal with this?
 
We are not official Xiaomi Global support forums.
This issue is irrelevant on our ROMs, and we also don't have a "MIUI optimization" toggle.