How to Extract java and
xml code of apk file
-Deepanshu
UIT RGPV
$ whoami
• 2 year Student from UIT RGPV
• Certified in java Technology from SCA
• L33T at cybrary
• Hoobies are reading manga, social
engineering
Prerequisites
• jd-gui
• Dex2jar
• Apktool
• Apk file
In a nutshell
Enough Theory!! So lets get
Started..
Step 1:
1. Make a new folder and copy over the .apk
file that you want to decode .
2. Convert the .apk file to a .zip file .
3. Extract the zip file to get classes.dex file .
Step 2:
1. Extract the dex2jar file .
2. Copy the classes.dex file to dex2jar folder .
Getting the java code
Step 3:
1 . Open the cmd/terminal switch directory to
current folder .
2 . Put in the command dex2jar classes.dex .
Step 4:
1. Extract the java decompiler file .
2. open the obtained jar file with it . Done!
Getting the xml code
1 . Extract the apktool file
2 . Copy that apktool ‘s files and apk to a same
folder .
3 . Open cmd switch Directory to the same
folder .
4 . Run this command –
java -jar apktool d someapkfile.apk
5 . Xml code will be present in the res folder .
For more stuff visit
anonworldwide.com
Thank You for your time and
attention!

Extracting source code of apk file

  • 1.
    How to Extractjava and xml code of apk file -Deepanshu UIT RGPV
  • 2.
    $ whoami • 2year Student from UIT RGPV • Certified in java Technology from SCA • L33T at cybrary • Hoobies are reading manga, social engineering
  • 3.
  • 4.
  • 5.
    Enough Theory!! Solets get Started..
  • 6.
    Step 1: 1. Makea new folder and copy over the .apk file that you want to decode . 2. Convert the .apk file to a .zip file . 3. Extract the zip file to get classes.dex file . Step 2: 1. Extract the dex2jar file . 2. Copy the classes.dex file to dex2jar folder . Getting the java code
  • 7.
    Step 3: 1 .Open the cmd/terminal switch directory to current folder . 2 . Put in the command dex2jar classes.dex . Step 4: 1. Extract the java decompiler file . 2. open the obtained jar file with it . Done!
  • 8.
    Getting the xmlcode 1 . Extract the apktool file 2 . Copy that apktool ‘s files and apk to a same folder . 3 . Open cmd switch Directory to the same folder .
  • 9.
    4 . Runthis command – java -jar apktool d someapkfile.apk 5 . Xml code will be present in the res folder .
  • 10.
    For more stuffvisit anonworldwide.com
  • 11.
    Thank You foryour time and attention!