Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)

Do you find the latest beta functional ?

  • Yes

    Votes: 1,105 74.6%
  • No

    Votes: 376 25.4%

  • Total voters
    1,481
Search This thread

johnny quest

Senior Member
Jul 2, 2010
1,241
253
Port Saint Lucie
Having problems decompiling my apk's. I'm using the 5.02 version and I have my skin apk in the "place-apk-here-for-modding" folder then I try to drag the "com.htc.resources.apk" file to the open cmd window but nothing happens. please help. don't know if my variables are even correct. I don't know where to look for that.
 

Ajthescot

Senior Member
May 20, 2010
1,145
1,963
Having problems decompiling my apk's. I'm using the 5.02 version and I have my skin apk in the "place-apk-here-for-modding" folder then I try to drag the "com.htc.resources.apk" file to the open cmd window but nothing happens. please help. don't know if my variables are even correct. I don't know where to look for that.

Don't need the resources for skins mate.

Sent from my HTC EVO 3D X515m using Tapatalk
 

swap.blue

Senior Member
Jan 9, 2012
55
0
New Delhi
www.innotechive.com
So, do you have the Android SDK installed? And Java? If no, then pls install these first. If yes, then search this thread for "environment variables". You just need to add them to your path. If you're using Windows, this is done using environment variables and adding it to your path. It's really easy. Here's something I posted about 6 pages back:

Here is the excerpt of the Android SDK from my path: C:\Program Files\Android\android-sdk\platform-tools\;C:\Program Files\Android\android-sdk\

Here's my java path for you to reference: C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\Java\

These may be different for you, depending on what you called your SDK and java installation.
i have done wat u said but "adb was not found error comes"
 

exb0

Senior Member
Oct 24, 2010
1,831
431
28
PNW
freshair.farm
Google Pixel 8 Pro
Code:
--2012-03-31 11:15:33--  http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

     0K                                                       100% 1.85M=0s

2012-03-31 11:15:33 (1.85 MB/s) - `apkver.txt' saved [152/152]

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.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Junyu\AppData\Local\Temp\APKTOOL6991191615709474251.tmp, -x, -I, C:\Users\Junyu\apktool\framework\1.apk, -S, C:\Apk tool\projects\ics.apk\res, -M, C:\Apk tool\projects\ics.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\Users\Junyu\AppData\Local\Temp\APKTOOL6991191615709474251.tmp, -x, -I, C:\Users\Junyu\apktool\framework\1.apk, -S, C:\Apk tool\projects\ics.apk\res, -M, C:\Apk tool\projects\ics.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:87)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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 the 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

Hey guys, I have that error when I try to recompile my apk. It's a cm7 apk so it should have no problems, well it didnt with apktool. Any ideas on how to solve it?
 

bjarnia

Senior Member
Jan 27, 2011
90
6
Hey

This is my 2nd time attempting to use this tool, last time was about a year ago, and I'm now getting the exact same error I was stuck on last time.

My APK's always end up with incorrect folder structure.
The root of the original APK contains the usual AndroidManifest.xml, res, assets and more, but in my new APK, zipped with this tool, contains all of that inside a "projects" folder. This results in an error when trying to install it:

file 'place-apk-here-for-modding/signedcom.mint-2.apk' does not contain AndroidManifest.xml

I was attempting to follow the instructions from here: http://xdaforums.com/showpost.php?p=8450650&postcount=25

although I have not yet made any actual changes to the images, I'm just trying to get the workflow down first.
 

brsingr

Senior Member
May 12, 2011
429
51
Alta Loma
Age of zombies modding

I want to mod Age of Zombies so I can increase the ammo of weapons and the rate of fire. I came across this program and thought it would do the trick.

Can someone direct me to a tutorial on how to do this please? Google doesnt help for a can of beans and the search feature here doesnt really help much either.

Ive found the file i want to mod (common0_weapons.xml in the assets\common0\xml\) but im pretty much stuck from there (sorry I'm new to modding apks :()

Im using Windows Version 1.0.2
 
Last edited:

TheWenger

Member
Nov 10, 2011
31
3
Hi guys,

I'm getting a decent amount of errors just trying to decompile a framework-res.apk. I have a folder set up with apktool, the .apk, and it also has adb in it. I have the SDK all set up and installed also.

When I run the script I get the:

Code:
Adb was not found, you will not be able to manipulate the files on your phone
Press any key to continue . . .

I hit enter and set the current project. When I go to decompile with option 9, I get an error that tells me to look at the log file:

Code:
-------------------------------------------------------------------------- 
|Sat 04/21/2012 --  0:42:29.65| 
-------------------------------------------------------------------------- 
The system cannot find the path specified.
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)
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Error: Unable to access jarfile platform-tools\apktool.jar
The system cannot find the path specified.
The system cannot find the file signer.
-------------------------------------------------------------------------- 
|Sat 04/21/2012 --  0:44:11.61| 
-------------------------------------------------------------------------- 
The system cannot find the path specified.
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)
The system cannot find the path specified.

I can't actually open the log file using option 24 because Windows gives me this error:

Code:
Windows cannot find 'signer'. Make sure you typed the name correctly, then try again.

Any help would be hot. I'm just starting to try to get involved in some ROM theming just for fun and I've banging my head against the wall on this one for a couple days now.

Thanks
 

Ajthescot

Senior Member
May 20, 2010
1,145
1,963
You need to set your apkmanager to your paths .
How ? you ask .
Search this thread on how to .I have wrote it more than once and many others .

Or

Check this op of this thread
http://xdaforums.com/showthread.php?t=1320891
You couldnt get any more help ,ask us anything theme related .
+
More guides than you could shake a stick at .

No trees were harmed in the making of this msg .
an astonishing number of electrons ,however,were terribly inconvenienced
 

maped

Senior Member
Mar 29, 2005
494
312
Rovigo
I've read all thread but I don't see nothing the same of my error (I think :( )

My Path is
Code:
C:\program files\common files\microsoft shared\source engine;C:\Program Files (x86)\Java\jdk1.6.0_26\bin;C:\Program Files (x86)\Android\android-sdk;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;
with java 1.6...and I can't compile my systemUI.apk :(

Code:
PKTOOL7953671038959889677.tmp, -I, C:\Users\Marco\apktool\framework\1.apk, -S, C
:\Users\Marco\.android\Nuova cartella\projects\SystemUI.apk\res, -M, C:\Users\Ma
rco\.android\Nuova cartella\projects\SystemUI.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\Marco\AppData\Local\Temp\APKTOOL7953671038959889677.tmp, -I, C:\Users\Marco
\apktool\framework\1.apk, -S, C:\Users\Marco\.android\Nuova cartella\projects\Sy
stemUI.apk\res, -M, C:\Users\Marco\.android\Nuova cartella\projects\SystemUI.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
, Impossibile trovare il file specificato
        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, Impossibile trovare il fi
le specificato
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
I: Checking whether sources has changed...
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\Marco\AppData\Local\Temp\A
PKTOOL5672114860989363618.tmp, -I, C:\Users\Marco\apktool\framework\1.apk, -S, C
:\Users\Marco\.android\Nuova cartella\projects\SystemUI.apk\res, -M, C:\Users\Ma
rco\.android\Nuova cartella\projects\SystemUI.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\Marco\AppData\Local\Temp\APKTOOL5672114860989363618.tmp, -I, C:\Users\Marco
\apktool\framework\1.apk, -S, C:\Users\Marco\.android\Nuova cartella\projects\Sy
stemUI.apk\res, -M, C:\Users\Marco\.android\Nuova cartella\projects\SystemUI.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
, Impossibile trovare il file specificato
        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, Impossibile trovare il fi
le specificato
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
--------------------------------------------------------------------------
|30/04/2012 --  0:17:54,31|
--------------------------------------------------------------------------
--2012-04-30 00:17:54--  http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

     0K                                                       100% 1,14M=0s

2012-04-30 00:17:55 (1,14 MB/s) - `apkver.txt' saved [152/152]

Sottodirectory o file projects già esistente.
Sottodirectory o file place-apk-here-for-modding già esistente.
Sottodirectory o file place-ogg-here già esistente.
Sottodirectory o file place-apk-here-to-batch-optimize già esistente.
Sottodirectory o file place-apk-here-for-signing già esistente.
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
"""platform-tools"\adb.exe"" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.
I: Checking whether sources has changed...
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\Marco\AppData\Local\Temp\A
PKTOOL3693407172900478260.tmp, -I, C:\Users\Marco\apktool\framework\1.apk, -S, C
:\Users\Marco\.android\Nuova cartella\projects\SystemUI.apk\res, -M, C:\Users\Ma
rco\.android\Nuova cartella\projects\SystemUI.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\Marco\AppData\Local\Temp\APKTOOL3693407172900478260.tmp, -I, C:\Users\Marco
\apktool\framework\1.apk, -S, C:\Users\Marco\.android\Nuova cartella\projects\Sy
stemUI.apk\res, -M, C:\Users\Marco\.android\Nuova cartella\projects\SystemUI.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
, Impossibile trovare il file specificato
        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, Impossibile trovare il fi
le specificato
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
--------------------------------------------------------------------------
|30/04/2012 --  0:20:52,92|
--------------------------------------------------------------------------
--2012-04-30 00:20:53--  http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

     0K                                                       100% 1002K=0s

2012-04-30 00:20:53 (1002 KB/s) - `apkver.txt' saved [152/152]

Sottodirectory o file projects già esistente.
Sottodirectory o file place-apk-here-for-modding già esistente.
Sottodirectory o file place-ogg-here già esistente.
Sottodirectory o file place-apk-here-to-batch-optimize già esistente.
Sottodirectory o file place-apk-here-for-signing già esistente.
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
"""platform-tools"\adb.exe"" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.
I: Checking whether sources has changed...
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\Marco\AppData\Local\Temp\A
PKTOOL748439480994536454.tmp, -I, C:\Users\Marco\apktool\framework\1.apk, -S, C:
\Users\Marco\.android\Nuova cartella\projects\SystemUI.apk\res, -M, C:\Users\Mar
co\.android\Nuova cartella\projects\SystemUI.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\Marco\AppData\Local\Temp\APKTOOL748439480994536454.tmp, -I, C:\Users\Marco\
apktool\framework\1.apk, -S, C:\Users\Marco\.android\Nuova cartella\projects\Sys
temUI.apk\res, -M, C:\Users\Marco\.android\Nuova cartella\projects\SystemUI.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
, Impossibile trovare il file specificato
        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, Impossibile trovare il fi
le specificato
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
I: Checking whether sources has changed...
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\Marco\AppData\Local\Temp\A
PKTOOL6733932858468696508.tmp, -I, C:\Users\Marco\apktool\framework\1.apk, -S, C
:\Users\Marco\.android\Nuova cartella\projects\SystemUI.apk\res, -M, C:\Users\Ma
rco\.android\Nuova cartella\projects\SystemUI.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\Marco\AppData\Local\Temp\APKTOOL6733932858468696508.tmp, -I, C:\Users\Marco
\apktool\framework\1.apk, -S, C:\Users\Marco\.android\Nuova cartella\projects\Sy
stemUI.apk\res, -M, C:\Users\Marco\.android\Nuova cartella\projects\SystemUI.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
, Impossibile trovare il file specificato
        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, Impossibile trovare il fi
le specificato
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
I: Checking whether sources has changed...
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\Marco\AppData\Local\Temp\A
PKTOOL7541917384504829786.tmp, -I, C:\Users\Marco\apktool\framework\1.apk, -S, C
:\Users\Marco\.android\Nuova cartella\projects\SystemUI.apk\res, -M, C:\Users\Ma
rco\.android\Nuova cartella\projects\SystemUI.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\Marco\AppData\Local\Temp\APKTOOL7541917384504829786.tmp, -I, C:\Users\Marco
\apktool\framework\1.apk, -S, C:\Users\Marco\.android\Nuova cartella\projects\Sy
stemUI.apk\res, -M, C:\Users\Marco\.android\Nuova cartella\projects\SystemUI.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
, Impossibile trovare il file specificato
        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, Impossibile trovare il fi
le specificato
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        ... 11 more
--------------------------------------------------------------------------
|30/04/2012 -- 10:07:30,98|
--------------------------------------------------------------------------
--2012-04-30 10:07:31--  http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

     0K                                                       100% 1,11M=0s

