yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] mattmanwrx:
I'm afraid I can't help further... has the framework Res already been modified..? I see there is a space in the path (apk manager) try aagain with a _ in-between... is it just image editing?
[G1 Android Development] Toldo:
It is a framework that has just been deodexed after taken from stock. I just changed some png's, that's all.
[G1 Android Development] roscoenr:
If all you are doing is changing pngs then do not decompile just add the new pngs in to overwrite the old ones don't even unzip it

Swyped from my Orange Peeled Synergist EVO
[G1 Android Development] mattmanwrx:
This is what I was going to say hence why asking...

Yes, just open in winzip, 7zip and just drag your pngs to the .zip with out extracting it... should work then...
[G1 Android Development] silverxbv2:
Are the pngs that you are adding the exact same name as the ones that you are replacing? Because those same errors should appear with decompiling also if all you are doing is swapping pngs. And you're not removing any pngs?
[G1 Android Development] Toldo:
Yeah, they're the same name. I got over it and changed the png's without decompiling - works. But now I have another problem. I tried to edit battery xml's to get battery % and I guess that needs decompiling. I did so, changed some lines in 3 xml's and I get the exact same error.
[G1 Android Development] mattmanwrx:
Easier thing to do is to put the framework Res through the uot kitchen... then make image changes...
[G1 Android Development] Toldo:
I don't need that, as I said, I got over the image editing. Now I have probs with xml's... Yesterday I booted Ubuntu and I'll try the linux version.
[G1 Android Development] mattmanwrx:
Please read my posts properly...

And as I said... to get the battery stats, just put the unmodified framework Res through the uot kitchen, adding battery percentage, wait for the kitchen, download from the kitchen then change your images... rename and theme sorted...
[G1 Android Development] Toldo:
Alright, SR, I didn't sleep well tonight. Will try that and report back.
[G1 Android Development] mattmanwrx:
No problem, sorry I don't mean to sound rude, just frustrating saying the same thing over and over again...
[G1 Android Development] Toldo:
Kitchen is full for now so I just have to wait.
[G1 Android Development] dsmitty166:
The reason for using the kitchen is simply to give the battery percent the right values. Just add a battery mod, and then switch your mod images out. Unless you want to manually update the xml, this is the easiest way
[G1 Android Development] Toldo:
I did what I wanted to do. Ubuntu helped.
[G1 Android Development] verbuyst:
thanks, this app is what I have been waiting for
[G1 Android Development] rafal408:
j'v got a problem, when i want to decompile apk is error
[G1 Android Development] chriscx:
finally I installed correctly adb and it works very fine, thank you so much
[G1 Android Development] =Dynamic=:
Hi, how i can open apk manager on ubuntu ??

What should I install and how?
[G1 Android Development] aypee3:
hi guys, when i try to decompile an apk file, i get this message -

java version "1.6.0_27"

Java(TM) SE Runtime Environment (build 1.6.0_27-b07)

Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)

Could Not Find C:\Users\user\Desktop\Unlimited-Broswer-Tabs\place-apk-here-for-modding\../place-apk-here-for-modding/signedBrowser.apk

Could Not Find C:\Users\user\Desktop\Unlimited-Broswer-Tabs\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedBrowser.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

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

I: Loaded.

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080693

l

l

etc. (similar texts)

so, i enter option 20 and select size to 2048mb

again i run it, and i get --

java version "1.6.0_27"

Java(TM) SE Runtime Environment (build 1.6.0_27-b07)

Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)

Could Not Find C:\Users\user\Desktop\Unlimited-Broswer-Tabs\place-apk-here-for-modding\../place-apk-here-for-modding/signedBrowser.apk

Could Not Find C:\Users\user\Desktop\Unlimited-Broswer-Tabs\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedBrowser.apk

Could not create the Java virtual machine.

what's going wrong??? plz help.
[G1 Android Development] chriscx:
everytime the command prompt window closes how to do ?
[G1 Android Development] kellyj1978:
Hi I have tried the APK manager

