Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High battery usage in background #316

Open
islam2hamy opened this issue May 20, 2022 · 15 comments
Open

High battery usage in background #316

islam2hamy opened this issue May 20, 2022 · 15 comments
Labels

Comments

@islam2hamy
Copy link

islam2hamy commented May 20, 2022

Hi ,
High battery usage in background reported by device, suggests to sleep the app.

I can see that the app auto start randomly in background , why??
Please fix. An app with battery drain is not good

Os : miui 11.0.2
Android : 7.1.2

@islam2hamy islam2hamy added the bug label May 20, 2022
@smichel17
Copy link
Member

smichel17 commented May 20, 2022

The app should auto-start once per day, if you have configured it to do that. Otherwise it should not be doing anything "in the background", only when it is on. I'm not sure why it would behave any differently.

@islam2hamy
Copy link
Author

Screenshot-com-jmstudios-redmoon

@smichel17
Copy link
Member

I'm really not sure why it would turn on at all then. You could try grabbing a log and see if it is still scheduling even though it should not be. There are instructions in #184 (comment)

@islam2hamy
Copy link
Author

@islam2hamy
Copy link
Author

@islam2hamy
Copy link
Author

@islam2hamy
Copy link
Author

I will keep this folder updated

@smichel17
Copy link
Member

smichel17 commented May 26, 2022

app auto start randomly in background

To clarify,

  1. Do you mean that the app opens, or that the filter starts running (and coloring the screen)?
  2. Are all of these logs from when that happens, or are some of them after you manually opened the app?

If Red Moon were scheduling itself to turn on/off, you would see this message in the logs (calendar.toString() becomes a timestamp):

Log.i("Scheduling alarm for " + calendar.toString())

I'm not seeing any of those. However, in the last two logs, I see a couple lines like this:

[05-25 20:38:50.432 1571:2711 I/ActivityManager]
Start proc 2859:com.jmstudios.redmoon/u0a172 for service com.jmstudios.redmoon/.widget.TileReceiver caller=com.android.systemui

I would expect to see that when the filter is started via the quick settings tile, that you can access at the top of the notification drawer. Maybe you've accidentally tapped it, or miui has a bug which is triggering it randomly?

@islam2hamy
Copy link
Author

islam2hamy commented May 26, 2022

app auto start randomly in background

To clarify,

  1. Do you mean that the app opens, or that the filter starts running (and coloring the screen)?

the app opens (using ram)

  1. Are all of these logs from when that happens, or are some of them after you manually opened the app?

some of them after manually open the app

I would expect to see that when the filter is started via the quick settings tile, that you can access at the top of the notification drawer. Maybe you've accidentally tapped it, or miui has a bug which is triggering it randomly?

May be miui ?!

@islam2hamy
Copy link
Author

islam2hamy commented May 26, 2022

@islam2hamy
Copy link
Author

I will remove the app quick tile , and get the new log

@islam2hamy
Copy link
Author

There is no log until now

@islam2hamy
Copy link
Author

No more log

@smichel17
Copy link
Member

Is the bug fixed?

@islam2hamy
Copy link
Author

islam2hamy commented May 29, 2022

Is the bug fixed?

Can you do anything about using app tile in the quick settings ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants