yashsingh1/xdaforums huggingface dataset:
[Android Software Development] totalcmdext:
Compile error with framework-res.apk

-------------------------------------------------------------------------------

Please make your decision:11

Building Apk

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\z000jy

vx\AppData\Local\Temp\APKTOOL9061780819132660028.tmp, -x, -S, C:\APKMultiTools\platform-tools\..\projects\framework-res.apk\res, -M, C:\APKM

ultiTools\platform-tools\..\projects\framework-res.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\z000jyvx\AppData\Local\Temp\APKTOOL9061780819132660028.

tmp, -x, -S, C:\APKMultiTools\platform-tools\..\projects\framework-res.apk\res, -M, C:\APKMultiTools\platform-tools\..\projects\framework-re

s.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

"An Error Occured, Please Check The Log (option 24)"

Press any key to continue . . .

Any idea of problem?
[Android Software Development] sparkienl:
adb.exe

I got the error "not adb found", I looked into the script and find out that you didn't put adb.exe in the folder platform-tools/adb.

You can avoid this error.
[Android Software Development] raziel23x:
And I bet you do not have the Android SDK installed because if you did the Application would of been installed inside the root directory of the SDK.
[Android Software Development] sparkienl:
error message

FYI, I have the Android SDK installed and still got this error message
[Android Software Development] akellar:
Install this in the same place as your sdk and you won't have this problem.
[Android Software Development] raziel23x:
Updated the GITHUB account with the latest Fixes

I hope I caught all the bugs introduced with the latest installer build which is Version 1.0.1 with this latest Version Which is github only Version 1.0.2

I will have a installer Version out later after this has been Fully Tested so treat this as a beta Release not a official stable release

extract this in the root of the android sdk.

if extracted correctly the script.bat will be in the same directory as the SDK Manager.exe file

Change Log:

FIXED BUG WITH Theme porter scripts - There was a typo in the file names

FIXED BUG WITH ogg Optimizing

FIXED BUG WITH Signer.bat

FIXED BUG WITH ADB installer (HOPEFULLY)

FIXED BUG WITH APK Signing batch (HOPEFULLY)

FIXED BUG WITH ZipAlign scripts (HOPEFULLY)

FIXED BUG WITH roptipng Scripts (HOPEFULLY)

FIXED BUG WITH Keep Folder Not being created (HOPEFULLY)

FIXED BUG WITH ADB Pull/Push

FIXED BUG WITH ADB Detection

FIXED BUG WITH Signing APK Files (HOPEFULLY)

FIXED BUG WITH testkey.x509.pem Detection (HOPEFULLY)

FIXED BUG WITH testkey.x509.pem Detection (HOPEFULLY)
[Android Software Development] faustika:
someone can help me ? i cant recompile apk

I: Checking whether sources has changed...
I: Smaling...
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\faust\AppData\Local\Temp\A
PKTOOL3425491974179189053.tmp, -I, C:\Users\faust\apktool\framework\1.apk, -S, C
:\Users\faust\Desktop\apk\platform-tools\..\projects\Mms.apk\res, -M, C:\Users\f
aust\Desktop\apk\platform-tools\..\projects\Mms.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\faust\AppData\Local\Temp\APKTOOL3425491974179189053.tmp, -I, C:\Users\faust
\apktool\framework\1.apk, -S, C:\Users\faust\Desktop\apk\platform-tools\..\proje
cts\Mms.apk\res, -M, C:\Users\faust\Desktop\apk\platform-tools\..\projects\Mms.a
pk\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 . . .
[Android Software Development] raziel23x:
From the look of it you did not extract the zip file into the root of the Android SDK directory
[Android Software Development] raziel23x:
There its a few things still broken on the github which I will hopefully get fixed as I noticed I forgot to fix when looking at the compared changes and noticed a few over looked types are Need to fix the Sox scripts
[Android Software Development] hofinho:
png-optimizing doesn't work for some reason no matter what i try... Installed in root sdk-folder and always get a fc of my command prompt immediately after having selected option 18 and <zp>. The log just shows one single error: "file *.9.png not found"

