[Tool/Utility] JoelDroid Lollipop Batch Deodexer V 2.5 [Updated 18 Apr 2015]

Search This thread
G

Guestx00423

Guest
Repacking to system.img.ext4

I have successfully De-Odexed my Samsung stock rom, I extracted from the tar.md5 and got system.img.ext4 and used ext4 unpacker to unpack and imported the folder to the application to de odex but now I do not know how to make it system.img.ext4 back again in order to flash odin file.
 

Little Rooster

Senior Member
Feb 27, 2016
126
26
When I extract the orig SGS4 Lollipop Rom, there are no Subfolders. So I can not choose a "System" Folder to deodex.

Where can I find instructions how to deodex the Rom??
What must I do??
Is there a step by step manual somewhere?

Can I deodex a Nandroid backup of my rom? Or must I deodex the original Lollipop rom and then install everything again?

Thanx for infos,
Foh
 

Attachments

  • SGS4-LollipopRom.jpg
    SGS4-LollipopRom.jpg
    64.8 KB · Views: 63

Ticklefish

Inactive Recognized Themer
Oct 27, 2011
6,773
8,633
Hampshire, UK
When I extract the orig SGS4 Lollipop Rom, there are no Subfolders. So I can not choose a "System" Folder to deodex.

Where can I find instructions how to deodex the Rom??
What must I do??
Is there a step by step manual somewhere?

Can I deodex a Nandroid backup of my rom? Or must I deodex the original Lollipop rom and then install everything again?

Thanx for infos,
Foh

This is really meant to deodex the system folders that will be on your phone once you've flashed/installed/whatever your rom. There are three main ones: "/system/framework/", "/system/app/" and "/system/priv-app/". These need to be copied into a particular folder on your computer, which you'll point this tool to.

Usage
  1. Make sure Java is installed and Java Path Variable is set in your PC
  2. Due to the nature of Java tools, run the app from a path where there is no spaces, like D:\JBD
  3. Unzip the Odexed rom zip, to say D:\MyRom (for example)
  4. So within the folder D:\MyRom there will be subfolder "system" and within system folder, app, priv-app and framework folders must be present, you should select "system"
  5. Now run the app, after Java check, it will prompt you to select a folder where Odex files are found, you should select D:\MyRom
  6. If your rom is Odexed and your selection was correct (refer the folder structure image above step), the app will show you how many files will be DeOdexed, now follow the on screen instructions.
  7. Sit back and relax and wait till the app finishes DeOdexing your rom.


You can either get those folders from your phone or you'll need to find them in whatever file you're flashing. In your case I suspect you'll find them inside "system.img.ext4". Have a look here to see one way to do that: https://www.theandroidsoul.com/extract-system-img-windows-pc/.
I haven't used any of the tools mentioned on that link so, as always when using unknown software, make sure you take it carefully.

Best of luck!
 
  • Like
Reactions: Little Rooster

Little Rooster

Senior Member
Feb 27, 2016
126
26
Thanx for explaining. But I am afraid it will still leave some difficulties, and leaks of understanding for me.
The manual says "unzip the rom". I think I must do it on the PC?
You say, "install on phone, and copy the files to the computer, then deodex"
Do I understand right?
I think when I deodex the files on the conputer, and then copy them back to the phone, I am awaiting lots of trouble with permissions.

Anyway ...
Meanwhile I found out, that it's maybe more clever to install Magisk, and then install the exposed framework via Magisk. I think it will not be not neccessary to deodex this way?! I hope this will work out ...

ps: I forgot to mention, that I wanted to deodex the rom only to use the Xposed Frmework, because the framework doesn't work on odexed roms with my S4. That's the only reason.
 
Last edited:

Ticklefish

Inactive Recognized Themer
Oct 27, 2011
6,773
8,633
Hampshire, UK
Thanx for explaining. But I am afraid it will still leave some difficulties, and leaks of understanding for me.
The manual says "unzip the rom". I think I must do it on the PC?
You say, "install on phone, and copy the files to the computer, then deodex"
Do I understand right?
I think when I deodex the files on the conputer, and then copy them back to the phone, I am awaiting lots of trouble with permissions.

