yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Dunc001:
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.
C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\res\values\styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Duncan\AppData\Local\Temp\APKTOOL9053733828675791244.tmp, -I, C:\Users\Duncan\apktool\framework\1.apk, -I, C:\Users\Duncan\apktool\framework\2.apk, -S, C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\res, -M, C:\AndroidSDK\Apk_Multi-Tool\other\..\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Duncan\AppData\Local\Temp\APKTOOL9053733828675791244.tmp, -I, C:\Users\Duncan\apktool\framework\1.apk, -I, C:\Users\Duncan\apktool\framework\2.apk, -S, C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\res, -M, C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

Can anyone point me to what my problem is here? I am trying to recompile SystemUI.apk from a GB Sense 3.5 ROM. I have framework-res and com.htc.resources installed (apktool if ...). I have SDK Tools 16, Java 1.7.0.2 and APK Multi Tool 1.0.2 - if any of that helps. The styles.xml errors are not of my doing so they won't be affecting the compile AFAIK.
[Android Software Development] zelendel:
The errors tell you what the issue is. IT is looking for the halo theme settings that are not there. You would either have to remove those lines, change them or add the style.

As for the ICS apps. I am not really sure, if they are compiled using the ICS framework then we may have to wait for an APKTOOL update.
[Android Software Development] Dunc001:
Hmm...

Should I be decompiling SystemUI with option 9 or 10 (with dependencies)?

If I use option 9 then compile again straight away without making any changes it recompiles fine. Actually, I just tried decompiling with option 10 and on recompile with my edits the style.xml errors are gone, but I still get the aapt errors (in fact this time aapt crashed completely (aapt.exe has stopped working...)). I have re-downloaded APK MT and reinstalled but I still get the same error on recompiling:

I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Duncan\AppData\Local\Temp\APKTOOL8635079866069086026.tmp, -I, C:\Users\Duncan\apktool\framework\1.apk, -I, C:\Users\Duncan\apktool\framework\2.apk, -S, C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\res, -M, C:\AndroidSDK\Apk_Multi-Tool\other\..\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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Duncan\AppData\Local\Temp\APKTOOL8635079866069086026.tmp, -I, C:\Users\Duncan\apktool\framework\1.apk, -I, C:\Users\Duncan\apktool\framework\2.apk, -S, C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\res, -M, C:\AndroidSDK\Apk_Multi-Tool\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
[Android Software Development] leith51:
There is a new apktool 1.4.3 out by brut so I've read it will decompile/recompile ics apps not tired myself yet not had chance

Copied from apktool website

1.4.3

2011.12.08

updated builtin framework to SDK API14 fixed some "Multiple substitutions (...)" errors ( Issue 254 )

sent from my dhd
[Android Software Development] raziel23x:
This app uses apktool 1.4.3
[Android Software Development] Southern_mind:
Hey raziel, great tool but how exactly do you use the themer part of your tool? The instruction are kinda fuzzy.

Edit; also when I extract systemui.apk then zip using option 3 it zips it with projects and in projects you find the folder systemui and in it you find the stuff that was suppose to be in the apk after using option3 not the folders.

Sent From My Mecha
[Android Software Development] raziel23x:
The theme porter is a special script that allows you to port any theme from any rom of any android version to your current rom but sadly it is broken do to a error on my part as i written the script in the wrong format. But to my best efforts i am unable to fix the script at this time due to my windows computer just died last week so now i am without both my linux box and my windows machine. I am unable to afford a new one right now due to a cant even afford to pay my own bills due to running into hard times. The donations i actually receive are so far and between and extremely rare that are like 1.00 donations which equal out to actually be $0.65 cent after paypal takes it cut. That does not hardly cover cost for website maintenance. I will have a fix that will fix many of the issues as soon as i can come up with 2x$999.99 for two new machines to work on the script as i ran both mine and my wifes computers into the ground working countless hours doing this project free of charge to you the public. And i have other projects i am working on as well which have been affected by the now lack of a computer. As soon as I am able to do so I promise to have a fix released as soon as i am able to afford to purchase a pc.
[Android Software Development] Southern_mind:
I'm in the same shoes you are in. Broke. Just had a baby and the bill collectors started calling. I'm praying things get for us and now for you too.

Sent From My Mecha
[Android Software Development] raziel23x:
I feel your pain.

I just had major surgery Thursday.

Had all my top teeth surgically removed.

