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 .