Am I the only one with that problem?
[Android Software Development] raziel23x:
APK Multi-Tool Version 1.0.2 Installer is now released on the website and here is the full change log for 1.0.2

Remember if for some reason the installer does not point to the root directory of the android SDK please manually select the correct path.

You will know if it is correct if after you install it you see that the script.bat is in the same location as the main android sdk exe file

FIXED BUG WITH Theme porter scripts - There was a typo in the file names

FIXED BUG WITH ogg Optimizing

FIXED BUG WITH Signer.bat

FIXED BUG WITH ADB installer (HOPEFULLY)

FIXED BUG WITH APK Signing batch (HOPEFULLY)

FIXED BUG WITH ZipAlign scripts (HOPEFULLY)

FIXED BUG WITH roptipng Scripts (HOPEFULLY)

FIXED BUG WITH Keep Folder Not being created (HOPEFULLY)

FIXED BUG WITH ADB Pull/Push

FIXED BUG WITH ADB Detection

FIXED BUG WITH Signing APK Files (HOPEFULLY)

FIXED BUG WITH testkey.x509.pem Detection (HOPEFULLY)

FIXED BUG WITH testkey.x509.pem Detection (HOPEFULLY)

FIXED BUG WITH Sox not compiling correctly when working with audio files (HOPEFULLY)

FIXED BUG WITH minor bugs and code optiomizations

FIXED BUG WITH Optimizing PNG and 9.png files (HOPEFULLY)
[Android Software Development] zelendel:
Why do I have to run it with admin rights? It wont run without it and cant seem to set it to have perm admin rights in the properties. To be honest I never had issues till it was made in an installer and had to be installed in the android sdk directory.
[Android Software Development] raziel23x:
Sorry I just just have it set our of habit. Just the installer and installer needs admin rights since it needs access to the registry and soon system environment to register features.
[Android Software Development] danny6514:
When I paste a modified apk file in "place-apk-here-for-signing" and select a project using option 25, nothing appears. It worked this morning but now I'm signing another modified one and it won't find it.
[Android Software Development] faustika:
F:\sdk\platform-tools\..\projects\framework-res.apk\res\values\plurals.xml:79: e

rror: Found tag </item> where </plurals> is expected
[Android Software Development] faustika:
any support ? or help ?
[Android Software Development] t4ure4n:
Thanks very much. I am going to give it a try now
[Android Software Development] wesf90:
This may be due to a parse error. Double check your XML file(s) and ensure that the values are escaped properly
[Android Software Development] raziel23x:
http://xdaforums.com/showthread.php?t=640592
[Android Software Development] luki2411:
i want translate launcher and i decompile translate with notepad++ strings xml and when i compile its error its this to much for this tool . what im doing wrong if some one make step by step what i should do
[Android Software Development] G23 Mr Gimp:
Apologies if this has been asked a thousand times before, but I am having problems compiling my modified apk.

Initially I was getting an aapt cannot be found message, but I think I've solved that by popping aapt in the root of the sdk directory rather than tools, but it still comes up with an error?

Any help would be appreciated.
[Android Software Development] morg01:
Quick question:

modding a couple of xmls in contacts (or more precisely swapping out a couple of xmls),

decompiled

Swapped out

Re-compiled as system app, with options yes, yes,

deleted the two files out of the 'keep' folder along with resources.arsc

continued to compile - no errors

however I see in the compiled contacts.apk that there is now a folder called 'keep'

Q: Am I supposed to delete this folder?

edit: tired it both ways (keeping it and deleting it) neither option works . . my compiled contacts apk doesn't want to work. . . now is this because of signatures? or possibly incompatibility of xmls? . . because after I swap out the apk in sys/apps the file just doesn't want to launch, not even any FC's . . .

Sent via courier pigeon
[Android Software Development] ciscogee:
Did u sign it? And.decompile with dependencies? Maybe xmls aren't compatiple also.
[Android Software Development] neoxz:
Need some help here. Always get stuck in bootanimation after changing the array.xml files in the framework-res.apk

decompiled

edit

Re-compiled as system app, with options yes, yes,

deleted the resources.arsc

