HyperOS 2.0 - Any recommendations for installing F-Droid apps?

HyperOS 2.0.116
F-Droid ver. 1.21.1

I have Xiaomi 15 Pro and installed F-Droid just recently. I have used Mi Mover to migrate all apps from old phone to current one. However I have issues with installing apps via F-Droid. While the “update” works fine, clicking the “install” button doesn’t do anything. I just see “loading animation” on progress bar, but installation doesnt start.

I have setup the following permissions for F-Droid:

  • Battery: no restrictions
  • Install from unknown sources: allowed
  • Developer settings: system optimization disabled

I tried to install via Orbot, but it didnt help either.

Do you know any workarounds for this OS? I have seen somewhere that the default package installer could be disabled and stock AOSP could be enabled somehow, but I have not done it yet.

if updates are fine, did you update to 1.22 already?

If you haven’t known, they had blacklist.json for packgeName of VPN apps in their package installer before.

A whitelist and blacklist system are implemented simultaneously for application installation. A whitelist system is implemented for users who have the qualifications for the internal testing of the corresponding system applications of “Xiaomi Community”, and a blacklist system is implemented for the installation of illegal applications. (三、在安装应用上同时实行白名单和黑名单制度,对已拥有“小米社区”对应系统应用内测资格用户实行白名单,对安装违法应用实行黑名单制 。)

And they pretended it to be a technical problem instead of a political one by popping ‘There was a problem while parsing the package’ at blacklisted apps.

  • MIUI - 游戏和谐 Wiki ← Good article for users; read and reconsider it if you’d like to buy another Xiaomi device.
1 Like

It doesnt work on 1.22 either. I have just upgraded it.

I wonder if they have something like this implemented for f-droid as well. I guess for now the only way is disabling default package installer from HyperOS and trying to enable stock AOSP.

but, so, you can install some packages but no other?

I mean the issue is that YOUR Android does something bad like blocking SOME packages installs?

Eg. You can install Conversations just fine, but not RiseupVPN?

they have something like this implemented for f-droid as well

What F-Droid does is just calling the default package installer.

I cannot install any apps.

This is what I thought. Maybe I will try to enable default package installer and see.

Can you toggle Expert mode ON, then toggle “Use old installer” then retry?

I have retried, but all what I see is “Installing…” text and bar going from left to right in repetitive sequence.

I cannot install any apps.

Well, then it’s unrelated to my mentioned problem.

I have upgraded Fdroid to 1.23-alpha, but both for “Force old installer” option enabled and disabled app doesn’t install.

Example:



Latest 1.23-alpha has a Debug log thing in Expert, can you retry an install, fail, then export a log?

Log here nextclod

Also I would like to mention that Aurora Store work fine and I have found Obtainum app useful. I have updated all apps using Fdroid sources. No more pending updates in Fdroid.

Same problem here, I got some log from adb, whitch might be help:

05-04 16:26:35.129 11455 11534 E AntiFraud: hookDetectUnsafeAppStart error,
05-04 16:26:35.129 11455 11534 E AntiFraud: android.content.pm.PackageManager$NameNotFoundException: org.fdroid.fdroid
05-04 16:26:35.129 11455 11534 E AntiFraud:     at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:532)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:515)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:509)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at w2.b.f(Unknown Source:12)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at w2.b$c.onForegroundInfoChanged(Unknown Source:21)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at com.miui.gamebooster.mutiwindow.b$a.onForegroundInfoChanged(Unknown Source:152)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at miui.process.IForegroundInfoListener$Stub.onTransact(IForegroundInfoListener.java:84)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at android.os.Binder.execTransactInternal(Binder.java:1512)
05-04 16:26:35.129 11455 11534 E AntiFraud:     at android.os.Binder.execTransact(Binder.java:1451)
......
05-04 16:59:42.155  3553  4365 W ActivityManager: pid 3553 system sent binder code 7 with flags 1 to frozen apps and got error -32
05-04 16:59:42.155  3553  4365 W WindowManager: Exception thrown during dispatchAppVisibility Window{8abc268 u0 com.android.intentresolver/com.android.intentresolver.ResolverActivity EXITING}
05-04 16:59:42.155  3553  4365 W WindowManager: android.os.DeadObjectException
05-04 16:59:42.155  3553  4365 W WindowManager:         at android.os.BinderProxy.transactNative(Native Method)
05-04 16:59:42.155  3553  4365 W WindowManager:         at android.os.BinderProxy.transact(BinderProxy.java:684)
05-04 16:59:42.155  3553  4365 W WindowManager:         at android.view.IWindow$Stub$Proxy.dispatchAppVisibility(IWindow.java:655)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.WindowState.sendAppVisibilityToClients(WindowState.java:3569)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.WindowContainer.sendAppVisibilityToClients(WindowContainer.java:1380)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.WindowToken.setClientVisible(WindowToken.java:423)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.ActivityRecord.setClientVisible(ActivityRecord.java:8623)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.ActivityRecord.postApplyAnimation(ActivityRecord.java:7079)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:7021)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.Transition.finishTransition(Transition.java:1601)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.TransitionController.finishTransition(TransitionController.java:1116)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.WindowOrganizerController.finishTransition(WindowOrganizerController.java:602)
05-04 16:59:42.155  3553  4365 W WindowManager:         at android.window.IWindowOrganizerController$Stub.onTransact(IWindowOrganizerController.java:331)
05-04 16:59:42.155  3553  4365 W WindowManager:         at com.android.server.wm.WindowOrganizerController.onTransact(WindowOrganizerController.java:241)
05-04 16:59:42.155  3553  4365 W WindowManager:         at android.os.Binder.execTransactInternal(Binder.java:1512)
05-04 16:59:42.155  3553  4365 W WindowManager:         at android.os.Binder.execTransact(Binder.java:1451)
05-04 16:59:42.155  3553  4365 W Process : Unable to open /proc/19279/status
1 Like

What happens if you run pm disable com.miui.securitycenter.Application in adb? Can you then install apps?

Unfortunately, there is no com.miui.securitycenter.Application in my phone:

dada:/ $ pm list packages | sort
...
package:com.miui.screenshot
package:com.miui.securityadd
package:com.miui.securitycenter
package:com.miui.securitycenter.securitycenter_phone_overlay.config.overlay
package:com.miui.securitycore
package:com.miui.securityinputmethod
...

I have also try to disable security center, but HyperOS forbid to do so:

dada:/ $ pm disable com.miui.securitycenter

Exception occurred while executing 'disable':
java.lang.SecurityException: Cannot disable miui core packages.

255|dada:/ $ pm disable com.miui.securitycenter.securitycenter_phone_overlay.config.overlay

Exception occurred while executing 'disable':
java.lang.SecurityException: Shell cannot change component state for null to 2

I have also notice that this might be a intent resolver problem. I cannot add schedule to my calendar with 12306 (railway ticket booking) app, the intent resolver just close after I select my calendar app and nothing happen, just like what it behaves in app installation.

What is this?

Then likely it’s still related to my prior assumption.

Anti-fraud is a false flag for a mass surveillance campaign in China.

I guess they now have app store whitelist, and apparently F-Droid is not registered or approved.

Can you test other third party app store? Example,

Then blacklist?

Can you try any F-Droid with alternative package name? F-Droid Basic (org.fdroid.basic). Probably build and install the same version with different application ID?

Same behaviour. I can see app installation, but nothing happens.