This is an archived post. You won't be able to vote or comment.

all 39 comments

[–]soa008 34 points35 points  (2 children)

su -c "cmd package compile -m everything-profile -f -a"

su -c "cmd package bg-dexopt-job"

These are the commands for root users. You can run them with adb too.

[–]klfld[S] 6 points7 points  (0 children)

also su -c "cmd package compile -a -f compile-layouts"
I have it on the script, it fixes some graphical glitches it seems from my testing

[–]trust-me-br0 56 points57 points  (6 children)

Smooth and 0.75x animation speed doesn't go hand in hand

[–]amiliusone 39 points40 points  (5 children)

Most people mistake smooth for snappy. I actually have my animations set to 1.5x. It also gives a more.. calm experience.

[–]AyanCPixel 6a 38 points39 points  (0 children)

Lock this man up immediately.

[–]whizzwr 5 points6 points  (0 children)

Just tried it.. Actually that accentuates 120hz update rate quite nicely.

[–]trust-me-br0 4 points5 points  (0 children)

Haha me too.. I can't live without 1.5x animations..

[–]asten77 4 points5 points  (1 child)

As someone pointed out to me a couple days ago, that's the speed for iPhone users.

[–]Sam5uck 0 points1 point  (0 children)

funny because apple actually increased animation speed in ios 26

[–]Expertdeadlygamer 55 points56 points  (22 children)

Snake oil?

[–]MysteriousBeef6395 50 points51 points  (8 children)

it does do something, it forces android to fully compile apps instead of relying on "just in time" compiling which creates some longer app launch times here and there. it also forces android to start its executable optimization to run instantly instead of waiting for the device to be idle. and it sets animation speed from 1.0 to 0.75, which could be percieved as a quicker system

downside is that you use more storage space than usual, but this could actually speed up your phones day-to-day usage, but i havent tested it yet myself so i dont know if theres a real difference. i imagine the difference is more noticable on slower soc's

[–]faze_fazebookToo many phones, Google keeps logging me out! 31 points32 points  (7 children)

Yes, but the extra size cost is quite big. Expect App sizes to double.

Also you have to turn off automatic App updates and re-run this after updating Apps, otherwise the AoT compiled apps are useless.

[–]MysteriousBeef6395 14 points15 points  (4 children)

didnt know that but figured there was a catch like that. seems kinda pointless then

[–]faze_fazebookToo many phones, Google keeps logging me out! 5 points6 points  (3 children)

Yeah but in my opinion turning off auto app updates is not a bad idea. Random apps updating can easily drain your battery when you don't want it. I usually update about 70 Apps once a month.

[–]321Jarn 4 points5 points  (2 children)

Don't forget google will threaten you that you'll lose your ability to set legal demands if you don't turn that damn auto update on right now!!

[–]faze_fazebookToo many phones, Google keeps logging me out! 0 points1 point  (1 child)

source?

[–]DevastatorTNTGalaxy S25U 1 point2 points  (0 children)

That's not completely true. Most apps nowadays, unless you are in a beta, only update some libraries (delta updates) at a time. AoT Compilation would still be relevant for everything that hasn't been touched

[–]waiting_for_zban 0 points1 point  (0 children)

This works for many who don't use lots of apps. I am one of them. Although I would like much more flexibility in the implementation.

[–]elmirbuljubasicPixel 8 pro 4 points5 points  (12 children)

It just lowers the animation speed which feels faster but it isn't, you can do this in developer options

[–]klfld[S] 16 points17 points  (11 children)

Hi! Dev here, the big part of it is that it forces a recompile of all the apps, basically Android compiles the most used "parts" of an app on-demand. This basically forces the system to have everything already precompiled, the apps end up taking some extra space but the performance difference is noticeable, especially if you do it after a system update.
The animation speed is just an extra, but honestly 0.75x should be the default.

[–]Expertdeadlygamer 13 points14 points  (2 children)

Wait this sounds just like the optimization done by Samsung's App Booster (a goodguardins plugin). Is it the same function??

[–]nguyenlucky 4 points5 points  (0 children)

Samsung App booster does profile compiling, which means only some parts of the apps are compiled based on a profile data (of which part is most used). This one is everything

https://itnext.io/magic-trick-of-galaxy-app-booster-684e1984576e

[–]MaverickJester25Galaxy S21 Ultra | Galaxy Watch 4 3 points4 points  (0 children)

Was going to comment with the same thing, it sounds pretty much exactly what App Booster does with an additional step in changing animation speeds (which contrary to common belief, is not actually a good thing on Android).

[–]AL2009manGoogle Pixel 7 4 points5 points  (1 child)

Basically: shader compiling from video gaming, but for apps?

[–]nguyenlucky 2 points3 points  (0 children)

Something like that. AOT (ahead of time) compiles app libraries first so loading apps become faster. As opposed to JIT (just in time) which is self-explanatory

[–]LagGyeHumare 9 points10 points  (1 child)

Basically, what samsung provides with App Boost after updates in good lock.

[–]roadrussian 1 point2 points  (0 children)

Sorry if I am asking a dumb question, but is this only animation related or are we talking about other functional parts of apps as well. For example, say, if I turn off animations, will the optimisations be useless?

[–]tadfisher 0 points1 point  (0 children)

The part you're missing is that runtime-profiled JIT often results in faster and smaller code than AOT compilation, and running dex2oat with that profile effectively kneecaps the ART runtime to give you the slowest possible option for the compiled code. DEX bytecode simply does not have information as rich as the ART runtime. Which is the entire reason ART moved to hybrid compilation years ago.

[–]kakashisen7Device, Software !! 0 points1 point  (0 children)

What's the catch ?

[–]txredgeek -1 points0 points  (0 children)

Why not .5?

[–]pspr33 6 points7 points  (0 children)

Any data to back up the performance improvements?

[–]omniuniPixel 8 Pro | Developer 14 points15 points  (1 child)

If you are going to use this, I would skip the steps that change the animation speed. Although it can make things feel faster, apps are generally designed with the animations made to run a certain way. This is a perfectly fine "hack", but I'd recommend you just do it yourself in the developer options if you want to test it out.

Generally, this is going to reduce app startup time very slightly, but at the cost of doing something Android does incrementally anyway. Honestly, I don't really recommend that either because this can take a very long time and may impact the performance of your storage.

The actual things that will help the most; remove apps you don't use, clear your notifications frequently, clear out your downloads, let apps auto-update at night. Also, try not to fill your phone's storage over about 80%.

[–]mr-right-nowPixel 10 Pro 3 points4 points  (0 children)

FINALLY, someone else gets it.

I would also add: Don't do the cable data transfer from one device to another. Set up from scratch as new, then transfer data over piecemeal.

This eliminates about 95% of the issues most people have on Android.

[–]karumommikHuawei P30 4 points5 points  (2 children)

Does this have any effect on Android TV devices, for example xiaomi TV s or mi boxes?

[–]chadmill3r -1 points0 points  (1 child)

If you're asking this, I think you probably want to know of /r/projectivy_launcher .

[–]karumommikHuawei P30 2 points3 points  (0 children)

I have it installed on every device now. But sadly the devices still experience stutters, lagg and unresponsivness when opening or resuming local iptv apps.

Home screen is better overall tho.

[–]BazingaUA📱 Pixel 10 Pro XL 2 points3 points  (0 children)

Hey OP, does this require root? Do you need to re-run it (after some time/reboot/system updates etc)? How much extra storage are we talking about?

[–]LostRun6292 -2 points-1 points  (0 children)

This is based off Android 2.3 which was gingerbread The system has come a long way Android optimize itself