yashsingh1/xdaforums huggingface dataset:
[Android Software Development] he_stheone64:
First you need to make sure the path has no empty parts

C://androidfiles/apk_manager_5.0 is fine, C://android files/apk_manager_5.0 would create issues.

You only need to install new framework`s in the following cases:

1. You decompile a system apk from a different Android platform then before (Froyo, Gingerbread eg.) - in that case you install a new framework-res.apk

2. You decompile a system apk with dependencies to a 2nd framework like in Sense ROM`s or Samsung ROM`s - in that case you will in case of Sense install a new com.htc.resources.apk

You can install these with 10 option and just drag the framework in the bottom of the script window. In the rare case this fails (never happened to me), you can manually install frameworks in apktool:

open a terminal/command prompt

cd into the folder, where your apk is located

(in this example sensation)

now type this:

apktool if framework-res.apk sensation (sensation will be a tag name of the framework)

and then after type this:

apktool if com.htc.resources.apk sensation (sensation will be a tag name of the framework)

You don`t need the tags, but in case you are working on multiple projects with apktool, it makes sense. In any case I doubt you will have issues, if you drag framework to the correct area.
[Android Software Development] he_stheone64:
1.3.1 is always good to have, since sometimes new apktool versions create issues (and vice versa). For that reason I always have several versions on hand so I can just drag them in "other" folder when needed.
[Android Software Development] rebel1699:
Exactly how do I change the path to include adb.exe, which in Android SDK 12 is in the C:\Program Files (x86)\Android\android-sdk\platform-tools path.

Because Every time I launch the script in APK Manager, I get this message "Adb was not found. You will not be able to manipulate the files on your phone". I would really like to get this working. Thanks guys.
[Android Software Development] SXUsr:
Hi.

I would have preferred to have figured this out for myself but I'm stumped here. An unmodified framework decompiles ok but any other apk fails.

I've attached the log and the unmodified apk I'd like to mod.
[Android Software Development] frederikh:
Hi :)

Im trying to edit the framework-res.apk from my rom, to change the battery icons.

Im using APK manager to decompile the apk, then i replace the stat_sys_battery pngs with 30 custom ones. after that i edit the stat_sys_battery.xml and zzzstat_sys_battery.xml to include my pngs at specific battery percantages.

that all goes well, but when i try to compile the .apk i get some errors.

first i have to type y or n i its a system app.

i press y and enter

after that it says to navigate to /apkmanager/keep and delete all files i edited.

but all files in this folder is the stock ones (IE unedited)

i have tried a bunch of things:

1. do nothing and continue

I end up with a 4 KB unsignedframework-res.apk containing onlt meta info

2. I delete the stock versions of the files I edited

I end up with exactly what was in the keep folder, an .apk without the files which I deleted

3. I delete the stock versions of the files I edited, and replace them with my modified files

I end up with what seems to be what i need (when i open the .apk in 7-zip i see all of my pngs and xmls) but when i flash it i end up with the battery unknown icon

Can anyone enlighten me??
[Android Software Development] rebel1699:
Ok, I have no more Java or adb.exe issues. The problem is, once I choose 9 to decompile, the cmd window closes and nothing gets decompiled. Any workaround for that? I tried to change the compatibility to XP sp3 but no help.
[Android Software Development] raziel23x:
Well since I have completelt rewritten the tool and changed it name to apk multi-tools which can be found on my website at http://apkmultitool.com it comes with a doc folder with instructions as well as I am currently working on setting up a wiki on the website as well so that there can be a always up-to-date instructions manual.

I am working on a few updates and bug fixes on the new apk multi-tools app and some functions are broken and I am working on fixing them

Here is also the thread about the new released version

http://xdaforums.com/showthread.php?t=1310151
[Android Software Development] WhiteReign:
I just get a screen that pops up and is gone just like that after hitting the Script. I am sure its got some thing to do with my path. Can any one look and lte me know if mine is right? Thank you..

C:\Program Files\Java\jdk1.7.0_01\bin;C:\android\android-sdk\platform-tools
[Android Software Development] raziel23x:
Java 1.7 is incompatable use java 1.6 which is what it. Uses and compiled by
[Android Software Development] WhiteReign:
I just did that still nothing. It hates me. :(

C:\Program Files (x86)\Java\jre6\bin;C:\android\android-sdk\platform-tools
[Android Software Development] blueluck77:
Right click the script and run as admin
[Android Software Development] Perka:
Had the same prob, it was the user program control, cant remember what its called :-P

In controll panel users.
[Android Software Development] Dunc001:
Could someone who knows what they are doing please have a look at my apk manager log attached below and let me know what the problem might be. I am modding the HtcQuickLaunchWidget.apk - I have edited and replaced almost all of the pngs, including 2 .9s which I have remade with draw9patch and xUltimate. I know there is one unedited .9 which is showing an error - forgot to repatch it before trying to recompile. The problem is more with the fact that there is an entry like this:

C:\AndroidSDK\Apk_Manager_5.0.2\other\..\projects\HtcQuickLaunchWidget.apk\res\values\public.xml:103: error: Public symbol drawable/common_icon_glance_add_on declared here is not defined.

...for pretty much every single image. I haven't edited public.xml at all, and all the images are correctly named and in res/drawable-hdpi as they should be. I have edited dimens.xml and several xmls in /layout (but only for text colours and some positioning).

This is the first time I am trying to do a full edit of an apk (rather than just dragging images in using WinRAR) so I am sure I may be missing something obvious...

BTW, for editing text colours in decompiled xml do I just enter them as normal (ARGB) or do I still have to invert them (BGRA)? So if I wanted a dark grey would it be ff333333 or 333333ff?

Hope someone can help ;)
[Android Software Development] blueluck77:
Delete the public.xml before recompiling, it will be generated during compiling of the apk. as for the colors it would be ff333333.
[Android Software Development] Dunc001:
Nope, that didn't work either :( I deleted the public.xml like you said and got an even longer error log when trying to compile - attached below
[Android Software Development] blueluck77:
Fix the .9.png error first here is the guide I used that explained how to do it to me.

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

