Analyze the cause of MIUILOG- Permission Denied Activity problem

On some Xiaomi phones, especially older models, the following problem may occur:
If an app has created a shortcut, and the app process is not running, when the user clicks the shortcut, there will be an unresponsive problem.
Log grabbed through:
10-31 11:25:22.733 I/ActivityManager( 2123): START u0 {act=android.intent.action.VIEW dat=http://com.test.hm/... flg= 0x10000000 cmp=com.test.hm/.launcher.ShortCutLauncherActivity} from uid 10257
10-31 11:25:22.733 D/com.android.server.am.ExtraActivityManagerService( 2123): MIUILOG- Permission Denied Activity: Intent {act= android.intent.action.VIEW dat=http://com.test.hm/... flg=0x10000000 cmp=com.test.hm/.launcher.ShortCutLauncherActivity} pkg: com.test.hm uid: 10257 tuid: 10025 It
can be seen that the reason for this problem is that the app does not have the permission to pop up the interface in the background, and the system has blocked it.
There is currently no solution on the app side to solve this problem because it is blocked from the system side.
Solution: The
user manually opens: the permission of the pop-up interface in the background.

Note: It
is currently known that only Xiaomi/OPPO/VIVO phones have this: permission to pop up the interface in the background, and this problem does not exist on newer phone models or system versions. So it belongs to a small number of models.
Currently, the mobile phone model known to have this problem is: MI 6X, MIUI version: 9.5.7.0 (ODCCNFA).
And the same mobile phone model: MI 6X, but MIUI version: 10.2.5.0 (ODCCNXM) mobile phone does not have this problem.

Guess you like

Origin blog.csdn.net/chenzhengfeng/article/details/109453460