Getting a denture in about 8 weeks.

Right now the collectors stopped calling me because they sued me instead so now my entire paychecks are being taken away and they aspect me to live off $200.00 a month.
[Android Software Development] Southern_mind:
Sorry bro. I had major surgery as well been back to work for a year now still have pain in my foot. I had a tumor. Now I have bone marrow, a cadaver bone and 8 screws and two metal plates in my foot.

Sent From My Mecha
[Android Software Development] raziel23x:
All I can say about that is ouch
[Android Software Development] Southern_mind:
Check it out.

I'm so glad I have health insurance cause it would have been over 200k

Sent From My Mecha
[Android Software Development] raziel23x:
Mine is like 6 grand with insurance
[Android Software Development] Southern_mind:
See that's what wrong with our health care system they charge too much.

Sent From My Mecha
[Android Software Development] raziel23x:
The scary part is my insurance covers 80%
[Android Software Development] Southern_mind:
Same here. After I spend 4500 it covers everything though.

Sent From My Mecha
[Android Software Development] vikasb32:
Sir i want to edit xml file in phone.apk but apk multi tool give error when i decompile the apk.so what should i do for edit the xml file.thaks
[Android Software Development] zelendel:
Did you decompile it with the proper framework? What device and romnis it from?
[Android Software Development] vikasb32:
I am using lg optimus p500 and rom is cm7.
[Android Software Development] vijai2011:
Linux support please..........
[Android Software Development] The Archangel:
im running windows 7 service pack 1,just updated java to the newest one. Every time i try to use apk muilti tool,it says java not found. well i did a little reading says i need to change the path,but thats where i get confused. what path do i exactly need to change, what "class value"?

Edit: figured out the Java issue.
[Android Software Development] guardiantech:
Having similiar problem

im just trying to re-theme a couple icons and when i try to sign apk it gives me a java related error saying it cannot find the file specified. the file is definately there, named exactly as it should be...

This is and ICS port on the G2X.

Any help would be greatly appreciated. Thanks
[Android Software Development] FlorisNL:
Hey guys,

extracted the apk, edited it, but how to make it an .apk file again?

Floris
[Android Software Development] neobirdrio:
To edit some apk.. And the easy method is just DONT extract the apk.. Never extract the apk if you dont have complete developer tools or the tools not working properly on your pc.

Get 7zip.. Install..

Get your apk ready, right click on the apk > 7zip > open arvhice. Do not extract.

Now you can see the contains of the apk. Select which file/image you wanna change, right click on it, copy it out.. Edit the way you like. When done, with 7zip still exploring the apk's contains, drag the edited image back to where you copied it out. Something will popup, click yes. Now close the 7zip. And another popup will prompt you about something changed in the apk. Just click ok then you done.

To rename/edit the description files, just use notepad++. And still with the same method as above.

Note : if you just want to make a small edit/change images on apk, just use this method. But if you wanna develop an apps from start, ofcoz you need complete tools. Make sure you know what you wanna do.

The dev here provide a tools for advance user, thanks for his/her hardwork developed such a great tools. Thanks
[Android Software Development] mDroidd:
Raiel knows..

I am porting the tool 2 hours a day.

I am porting this tool to Linux, so official support is coming (I had a talk with raziel). The main file (start script = Script.bat ) is already 888 lines of code.

Then you have the themer script, the apktool (universal), signer, updater scripts..

I ported them all already, except for the Script.bat - only the first few lines ported.

Excpect it to be ready in 2 months, but as raziel told me: I don't believe in ETA's

OT: Raziel, would it be possible for you to host linux files also (I mean roptipng, 7za etc)? And if you update, please tell me the code-changes instead of send me the new files :P

I'll send you a PM also.
[Android Software Development] detonation:
So I've been using APK Manager 5.0.2 but decided to try using MultiTool 1.0.2 today. When I recompile my apk (SystemUI) the final apk is twice the size because it has the "keep" folder within the actual apk . I saw someone post an issue similar to this earlier in the thread but there wasn't really a solution.

I have the latest ApkTool and properly installed resources - everything works fine when I'm using APK Manager. But when I try the same thing with the MultiTool, the issue above happens.
[Android Software Development] msavic123:
Problem with compiling proprietary apk

Hello, i have a problem compiling Phone.apk from Sense 2.1

Decompiling (with dependencies went fine), i enabled landscape mode, and i get errors on recompiling, no matter what i do.

