1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

    How to decompile and modify APK file/s?
     


  2. The_Chief

    The_Chief Accept no imitations!
    VIP Member

    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. Deleted User

    Deleted User Guest

    Why do you need to do that?
     
    scary alien likes this.
  4. Omar Boado

    Omar Boado Lurker
    Thread Starter

    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

    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

    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

    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. Deleted User

    Deleted User Guest

    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.
     
Loading...
Similar Threads - decompile modify APK
  1. mariodacosta
    Replies:
    1
    Views:
    621
  2. Eddy155
    Replies:
    3
    Views:
    391
  3. JesusGirl2000
    Replies:
    2
    Views:
    292
  4. KimberlyJefferson
    Replies:
    3
    Views:
    299
  5. Alexenferman
    Replies:
    11
    Views:
    1,911
  6. Turtlegamin
    Replies:
    0
    Views:
    344
  7. cutedroid
    Replies:
    4
    Views:
    510
  8. FouinyBaby22
    Replies:
    1
    Views:
    343
  9. Sands207
    Replies:
    0
    Views:
    814
  10. Finn Le Moenic
    Replies:
    6
    Views:
    2,592

Share This Page

Loading...