2012-04-30 10:07:32 (1,11 MB/s) - `apkver.txt' saved [152/152]

"mode" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.
Sottodirectory o file projects già esistente.
Sottodirectory o file place-apk-here-for-modding già esistente.
Sottodirectory o file place-ogg-here già esistente.
Sottodirectory o file place-apk-here-to-batch-optimize già esistente.
Sottodirectory o file place-apk-here-for-signing già esistente.
"java" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.
"java" non è riconosciuto come comando interno o esterno,
 un programma eseguibile o un file batch.
Premere un tasto per continuare . . .

The problem i'm sure it's on setting of my PC...but...where :confused::(
 
Last edited:

Ajthescot

Senior Member
May 20, 2010
1,145
1,963
put a copy of your framework-res into the other folder .

open a command prompt to that folder (hold shift right click ) if on windows 7/vista

enter this

java -jar apktool.jar if framework-res.apk

then try using the tools


should only have to do it the once unless you change roms .ie ginger to ics
 
  • Like
Reactions: maped

maped

Senior Member
Mar 29, 2005
494
312
Rovigo
put a copy of your framework-res into the other folder .

open a command prompt to that folder (hold shift right click ) if on windows 7/vista

enter this

java -jar apktool.jar if framework-res.apk

then try using the tools


should only have to do it the once unless you change roms .ie ginger to ics

Now I deleted everything (sdktool, Java developer, Java and apkmanager) to do a very very clean install because the problem is in my computer sure (old Java version installed :confused: or not correct path...and after I check if in the path there's a space and I change it with _)
I want only a center clock in my ics oxygen AOSP rom and I have to do it, is a challenge for me ;).

Thanks bro for your support and for your fantastic work ;)

Inviato dal mio Nexus S con Tapatalk 2
 

trislr

Senior Member
Jul 2, 2011
67
18
Now I deleted everything (sdktool, Java developer, Java and apkmanager) to do a very very clean install because the problem is in my computer sure (old Java version installed :confused: or not correct path...and after I check if in the path there's a space and I change it with _)
I want only a center clock in my ics oxygen AOSP rom and I have to do it, is a challenge for me ;).

Thanks bro for your support and for your fantastic work ;)

Inviato dal mio Nexus S con Tapatalk 2

could u tell me more clearly????????
i have erro like u, i check everything, but i can't compite systemUI.apk :confused:
and u tell "not correct path" what is it??

help me.

my log:
PHP:
|Wed 05/02/2012 -- 10:44:36.77| 
-------------------------------------------------------------------------- 
--2012-05-02 10:44:36--  http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

     0K                                                       100% 1.66M=0s

2012-05-02 10:44:37 (1.66 MB/s) - `apkver.txt' saved [152/152]

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.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
'platform-tools\adb' is not recognized as an internal or external command,
operable program or batch file.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Prime\AppData\Local\Temp\APKTOOL4218850710624684824.tmp, -I, C:\Users\Prime\apktool\framework\1.apk, -S, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\res, -M, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\Users\Prime\AppData\Local\Temp\APKTOOL4218850710624684824.tmp, -I, C:\Users\Prime\apktool\framework\1.apk, -S, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\res, -M, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:87)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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 the 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
 

Ajthescot

Senior Member
May 20, 2010
1,145
1,963
could u tell me more clearly????????
i have erro like u, i check everything, but i can't compite systemUI.apk :confused:
and u tell "not correct path" what is it??

help me.

my log:
PHP:
|Wed 05/02/2012 -- 10:44:36.77| 
-------------------------------------------------------------------------- 
--2012-05-02 10:44:36--  http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

     0K                                                       100% 1.66M=0s

