GUIDE
What will you Need:
ApkTool
Java JDK/JRE 32 bit
Terminal knowledge
Brain
Instructions
Extract zip folder to anywhere you choose. E.g: C:/android/apktool extracting the files to 'apktool' folder.
3.Now copy the apk to your Apk Tool folder.
2. Open your terminal
Your terminal will look like this...
C:\users\yourname>
Code:
[COLOR="Black"]cd.. → go back
cd.. android → go to this folder[/COLOR]
(Yes, it contains "..")
So you must be in your folder apktool (E.q: C:/android/apktool>)
3. Installing Framework
Code:
apktool if framework-res.apk
(framework-res.apk is only example.. You can type "apktool if SystemUI.apk",...)
4. Decompiling
Code:
apktool d framework-res.apk framework1
(framework-res.apk is apk which you want to decompile and framework1.. You can type "apktool if SystemUI.apk",...)
Now you can enjoy it!
5. Recompiling/Finished Product
Code:
apktool b framework1 framework-res-new.apk
(framework1 is the folder with your edited files and framework-res-new.apk is your new apk file)
You can't use the new apk... You have to take what you did and add it back to the original apk file to proper signature.
Use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original .apk.
Congratulations! You modded .apk!
you can help i know...
Mlopik said:
GUIDE
What will you Need:
ApkTool
Java JDK/JRE 32 bit
Terminal knowledge
Brain
Instructions
Extract zip folder to anywhere you choose. E.g: C:/android/apktool extracting the files to 'apktool' folder.
3.Now copy the apk to your Apk Tool folder.
2. Open your terminal
Your terminal will look like this...
C:\users\yourname>
Code:
[COLOR="Black"]cd.. → go back
cd.. android → go to this folder[/COLOR]
(Yes, it contains "..")
So you must be in your folder apktool (E.q: C:/android/apktool>)
3. Installing Framework
Code:
apktool if framework-res.apk
(framework-res.apk is only example.. You can type "apktool if SystemUI.apk",...)
4. Decompiling
Code:
apktool d framework-res.apk framework1
(framework-res.apk is apk which you want to decompile and framework1.. You can type "apktool if SystemUI.apk",...)
Now you can enjoy it!
5. Recompiling/Finished Product
Code:
apktool b framework1 framework-res-new.apk
(framework1 is the folder with your edited files and framework-res-new.apk is your new apk file)
You can't use the new apk... You have to take what you did and add it back to the original apk file to proper signature.
Use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original .apk.
Congratulations! You modded .apk!
Click to expand...
Click to collapse
Hey boss... can you tell me how to rename a app... i need it badly.. please.and thanks in advance
Related
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
akashvfx said:
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
Click to expand...
Click to collapse
hello bro this is awesome but i cant understand steps 9 to 14
thanks again
Bro, can you make it if i can povide you the required files of my rom?(i.e., suvi V12)
akashvfx said:
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
Click to expand...
Click to collapse
akashvfx said:
How to make CRT OFF
ANIMATION (effects such as tv
off when the screen is locked)
1. first download apktool and notepad
2. take the framework-res.apk in mm via root
explorer (rootex) in folder system-framework
3. apktool extract and place it in one folder for
easy future (eg in the folder d / apktool)
4. enter into framework-res.apk folder d /
apktool
5. in the apktool folder on the keyboard do not
press shift and press off the right click select
open command here
6. type in framework-res.apk apktool enter
and will appear framework-res folder
7. minimize cmd (the last item screen)
8 Open the framework-res folder \ r
es \ values \ bools.xml Open
with notepad find this text:
"<boolname="config_animateScreenLights"> true
</ bool>" text change true to false
so the result is like this
"<boolname="config_animateScreenLights"> false
</ bool>" then
press save and exit
9. Open CMD that was in
then we will minimize
decompile process
apknya type apktool b framework-res wait until
the end. When it is finished later
there are two new folder in the framework-res
folder \ "dist" and "build"
10. move framework-res.apk folder to another
folder eg frames and extract framework-res.apk
in the folder using winrar trsebut
11. Open foder d / apktool / framework-res
\ build \ apk \ (copy) resources.arsc
12. open the folder and then paste
resources.arsc frame if there are warning tap on
aja yes (copy and replace)
13. pack the contents folder with winrar last
frame with name-res.zip framework
14. res.zip so rename framework-res.apk
framework-and enter into the folder system /
framework with permision rw-r - r -
just as it is bentuk'y
v v -
v -
v -
then reboot ...
Sent from my Micromax A110 using xda premium
Click to expand...
Click to collapse
WHY DON'T @akashvfx MAKE CRT OFF ANIMATION FOR STOCK JB CANVAS 2 // I T WOULD BE WONDERFUL
gaurav247star said:
WHY DON'T @akashvfx MAKE CRT OFF ANIMATION FOR STOCK JB CANVAS 2 // I T WOULD BE WONDERFUL
Click to expand...
Click to collapse
EXACTLY !
just follow this simple steps
Install xposed framework and gravity box and tweak box........
borichamehul5 said:
Install xposed framework and gravity box and tweak box........
Click to expand...
Click to collapse
Brother,its only for mtk6589 running 4.2.1
TroLol
Hey guys heres a way to extract source code of an apk
I know many of u may know it but still no thread in this section
If its wrong or right or a question only then reply
NOW WHAT IS SOURCE CODE:
A text listing of commands to be compiled or assembled into an executable program
How to extract source code:
Requirements
1. Android-apktool
2. Dex2jar
3. JD-Gui
Procedure
Rename the .apk file you wish to retrieve and change the extension to .zip. Then extract the file that it creates.
Copy the contents of the dex2jar folder to the extracted folder to make it easier for yourself, and run:
dex2jar classes.dex
and copy the resulting “classes.dex.dex2jar.jar” into a new folder.
Open up the Java Decompiler and drag “classes.dex.dex2jar.jar” into the window and then go to File > Save and save the source in a .zip file.
Extract the saved .zip and copy the contents to a new folder somewhere. This will be where we keep your source code.
Now, copy “framework-res.apk” and “yourapk.apk” to the APKTool folder. Then open a command prompt or Terminal window and type:
apktool if framework-res.apk
apktool d
Now just copy the contents of the resulting folder to the same place you copied the contents of “classes.dex.dex2jar.jar” earlier and you have your source code.
Apk source code files
http://db.tt/oqdrcBpk
Now to import this project into eclipse
Go here
Enjoy modifying
Sent by typing by my fingers
Drop Box Link Not Working...please update it
Thanks for the small guide. I've been wondering if there was a way to do this.
Sent from ALCATEL One Touch Fierce
M not Able to Find dex2jar classes.dex
red de0392 said:
M not Able to Find dex2jar classes.dex
Click to expand...
Click to collapse
You have to run it in CMD that "dex2jar classes.dex" is not a file. its a command.
///How to easily edit 9.pngs easily \\\
Lets start ...
Step 1
Decompile the app.
Step 2
Enter into res/drawables
Step 3
open 9.png with paint.net(preffered)not tested others
Get it here (www.getpaint.net)
Step 4
change its color to ur wish (note--dont touch those 4 borders at the ends)
Step 5
Close and save png
Step 6
Now recompile
Step 7
Install
congo it works fine.............
No need of draw9patch...
Notes:
Must knw how to compile- recompile apps.
Must try more coming soon..........
Dont Spoil This Thread Please!!!!
PRESS LIKE BUTTON IF U LIKE MY WORK
Today i will guide you on how to decompile with Apk Tool,so I would post here
Needed files :-
Windows
ApkTool
Java JDK/JRE 32 bit
Cmd/terminal knowledge
Step 1
First you need to extract that zip folder to anywhere you choose, preferably on root of c/drive E.g: C:/android/apktool extracting the files to 'apktool' folder.
Step 2
Now copy the apk you would like to mod into your Apk Tool folder.
Step 3
Command Prompt:
Open up your Command Prompt by going to:
Start -> run -> type : Cmd
Step 4
Your cmd will probly look like this..
C:\users\yourname>
so type in
cd.. (Yes include the '..' and press enter after you type each command.)
this will get you to back directory so now you will see
C:\users>
so type again
cd..
you should now see this:
C:\>
now type in:
cd 'apktoo'l/'directory'
for me it looks like:
cd android/apktool
now you should see:
C:/android/apktool>
and you are in the apktool directory
Step 5
Installing Framework
Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:
apktool if framework-res.apk
This will install the devices framework to your system. need to do this.
Step 6
Decompiling
Now to decompile the apk you want to edit, type this:
apktool d framework-res.apk framework1
Step 7
Recompiling...
Now to recompile your new apk type this:
apktool b framework1 framework-res-new.apk
framework1 is the folder with your edited files
framework-res-new.apk is your new apk file
We cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature
use something like 7zip or winrar, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk
Your new modded APK is now ready, Congrats!:highfive:
Good Luck ..
must try
Just For Knowledge....
If... we use 7zip.. extract apk on desktop..
then replace modified.png with orignal.png
then aad to orignal apk
or
we just hunt png which we want to replace.
just extract that one with same res. & name
then add that on it right place
Is that working???
i.e. I want to replace icon of Gallary3d (JB4.3) (Gal+Cam)
with icon of samsung s4 icon Gallary2 (Gal+Cam)
OF LATELY A LOT OF PEOPLE SEEM TO FACE DECOMPILING ISSUES POST DEODEXING, SOME DO NOT KNOW HOW TO DEODEX. SO I MADE THIS VERY SIMPLE YET 100% WORKING GUIDE. FOLLOW IT ANY ONE, I MEAN ANYONE CAN SUCCESSFULLY DEODEX ANY APK IN HIS G2 ROM [THIS METHOD WORKS PERFECTLY FOR OTHER PHONES AS WELL]
WHAT YOU NEED:-
1. TOOLS FOR DEODEXING:- DOWNLOAD HERE
2. FRAMEWORK FOLDER FROM YOUR PHONE [FOUND IN "/system" folder"]
3. APK AND ODEX FILE TO BE DEODEXED [eg. LGSystemUI.apk & LGSystemUI.odex]-Found either in [/system/app OR /system/priv-app]
LETS START:-
PREPARATION-
---Download and unzip the tools folder above to the folder c:\baksmali . Indtall 7zip utility from the tools as made available above.
---Place the entire "framework" folder in the c:\baksmali folder. Also place the apk and odex file to be deodexed in c:\baksmali folder.
---Open up a dos prompt in c:\baksmali folder ...
*STEP 1*
Type the following command:
HTML:
java -jar baksmali.jar -d c:\baksmali\framework -x nameofodexfile.odex
You will see that an out folder is created in the c:\baksmali folder
*STEP 2*
Type the following command:
HTML:
java -jar smali.jar -o classes.dex out
You will see that a file "classes.dex" is created in the c:\baksmali folder
*STEP 3*
-Open your apk file using 7zip utility.
-Simply Drag the classes.dex file and drop in the 7zip open window. Click YES.
-YOU HAVE SUCCESSFULLY CREATED THE DEODEXED APK FILE.
NOTE:
1. If during step 1 you get errors, it is likely that either the framework is different or apk & odex belongs to a different ROM.
2. Use 7zip as it is better and safe than winrar for handling apk files.
3. If above steps are followed, the chances of any errors are "0".
4. While decompiling apks use apktool 1.5.2. This handles smali files much better than 2.0.3 version.
I certainly hope this guide proves helpful to those intending to take up theming/modding... Best of Luck... If you have any concerns get in touch with me- I will gladly help....
Thank you XDA for this wonderful forum
Consider pressing thanks button if you find this tutorial helpful- It promotes development...
Hi, very good tutorial! Just what I needed. Thanks!
rastigo said:
OF LATELY A LOT OF PEOPLE SEEM TO FACE DECOMPILING ISSUES POST DEODEXING, SOME DO NOT KNOW HOW TO DEODEX. SO I MADE THIS VERY SIMPLE YET 100% WORKING GUIDE. FOLLOW IT ANY ONE, I MEAN ANYONE CAN SUCCESSFULLY DEODEX ANY APK IN HIS G2 ROM [THIS METHOD WORKS PERFECTLY FOR OTHER PHONES AS WELL]
WHAT YOU NEED:-
1. TOOLS FOR DEODEXING:- DOWNLOAD HERE
2. FRAMEWORK FOLDER FROM YOUR PHONE [FOUND IN "/system" folder"]
3. APK AND ODEX FILE TO BE DEODEXED [eg. LGSystemUI.apk & LGSystemUI.odex]-Found either in [/system/app OR /system/priv-app]
LETS START:-
PREPARATION-
---Download and unzip the tools folder above to the folder c:\baksmali . Indtall 7zip utility from the tools as made available above.
---Place the entire "framework" folder in the c:\baksmali folder. Also place the apk and odex file to be deodexed in c:\baksmali folder.
---Open up a dos prompt in c:\baksmali folder ...
*STEP 1*
Type the following command:
HTML:
java -jar baksmali.jar -d c:\baksmali\framework -x nameofodexfile.odex
You will see that an out folder is created in the c:\baksmali folder
*STEP 2*
Type the following command:
HTML:
java -jar smali.jar -o classes.dex out
You will see that a file "classes.dex" is created in the c:\baksmali folder
*STEP 3*
-Open your apk file using 7zip utility.
-Simply Drag the classes.dex file and drop in the 7zip open window. Click YES.
-YOU HAVE SUCCESSFULLY CREATED THE DEODEXED APK FILE.
NOTE:
1. If during step 1 you get errors, it is likely that either the framework is different or apk & odex belongs to a different ROM.
2. Use 7zip as it is better and safe than winrar for handling apk files.
3. If above steps are followed, the chances of any errors are "0".
4. While decompiling apks use apktool 1.5.2. This handles smali files much better than 2.0.3 version.
I certainly hope this guide proves helpful to those intending to take up theming/modding... Best of Luck... If you have any concerns get in touch with me- I will gladly help....
Thank you XDA for this wonderful forum
Consider pressing thanks button if you find this tutorial helpful- It promotes development...
Click to expand...
Click to collapse
when i unzip the tools zip the baksmali is a file not a folder so i cant add the framework to the file? not sure if you can help me further
jaymazz13 said:
when i unzip the tools zip the baksmali is a file not a folder so i cant add the framework to the file? not sure if you can help me further
Click to expand...
Click to collapse
you've to create a folder in c:\
then you rename this new folder baksmali
in this folder you have to unzip the file downloaded here
after unzipped
now you can put here your framework
It works great!
One question, how to odex again?
I have built a few web sites but now I'm learning how to build apps. Is there a way to look at the code that is running a particular app on my phone so I can get an idea of how it is put together?
Can I open an app from my phone with Android Studio?
Follow the steps given below.
Procedure to open the source code:
Step 1:
Make a new folder and copy over the .apk file that you want to decode.
Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it. Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue.
Step 2:
Now extract this .zip file in the same folder (or NEW FOLDER).
Download dex2jar and extract it to the same folder (or NEW FOLDER).
Move the classes.dex file into the dex2jar folder.
Now open command prompt and change directory to that folder (or NEW FOLDER). Then write d2j-dex2jar classes.dex (for mac terminal or ubuntu write ./d2j-dex2jar.sh classes.dex) and press enter. You now have the classes.dex.dex2jar file in the same folder.
Download java decompiler, double click on jd-gui, click on open file, and open classes.dex.dex2jar file from that folder: now you get class files.
Save all of these class files (In jd-gui, click File -> Save All Sources) by src name. At this stage you get the java source but the .xml files are still unreadable, so continue.
Step 3:
Now open another new folder
Put in the .apk file which you want to decode
Download the latest version of apktool AND apktool install window (both can be downloaded from the same link) and place them in the same folder
Download framework-res.apk and put it in the same folder (Not all apk file need this file, but it doesn't hurt)
Open a command window
Navigate to the root directory of APKtool and type the following command: apktool if framework-res.apk
apktool d myApp.apk (where myApp.apk denotes the filename that you want to decode)
now you get a file folder in that folder and can easily read the apk's xml files.