Home » Topic » What's the point of deodexing when ART uses oat format?

What's the point of deodexing when ART uses oat format?

Welcome. Forums BLOX2 Forum General What's the point of deodexing when ART uses oat format?

This topic contains 4 replies, has 2 voices, and was last updated by  Erick 3 weeks, 3 days ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #573

    Erick
    Participant

    Well, it’s as I said, what’s the point of combining the unused ones into the apk files when oat is the used format and oden is marked as ignored?

    #575

    ieatgravity
    Keymaster

    The reason why BLOX2core was deodexed is simply because back in the day it was common practice (at least from what I saw in forums years ago) for custom rom developers to do as it allows to keep all the .apks nicely packed for moving, theming and modifying. This doesn’t seem to be the case anymore, with as Android itself has progressed A LOT since I used to do any dev work. Since creating BLOX2core, working with Draco, we have realized that we can still theme and easily modify system apk files to our standard while odexed (on that note, keep a look out for DraX UI Addons which will be released soon). After doing extensive research and user testing we have left DraX completely odexed which adds to the ROMs smoothness.

    #579

    Erick
    Participant

    Yes, I believe the reason this happens is because dex2oat has to pull the dex2oat and all of its pointers and the like out of the apk in order to compile it for the ART runtime. When is combined with the apk, it has to do extra work to get it out. If you have multiple dex files, they are combined into an oat file and compiled into a native elf.

    So, since it’s compiled into an elf file, it will run faster that trying to keep virtualized data in an odex inside of the apk that has to be read each time.

    #580

    Erick
    Participant

    Sorry, I noticed that my first post has a few typos in it. I’m posting from my phone and using SwiftKey to write. It’s not the most accurate.

    #581

    Erick
    Participant

    Sorry, I was incorrect in what I said. I meant that, since deodexing combines the oden with the apk and that art compiles the dex files into elfs instead, then the deodexed files essentially have useless information. Teaches me to eat and type at the same time.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Skip to toolbar