FORUMS
Remove All Ads from XDA

[GUIDE]How to DEODEX Apps Using ONLY Android Phone.

281 posts
Thanks Meter: 190
 
By LetJect, Senior Member on 24th November 2013, 08:54 PM
Post Reply Email Thread
Hello everyone...
First thing.. sorry for my Bad English..
Many times it happens that we want to install app from another rom which may be odexed...or we don't have PC/laptop to deodex app...
But now using only Android phone it is possible to deodex app ...
What you need is..
[1] Rooted android phone.
[2] any advance file manager installed.
[3] apktool installed on your phone :
Steps to install apktool on android:
1) Download apktool 4.1.1 apk from link:
http://code.google.com/p/apktool/dow...1.apk&can=2&q=

2) download apktool4.1_armel.zip from link: http://code.google.com/p/apktool/dow...l.zip&can=2&q=

3) extract above zip file ...you will get apktool folder.
Place apktool folder in root of SD card..

4) now install apktool apk and give it root permission...

5) now go to /system/framework/
And click on framework_Res.apk and list will come..now select import as framework...
Now select twframework.apk(if present) and again import it as framework....

6) Now you are ready to use apktool....

Steps to deodex apps:
[1] Make a folder on sdcard.and place the file you want to deodex and their respective odex file..

[2] now click on appname.apk file and select decompile all and wait till complete.
After completion you will see new folder namely appname_src.
Similarly click on appname.dex and select decompile all...after completion you will see folder appname_odex..

[3] Now go to any file manager.And open appname_src folder ...and create new folder having name "smali" (without quotes).

[4] Now go to folder apkname_odex and copy / move all files inside that folder to apkname_src/smali/here...

[5] now go to apktool apk and click on folder apkname_src and select recompile all....
After recompile process complete ..
There will be new apk in folder named appname_src.apk...

[7] now you have to sign that apk file..you can sign it by either zip signer apk or by clicking that apk and then selecting sign apk option ....

NOW INSTALL APK AND ENJOY......

If you have any problem please post here..
And You can press thanks....
Sent from my GT-S5360 using xda app
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1385324339841.jpg
Views:	9137
Size:	14.2 KB
ID:	2412406   Click image for larger version

Name:	uploadfromtaptalk1385325001764.jpg
Views:	9165
Size:	17.2 KB
ID:	2412434  
The Following 25 Users Say Thank You to LetJect For This Useful Post: [ View ] Gift LetJect Ad-Free
 
 
25th November 2013, 02:58 PM |#2  
Member
Flag Mumbai
Thanks Meter: 8
 
More
Haven't tried yet bt this was what i was searching for.....will report soon

Sent from my GT-S5360 using Tapatalk 2
The Following User Says Thank You to delroydsouza For This Useful Post: [ View ] Gift delroydsouza Ad-Free
3rd December 2013, 02:24 PM |#3  
micmars's Avatar
Recognized Contributor
Flag Tampa Bay
Thanks Meter: 19,283
 
More
This Works Quite Well...
Quote:
Originally Posted by LetJect

Hello everyone...
First thing.. sorry for my Bad English..
Many times it happens that we want to install app from another rom which may be odexed...or we don't have PC/laptop to deodex app...
But now using only Android phone it is possible to deodex app ...
What you need is..
[1] Rooted android phone.
[2] any advance file manager installed.
[3] apktool installed on your phone :
Steps to install apktool on android:
1) Download apktool 4.1.1 apk from link:
http://code.google.com/p/apktool/dow...1.apk&can=2&q=

2) download apktool4.1_armel.zip from link: http://code.google.com/p/apktool/dow...l.zip&can=2&q=

3) extract above zip file ...you will get apktool folder.
Place apktool folder in root of SD card..

4) now install apktool apk and give it root permission...

5) now go to /system/framework/
And click on framework_Res.apk and list will come..now select import as framework...
Now select twframework.apk(if present) and again import it as framework....

6) Now you are ready to use apktool....

Steps to deodex apps:
[1] Make a folder on sdcard.and place the file you want to deodex and their respective odex file..

[2] now click on appname.apk file and select decompile all and wait till complete.
After completion you will see new folder namely appname_src.
Similarly click on appname.dex and select decompile all...after completion you will see folder appname_odex..

[3] Now go to any file manager.And open appname_src folder ...and create new folder having name "smali" (without quotes).

[4] Now go to folder apkname_odex and copy / move all files inside that folder to apkname_src/smali/here...

[5] now go to apktool apk and click on folder apkname_src and select recompile all....
After recompile process complete ..
There will be new apk in folder named appname_src.apk...

