[Android Software/Hacking General [Developers Only]] Tech N You:
EDIT 2 : WAIT NO MORE! Thanx to our friend [MENTION=4482551]joeldroid[/MENTION] for his AMAZING TOOL that can batch deodex lollipop files.!

Head over HERE and learn more about it. It is in early stages but works perfectly! ;)

EDIT : I didn't made these tools as I said I compiled (gathered) a set of tools and wrote the guide and so mentioned on XDA Portal that I created a "Quick Guide" please refer that point. Credit goes to the devs of these tool creator. I am extremely sorry for my ignorance but I don't know the devs, please PM me your names so I can give proper credits.

A related guide to this can be found here on this blog, here is the link http://softdx.kr/220200813802

Hello Guys,

I am back with another exciting guide. Deodex lollipop apps and jar's now successfully.! This tool can be useful for ROM developers, chefs and themers and for those who can port apps.

Now on XDA Portal :D : http://www.xda-developers.com/android/deodex-lollipop-system-apps-with-ease/

I compiled together a set of tool to deodex Lollipop. I'll be attaching it at the end of the thread.

Well now lets get to it.

As we know in Android 5.0 Lollipop framework, app, priv-app folder we have * .apk files and * .jar file, and subsequently when you look at the sub-folder called * .odex files they have a specific folder for art runtime in order to compress into two modes.

* odex.art.xz -> The art mode to native file.

* .odex.xz -> 7zip * .odex appears when you unzip the file.

* .odex.xz unpack the file compression, uses the * .odex file.

unless the ARM is compressed folder * .odex

So in order to deodex files we need this deodex tool and your apk along with *.odex.xz.

Procedure

1) Extract the attached 7z file to desktop and hold right shift key and right click mouse button, you'll see "Open Command Prompt here" click on it.

2) Now a command prompt window will open. Now place you .apk and .odex.xz file there and type "7za x *.odex.xz " and press enter. This will lead to xz uncompressing and output file we will recieve as an odex, though a new format odex will be given in output so we need oat2dex converter

3) Now enter this command "oat2dex.bat *.odex and press Enter. With this command, you confirm that there is OAT file and DEX file header present. Note if you face any errors during this command you'll unfortunately have to give up as that apk won't be converted.

4) Now assuming you got no error in converting enter this command "oat2dex.bat *.odex temp.dex. This command will will you give you your required output ,i.e. .temp.dex. file is created, it is odex file with the old structure.

5) Now using the baksamli / smali to De-Odex use this command "java -jar baksmali-2.0.3.jar -a 21 -x temp.dex -o deodex". As you all know this command will decompile dex and as a result we will find find a deodex output folder without any error.

6) Now to compile the output back to classes.dex use this command "java -jar smali-2.0.3,jar -a 21 deodex -o classes.dex".

7) Now to put classes.dex into apk use this command "7za u -tzip *.apk classes.dex"

Hope this guide makes you to deodex your required file(s) properly :)

P.S. I am not big of a dev and this guide may contain a number of errors as this took me around 2 hours to figure out the proper way to write this guide :P, if you spot any error please do help me correcting it.

I am writing a program that can batch deodex all files, but as I said I am no dev :P Hope someone can do this to write a program to batch deodex.

Please hit like if this helped you :) :fingers-crossed:

Any suggestion(s) are welcome.:laugh: