1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with decompiling/recompiling APK file (Android)

Discussion in 'Hire a Freelancer' started by samiejg, Mar 19, 2014.

  1. samiejg

    samiejg Senior Member

    Joined:
    Dec 14, 2013
    Messages:
    821
    Likes Received:
    49
    I'm new to Android Development and I'm trying to figure out how to properly decompile and recompile an APK file using Smali(apktool).

    I'm using the tool and I run the following commands in command prompt.

    Code:
    apktool d testapp.apk
    
    apktool b testapp unsigned-testapp.apk
    
    java -jar signapk.jar certificate.pem key.pk8 unsigned-testapp.apk signed-testapp.apk
    However, even though I have not made any changes, the new signed app is not working. It installs but has a blank screen.

    Would anyone be willing to help me with this? I'll pay $10 to whomever can help me figure out how to do this. I'm sure it might be something simple. I had someone take a look at this already and they were able to decompile/recompile without any issues, but didn't know why it wasn't working for me. So I'm thinking it must be something wrong with my setup.

    Some other things I tried
    1. Unzipped APK and rezipped it (works-but the classes don't even get decompiled here)
    2. Unzipped APK and deleted meta folder, then rezipped and signed(didn't work)
    3. Unzipped APK and used dex2jar on classes.dex and then recompiled the decompiled classes.dex jar file back to classes and rezipped(didn't work)
    4. using dex2jar/gdgui I got the java source from classes.dex and tried throwing it into the smali decompile and importing it into eclipse but getting an unknown error when running/installing
     
  2. samiejg

    samiejg Senior Member

    Joined:
    Dec 14, 2013
    Messages:
    821
    Likes Received:
    49
    Anyone interested? Will up the pay to $15. I'm expecting it's just an easy explanation for anyone familiar with Android Development.

    I don't need you to do anything, and no changes need to be made to the app. I just need someone to show me how to decompile and recompile an app successfully without running into the issues I am having.

    I had someone look at this already and they tried decompiling the file on their own PC using the same tool and it worked fine. So I'm wondering if it has something to do with installing framework-res.apk and other similar files that I'm not too familiar with. Another possibility is something wrong with my signature. Because I can unzip and zip an APK, which is not exactly what I'm looking for because it doesn't actually decompile and of the source code, but unzipping and zipping works fine, but then if I delete the meta folder and re-zip and re-sign it, the APK no longer works.
     
  3. Macthetrix

    Macthetrix Regular Member

    Joined:
    Feb 21, 2013
    Messages:
    379
    Likes Received:
    390
    Occupation:
    The Boss
    Location:
    Silicon Valley
    You dont need to pay me just send me a pm I might be able to help you. I use apktool every other day.
     
  4. samiejg

    samiejg Senior Member

    Joined:
    Dec 14, 2013
    Messages:
    821
    Likes Received:
    49
    Anybody for $20 for this issue? So far have only been able to get help from one person who tried it on their machine and it worked, but didn't know what to do from my end to get it to work.
     
  5. Macthetrix

    Macthetrix Regular Member

    Joined:
    Feb 21, 2013
    Messages:
    379
    Likes Received:
    390
    Occupation:
    The Boss
    Location:
    Silicon Valley
    add me on skype: macthetrix123
     
  6. samiejg

    samiejg Senior Member

    Joined:
    Dec 14, 2013
    Messages:
    821
    Likes Received:
    49
    Still looking for help on this, anyone? Can also pay now with Moneybookers. Not sure what I'm missing.