extraced the apk

Edited the png files in the drawable hdpi folder

used option 7 to get the apk onto the phone

after rebooting, all that seems to change is the battery icon, nothing else?

also tried pushing the unsigned APK to the phone and the same thing happens

Little stuck now? :0(
[G1 Android Development] WhiteReign:
After the APK is extracted and I change what needs to be changed ow do I get it back into a APK file? I see it in the temp and Projects but not sure what else to do. HELP please.. :)
[G1 Android Development] IlluminatedOne:
I am getting error decompiling Settings.apk. I have proper framework-res.apk installed but I am still not able to decompile it.Can please somebody help me with this? This is what I am getting-

--------------------------------------------------------------------------
|Thu 09/22/2011 -- 23:20:59.60|
--------------------------------------------------------------------------
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
Could Not Find D:\Android Development\ThemeWorks\apk_manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettingsP.apk
Could Not Find D:\Android Development\ThemeWorks\apk_manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettingsP.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Deepanshu\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02070015
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColorHint, value=0x02050001
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050002
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f
[G1 Android Development] dfskevinohyeah:
quickquestion! after we decompile and recompile but edited xml files what do we need to delete for lets say Rosie.apk only the resources.arsc file?
[G1 Android Development] faiyyaz:
hey sorry i am a noob..can u tel me how to install the frameworks.apk..iv been searchin for ages..dint find a way.. :/ thanx :)
[G1 Android Development] :
Copy the apktool.jar from the "other" and framework-res.apk to C: and then open a cmd prompt in that directory and type java -jar apktool.jar if framework-res.apk and hit enter

Then if ur looking to decompile systemui.apk copy that into C: as well and type in that same cmd prompt type java -jar apktool.jar d SystemUI.apk decompiled

After that u should have ur framework-res.apk installed successfully for other apks to decompile correctly
[G1 Android Development] datagubben:
Help me, please :(:(

When I want to rebuild home.apk it shows an error and this is log-file.

java version "1.6.0_27"

Java(TM) SE Runtime Environment (build 1.6.0_27-b07)

Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)

adb „r inte ett internt kommando, externt kommando,

program eller kommandofil.

Det g†r inte att hitta C:\Users\Oscar\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedHome.apk.

Det g†r inte att hitta C:\Users\Oscar\Desktop\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedHome.apk.

I: Baksmaling...

I: Loading resource table...

I: Decoding resources...

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

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

C:\Users\Oscar\Desktop\apk_manager_4.9\other\..\projects\Home.apk\res\values\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'Layout'.

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Oscar\AppData\Local\Temp\APKTOOL2123332626129610269.tmp, -I, C:\Users\Oscar\apktool\framework\1.apk, -S, C:\Users\Oscar\Desktop\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Users\Oscar\Desktop\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)

at brut.androlib.Androlib.buildResourcesFull(Unknown Source)

at brut.androlib.Androlib.buildResources(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Oscar\AppData\Local\Temp\APKTOOL2123332626129610269.tmp, -I, C:\Users\Oscar\apktool\framework\1.apk, -S, C:\Users\Oscar\Desktop\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Users\Oscar\Desktop\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]

at brut.util.OS.exec(Unknown Source)

... 7 more

Det g†r inte att hitta filen.

-------------------------------
[G1 Android Development] sasha007:
How to rename an apk using this tool .??

I mean the name of the application the is installed on the device ....
[G1 Android Development] jsmccabe78:
is there a size limitation when signing an apk?

my CM7/ThemeChooser apk, which for months i would sign easily using apkmanager, now when i go to sign it it disappears (the file gets deleted.)

so i need to sign it using java as i do to put on the market, which is a bit longer to do...

any ideas?

thanks.
[G1 Android Development] mattmanwrx:
I can't answer your question... but I created a very simple batch script to sign (using .keystore) and zipalign all in one script, if you would like to try it...?

I simply created it for signing my theme manager apk for market release...
[G1 Android Development] sasha007:
How to rename an apk using this tool .??

I mean the name of the application that is installed on the device ....
[G1 Android Development] tommytomatoe:
Please respect forum rules and do not repost. You literally posted this three posts ago.

There are two "names" that an application has. The one that Android sees it as "package name", and one that you see it as like in the app drawer. The latter can be changed in res/values/strings.xml.

The system "package name" is much more involved. You must change all references of the original name to the new one throughout the xml code and dex code (which can be hundreds to thousands of references). Use sed and grep :-) I've created two mods like this, the HTC panorama camera and custom Rosie.

tapatalk signature here. lovely.
[G1 Android Development] sasha007:
thnxx a lot for ur reply ....

I want to change the app name in the app drawer ....

Could you please tell me how to do that .? I mean you said that it can be changed in res/values/strings.xml , but where to find strings.xml :confused:
[G1 Android Development] tommytomatoe:
Decompile apk.

Find a folder called res.

Inside res is a folder called values.

Inside values is a file called strings.xml.

Inside strings.xml is a string similar (can differ between apks) to product_name. Change that value to whatever you want.

Basically, look for the original name of the apk. For example. If it is Browser. Look for the word browser with control+F. If the string is similar to product_name or something like that, then its what you're looking for.

Good luck.

tapatalk signature here. lovely.
[G1 Android Development] sasha007:
Tried to decompile using apk manager , placed the apk in the folder for modifying , and then ran script.bat , then selected decompile . The script closed automatically . There was nothing in projects .

When i viewd log :

'adb' is not recognized as an internal or external command,

operable program or batch file.

What is the problem .??
[G1 Android Development] jsmccabe78:
wow, that is most kind of you. i would love to give it a go. thank you! (if pm'ing works, great, if not my email is my handle at yahoo)

again, thanks, much!
[G1 Android Development] mattmanwrx:
I have pm'ed you :)
[G1 Android Development] tommytomatoe:
That's your issue my friend. You don't have adb installed.

Please use Google and read through this thread before continueing. It will save you time. Do the research.

tapatalk signature here. lovely.
[G1 Android Development] mattmanwrx:
For anyone else interested in this, I have released this in the android development section - http://xdaforums.com/showthread.php?p=17935956
[G1 Android Development] maddoggin:
i keep getting this same error, please help anyone!! thanks. trying to decompile settings.apk from gingerbread 2.3.4 and i have update my frameworks still get the error.

|Wed 09/28/2011 -- 15:24:49.91|
--------------------------------------------------------------------------
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)
Could Not Find C:\Users\maddoggin\Desktop\EG30_deodexed\New folder\New folder (2)\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettings.apk
Could Not Find C:\Users\maddoggin\Desktop\EG30_deodexed\New folder\New folder (2)\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\maddoggin\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\maddoggin\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.enumerateNonPositionalSubstitutions(ResXmlEncoders.java:142)
at brut.androlib.res.data.value.ResStringValue.encodeAsResXmlValue(ResStringValue.java:45)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:55)
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)
[G1 Android Development] WhiteReign:
I get my APK all rdy and I run into this

'zipalign' is not recognized as an internal or external command,
[G1 Android Development] ldrifta:
quick question, does the apk manager patch the .9.png image files if you edit them? or is there an option to patch them?
[G1 Android Development] dully79:
The user has to patch them, preferably with the draw 9 tool. Apkmanager (aapt) compiles them.

Hope this helps.:)
[G1 Android Development] WhiteReign:
is there an eazy way to just pull from the phone and replace the systemui.apk when i use root exporer it tells me the file is read only and i am not sure how to change that.
[G1 Android Development] dully79:
Using root explorer there will be a button at the top saying "Mount R/W" or "Mount R/O", hit it to toggle.
[G1 Android Development] WhiteReign:
That was very helpful Thank you!
[G1 Android Development] s0niqu3:
APK Manager for Mac OS X

Hi,

Just wanted to post a quick message that I ported APK Manager to Mac OSX intel.

I made a handful of changes and improvements for my own personal taste, including adding advanced signing options (generate and use your own private keys) selectable APKtool versions, a ton of debug information and extremely comprehensive error-checking.

Anyway, if anyone here uses mac and wants to check it out, you can find my post with download links on xda here:

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

Cheers everyone :)
[G1 Android Development] Devildog8791:
If the rom that I am working on has -v4 (drawable-v4, drawable-hdpi-v4) folders in framework-res.apk, how can I keep from getting duplicate folders when I recompile?
[G1 Android Development] Technane:
hmmm I have to concede I am a bit of a Noob when its comes to APK editing,

So quick question as i must be missing something obvious,

trying to make a 5*6 Rosie,

If I decompile / edit / recompile.

I go from Rosie.apk being 12.323 mb shrinks down to 1.680

Surely that cant be right? I haven't tried it yet but seeing as i only edited a few parts of XML, What am i missing?
[G1 Android Development] mattmanwrx:
I cant really help, as havent used rosie in well over a year... but will give u a quick link... http://xdaforums.com/showthread.php?t=532822 which states that they have optimized rosie even more... basically it says the optimized rosie is 1.69mb (strangly close to the size of yours). So think that maybe apk manager uses a different method to compile than HTC in the factory!!

Just a thought!!! :)
[G1 Android Development] chriscx:
im back, I have re-installed apk manager and it works for decompiling.

Now my apk has FC when I open it, it's not a system app, I installed it with appinstaller, I suppose it's wrong, must we install it with your adb installer ?
[G1 Android Development] bumenoo:
"Adb files not found"

How to fix it?? :(
[G1 Android Development] :
Install AndroidSDK? If it's installed already set path for adb.
[G1 Android Development] bignasty407:
sorry if anyone has already asked this, when i compile and go to pull my edited XMLS from the unsignedframework-res.apk they XMLS that i modded are not there to drag into the working apk..... whats going on here? its worked before.
[G1 Android Development] :
During the compile it should ask u to delete resources.arc file then continue are u deleting that file?
[G1 Android Development] eep2378:
Can this be run on a Mac?
[G1 Android Development] tommytomatoe:
For utility for mac, please look at my signature. Android utility.

There is also a ported apk manager for mac as well. The user is named s0niqu3. http://xdaforums.com/showthread.php?t=1285130
[G1 Android Development] bignasty407:
i sure am. and the files ive modified. so idk whats goin on :\
[G1 Android Development] s0niqu3:
Hi,

Ok, so just to clarify, you don't actually install/use the new apk you compile with APK Manager, but just grab the new xml files out of it, and drag them into your existing apk, right?

If that's right, then don't even bother saying yes to the system apk prompt, it doesn't matter, since its basically just a dummy apk to compile the xml file for you. Unless its an entirely new file you want to add, then you need to grab the resources.arsc file too, but if its an existing file that doesn't matter, just copy your new xml over to the old apk.

Hope this helps.

Cheers, :)
[G1 Android Development] bignasty407:
well thank you. ill give that a shot, because as of right now my theme is complete except for getting my xmls. haha gunna try. be back with you in a moment!

EDIT POST: SO IT DIDNT WORK :(
[G1 Android Development] s0niqu3:
Can you post a clean log file so we can try and see why its failing?

Close apk manager, delete the log file, open apk manager and immediately try compiling.

I'm just really curious why its not working.

Cheers, :)
[G1 Android Development] AbsolutZeroGI:
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 ;)
[G1 Android Development] baseballfanz:
I have download the file from OP

-Extract all content to C drive Android folder(is that fine or does it need to go else where?)

-I have put the apk in the "place-apk-here-for-modding" folder

but when I go to decompile I get this

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:\Program Files (x86)\Android\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Program Files (x86)\Android\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010402d7 string/web_user_agent_target_content, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

Just tried to decompile a different apk and it's working fine.

Trying to decompile the framework-res.apk it's giving me trouble
[G1 Android Development] jwilliamf:
thank you for the tip.

now I get this:

Any help!!!