continued to compile - no errors

I'm compiling from a pulled apk from AOKP Milestone2 - ICS 4.0.3
[Android Software Development] raziel23x:
Ics is not fully compatible with apktool.jar which is what apk multi-tool uses to compile and decompile apk files
[Android Software Development] neoxz:
So, I cannot compile? There are some members who asked me to decompile with apktool1.4.1, and then replace the values folder and build with apktool1.4.3
[Android Software Development] Habarug:
I have a weird issue. With the latest stable release, it won't create the "Keep" folder when I compile, if I don't select copy over files, the whole META-INF folder is deleted. Works fine with Alfa-2:confused:
[Android Software Development] raziel23x:
I just used this latest build and the keep folder is there it is in the root of the sdk same place add the script.bat.
[Android Software Development] mjkute:
i work with framework-res.apk for editing xml, but when i finish to compile. I got boot loop and boot loop

I tried so many times with different version, but the same problem :o :( :confused:
[Android Software Development] neroyoung:
Need Help Urgent !!

Can anyone guide me how to decompile files ?

every time i try it i get error :(

here is the log

Where m i mistaking ?? :confused:

I haven't got any waring like can't found adb or can't find java.So it means they are ok.And i have set CLASSPATH as "C:\Program Files (x86)\Java\jre6\bin\java.exe"

so what the problem ?
[Android Software Development] raziel23x:
What Android API is the file from and have you tried to install the frameworks
[Android Software Development] rush25:
Why cant this extact or decompile Miui Launcher by Vipitus apk??
[Android Software Development] Rookie407:
adb not found =\

you've prolly answered this already but im lazy and dont wanna read through a million posts...

i'm running windows 7, installed apk multi tools added adb and java to my PATH but when i open apk multi tool i still get the error "adb not found" is there something else i need to do to correct this?

could the issue be because i have both java 6 and 7?

when i pull the log i get this >> ^C--------------------------------------------------------------------------

|Sat 01/28/2012 -- 10:12:01.60|

--------------------------------------------------------------------------

--2012-01-28 10:12:02-- 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% 984K=0s

2012-01-28 10:12:02 (984 KB/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.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"' is not recognized as an internal or external command,

operable program or batch file.
[Android Software Development] garf02:
I have this issue:

Saving to: `apkver.txt'

0K 100% 1,65M=0s

2012-01-28 16:17:43 (1,65 MB/s) - `apkver.txt' saved [152/152]

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)

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\garf02\apktool\framework\1.apk

I: Loaded.

I: Loading resource table from file: C:\Users\garf02\apktool\framework\2.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

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\garf02\AppData\Local\Temp\APKTOOL9040800179375623971.tmp, -I, C:\Users\garf02\apktool\framework\1.apk, -I, C:\Users\garf02\apktool\framework\2.apk, -S, M:\\projects\MusicPlayer.apk\res, -M, M:\\projects\MusicPlayer.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\garf02\AppData\Local\Temp\APKTOOL9040800179375623971.tmp, -I, C:\Users\garf02\apktool\framework\1.apk, -I, C:\Users\garf02\apktool\framework\2.apk, -S, M:\\projects\MusicPlayer.apk\res, -M, M:\\projects\MusicPlayer.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, 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 file specificato

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(Unknown Source)

at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

------------------------------------------------------

Because the program not running aapt??
[Android Software Development] neroyoung:
I am trying to decompile and edit SystemUI.apk from my xperia mini pro

And i have installed framework-res.apk using apktool properly.

Is there any step by step guide to install and use apk multi tool ?
[Android Software Development] raziel23x:
Install apk multitool into the root of the Android sdk
[Android Software Development] Habarug:
Did you change something so it has to be in the sdk folder? If so I will try that, but for me Alfa 2 works fine ;)
[Android Software Development] zelendel:
Yes the new update needs to be in the sdk Folder. I am still using an older one as well that doesn't need to be there
[Android Software Development] raziel23x:
yea this is correct I did this so I did not have to update every time there is a update to the Android sdk
[Android Software Development] leonardoaraujo:
help!

guys, I'm editing my framework-res.apk, I have a message on the screen, but I could not understand what it means, someone can translate / explain to me, you do not know English very well, I'm struggling to understand this:

___________________________

In the folder u'll find apk manager

Keep a folder. Within it, delete

everything you have modified and leave

That you have not files. If you have modified

any xml file, then delete from resources.arsc That

folder as well. Once done then press enter

on this script.

______________________________

I'm editing XML's (progress_horizontal)

Thanks in advance!
[Android Software Development] ciscogee:
When u see that on screen. There is a keep folder in ur apktool folder. Delete the resources since your editing xmls. And the XML u edited. Then go back to batch and press any key

More or less exactly what it says.
[Android Software Development] leonardoaraujo:
thanks for the reply man!

did not work. "reboots" ..

I did a test:

1-decompile Framework-res.apk = "option-9"

2-I made ​​no changes to the framework.

3-compile framework-res.apk = "option-11"

4-framework does not need signature right?

5-apk send to phone = "option-8"

I sequence of reboots, but even without making any alteration in the framework?

even without any error in the log?:confused:

PS: I discovered how to do, my framework-res.apk compiled but not installed in this phone.

Once compiled, the two open frameworks with 7zip, I moved the edited file (progress_horizontal) to the original framework, and success!

I have blue volume bar now! :) (It was the only thing that irritated the CM7, every theme, but not the volume bar ..).

