Jump to content

  •  

  • iBotModz CBox


    Tutorial info Visit support topic

    • Added on: Dec 12 2011 11:42 AM
    • Date Updated: Dec 14 2011 06:58 PM
    • Views: 16153
    • |
     


    Decompiling Android APPs using APKTool

    This tutorial helps decompile applications so you may translate or change the applications. This is used for the MIUI application, as the main ROM is Chinese.

    NOTE: This is not for illegal purposes.

    Posted by iBotPeaches on Dec 12 2011 11:42 AM

    Decompiling (Part 3)




    You may hold SHIFT and right click anywhere in the white space in this folder (Not on an icon), and you will be greeted with "Open command window here". Click that so CMD will open already in your sub-folder. Like shown below:
    Posted Image

    Lets first get our framework installed. This is a simple command.

    apktool if framework-res.apk
    

    The execution of this command is shown below:
    Posted Image

    Now we are ready for the decompile.

    The command is

    apktool d MIUIStats.apk
    
    (d means decompile, and replacing MIUIStats.apk with the name of your APK)

    Now assuming you did the previous steps correctly, the output should be similar to this below.
    Posted Image

    We are now decompilied. There should be folder in the location of the apktool as the name of your APK. (EX: MIUIStats). Inside that folder is the decompiled APK. Like shown below.
    Posted Image

    You may edit the XML files located in /res/values-xx/ (Where XX is a the lang country code, like en is English). You may also change parts of the core applications using smali. A tutorial of using it, may be found here: http://code.google.c.../SmaliDebugging

    Now that we've done our translations and modified the APK. we are ready to re-compile it.


    Powered by Tutorials 1.5.0 © 2024, by Michael McCune