oddlyspaced / bhaikyakarrahahaitu-android

Limit your phone usage, the unexpected way.
155 stars 37 forks source link

Accessible Service is Malfunctioning in MIUI #4

Open Anshul1507 opened 2 years ago

Anshul1507 commented 2 years ago

My device: Poco X3 pro, MIUI 8, Android 11

As per the current build, I run this app, select one of my apps to show the magic image of BKKRHT, all works fine.

Here are 2 issues that belong to this case: 1) If I close the BKKRHT app from recent, and then I open that one app which I select, image is lost, obviously this needs to be converted into BG/FG service which has to be there running all the time when user wants to show this image on their selected apps.

2) After clearing all recent running apps, now your app wants those 2 permissions again to work this time, but after I open the app and click on enable service, it shows me that Service is malfunctioning.

oddlyspaced commented 2 years ago

This behavior defined by Xiaomi and their Miui. The only plausible way I can come up with to fix it, is to have a foreground service running constantly. Haven't tested and verified it personally but there would be some workaround or this for sure.