I found https://www.androidauthority.com/maximize-battery-life-882395/ but I don’t know if it applies to every device, or if I should charge my asus X00PD differently

21 points

I found this - increases battery life while apps open faster - confirmed via AccuBattery testing for a couple of weeks:

You can force ART compiler’s AOT(Ahead Of Time) compiler to force compile all the apps ahead of time instead of JIT(Just In Time) which compile apps on the fly when you open and use different parts of an app.

By default google uses a profile-based method to only compile the most used parts of an app. (You can find more info by reading the source which I’ve mentioned below)

Remember forcing compilation take some time depending on how many apps you have installed.

Only downside is this takes up little bit more storage space due to compiled .oat files are being larger in size compared to dex files.

For example for me, apps installed without forcing compilation takes about 30GBs of space in total and after compilation it takes about 39GB.

You can use this command to compile all the apps:

adb shell cmd package compile -m speed -f -a

permalink
report
reply
5 points

Oh wow, neat trick!

permalink
report
parent
reply
3 points

Does this need root?

permalink
report
parent
reply
2 points

Good one, you need root for this?

permalink
report
parent
reply
1 point

No root needed, just ADB. I use shizuku and an ADB app to do it once a week on the phone, takes 30-60mins

permalink
report
parent
reply
2 points

Wait you need to redo it constantly?

permalink
report
parent
reply
1 point

Might be something I do on my older pixel one

permalink
report
parent
reply
1 point

Nifty! Is there an option to selectively compile packages? So I could try it on the apps I use most often? 🤔

permalink
report
parent
reply
1 point

Yes - absolutely - just google the adb command and you should get all the infos you need!

permalink
report
parent
reply
1 point

Important thing to add here : Turn off automatic app updates. Otherwise the effect won’t last.

Also on a sidenote - when your phone randomly decides to update apps, it can wreck your battery.

permalink
report
parent
reply
18 points

Charge it whenever you need to, but heat is the battery’s biggest enemy. A slow charger is ideal since it generates less heat.

If your phone is plugged most of the time, you can consider setting a charge limit if you don’t typically use more than what limit is supported.

permalink
report
reply
11 points

I bring a booster pack if I’m going to be in a situation where my battery could die.

permalink
report
reply
9 points

Not a really good answer: I just stopped caring about it.

permalink
report
reply
2 points

This is the best answer, modern Android just gets it right with no intervention.

permalink
report
parent
reply
5 points

I use the accubattery app for setting charge alarm at 80%. My phone also has the option to pause charging at 85%. I don’t charge my phone overnight. I simply charge my phone once or twice a day when the battery gets to ~40%-50%.

permalink
report
reply

Android

!android@lemmy.world

Create post

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It’s fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

!android@lemmy.ml


Community stats

  • 2.9K

    Monthly active users

  • 1.6K

    Posts

  • 33K

    Comments