1. Download our Official Android App: Forums for Android!

Apps How to decompile and modify APK file/s?

Discussion in 'Android Development' started by Omar Boado, Feb 20, 2016.

  1. Omar Boado

    Omar Boado Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    3
    Joined:
    Feb 20, 2016

    Feb 20, 2016
    3
    0
    15
    Male
    How to decompile and modify APK file/s?
     

    Advertisement

  2. The_Chief

    The_Chief Accept no imitations!
    VIP Member
    Rank:
    None
    Points:
    2,118
    Posts:
    13,886
    Joined:
    Nov 17, 2009

    Nov 17, 2009
    13,886
    14,062
    2,118
    Male
    I'm retired: every day's a Monday :P
    Manchester, TN
    Welcome to Android Forums, Omar!

    I've moved your question to the Android Development Forum, so experienced developers can see your question and help you :)
     
    Omar Boado likes this.
  3. LV426

    LV426 I say we take off and nuke this place from orbit
    Recognized Developer
    Rank:
     #12
    Points:
    1,988
    Posts:
    9,176
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    9,176
    13,681
    1,988
    Male
    Software developer
    South West of England
    Why do you need to do that?
     
    scary alien likes this.
  4. Omar Boado

    Omar Boado Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    3
    Joined:
    Feb 20, 2016

    Feb 20, 2016
    3
    0
    15
    Male
    For Educational purposes only/ explore for developing mobile applications...Can anyone tell me the tools there using? thanks in advance
     
  5. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #9
    Points:
    2,138
    Posts:
    22,319
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,319
    23,814
    2,138
    Male
    space alien ;)
    Indy
    From what I understand and can see from Google searches, de-compiling is usually the easy part, and it's not uncommon to get Java exceptions when trying to do this which I assume it related to recent changes in how the .apk files are being packaged-up and protected by the IDEs the their selected obfuscation / protection packages.

    Also, unless you know the smali language these tools produce and can figure-out all of the resource dependencies, it will be pretty difficult to make much sense of the output being produced, never mind actually changing the code and recompiling to produce something useful (i.e., that runs at all).

    I do know of folks that have obviously done this--usually to "theme" an app that they fancied--but doing so and sharing it with a wider audience is generally frowned-upon and is one of the main reasons why people are encouraged from only obtaining their apps from trusted and original sources like the Play Store.
     
    mikedt, Omar Boado and El Presidente like this.
  6. Omar Boado

    Omar Boado Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    3
    Joined:
    Feb 20, 2016

    Feb 20, 2016
    3
    0
    15
    Male
    is their any opensource tools for decompiling? can you link me one thanks in advance.
     
  7. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #9
    Points:
    2,138
    Posts:
    22,319
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,319
    23,814
    2,138
    Male
    space alien ;)
    Indy
    Been a very long while since I've visited this thread and it looks like a new user has taken over the original posters work, but here's the link that initial thread description:


    Originally Posted by Brut.all, Updated by iBotPeaches

    It is a tool for reengineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.

    It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.

    Be sure to also see their "Thread Guidelines" listed near the end of the first post:

    1. If you don't know the following terms (aapt, apk, java) - then please don't post in this thread.
    2. If you didn't install frameworks (see FrameworkFiles) - then do that first before asking.
    3. If you want to engage in developer discussions - then post here.
    4. If you want to thank someone or express gratitude - sure why not post here.
    5. If your building from source - do not post those snapshot builds in this thread as we mix builds and makes users confused.
    6. If you believe you've found a bug, I'd prefer you post here: Bug List - but I won't be mad if you post it in this thread.
    7. If you send me a PM about Apktool support, I will ignore it.
    8. If you post any stacktraces, error logs or console output. Use Ubuntu Paste or Pastebin. Don't clutter our thread with 200 line posts.
    9. If you need support. Search this thread. If no luck, post your problem, but please include either an apk / output / log.
    Cheers!
     
  8. LV426

    LV426 I say we take off and nuke this place from orbit
    Recognized Developer
    Rank:
     #12
    Points:
    1,988
    Posts:
    9,176
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    9,176
    13,681
    1,988
    Male
    Software developer
    South West of England
    While the above is interesting information, I'm always conscious of the use of such tools for piracy, which really annoys me. Not suggesting for one second that's the case here, I'm just aware of piracy problems on Google Play, and it's completely unfair to the original developer.
    So I personally would not promote use of such tools, or offer any information on how to use them.
     

Share This Page

Loading...