Are there still affected MIUI phones?
Thanks for this test app and tracking package installer breakage.
I noticed that at least MIUI 14 seems to have fixed the issue and package installer is working normally there. Are you aware of existing phones which are stuck on a MIUI version that is still broken?
As far as I know, no stable version of MIUI or HyperOS has fixed this issue, and there never will be.
Well, I have a Redmi Note 10 5G here on MIUI Global 14.0.4 which could use a session to install an app and even update it without user approval.
Maybe the issue only persist on the Chinese versions of MIUI and were only fixed for the global versions?
Update: com.miui.packageinstaller version 5.4.1.0.0, session installation has been fixed. Although silent installation is not supported, the API works normally, does not cause the application to crash, and can complete the installation process.
The global version uses the Google Installer, not the MIUI Installer. The MIUI Installer does not implement the specific activity (before v5.4.1.0.0), while the Google Installer does not have this issue.