[7] now you have to sign that apk file..you can sign it by either zip signer apk or by clicking that apk and then selecting sign apk option ....

NOW INSTALL APK AND ENJOY......

If you have any problem please post here..
And You can press thanks....
Sent from my GT-S5360 using xda app

Your instructions are clear and precise. Thank you for this wonderful tool, it works quite well.

I do have a few questions:

Do the framework-res files (TouchWiz and regular) need to be imported each time one decompiles/recompiles an odexed apk, or is once enough?

Also, where does the app leave its folders while it does its work? I noticed that while running the app, it appeared to pull the framework files into subfolders. Are these files left on the phone's internal storage, root of the phone, or removed after a session? These questions, of course, are related, but the bottom line is I am trying to understand the application's impact on resources and memory.

Thanks for your help!
The Following User Says Thank You to micmars For This Useful Post: [ View ] Gift micmars Ad-Free
3rd December 2013, 03:40 PM |#4  
LetJect's Avatar
OP Senior Member
Flag sonesangavi
Thanks Meter: 190
 
More
Quote:
Originally Posted by micmars

Your instructions are clear and precise. Thank you for this wonderful tool, it works quite well.

I do have a few questions:

Do the framework-res files (TouchWiz and regular) need to be imported each time one decompiles/recompiles an odexed apk, or is once enough?

Also, where does the app leave its folders while it does its work? I noticed that while running the app, it appeared to pull the framework files into subfolders. Are these files left on the phone's internal storage, root of the phone, or removed after a session? These questions, of course, are related, but the bottom line is I am trying to understand the application's impact on resources and memory.

Thanks for your help!

1) no need to import framework files each time..just import it once.
If you changed the rom then you have to import new framework files of that rom..
2) app creates the files for each app in storage.
After editing, odexing or deodexing app just delete the folders like appname_src....

Sent from my GT-S5360 using xda app...
3rd December 2013, 05:26 PM |#5  
micmars's Avatar
Recognized Contributor
Flag Tampa Bay
Thanks Meter: 19,283
 
More
Quote:
Originally Posted by LetJect

1) no need to import framework files each time..just import it once.
If you changed the rom then you have to import new framework files of that rom..
2) app creates the files for each app in storage.
After editing, odexing or deodexing app just delete the folders like appname_src....

Sent from my GT-S5360 using xda app...

Thank you sir. The app works well, has some minor error messages with the phone and contacts apps, but this may be unrelated to your app. Overall this is an outstanding resource.

Thank you very much.

Sent from my SM-N900P using Xparent BlueTapatalk 2
4th December 2013, 03:15 AM |#6  
kumar akarsh's Avatar
Senior Member
Thanks Meter: 44
 
More
nice guide!!!!!!!!
5th December 2013, 04:05 AM |#7  
hippiesky's Avatar
Senior Member
Thanks Meter: 105
 
More
Quick question, how long does it usually take to decompile?
The Following User Says Thank You to hippiesky For This Useful Post: [ View ] Gift hippiesky Ad-Free
5th December 2013, 07:21 AM |#8  
LetJect's Avatar
OP Senior Member
Flag sonesangavi
Thanks Meter: 190
 
More
Quote:
Originally Posted by hippiesky

Quick question, how long does it usually take to decompile?

Actually it depends upon app size usually 1 min..

Sent from my GT-S5360
5th December 2013, 12:27 PM |#9  
hippiesky's Avatar
Senior Member
Thanks Meter: 105
 
More
Thanks but this is all that's popping up

/data/data/per.pqy.apktool/mydata/apktool.sh: /data/data/per.pqy.apktool/lix/jvm/java-7-openjdk-armhf/jre/bin/java: not found
5th December 2013, 01:16 PM |#10  
LetJect's Avatar
OP Senior Member
Flag sonesangavi
Thanks Meter: 190
 
More
Quote:
Originally Posted by hippiesky

Thanks but this is all that's popping up

/data/data/per.pqy.apktool/mydata/apktool.sh: /data/data/per.pqy.apktool/lix/jvm/java-7-openjdk-armhf/jre/bin/java: not found

Sorry dude ...
But I never have such problem...
You follow whole procedure correctly?

Sent from my GT-S5360
5th December 2013, 01:52 PM |#11  
hippiesky's Avatar
Senior Member
Thanks Meter: 105
 
More
Quote:
Originally Posted by LetJect

Sorry dude ...
But I never have such problem...
You follow whole procedure correctly?

Sent from my GT-S5360

Yup oh well thanks
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes