轉載自http://stackoverflow.com/questions/7888102/how-to-extract-code-of-apk-file
Any .apk file from market or unsigned
-
If you apk is downloaded from market and hence signed Install Astro File Manager from market. Open Astro > Tools > Application Manager/Backup and select the application to backup on to the SD card . Mount phone as USB drive and access 'backupsapps' folder to find the apk of target app (lets call it app.apk) . Copy it to your local drive same is the case of unsigned .apk.
-
Download Dex2Jar zip from this link: SourceForge
-
Unzip the downloaded zip file.
-
Open command prompt & write the following command on reaching to directory where dex2jar exe is there and also copy the apk in same directory.
dex2jar targetapp.apk file
(./dex2jar app.apk on terminal) -
http://jd.benow.ca/ download decompiler from this link.
-
Open ‘targetapp.apk.dex2jar.jar’ with jd-gui File > Save All Sources to sava the class files in jar to java files.