If you are still up working on this shoot me a PM with a number (if you are stateside) and Ill see if I can give you a tip, its kind of difficult to explain through typing.
[Android Software Development] Dunc001:
Thanks for the reply. Sorry, it was 1.30am here so I decided to have an early night :D I had just forgotten to repatch that .9 before I tried compiling as it wasn't one I had edited LOL Also liamstears has had a look at my edited files and has found a small error in one of the xmls so I'll correct that and give it another try. I'll let you know how I get on...
[Android Software Development] anto.danny:
download link is not workin dude...:confused:
[Android Software Development] Droidzone:
The filejungle thingy server doesnt exist...Do you have an alternate link for the linux version?
[Android Software Development] raziel23x:
For a more updated application and major changes vist this thead [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool as I added new features and changed the name also be warn there is one broken feature and that is the optipng option which I am currently working on resolving
[Android Software Development] Droidzone:
You dropped the linux version altogether?
[Android Software Development] raziel23x:
There is another guy who is working on a Mac/unix version over here at

http://rootzwiki.com/topic/4879-utility10-18-2011-apk-manager-for-mac-os-x-intel-only-v121/

I am mainly a windows Development tools DEV with limited knowledge of Linux and I am currently looking for anyone willing to convert apk multi-tools over to linux if they wish all they have to do is contact me and work out the details and git access to the organizational git
[Android Software Development] WhiteReign:
Just wonder why I cant sign an APK like a Clock.apk just wondering what I am doing wrong. :(
[Android Software Development] ktmbikerman:
Help needed with decompiling/compiling errors

Hello, Could someone please take a look at the log below and tell me what I'm doing wrong. Extracting > Zipping > Signing > Installing works fine but when I try to Decompile > Recompile > Sign > Install I get the error below. I've tried with APK Manager 5.02 and APK Multi-tool Alpha2, the results are the same. Here's the log:

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

|08-11-2011 -- 18:07:55.79|

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

java version "1.6.0_29"

Java(TM) SE Runtime Environment (build 1.6.0_29-b11)

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

1662 KB/s (3613268 bytes in 2.122s)

Could Not Find C:\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedics16.apk

Could Not Find C:\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedics16.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\pholloway\apktool\framework\1.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...

I: Building apk file...

1828 KB/s (3697269 bytes in 1.974s)

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:174)

at brut.apktool.Main.main(Main.java:59)

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

The system cannot find the path specified.

1780 KB/s (3586435 bytes in 1.967s)
[Android Software Development] Droidzone:
There's no point in asking this in Apkmanager thread. This is only a wrapper for apktool.
[Android Software Development] raziel23x:
It is a random bug. Which is in the works of getting patched. Brut has been fixing. Bug lately and beenpushing updates to his source code in git as well as I have been working on intergrating the latest salmi source and will be updating apktool.jar soon but I will just be updating apk multi-tool as apkmanager is obsolete now that I rewritten the original manager source and added new features. I will hopefully have a answer for why this randomm bug happens and. Or brut.all which ever one of us does first. The next release of apktool.jar will support android sdk revision 13 so look forward to many bugs fixed with though who have been unable to mod resources from though versions.
[Android Software Development] fjw0803:
Please make this tutorial step by step...i'm newbie sorry... :'(
[Android Software Development] raziel23x:
Please move to apk multi-tool thread as there are many added features other then optipng being broken but will be fixed in the next release also next release will also have many new features as well fixing many of your errors with smali errors due to apktool not supporting above api 8 as added support to api 13 has been added
[Android Software Development] runwitme:
[Q]transparent dock and dock size

just wondering if i am able to make my dock transparent with this? .. also would this allow me to change the dock size? .. im looking to make it shorter if possible .. anyways ... thanks for this tut/guide .. ill be reading it some more and all ..
[Android Software Development] waterpolo:
When It`s a .9 png then it isn`t possible.
[Android Software Development] alessiocerci:
oh verryy good
[Android Software Development] DJBhardwaj:
okay, now here it is

I tried to decompile my SystemUi.apk from CM7 (Deodexed)

But it says this "an error occured, please check the log <option 21>"

here is the log :

--------------------------------------------------------------------------
|Mon 11/14/2011 -- 7:47:37.61|
--------------------------------------------------------------------------
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\DJ\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\DJ\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\DJ\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

I tried both version 4.9 & 5.0

but the same error is what it gives. Some one please explain and help me solve :\
[Android Software Development] raziel23x:
well with the new TOOL you can find over at

[Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

this will be fixed with the next upcoming release
[Android Software Development] raziel23x:
Well that link I sent you is the updated version of this applcation as I have added more tools and many bug fixes.

I completely rewritten the gui of this application and have added more features to the point I thought it was a good time to change the name.
[Android Software Development] DJBhardwaj:
As you see the code, you may come to know what is going wrong. Could you tell me that ??

|Tue 11/15/2011 -- 0:24:08.04|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
Could Not Find C:\Users\DJ\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\DJ\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty
at brut.androlib.ApkDecoder.hasSources(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: zip file is empty
at brut.directory.ZipRODirectory.<init>(Unknown Source)
at brut.directory.ZipRODirectory.<init>(Unknown Source)
at brut.androlib.res.util.ExtFile.getDirectory(Unknown Source)
... 4 more
Caused by: java.util.zip.ZipException: zip file is empty
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.zip.ZipFile.<init>(ZipFile.java:158)
... 7 more

Now this is what its showing, please tell me whats causing this and how can i solve it ?
[Android Software Development] primetechv2:
"%~1" helps with spaces... a lot.
[Android Software Development] DJBhardwaj:
Hey mate, if you are trying to help me then please tell me what to do?

you can see the log on the previous page and then please explain properly what to do :(
[Android Software Development] raziel23x:
For one your using java 1.7

You need to uninstall that and install java 1.6

Second your using apk manager 4.9 which is out dated as hell

Third you need to switch to apk multi-tool which can be found at http://apkmultitool.com as this aoolication has been completly redone with many improved features and have added better file support and improved image editing
[Android Software Development] DJBhardwaj:
I will try that report asap :-)

Via LG Optimus-One reloaded with CM7
[Android Software Development] raziel23x:
http://xdaforums.com/showthread.php?t=1310151

This is the official forum for apk multi-tool

But to answer your question that is a bug with the application as it right now in its current state does not support gingerbread ie android 2.3.x

But do not fear but I will be compiling a new version soon of apktool.jar which 2.3.x will be supported. But right now waiting on brut.all say go as of right now he is in the middle of updating some of the java source
[Android Software Development] DJBhardwaj:
Last reply here, next will be on official apk multi tool thread.

So for now i have to wait untill you update ?

Via LG Optimus-One reloaded with CM7
[Android Software Development] Crowds:
i don´t get one thing.

i have java installed (i use java for work) but when i try do anything always get "java was not found....":confused:

thks;)
[Android Software Development] blueluck77:
Did you add java to your path? This corrected this issue for me.

p.s. make sure its java 1.6
[Android Software Development] Crowds:
sorry if this is sound like stupid :D but what do you mean by my path?

is 1.6 the only that worked?! due work my laptop update everything automatically without my permission/intervention so atm i have Java 6 update 26.

thks;)
[Android Software Development] blueluck77:
This should help you update the path
[Android Software Development] Crowds:
thks work like a charm ;) i´ll give 5 thks if i could :p
[Android Software Development] raziel23x:
Please read the original post as this is no longer supported.

I have updated the original post with instructions on the new and improved application as this is now called apk multi-tool
[Android Software Development] lanternslight456:
Some of us use this still however since Linux was abandoned.
[Android Software Development] raziel23x:
Well the only reason there is no linux version is I do not have a linux box anymore and can't afford a new one because of server cost and other things like paying my bills and everything is paid out of my pocket with out any help. If you been keeping up with the apk multi-tool website server cost run up to 200 a month out of my pocket.

Out of the 8 months of taken over this there has only been a donation of 5 bucks which paypal takes a 30% cut which is suprising since there has been terabytes of downloaded data and thousands of man hours put into this.

As soon as. I can get my hands on a linux box I will port over it to linux
[Android Software Development] lanternslight456:
I meant no insult and can relate, as I have no windows box. I was merely mentioning the point that this is the newest Linux supported release.
[Android Software Development] DJBhardwaj:
@raziel23x:- I suggest you should lock down this thread, remove all the download links and just write in bold on the first post about your new Multi apk tool

btw i solved my issue, i checked the log and read somewhere that there should be no breaks in file paths, i had breaks. I removed them and BINGO! its working now

Thanks alot for helping.

And sorry i commented here. Please lock this one
[Android Software Development] GazaIan:
Why? Multi-APK tool isn't available on Linux and I doubt he's going to get enough people to support to get the Linux box.
[Android Software Development] lanternslight456:
I've never understood the whole 'lock old threads' mentality. Oh well, it's a good tool. What have you updated and where can we look to fix the linux version ourselves?
[Android Software Development] silentscreamer:
Brilliant tool, so far- it does (mostly) what it should. :D

But those .odex files are not converted by your tool, the program fails and both files are left untouched:

-voicesearch.odex / voicesearch.apk

-Maps.odex / Maps.apk

(Firmware: Stock BOKK1 / Gingerbread 2.3.5/ Galaxy S2)

I have repeatly tried to deodex both .odex files, the result is always the same.:(

What I'm doing wrong or is it so that both files cant be deodexed by your tool :confused:

...please, give me a hint :)

best regards
[Android Software Development] raziel23x:
I Have merged both APK Manager and APK Multi-Tools together on the main website at http://apkmultitool.com/ so I have not gotten any Donations what so ever for server cost or help with getting a new dedicated Linux box for further development for the Linux version of apk multi-tool linux Version.

I will attempt to fix some issues with the linux version and begin working on porting features over for it but there will be no way for me to test the code and know for sure if things will work properly so I ask this

PLEASE USE APK MULTI-TOOL Thread fro support now and Visit the Website for downloads of the applications as the most recent versions of the applications will always be on the website.
[Android Software Development] chuan1311:
can i get download link for apk manager 5.0.2??because i cant download from first page...
[Android Software Development] raziel23x:
Apk manager is no more all links are gone and it is now called apk multi-tool

There is a link in the op on where to go
[Android Software Development] ghidda:
hi, this is the issue presesente when i try to connect to side write up

View attachment 803495
[Android Software Development] N_Wolve:
maybe i'm stupid but how can i set my java 1.6 to this tool (i'm new @ this), and how do i make a project :o

thx in advance