[TOOL] APK Multi-Tool previously called apk manager

Search This thread

rististien

Senior Member
Dec 5, 2011
65
1
yes, need to compile :) I have the decompiled apk and need to compile it but can't figure out what folder to put it in to do so.
 

Southern_mind

Senior Member
Mar 22, 2011
1,255
226
Charlotte, NC
Hey After i decompile the apk and edit xml to change font color save the edit with note++ and try to compile i get an errror

The system cannot find the path specified.
The system cannot find the path specified.
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\nativi\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\nativi\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\nativi\AppData\Local\Temp\
APKTOOL560134926403721171.tmp, -I, C:\Users\nativi\apktool\framework\1.apk, -I,
C:\Users\nativi\apktool\framework\2.apk, -S, C:\Users\nativi\Desktop\APK Multi-T
ool\projects\DoSystemUI.apk\res, -M, C:\Users\nativi\Desktop\APK Multi-Tool\proj
ects\DoSystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\nativi\AppData\Local\Temp\APKTOOL560134926403721171.tmp, -I, C:\Users\nativ
i\apktool\framework\1.apk, -I, C:\Users\nativi\apktool\framework\2.apk, -S, C:\U
sers\nativi\Desktop\APK Multi-Tool\projects\DoSystemUI.apk\res, -M, C:\Users\nat
ivi\Desktop\APK Multi-Tool\projects\DoSystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2
, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Press any key to continue . . .

Not sure what to do. With the apk manager I would get the same error so i tried multi-tool and still getting it. But in apk manager it would ask after saying error was it a system app y/n? and I would says y.
And the it would ask me if i wanted to delete what i edited and save the rest to avoid error and i would say yes and delete the stuff i edited and then it would compile the apk. but it would not work. I would lose my status bar.
Trying to mod the systemUI from Gingeritis 3D for the Thunderbolt.
Please Help!!!!!!
 

rististien

Senior Member
Dec 5, 2011
65
1
error?

so I FINALLY got it all working right but now all of a sudden I'm getting a compile error though the project before it worked just fine :

A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more

---------- Post added at 08:52 AM ---------- Previous post was at 08:49 AM ----------

oh and I updated
 

acer2220

Member
Aug 6, 2011
43
2
Build problem

when I build an apk it puts everything in a projects foler

unsignedHTC_IME.apk\projects\HTC_IME.apk\

not sure what to change.

Ok so dropped back to version 1.0.1 and it works

when I hit option 3 in 1.0.1 I see

compressing res\

But in version 1.0.2 I see

compressing project\FILESNAME.apk\res\

Hope that helps
 
Last edited:

guap

Senior Member
Sep 23, 2007
1,303
48
Milano
I tried to use this tool to decompile systemUI.apk for editing... but my new systemUI is much smaller then original and doesn't work... only xml edited. no errors decompiling/compiling

help :)

- decompiled framework OK
- decompiled system ui OK
- edited /drawable/navigation_bar.xml

- recompiled with "11" option OK
- yes OK
- deleted navigation_bar.xml AND resources.arsc from /keep folder OK
- no errors

result file is about half of the original (~410 kb insteab of ~900)
 

FaTaL2019

New member
Nov 2, 2019
2
2
New Orleans
I am currently working on a major update to the apk manager application as well and changing the name to APK Multi-Tool with some new added features and also to fix some issues with some code errors.

I am also changing a lot of the features as well since a lot of the code has been outdated for a while.

I have compiled the latest Version of APKTOOL which is 1.4.2 snapshot

Updates done so far in this new upcoming release

Updated APKTOOL to the latest snapshot
I have downloaded the latest changes to the source and compiled the latest Version of APKTOOL which is 1.4.2 snapshot

Updated Android SDK TOOLS
I have updates all the android tools to the latest Version from the android SDK revision 13
Included tools:
zipalign
adb
aapt

Updated Sox
Downloaded the latest Source and compiled to update Sox

Replaced roptipng v0.6.3 with optipng v0.6.5
I have removed roptipng v0.6.3 and replaced it with the latest Version of optipng v0.6.5 which I freshly compiled from source as roptipng was just v0.6.3 and there has been some major bug fixes to optipng

Roptipng is bloated with no compression when compiled also the modifications made to optipng that the original Arthur of roptipng are pointless as all they do is add directory recursion, which is redundant.

If you are interested in recursion, use this with the original optipng:

for FILE in `find . | grep "\.png"`; do optipng "$FILE"; done

If you want to do it in windonkey , something like this

for /r %FILE in "*.png" do optipng "%FILE"

(note: reason for it being shorter in donkey mode is that the "for" command is a
*LOT* weaker -- it can only search through the filesystem whereas the unix command iterates through anything you throw at it, therefore we need the extra command to go out and do the search
).

New Added Features done so far in this new upcoming release

New Section to the command line

Batch Theme Image Transfer TOOL
Batch Theme Zipalign APK TOOL
Batch Theme optipng TOOL

These tools allow you to update/port your favorite theme pack from any rom to your Current Rom In use.

(Note: You do not have to worry about signing the apk files using this method as it is automated with the transfer Function)