Just for testing, i tried recompiling without modifying anything. Still i get errors.

Any suggestions?:(
[Android Software Development] robm1911:
Are you trying to modify a themed apk? If so it is always best to start with an unmodified apk. I have seen alot of themed apk's that wont compile correctly due to broken or malformed .9 pings. Look at the log to see what type of errors your getting.
[Android Software Development] mDroidd:
if you delete the values for other languages, it will be the default (probably English).

Are your sure you edited the manifest the right way?

Greets!
[Android Software Development] shockwaverider:
+1

Same thing here, and I also found that if I answer "no" when prompted whether or not to save other files (ie at the stage where the keep directory would be generated), instead of putting the "keep" folder into the compiled apk, it puts "projects" instead, lol.

Running on Windows 7.
[Android Software Development] The Archangel:
So installed this great program the other day. For some reason if I decomplie an apk, then re-complie it, if give me an error like: files not found. Even if I don't touch any file at all. I would include the log cat, but I have no wifi to do so.

If I helped, give thanks, if you please.

........Death before dishonor........

Team inferno

Leader
[Android Software Development] sniperkill:
You figured out the Java issue, but why didn't you post how you fixed it?
[Android Software Development] The Archangel:
I honesty didn't think bout it,I redownloaded java an installed this program to the desktop, then it fixed itself, now I'm dealing with adb an compiling issues

If I helped, give thanks, if you please.

........Death before dishonor........

Team inferno

Leader
[Android Software Development] Southern_mind:
with option 10 and use com.htc.resources.apk as the dependency

Sometimes you need a dependency apk with systemui try using option 10 and use the framework-res.apk
[Android Software Development] Dic3ptor:
I think you missunderstood me. ;)

Decompiling with option "9" or "10" works great! But recompiling gives that error, option "11".
[Android Software Development] Swiftks:
Same thing more or less here...

I am running into the same wall that I always to when I try and re-compile the ICS Systemui.apk from my Asus Transformer Prime. I get a aapt.exe crash, followed by the following error:

C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI
recompiling C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Troy\AppData\Local\Temp\APKTOOL2330637792693006158.tmp, -I, C:\Users\Troy\apktool\framework\1.apk, -S, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\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\Troy\AppData\Local\Temp\APKTOOL2330637792693006158.tmp, -I, C:\Users\Troy\apktool\framework\1.apk, -S, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

I made no changes to the systemui, I simply decompiled it (which worked fine) and then recompiled it.

Yes, I did apktool install the framework from the same system, before hand.

I have gotten this error everytime on the systemui, no matter which guide or apktool version I use. The framework-res works without a hitch, but the damn systemui is a ***** that has no mercy! :eek:

Thank you for any help you can throw my way. Me and a few others on the Prime thread are trying to get a % battery mod done for the Prime, but we need to be able to recompile the SystemUI.apk first.

- Thanks
[Android Software Development] mDroidd:
Please, if you have errors, paste them at pastebin.com and place the link here...

This is useless space

Greets!

I'm not a fake.

I prefer people to reply to me and give feedback instead of thanking me!

But thanking me does show if you apreciate my works.
[Android Software Development] StuRoid:
I've been trying to decompile Swiftkey and theme it then re-compile it again and have never been successful. I've only managed once to extract an apk and then zip,sign and install it. I don't know if I have changed anything since then that is now making it fail. I've also only successfully decompiled maybe twice but it will never compile it afterwards even if no changes are made.

I am getting this now when I try decompile

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

|05/03/2012 -- 18:15:37.47|

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

java version "1.7.0_03"

Java(TM) SE Runtime Environment (build 1.7.0_03-b05)

Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)

2722 KB/s (5035319 bytes in 1.806s)

Could Not Find C:\Users\Stuart\Desktop\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSwiftkey

Could Not Find C:\Users\Stuart\Desktop\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSwiftkey

I: Baksmaling...

I: Loading resource table...

W: Skipping "android" package group

I: Loaded.

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

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1

at java.lang.String.charAt(Unknown Source)

at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)

at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitutions(ResXmlEncoders.java:138)

at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(ResStringValue.java:63)

at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(ResScalarValue.java:65)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)

at brut.apktool.Main.cmdDecode(Main.java:120)

at brut.apktool.Main.main(Main.java:57)
[Android Software Development] aaron.a:
is there a fix for compiling ICS framework res using apk multi-tool? similar to this

