I have a tutorial for this here : http://www.appaholics.in/decompiling-apks-in-an-os-x-environment/ You will only need to change the commands slightly to run it on linux or windows.
Thanks P.S. Pay heed to the warning. On Fri, Aug 12, 2011 at 3:10 PM, arun kumar <[email protected]> wrote: > procedure to decoding .apk files---step wise method--> > step 1: > > make a new folder and put .apk file (which you want to decode) now rename > this .apk file with extension .zip (eg:rename from filename.apk to > filename.apk.zip) and save it..now you get classes.dex files etc...at this > stage you are able to see drawable but not xml and java file...so cont... > step 2: > > now extract this zip apk file in the same folder(in this eg or case NEW > FOLDER). now dowmload dex2jar from this link > http://code.google.com/p/dex2jar/ and extract it to the same folder (in > this case NEW FOLDER).....now open command prompt and reach to that folder > (in this case NEW FOLDER)....after reaching write "dex2jar classes.dex" and > press enter.....now you get classes.dex.dex2jar file in the same > folder......now download java decompiler from > http://java.decompiler.free.fr/?q=jdgui and now double click on jd-gui and > click on open file then open classes.dex.dex2jar file from that folder...now > you get class file...save all these class file (click on file then click > "save all sources" in jd-gui)..by src name....at this stage you get > source...but xml files are still unreadable...so cont... > step 3: > > now open another new folder and put these files > > 1. > > put .apk file which you want to decode > 2. > > download apktool using google and put in the same folder > 3. > > download framework-res.apk file using google and put in the same folder > > 4. > > Open a command window > 5. > > Navigate to the root directory of APKtool and type the following > command: apktool if framework-res.apk > 6. > > apktool d "fname".apk ("fname" denotes filename which you want to > decode) > > now you get a file folder in that folder and now you can easily read xml > files also. > step 4: > > it's not any step just copy contents of both folder(in this case both new > folder)to the single one > > and now enjoy wid source code... > > > On Fri, Aug 12, 2011 at 7:28 AM, RAJU V <[email protected]> wrote: > >> Hi friends please help me...... >> Please tell me how to decompiler the apk file to source code >> files.... >> >> >> >> >> >> ~~~~~~RAJU~~~~~~ >> ~~www.itdoall.co.cc~~ >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- -------------------- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

