Giter VIP home page Giter VIP logo

Comments (7)

Lanchon avatar Lanchon commented on July 20, 2024 1

whatever version of android you are using might do a native compile on a maintenance schedule and maybe when charging, so you may need to wait for 2 days while charging at night. but there are also commands you can issue to force an optimize. i don't know much about android, especially recent ones; google and test. thanks!

from dexpatcher-tool.

Lanchon avatar Lanchon commented on July 20, 2024

from dexpatcher-tool.

ViRb3 avatar ViRb3 commented on July 20, 2024

haystack/patch-fileset:

    if [ "$name" == "core.jar" ] || [ "$name" == "core-libart.jar" ]; then
        error "patching core jars not yet supported by these scripts"
    fi

is what I was looking at. Just realized that I posted in the wrong repo, my apologies.

from dexpatcher-tool.

Lanchon avatar Lanchon commented on July 20, 2024

from dexpatcher-tool.

ViRb3 avatar ViRb3 commented on July 20, 2024

Haystack works splendidly on Oreo, ODEXed even. I only had to deodex my services.jar and then delete /system/framework/oat/arm64/services.odex
I tried to do the same for core-oj.jar, but it was a lot different:

  • no files under /system/framework/oat/arm64, but rather under /system/framework/arm64
  • no odex+vdex file, but rather boot-core-oj.oat, boot-core-oj.art and boot-core-oj.vdex (note the prefix)

I managed to deodex the jar using SmaliEx, but after replacing the original and deleting those 3 files under /system/framework/arm64, my phone doesn't boot...

I originally want to patch core.jar, but it seems like it is split in two files in Oreo, thus my attempts to patch core-oj.jar.

Any ideas how I could overcome this? Thank you!

from dexpatcher-tool.

Lanchon avatar Lanchon commented on July 20, 2024

Haystack works splendidly on Oreo

i've heard, but it is unsupported.

I only had to deodex my services.jar
I tried to do the same for core-oj.jar

nope!!! optimizing (odexing, quickening, compiling, whatever you wanna call it) is a global operation. you can't deodex and modify a single file! if you mod services.jar, you need to deodex everything that might depend on it (it will be odexed again on runtime) -ie, the complete android framework-, and reoptimize any apps you might have installed;

from dexpatcher-tool.

ViRb3 avatar ViRb3 commented on July 20, 2024

It now makes sense why there's a boot.oat file and a bunch of optimized files prefixed with boot-. I deodexed the whole framework and the ROM ran, indeed. Thanks so much for the explanations!
My last question is why is everything so utterly slow? Even after using the phone for an hour, performance is still far from the pre-optimized state. I do not recall such drastic performance issues when running a deodexed ROM.
Thanks!

from dexpatcher-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.