Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Extracting source code of apk file

194 views

Published on

Extracting java and xml code of apk file

Published in: News & Politics
  • Be the first to comment

  • Be the first to like this

Extracting source code of apk file

  1. 1. How to Extract java and xml code of apk file -Deepanshu UIT RGPV
  2. 2. $ whoami • 2 year Student from UIT RGPV • Certified in java Technology from SCA • L33T at cybrary • Hoobies are reading manga, social engineering
  3. 3. Prerequisites • jd-gui • Dex2jar • Apktool • Apk file
  4. 4. In a nutshell
  5. 5. Enough Theory!! So lets get Started..
  6. 6. 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
  7. 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. 8. 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 .
  9. 9. 4 . Run this command – java -jar apktool d someapkfile.apk 5 . Xml code will be present in the res folder .
  10. 10. For more stuff visit anonworldwide.com
  11. 11. Thank You for your time and attention!

×