Thank you for your attention friend! (perhaps this solution will help someone).
[Android Software Development] penyo_aka:
HEllo guys, need some help. Why after I'm edit androidmanifest.xml then compile.

And then I'm decompile the result of compile apk. My edit script value on it back again into before i edit it?
[Android Software Development] SkilletDesire:
Getting the following bug updated to the latest JDK but It may have to do with Windows running 64bit. Any ideas?

Exception in thread "main" java.lang.NullPointerException

at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)

at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)

at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)

at org.antlr.runtime.Parser.getSourceName(Parser.java:88)

at org.jf.smali.smaliParser.getErrorHeader(smaliParser.java:358)

at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)

at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)

at org.jf.smali.smaliParser.method(smaliParser.java:1657)

at org.jf.smali.smaliParser.smali_file(smaliParser.java:595)

at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)

at brut.androlib.Androlib.buildSources(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:170)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)
[Android Software Development] DAGr8:
alright , I must be to dumb or the theme porter is still broken

version 1.02

put the files in root of sdk/transferred

put the themed files in sdk/themer

hit 15 .

one apk disappears

another one appears in folder sdk/themer/transfered but it is 0b size .

what am I doing wrong .

I can do this one by one no batch nothing always a 0bsize
[Android Software Development] raziel23x:
I am in the process of fixing this issue but it seems that I am unable Work on the project as my Computers are all dead going to cost about 2000 usd to replace both machines
[Android Software Development] jocala:
I get bootloops on a decompiled/compiled framework-res.apk I do not sign it. I'm not sure where to start debugging this, havent had this problem before on other phones.
[Android Software Development] Galon123:
edit : after installing framework-res.apk and SemcGenericUxpRes.apk through the apktool,from this tutor http://xdaforums.com/showthread.php?t=1466100 then i have no problems in decompiling and compile apk..cheers :D
[Android Software Development] bombadier:
Deleted as no help given
[Android Software Development] jedil1c1ous:
I hope someone can help... I installed the latest version of APKMultiTool (1.0.2). I'm trying to just modify my SystemUI.apk. When I extract it (option 1) and add the files to the projects folder and then try to zip it again (option 3), it builds the apk but the structure of the apk has the /projects/SystemUI.apk/ root folder structure inside. This is no good. Am I missing something?
[Android Software Development] zelendel:
You may want to do a little more research. To pull the apk from your phone use option 0 then option 9 to recompile and make your edits. Then 11 to compile the apk. Please do some research before you bootloop yourself.
[Android Software Development] zelendel:
This is due to Apktool not being updated to work with ICS yet and that is an ICS based app
[Android Software Development] STONEMC:
Okay...didn't knew that....when it will be possible to work with ICS apps?