monolith icon indicating copy to clipboard operation
monolith copied to clipboard

Part 2: Unknown option

Open jacbrooks opened this issue 2 years ago • 7 comments

I am on A14 on Pixel 7 Pro When the script gets to Part 2. It gets an error of "Error: Unknown option: --compile-layouts"

jacbrooks avatar Aug 24 '23 17:08 jacbrooks

Same issue on PixelOS A14 on Xiaomi 11 Lite NE 5G.

hunty-97 avatar Nov 06 '23 16:11 hunty-97

Same thing on PixelOS A14 on OnePlus 9RT

unwillinglyawesome avatar Nov 06 '23 18:11 unwillinglyawesome

Same error here on HyperOS A14 Xiaomi 13U

mk5566 avatar Dec 05 '23 09:12 mk5566

Run it separately: su -c cmd package compile -a --compile-layouts

DoulosTrieste avatar Dec 06 '23 02:12 DoulosTrieste

DoulosTrieste

I did run it separately, I use command line pm compile -a --compile-layouts and the --compile-layouts is a unknow option, even I type pm -h to see the documents there's no --compile-layouts option under compile, but I have no problem skipping this, all app runs smoothly

mk5566 avatar Dec 06 '23 04:12 mk5566

My stock miui android14 doesn't know the --compile-layouts option too but the other ones works just fine. It increased the art-cache size 2.5x and the whole art-cache and dalvik-cache takes up 7GB in total. It's way more than my xiaomi mibox.

Also I tried this tweak on my xiaomi MIBOX4 and it breaks wifi and bluetooth drivers for some reason. BT remote doesn't work and usb mouse or keyboard don't work either. I tried to reset the cache but it doesn't work without root so, I tried to re-do the default optimisations again but it didn't fix the problem. I had to factory-reset the mibox to fix the driver problem.

So, be careful doing this optimisation tweaks folks. Apperantly it could cause serious problems on some devices.

omerakgoz34 avatar Jan 24 '24 14:01 omerakgoz34

A14

adb shell
pm compile -a -f -m speed-profile
pm compile -a -f compile-layouts
pm bg-dexopt-job

NKid avatar Aug 13 '24 08:08 NKid