GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > GSM & CDMA Phones / Tablets Software & Hardware Area > Android based Phones / Tablets > Android Development and Modding


Reply
 
LinkBack Thread Tools Display Modes
Old 12-10-2014, 06:16   #1 (permalink)
Super Moderator
 
Join Date: Jul 2008
Location: Villa del rosario/Nsd Colombia
Posts: 3,605
Member: 813309
Status: Offline
Thanks Meter: 1,912
[GUIDE] [TOOL] Android L 5.0 (Lollipop) deodex tool for windows! Oat2dex convertor.


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.
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"

oat2dex - Download - 4shared
  Reply With Quote
The Following 4 Users Say Thank You to Braycel For This Useful Post:
Show/Hide list of the thanked
Old 12-10-2014, 06:17   #2 (permalink)
Super Moderator
 
Join Date: Jul 2008
Location: Villa del rosario/Nsd Colombia
Posts: 3,605
Member: 813309
Status: Offline
Thanks Meter: 1,912
For Example

Say we need to deodex SemcVideo.apk
Keep SemcVideo.odex in the folder and then

1) 7za x SemcVideo.odex.xz
To decompress the compressed files that SemcVideo.odex has and to use them for later purpose.

Then, using the oat2dex tool*
2) oat2dex.bat SemcVideo.odex
With this command, you confirm that OAT file and DEX file header is present.
If a file error occurs here it will not convert.

In order to convert the file name to dex format.
3) oat2dex.bat SemcVideo.odex temp.dex
temp.dex file is created, it is odex file with the old structure.

Now, using the baksamli / smali to De-Odex.
4) java -jar baksmali-2.0.3.jar -a 21 -x temp.dex -o deodex
If a deodex folder is created without any error during Decompile, next step is to pack it properly.

Now, the recompiling process to generate classdex.dex file.
5)java -jar smali-2.0.3.jar -a 21 deodex -o classes.dex
Now, without any error a classes.dex file is generated.

Now to add this in apk
6) 7za u -tzip SemcVideo.apk classes.dex
This will update SecVideo.apk video files with file newly created classes.dex

Hope this helps.
  Reply With Quote
The Following 5 Users Say Thank You to Braycel For This Useful Post:
Show/Hide list of the thanked
Old 12-19-2015, 11:05   #3 (permalink)
Insane Poster
 
Join Date: Sep 2013
Location: ke
Posts: 89
Member: 2025275
Status: Offline
Thanks Meter: 71
Donate money to this user
Does this work for all 5.0 (Lollipop) ?
  Reply With Quote
Old 01-08-2016, 09:49   #4 (permalink)
Freak Poster
 
Join Date: Oct 2010
Location: india gujrat ahmeadabad
Posts: 406
Member: 1429214
Status: Offline
Sonork: 786
Thanks Meter: 76
hello any all bro database file hepl me

Micromax_A102_ZAW1800G_060A_V8_2_5 (8GB+1GB database file missing in firmware

this version databas file help
  Reply With Quote
Old 03-28-2017, 05:30   #5 (permalink)
Junior Member
 
Join Date: Mar 2017
Location: Mumbai
Posts: 11
Member: 2699307
Status: Offline
Thanks Meter: 3
How to use??

Please Write the step by step guide on how to use this tool.

Thanks!!!
  Reply With Quote
Old 03-28-2017, 14:42   #6 (permalink)
No Life Poster
 
.:D:.'s Avatar
 
Join Date: Apr 2016
Posts: 1,993
Member: 2561651
Status: Offline
Sonork: 100.*******
Thanks Meter: 292
brother can you explain me in short , what,s the advantage of dedoex ???
  Reply With Quote
Old 04-13-2017, 15:31   #7 (permalink)
Junior Member
 
Join Date: Mar 2016
Location: Uganda
Posts: 4
Member: 2549743
Status: Offline
Thanks Meter: 0
its quite hectic but very fun for it really kills boredom and bring real time interface
  Reply With Quote
Old 04-26-2017, 11:21   #8 (permalink)
Crazy Poster
 
Join Date: Jun 2015
Location: Bangladesh
Posts: 53
Member: 2414437
Status: Offline
Thanks Meter: 8
How To Use This Tool
  Reply With Quote
Old 06-17-2017, 14:19   #9 (permalink)
Junior Member
 
Join Date: Jul 2014
Posts: 10
Member: 2218309
Status: Offline
Thanks Meter: 3
how do i use it and where pls?
  Reply With Quote
Old 07-14-2017, 06:36   #10 (permalink)
Junior Member
 
Join Date: Jul 2017
Location: USA
Posts: 1
Member: 2736439
Status: Offline
Thanks Meter: 0
Does someone use it? How does it work?
  Reply With Quote
Old 07-31-2017, 07:56   #11 (permalink)
Freak Poster
 
Salman725626's Avatar
 
Join Date: Nov 2015
Location: Pakistan
Age: 24
Posts: 443
Member: 2488001
Status: Offline
Sonork: 100.1669288
Thanks Meter: 295
how to use this tool
  Reply With Quote
Old 01-09-2019, 11:37   #12 (permalink)
Junior Member
 
Join Date: Jan 2019
Location: India
Posts: 3
Member: 2886968
Status: Offline
Thanks Meter: 1
The tool needs an update version!
  Reply With Quote
Old 08-19-2021, 22:48   #13 (permalink)
Junior Member
 
Join Date: May 2021
Location: Pakistan
Posts: 12
Member: 2988802
Status: Offline
Thanks Meter: 2
GSM & CDMA Phones / Tablets Software & Hardware Area

Thanks for this information
  Reply With Quote
Old 07-08-2023, 12:42   #14 (permalink)
Junior Member
 
Join Date: Apr 2014
Location: Pakistan
Posts: 5
Member: 2170476
Status: Offline
Thanks Meter: 0
Thanks

Thanks for informing
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 



All times are GMT +1. The time now is 21:28.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.18967 seconds with 8 queries

SEO by vBSEO