http://xdaforums.com/showthread.php?t=1427959

this is a little frustrating. i'm new, and it took me a few hours to set up a sane build environment in which to run apk multi tool, so having to set up and learn a new tool is a turn off right now =/

well i tried simply replacing my apktool.jar aapt.exe and apktool.bat then running apk multi tool as usual and that didn't work. i'm kinda lost.
[Android Software Development] raziel23x:
There will be a fix hopefully within the next 6 weeks but I an unable to fix right now due to vacation will be back in the states April 1st
[Android Software Development] Southern_mind:
Hey buddy what ROM are you using in your bionic?
[Android Software Development] raziel23x:
A personally modified stock which I basically just deoxed the stock image and added root access.

So there is nothing really different then ref stock
[Android Software Development] rodhiesutrawan:
how can resolved error message of "brut.....
[Android Software Development] Mefistozisimo:
Apk multi tool!

Very good indeed!
[Android Software Development] raziel23x:
You have to have the Android sdk installed and apk multi tool in the root of the sdk. The script bat must be in the same directory as the main executable of the android sdk.
[Android Software Development] Irufan:
Great Post Thanks
[Android Software Development] faustika:
APK MT also installed in root directory in SDK
[Android Software Development] raziel23x:
I will gave to take a look at the code when i get back my computer from the shop as they said it will take up to three weeks before my computer will be ready for pickup as i sent it back to best buy to get fixed since i can't afford to by a new computer
[Android Software Development] zman519:
How come after you Extract apk (#1) & then #3 Zip apk the apk made ends up with the projects folder in it like this?

unsignedTouchWizCalendar-Pruple.apk\projects\TouchWizCalendar-Pruple.apk\

Its a system apk so after 3 i pick 1 for system apk.
[Android Software Development] Quipper2008:
Hello,

i want to edit an *.xml in framework-res.apk of cm9.

Decompiling works fine.

But i cant compile the framework-res again.

What ive tested is to put the resources.arsc from unmodded framework-res.apk in the framework-res folder of the project folder and see, compiling works.

After that i added the missing META-INF folder in compiled apk and installed the framework-res.apk trough cwm. BOOTLOOP.

Also tested to sign the framework. Same here. BOOTLOOP.

What am i doing wrong?

Thanks.
[Android Software Development] xK1LLSW1TCHx127:
ADB issues

Hello, I am trying to edit icons, and i know how to do this, except that when i open up the apk multi tool file, it always tells me that it cannot find ADB and so it will not be able to make modifications to my phone. I have the sdk and the multi tool running out of the root "C" directory on my PC

adb runs out of c:\android\tools\adb

the multi tool runs out of c:\script

Is my problem that the tool doesn't run through my adb first? So should i move the tool into the same directory as "adb"? This is just really confusing to me, thanks, i really appreciate any help.:):confused:
[Android Software Development] mDroidd:
The signing.

Every system apk amd framework apk should be signed with the same key, if I'm not mistaking...

So sign every APK is everything I can give you :$

Greets!
[Android Software Development] mDroidd:
ADB should be your path, otherwise it cannot find adb.

Dont know how to do this on windows, though. Sorry

Copying ADB to your APKTOOL directory could work also.

Greets!
[Android Software Development] waterpolo:
ADB is also included in multi-tool.
[Android Software Development] mDroidd:
Then you tell the guy what to do?

Greets!
[Android Software Development] xK1LLSW1TCHx127:
Ok thanks guys, i will try copying my adb directory into the multi tool directory and see if that helps, if there is a beyter solution that would be much appreciated, thanks!
[Android Software Development] bswann:
I just tried that and it didn't work for me. I have tried everything and it still cannot find ADB so I haven't been able to do anything with this yet.
[Android Software Development] xK1LLSW1TCHx127:
Yeah it's a little annoying haha, well let's all just keep trying something till the script can find adb and report back if we figure out what to do=)
[Android Software Development] swap.blue:
wat to add in path

i have added both java and adb all paths are seperated with ";"

Apk multi tool shows that adb was not found......

wat to do

help me its urgent
[Android Software Development] raziel23x:
Install the android sdk then install apk multitool in the root directory
[Android Software Development] xK1LLSW1TCHx127:
I did do that, they're both in my computer's root "c" directory and it still can't find it. Thanks for the suggestion though!
[Android Software Development] bswann:
Install Multi-Tool in the SDK folder.