Batch Theme Image Transfer TOOL
This tool makes the process of transferring images from one APK to another APK File of the same file making it easier to update themes or even transferring a theme update.zip of one ROM to another Rom allowing the porting of theme to be much faster.
(Note: You will have to manually replace the progress_horizontals.xml from the framework-res since this file is needed with Theme Changes)

Batch Theme Zipalign APK TOOL
This tool makes it easier to Zipalign all the apk files in your newly ported/updated theme pack.

Batch Theme optipng TOOL
This tool optimizes all the images in all of the apk files for the toolset to allow you to be able improve compression of the images.

TO DO LIST

Add new feature to Randomly Generate a new Key File for signing the apk files after modifying and recompiling of the apk files this will also allow of uploading to the android market as this added feature will allow you to sign apk files that you may of compiled without signing beforehand.

Modify the Signapk script to be compatible with the Randomly Generation feature in the works

and a few other added features are in the works as I am redesigning the application and rewriting a lot of the code to fix issues as well as some of the new features have broken parts as some features have been moved and broken some command line prompts.



Very useful
 

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    I am currently working on a major update to the apk manager application as well and changing the name to APK Multi-Tool with some new added features and also to fix some issues with some code errors.

    I am also changing a lot of the features as well since a lot of the code has been outdated for a while.

    I have compiled the latest Version of APKTOOL which is 1.4.2 snapshot

    Updates done so far in this new upcoming release

    Updated APKTOOL to the latest snapshot
    I have downloaded the latest changes to the source and compiled the latest Version of APKTOOL which is 1.4.2 snapshot

    Updated Android SDK TOOLS
    I have updates all the android tools to the latest Version from the android SDK revision 13
    Included tools:
    zipalign
    adb
    aapt

    Updated Sox
    Downloaded the latest Source and compiled to update Sox

    Replaced roptipng v0.6.3 with optipng v0.6.5
    I have removed roptipng v0.6.3 and replaced it with the latest Version of optipng v0.6.5 which I freshly compiled from source as roptipng was just v0.6.3 and there has been some major bug fixes to optipng

    Roptipng is bloated with no compression when compiled also the modifications made to optipng that the original Arthur of roptipng are pointless as all they do is add directory recursion, which is redundant.

    If you are interested in recursion, use this with the original optipng:

    for FILE in `find . | grep "\.png"`; do optipng "$FILE"; done

    If you want to do it in windonkey , something like this

    for /r %FILE in "*.png" do optipng "%FILE"

    (note: reason for it being shorter in donkey mode is that the "for" command is a
    *LOT* weaker -- it can only search through the filesystem whereas the unix command iterates through anything you throw at it, therefore we need the extra command to go out and do the search
    ).

    New Added Features done so far in this new upcoming release

    New Section to the command line

    Batch Theme Image Transfer TOOL
    Batch Theme Zipalign APK TOOL
    Batch Theme optipng TOOL

    These tools allow you to update/port your favorite theme pack from any rom to your Current Rom In use.

    (Note: You do not have to worry about signing the apk files using this method as it is automated with the transfer Function)

    Batch Theme Image Transfer TOOL
    This tool makes the process of transferring images from one APK to another APK File of the same file making it easier to update themes or even transferring a theme update.zip of one ROM to another Rom allowing the porting of theme to be much faster.
    (Note: You will have to manually replace the progress_horizontals.xml from the framework-res since this file is needed with Theme Changes)

    Batch Theme Zipalign APK TOOL
    This tool makes it easier to Zipalign all the apk files in your newly ported/updated theme pack.

    Batch Theme optipng TOOL
    This tool optimizes all the images in all of the apk files for the toolset to allow you to be able improve compression of the images.

    TO DO LIST

    Add new feature to Randomly Generate a new Key File for signing the apk files after modifying and recompiling of the apk files this will also allow of uploading to the android market as this added feature will allow you to sign apk files that you may of compiled without signing beforehand.

    Modify the Signapk script to be compatible with the Randomly Generation feature in the works

    and a few other added features are in the works as I am redesigning the application and rewriting a lot of the code to fix issues as well as some of the new features have broken parts as some features have been moved and broken some command line prompts.
    2
    Well I gotten a copy of the original roptipng src and I am working on making a patch from that source with the original optippng src that was used and will perhaps modify the patch once created to intergrate into the new 6.5 src

    I am hoping this will prove to be a success so that I will not have to do some extra steps and also if the patching once complete and successful should also help with updating roptipng in the future

    Sent from my DROID using xda premium
    2
    Well right now 9patch requires the sdk but the next alpha release will have 9patch intergrated which will allow faster editing and less requirements as I aM working on making this application as self contained as possible

    Sent from my DROID using xda premium
    1
    I have released a Alpha Build of the APK Mulit-Tool on the main website feel free to test out the application and remember some features may be broken
    1
    I am currently Forked all of Brut.all's Repositories into my github account that i setup for APK Multi-Tools.

    I am currently looking over his code and making changes updating the Smali Code used with the APKtool updating it to the most updated version off of http://code.google.com/p/smali/ and hopefully I will have a more updated Alternative version of apktool

    This thread here is more along the lines of for Development purposes and coding suggestions


    For Releases and bug reports Visit this post
    [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool