[Q] Modifying APK files. Why won't "apktool" recompile?

Search This thread

Mellowmarrow

Member
Feb 18, 2014
12
0
Modifying Mms.apk. I installed Java, and used the following command to decompile the .apk:
apktool.jar d Mms.apk

I then made my changes, and am trying to recompile with the command:
apktool.jar b Mms Mms.apk

The guides I'm following say this will create a "dist" folder within the Mms folder, containing the new (but unsigned) .apk file. This doesn't happen.
No output is given in Command Prompt.

A "build" folder is created, however. Inside is an "apk" folder. Inside of that is a "classes.dex" file.

Why won't apktool create the dist folder?
How can I get the recompiled apk file?
 

Mellowmarrow

Member
Feb 18, 2014
12
0
Modifying Mms.apk. I installed Java, and used the following command to decompile the .apk:
apktool.jar d Mms.apk

I then made my changes, and am trying to recompile with the command:
apktool.jar b Mms Mms.apk

The guides I'm following say this will create a "dist" folder within the Mms folder, containing the new (but unsigned) .apk file. This doesn't happen.
No output is given in Command Prompt.

A "build" folder is created, however. Inside is an "apk" folder. Inside of that is a "classes.dex" file.

Why won't apktool create the dist folder?
How can I get the recompiled apk file?
Alternatively, if we can't figure out why it's not working, can someone compile it? I've attached the files.
 

Attachments

  • Mms.rar
    1.7 MB · Views: 58
Sep 10, 2013
36
33
Alternatively, if we can't figure out why it's not working, can someone compile it? I've attached the files.

uhmm when building the apk you don't include the ".apk"

For example if I want to decompile app.apk, I type this:

apktool d app.apk

If I want to recompile, I type this:

apktool b app

YOU DON'T TYPE THE ".apk" AT THE END.

As for your Mms.apk:

1. "apktool d Mms.apk" > Correct

2. "apktool b Mms Mms.apk" > Incorrect

3. apktool b Mms > Correct

This is how it works:

1. If I have an app.apk in the APKTOOL directory, I decompile it by using the command apktool d app.apk
2. This will create a folder named app
3. If I recompile by using the command apktool b app, a new apk will be created inside the dist folder....inside the "app" folder
 
Last edited:
  • Like
Reactions: arismelachrinos

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Alternatively, if we can't figure out why it's not working, can someone compile it? I've attached the files.

    uhmm when building the apk you don't include the ".apk"

    For example if I want to decompile app.apk, I type this:

    apktool d app.apk

    If I want to recompile, I type this:

    apktool b app

    YOU DON'T TYPE THE ".apk" AT THE END.

    As for your Mms.apk:

    1. "apktool d Mms.apk" > Correct

    2. "apktool b Mms Mms.apk" > Incorrect

    3. apktool b Mms > Correct

    This is how it works:

    1. If I have an app.apk in the APKTOOL directory, I decompile it by using the command apktool d app.apk
    2. This will create a folder named app
    3. If I recompile by using the command apktool b app, a new apk will be created inside the dist folder....inside the "app" folder