It is not possible to start the application from the background on Xiaomi devices until “Autostart” is manually turned on

On Xiaomi MI devices, there is a function to disable / enable "AutoPlay" in the application for security. (In the application "Security" - "Permissions" → "Autostart")

enter image description here

This means that none of the broadcast receivers receive anything while the application is not running. Therefore, BOOT_COMPLETED, USER_PRESENT, CONNECTIVITY_CHANGE, etc. Does not work. (They work for a while after the application is in the foreground, but will stop soon). They also stop working after the user checks the application from the Xiaomi version of “latest applications”

Even GCM can't wake him up

For messaging apps, this is a killer.

By default, applications such as Whatsapp, Messenger, Flipkart, etc., are enabled by default (even if these applications are not installed in advance).

Most other applications are disabled by default. eg. By default, slack is disabled.

Is there any way to change this whitelist by default?

+7
android android-service android-broadcastreceiver android-broadcast
source share

No one has answered this question yet.

See related questions:

45
The broadcast receiver does not work after rebooting the device in Android
sixteen
How to enable AutoStart function for my application in Xiaomi Security App programmatically in android
2
Received but not displayed message GCM - Result of broadcast receiver = CANCEL - Stop service stop
one
Xiaomi BOOT_COMPLETED not received
0
The broadcast receiver inside the service did not listen after removing the application from the background
0
Broadcast receiver stops recording transmissions after a few seconds
0
How do Whatsapp, Facebook and Skype messaging work in the background?
0
When a broadcast receiver may be unregistered
0
BroadCast onReceiver (), not calling marshmallows and above SDK
-one
Reading OTP / SMS on MI device not working (Android)

All Articles