Anyway ...
Meanwhile I found out, that it's maybe more clever to install Magisk, and then install the exposed framework via Magisk. I think it will not be not neccessary to deodex this way?! I hope this will work out ...

ps: I forgot to mention, that I wanted to deodex the rom only to use the Xposed Frmework, because the framework doesn't work on odexed roms with my S4. That's the only reason.

I've just sent you a PM about deodexing.

I don't know much about Magisk or Xposed though, sorry. I've never used either of them.
 
  • Like
Reactions: Little Rooster

Top Liked Posts

  • There are no posts matching your filters.
  • 291
    attachment.php


    Hey Guys,
    Ever since the tutorial for Lollipop deodexing was posted on XDA portal, I was working on a batch deodex tool.
    And finally it is complete.

    Update...
    I'm bit stuck with my personal life hence I do not have the time to manage this project , anyone who likes to take it over can do so.
    The code is open source.
    Pull requests are welcome...
    Update 2
    I will be updating this project whenever I have time, in the meantime if anyone wants to join this project feel free to PM me and I can add you to the project. Code will remain open source :)

    Lollipop Batch Deodex Source Code

    Also featured on XDA Portal

    Features
    1. Checks if the prerequisites are installed.
    2. Displays the count of Odexed Apps. Priv-Apps and Framework Apps before DeOdexing
    3. DeOdexes System Apps, Priv-Apps and Framework Apps in Batch Mode
    4. Automatically Zipaligns deodexed files

    Credits
    • Just wanted you guys to know that the credit for finding out this method goes for the poster of this article HERE (it is in Korean btw, I think it is Korean do correct me if I'm wrong).
    • The credit for translating and posting on XDA goes to @Tech N You
    • Thanks to @Golvfor all the help in fixing oat conversion issues
    • Thanks to @_riddle for his amazing oat2dex tool

    Pre-Requsites

    Usage
    1. Make sure Java is installed and Java Path Variable is set in your PC
    2. Due to the nature of Java tools, run the app from a path where there is no spaces, like D:\JBD
    3. Unzip the Odexed rom zip, to say D:\MyRom (for example)
    4. So within the folder D:\MyRom there will be subfolder "system" and within system folder, app, priv-app and framework folders must be present, you should select "system"
    5. Now run the app, after Java check, it will prompt you to select a folder where Odex files are found, you should select D:\MyRom
    6. If your rom is Odexed and your selection was correct (refer the folder structure image above step), the app will show you how many files will be DeOdexed, now follow the on screen instructions.
    7. Sit back and relax and wait till the app finishes DeOdexing your rom.

    Download
    71
    Changelog

    Version 2.5
    • Works with both Java 7 and 8
    • Ignorelist option removed (causes lots of permission issues)
    Version 2.5 Beta
    • Lots of code optimization
    • Much Better Java detection, also checks which version of Java
    • Better cleanup
    • 64 bit rom support, no need to rename files, detects automatically
    • Added ignore list as some apps cause issues with deodexing
    • Latest oat2dex v7

    Version 2.4
    • Lots of code optimization
    • Better Java detection
    • Deodexed files are automatically zipaligned

    Version 2.3
    • Small validation bug fixes
    • Optimized code

    Version 2.2
    • Deodexing Boot Oat Files, now this is a complete deodex solution
    • Much faster and optimized deodex process
    • Code optimizations and bug fixes

    Version 2.1
    • Better working directory cleanup on exit
    • Added logging, logs should appear in your desktop

    Version 2.0
    • Fixed Critical bug, now rom boots and all deodexed files work
    • Full windows app, for user convenience
    • Multi-threading

    Version 1.1
    • Added Deodexing Framework apps support
    • Lots of Bug fixes
    • Added Easy folder selection by user
    • Better Deodex status reporting
    • Better Java check method

    Version 1.0
    • Initial Release
    22
    Additional Info

    reserved
    16
    Version 2.5 is out...

    version 2.5 is out, please see the change log.
    12
    New version released

    new version released, please check and post (any) issues.
    Make sure you take a nandroid backup before flashing the deodexed apps.

    There is a ignore list in applicationfolder/tools/DeodexIgnoreList.txt add any app FOLDER NAME if you want to exclude anything from the deodex process.