2012-05-02 10:44:37 (1.66 MB/s) - `apkver.txt' saved [152/152]

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.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
'platform-tools\adb' is not recognized as an internal or external command,
operable program or batch file.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Prime\AppData\Local\Temp\APKTOOL4218850710624684824.tmp, -I, C:\Users\Prime\apktool\framework\1.apk, -S, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\res, -M, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\AndroidManifest.xml]
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\Users\Prime\AppData\Local\Temp\APKTOOL4218850710624684824.tmp, -I, C:\Users\Prime\apktool\framework\1.apk, -S, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\res, -M, D:\Program Files\apk tool\platform-tools\..\projects\SystemUI.apk\AndroidManifest.xml]
	at brut.util.OS.exec(OS.java:87)
	at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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 the file specified
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.(Unknown Source)
	at java.lang.ProcessImpl.start(Unknown Source)
	... 11 more

I have a tutorial on how to here.
It's for windows 7.
Also check the first Page of that thread we give loads of help and tutorials.
http://xdaforums.com/showthread.php?p=25312978

Sent from my HTC EVO 3D X515m using Tapatalk 2
 
  • Like
Reactions: trislr

Top Liked Posts

  • There are no posts matching your filters.
  • 219
    So i have written a simple script to ease the process of editing apks. Got a lot of downloads so thought its in demand :rolleyes:

    Whether you're doing basic image editing or editing the smali or xml files, on average u have to use (Brut.all or JF's smali/baksmali) awesome tool to extract the apk, edit it, then sign the apk and then adb push/install it. This process is quite tiresome if you are testing a method that needs fine tweaking.

    This script should make the process a LOT smoother.
    Theres an option of compiling/signing/installing all in one step :)

    Thanks:
    Goes to Brut.all for his awesome tool.
    Goes to JF for ofcourse, smali/baksmali
    Goes to farmatito for porting this script to linux

    Features:
    - Extract, Zip apk's.
    - Optimize pngs (ignores .9.pngs)
    - Zipalign apks
    - Sign apks
    - Push to specific location on phone
    - Incorporates brut.all's apktool
    - Pull apk from phone into modding environment.
    - Batch optimize apk (Zipalign,optipng,or both)
    - Quick sign an apk (Batch mode supported)
    - Batch Ogg optimization
    - Compression level selector (monitor status above menu)
    - Batch install apk from script (option 16)
    - Logging on/off has been removed. Instead a log.txt is created which logs the activities of the script organized using time/date headers
    - User can change the max java heap size (only use if certain large apks get stuck when decompiling/compiling apks) (Option 19)
    - Improved syntax of questions/answers
    - Error detection. Checks if error occured anytime u perform a task, and reports it
    - Read log (Option 20)
    - U can now set this script as ur default application for apks. When u do, if u double click any apk it will install it for u.
    - Supports batch installation, so if u drag multiple apks into the script (not while its running) it will install them all for u. U can ofcourse drag a single apk as well
    - Added framework dependent decompiling (For non propietary rom apks). (Option 10). Checks whether the dependee apk u selected is correct.
    - Allows multiple projects to be modified, switch to and from.
    - Allows to modify system apk's using apktool but ensures maximum compatibility in terms of signature / manifest.xml
    - Stuff i forgot i guess :p

    Instructions (Windows):
    - Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
    - Run script
    - Minimize the script
    - Edit files inside the project folder
    - Maximize the script

    Instructions (Linux):
    - Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
    - Open terminal and change-directory to apkmanager (Easiest way is to type "cd ")
    - Chmod 755 Script.sh
    - Chmod 755 all files apps inside other folder (thanks for the tip bkmo ;) )
    - Run script by typing ./Script.sh
    - Minimize the script
    - Edit files inside the out folder
    - Maximize the script

    Requirements:
    Java
    Adb

    Future Improvements:
    - Manage multiple simultaneous apk edits (choose which apk to extract/build)
    - Option to optimize the apks
    - Option to adb push to user defined location
    - Other stuff i dont know yet




    Got problems ?

    1. Make sure your path has no spaces
    2. Your filename has no wierd characters
    3. Java/adb are in your path
    4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
    5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
    6. Look at the log to know whats happening
    7. If all else fails, post as much info as possible and we will try to assist you.

    MOD EDIT:
    New DL link from this post
    http://apkmultitool.com
    18
    Hi Download link dont work is there anything you can do to upload some other website or mirrior plzzz.:confused:

    New website http://apkmultitool.com
    7
    No lol i have windows 7, java is just not in ur path.

    Right click my computer, click properties, advanced settings, environment variables, in bottom window scroll to PATH click and edit it, at the end add ;<path to ur bin folder of java>

    so mine looks like
    c:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Droid Explorer\SDK\tools;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\QuickTime\QTSystem\
    4
    For people having the:


    The program sox is missing or is not in your PATH,
    please install it or fix your PATH variable

    problem on linux, here's the fix:

    open Ubuntu Software Center and search "sox" without the quotes

    install it

    problem solved. If OP wants to update, it'll help a LOT of people out ;)