[Android Software/Hacking General [Developers Only]] lord-ralf-adolf:
[IMG="batch"]https://github.com/lord-ralf-adolf/Lordroid_Universal_Batch_deodexer/blob/master/res/images/logo.png?raw=true[/IMG]

Lordroid batch deodex ODTRTA !

One Deodexer To Rule Them All

​

*** Disclaimer
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Hi all :D

First words :

First of all I want to say that I am not a big software engineer I am just a guy who knows a little about something and wanna make something useful out of it.

Back story:

A friend of mine asked me to make him a GUI batch deodexer to help him in the process of making stock base custom roms so I decided if I am going to do this I am going to do it right ,I fire up eclipse and stared coding what you are gonna find in this is the result of it.

Note :

Please note that even though I tested it and it is working just fine , there may be bugs I didn't run into because lets face it I can't test it for all available devices and ROMs and all PC OSs there is just too much out there so I tried to make the software as OS independent as humanly possible by using only java libraries and binaries (byte code binaries) the only thing that I used native binaries for it is the zipalign binaries because there is no java library for that (if there is I am open to suggestions).

Description:

Lordroid batch deodexer ODTRTA One Deodexer To Rule Them All ,is a free software writen in JAVA that can deodex any android rom with ease ,all you have to do is point the system folder and click the Deodex Now button ! it runs under any OS that have JAVA JRE 8 and higher (see pre-required for more details about this limitation) ,it is compatible with all Roms SDK levels and know architectures but you should note that it support list is the same as smali/backsmali && oat2dex(smaliEX) support list all roms not compatible with them will not be supported by this software since it uses those softwares to do the job.

Pre-required

1 - JAVA JRE 7 or higher.

2 - JAVA PATH needs to be set follow those links for more informations Windows | Linux | Mac

3 - If you are going to work with roms that have squashfs the tool only provides it for windows if you are using linux or mac OS refer to the Manual for instructions of how to install the squashfs-tool.

4- Linux command line users ,X-server needs to be running even when using command line tool (fix in progress )

Main Features

Deodex any Rom from 1.6 and Above and YES 6.x is supported !

Supports all Roms arch arm ,arm64 ,mips ,mips64 ,x86,x86_64

Optional Zipalign all Apks after deodexing

Optional resign all apks after deodexing

Create a flashable zip of the deodexed Rom

the Software can use up to 4 Threads to speed-up the deodexing

Tools to only batch zippalign or sign apks in a given folder recursively

Can be used on any system as long as there is JAVA JRE 7 or higher

For Roms Lollipop and above the tool uses oat2dex to deodex if that tool fail we use the latest version of smali/baksmali to do the job which give a higher success rate

From version 1.00 now you can pull system folder from device directly and deodex it !

From v1.10 squashfs roms are supported please refer to the manual to make sure all dependencies are met !

Detects apks that are under framework no need to copy them to app or priv-app folders ;)

Multi Language English,French,Espagnol and Portuguese (PM me if you wanna translate or help with the spell errors ;) )

How to use (GUI) :

(any system with JAVA JRE 7 installed)

1 - Open the program using JAVA SE or from command line with java -jar lordroid-ODTRTA.jar

2 - Select a system folder framework folder and build.prop needs to be there app and priv-app are optional

3 - If the chosen folder is valid, the Deodex now button will be activated other wise a log with the error will

be printed in the log panel

4 - Click on the deodex now and wait for it :D

5 - When the deodex process is done you can either copy the deodexed file and do what ever you want or you can click on create flashable zip to create a zip flashable from recovery for more details on this feature see the guide lines on POST2.

6 - When done a log file will be saved under logs/yyyy-MM-dd_hh-mm-ss.log & a more detailed log wwill be saved as logs/yyyy-MM-dd_hh-mm-ss_full.log check it out to see what happens or just scroll in the log Panel to see the logs

7 - The tool now have a tool to batch zipalign/sign in a given folder recursively (this particular will only zipalign/sign no deodex will be made !).

How to use Command line :

_____________________________________________________________
| Lordroid One Deodexer To Rule'em All v1.20 |
|-----------------------------------------------------------|
| |
| USAGE : |
| java -jar Launcher.jar <source> [OPTIONS] |
|-----------------------------------------------------------|
| <source> can be either |
|-----------------------------------------------------------|
| PATH to System Folder exemple : /path/system |
| OR |
| e : to extract systemFolder directlly from device |
|-----------------------------------------------------------|
| |
| Options : |
|-----------------------------------------------------------|
| c : create a flashabe zip after deodexing the rom |
| z : zipalign every apk after deodexing it |
| s : sign every apk after deodexing |
| h : print this help page |
| please note that options should'nt be separated by spaces |
| |
|-----------------------------------------------------------|
| Exemple : |
|-----------------------------------------------------------|
| java -jar Launcher.jar /path/system zsc |
| this command will deodex and sign and zipalign |
| and then creates a flashable zip file |
| java -jar Launcher.jar e zsc |
| this command will extract and deodex |
| from connected device |
| then sign and zipalign |
| and then creates a flashable zip file |
| |
|-----------------------------------------------------------|
| NOTE : |
|-----------------------------------------------------------|
|extracted systems will be under extracted_system_folders |
|create flashable zip will be under flashable_zips_out |
|-----------------------------------------------------------|
| © Rachid Boudjelida 2016 |
| Software distributed under GPL V3 |
|___________________________________________________________|

Release notes

Screen Shots

Program in action

[YOUTUBE]fw2ZlxdJYDo[/YOUTUBE]

Download :

If you like this software consider rating this thread or just click the thanks button (means a lot to me and it's free :good: )

Download Latest version

Build from source

Never wait for for a release ever again !

in order to build you gonna need to have ant 1.7 or higher (any Os as long as you have java and ant)

Let create a folder to put the source code in it

mkdir deodexer

lets clone the repository to the created folder

git clone https://github.com/lord-ralf-adolf/Lordroid_One_Deodexer_To_Rule_Them_ALL.git deodexer

lets enter the folder

cd deodexer

# to make sure you repo is synced with the remote repo tape this command before building

git pull

# to build a for test type the command

ant

# to create a release .tar.gz archive type the command

# the tar.gz will be under re-dist folder

ant release

# to clean the repo

ant clean

Bug reports and suggestions:

Open an issue ticket on github or email me at : rachidboudjelida(at)gmail.com or PM me pull request are welcome.

Need quick assistance ? join #lordroid channel on freenode

Source code : https://github.com/lord-ralf-adolf/Lordroid_Universal_Batch_deodexer

Special Thanks :

@testwhat for smaliEX , @JesusFreke for smali/baksmali ,[MENTION=4661399]wertzPH[/MENTION] for testing and usefull feedbacks ,[MENTION=5535959]Rapha88[/MENTION] for Portuguese translations , ,[MENTION=5906141]pabloc97[/MENTION]

XDA:DevDB Information

Lordroid Batch deodex, Tool/Utility for all devices (see above for details)

Contributors

lord-ralf-adolf

Source Code: Lordroid_Universal_Batch_deodexer

Java docs: LOBDTRTA docs

XDA:DevDB Information

Lordroid One Batch Deodexer To Rule'em All, Tool/Utility for all devices (see above for details)

Contributors

lord-ralf-adolf

Source Code: https://goo.gl/RCWR4l

Version Information

Status: Stable

Current Stable Version: v1.27

Stable Release Date: 2016-04-04

Created 2016-02-11

Last Updated 2016-04-13