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

Battery Optimisation Status #72

Closed
TheRealMystic opened this issue Jul 20, 2022 · 15 comments
Closed

Battery Optimisation Status #72

TheRealMystic opened this issue Jul 20, 2022 · 15 comments
Labels
enhancement New feature or request
Milestone

Comments

@TheRealMystic
Copy link
Collaborator

TheRealMystic commented Jul 20, 2022

This is an extension of the suggestion made here:

#71

Can we add battery optimisation status and move internet access status to a new place:

iMarkup_20220721_015915

OR

iMarkup_20220721_015958

This section is usually empty and unused. It can be utilised to show more information. It will also help with the UI suggestion referenced above.

@TheRealMystic TheRealMystic added the enhancement New feature or request label Jul 20, 2022
@TheRealMystic
Copy link
Collaborator Author

TheRealMystic commented Jul 21, 2022

Suggestion for icon indicating battery optimisation status:

GridArt_20220721_122903293

@TheRealMystic
Copy link
Collaborator Author

TheRealMystic commented Jul 21, 2022

Infinity icon (downloaded from internet):

Unlimited

@d4rken
Copy link
Member

d4rken commented Jul 23, 2022

I'm not designing icons and if you are not either, then pick something existing from https://materialdesignicons.com/ 😉

@d4rken
Copy link
Member

d4rken commented Jul 23, 2022

Optimized/Not-Optimized seems to have an API, but I don't see how "managed by System" can be detected:
https://stackoverflow.com/questions/39256501/check-if-battery-optimization-is-enabled-or-not-for-an-app

@TheRealMystic
Copy link
Collaborator Author

If optimsed and not-optimised status can be detected, then anything that cannot be detected can be safely assumed to be 'Managed by System'.

@TheRealMystic
Copy link
Collaborator Author

I'm not designing icons and if you are not either, then pick something existing from https://materialdesignicons.com/ 😉

Sure. I'll go through them and pick my choices.

@TheRealMystic
Copy link
Collaborator Author

Here are my current picks:

Battery Optimised

Battery Not Optimised

Battery Managed by System

@TheRealMystic
Copy link
Collaborator Author

Alternative suggestions:

Battery Optimised 2

Battery Not Optimised 2

@TheRealMystic
Copy link
Collaborator Author

I would prefer the alternative suggestions above because the signs at the bottom right communicate what it is about, as well as maintain UI consistency with the icon for 'Battery Managed by System'.

@d4rken
Copy link
Member

d4rken commented Jul 25, 2022

If they are from materialdesignicons.com can you please link the entry? I need the android vector drawable format not .png to add it to the app.

@TheRealMystic
Copy link
Collaborator Author

I wanted to send you the link first, but couldn't find it:

Screenshot 2022-07-25 at 14 00 21

@TheRealMystic
Copy link
Collaborator Author

I have downloaded the Vector Drawable XML files. Here they are:

Battery Icons Vector Drawable.zip

@d4rken
Copy link
Member

d4rken commented Jul 25, 2022

Just use the perma link 😉
Screenshot 2022-07-25 at 10 37 17

@TheRealMystic
Copy link
Collaborator Author

Battery Optimised: https://materialdesignicons.com/icon/battery-check

Battery Not Optimised: https://materialdesignicons.com/icon/battery-remove

Battery Managed by System: https://materialdesignicons.com/icon/battery-lock

@TheRealMystic
Copy link
Collaborator Author

TheRealMystic commented Jul 25, 2022

An observation to keep in mind:

Different OEMs are using different terminology, so we have to choose terms that convey the info unambiguously.

Screenshot_20220725-212227_Settings

The 3 states of battery management:

  1. Managed by System (some OEMs like Samsung call this as 'Optimised'; OnePlus calls this 'Intelligent Control'): The operating system will monitor and control battery consumption of apps based on usage. Recommended for most apps.

  2. Restricted: Apps will NOT be allowed to consume battery in the background. This means such apps won't be allowed to run in the background. Recommended for apps that are not used frequently, and for those that do not have push notifications.

  3. Unrestricted: Apps will be allowed to run unhindered in the background. This can drain battery. Recommended for apps that perform continuous or frequent backups or syncs (e.g. Google Photos), very frequently used apps (email, chat, sms, etc.), as well as for those that have a persistent notification.

@d4rken d4rken added this to the v1.0.0 milestone Jul 27, 2022
@d4rken d4rken closed this as completed in 7b5dc37 Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants