yashsingh1/xdaforums huggingface dataset:
[Android Software Development] raziel23x:
there is a guide on the Java website on how tho set the system environment also in one of the other post there is a link as this question had already been ask here as well on the apk multi-tool topic thread
[Android Software Development] sixfearstheseven:
I'm trying to modify the framework-res from ics-inc-deck on my Droid Incredible so that the on screen navigation buttons are enabled. The process seems simple enough: within framework-res, open bools.XML and change "false" to "true" at the appropriate line. In arrays, disable the backlight on the devices softkeys. That's it.

It decompiles with no problems, but I'm running in to issues when compiling. The original apk is 9mb, and the new one is 5 to 6mb, depending on compression level (tried it at 9 and 0, with heap size at 64 and 512). I pushed the new apk to my phone anyway, but it won't boot.

What am I doing wrong? It looks like the 20 or so "values" folders are not being added when compiling, but I'm not quite sure if that's actually the case. Actually, I assume they are being added. They just aren't visible if I rename the new apk to a zip file.

I'm totally stuck and can not figure this out.
[Android Software Development] Perka:
what line is it you change?

I compile and then y and y, then delete resources.resc in keep folder and hit any key. never sign it.

my framework-res also get to just a bit less than 6mb, never hqad problems cuz of the size tho.
[Android Software Development] sixfearstheseven:
Ohhhh I didn't delete resources.resc. Is that where I went wrong?

I just changed one line, I think its "NavigationBarOn=" or something like that from "false" to "true."

---------- Post added at 12:30 AM ---------- Previous post was at 12:13 AM ----------

You are my f*cking hero!

I swear to god I'd kiss you right now if I could. You ended a weeks worth of frustration for me.
[Android Software Development] Perka:
nah, a thank you is fine ;)

also in the future if u chage any pngs, just delete the whole /res folder in /keep

and if u mod any .smali u delete classes.dex in /keep folder.

Happy modding :)
[Android Software Development] sixfearstheseven:
Then...thank you!

And thanks for the other tips too. I'll keep those in mind.
[Android Software Development] AliensDroid:
sorry double post
[Android Software Development] AliensDroid:
an error occured,please check the log (option24)

why this error?

Uploaded with ImageShack.us
[Android Software Development] pauldiddy:
can't recompile the latest youtube 2.3.4.I am running the latest apk manager 5.0.2 and apktool 1.4.3.decompiling is ok,but not compiling.the last youtube 2.1.6 compiles like a charm.so any advices?thanks for your help and this awesome tool.
[Android Software Development] robm1911:
Hey bro I dont think this thread is monitored anymore. I had the same issue with the you tube apk with no solution yet. might want to look here for the latest and greatest apk tools. it also has a place to report broken apk's http://xdaforums.com/showthread.php?t=1310151
[Android Software Development] mDroidd:
Maybe you should say in Linux instruction:

CD other

Chmod 755 *

Instead of

Chmod 755 all files in the folder.

Say thanks!!!

Greets!

mDroidd from tapatalk

_____________________________

Sent from my Galaxy Nexus

[-]Everything still stock

_____________________________

LG Optimus One

ROM: Nitrogen

Kernel: custom .35

Tweaks: All :cool:

Theme: ICS (inside Nitrogen by me)
[Android Software Development] pauldiddy:
thank you!:)
[Android Software Development] danlivesey:
Nice work just self teaching my self now on how to use it ha
[Android Software Development] lowveld:
Is it me, or the linux version has not been updated, and it only shows 17 options (e.g., none of the "other stuff")?
[Android Software Development] raziel23x:
I did not mess with the scripts for the LINUX Version I only Updated the FILES in the src folder that deals with apktool

as I do not have linux installed on my machine I have not tested or looked at the scripts.

on a side note I am working on a update for the windows version 5.1 which fixes a bug in windows xp in the script thanks to rom-g reporting a bug with a patch for it.
[Android Software Development] zelendel:
If you need a lab rat for the linux version I would be more then happy to help where I can.

Some other options like being able to work on more then one project at a time would be nice lol
[Android Software Development] raziel23x:
Okay There is a patch I did it using paste bin instead of uploading a new file

The Fix has been added to the original post so that it will not get lost

change log and credits to users in change log for the windows version
[Android Software Development] he_stheone64:
You need to install matching framework first with 10 option.
[Android Software Development] civicvx94:
I'm having some trouble here..

I decompiled the HTC Rosie.apk and modified a few xml's within it, now the decompiled app folder with the edited files is still within Projects, but when I use option 22 to select the project, the folder isn't there to re-compile it..

I'm not getting any errors, there's just nothing showing inside the projects folder when I run the script..

What am I doing wrong here?

I've also tested just decompiling an apk and without modifying try to recompile it, but same issue, nothing shows in projects..The only files that show under projects are the .apk's within "place files here to be modified"..Even if I move the folder there, it still wont show..

Thanks in advance..
[Android Software Development] zelendel:
Are you,removing the apks from the place apks here for.modding? It wont show up unless the apks is in there.
[Android Software Development] civicvx94:
I've tried it both ways, when the apk is in the files to be modified folder and I compile it throws an error..I'll attach the log..Do I need to have the apk_manager in any specific folder in my computer? I just have it within downloads..

Thanks for the quick reply

Here's a link to the log..

http://dl.dropbox.com/u/6755701/log.txt
[Android Software Development] zelendel:
The error lists that adb is not installed. Do you have the android sdk installed?
[Android Software Development] civicvx94:
I do, but they are in seperate folders.. the sdk is just in C:\, should I move the apk_manager folder to C:\ or within the sdk folder?
[Android Software Development] zelendel:
Save yourself the trouble and download this file, unzip it and copy all 4 files to your windows folder.

http://db.tt/3DViWog
[Android Software Development] waterpolo:
I changed the location of the adb file in the script to: other\adb
[Android Software Development] SXUsr:
Thanks for the reply. After the patch I ran Option 10 and used the SemcGenericUxpRes.apk in my res folder and that does the trick, decompiled every apk I've tried so far, so I'm happy now. :)
[Android Software Development] civicvx94:
I just tried that and attempted to compile and still got an error, here is the log

http://dl.dropbox.com/u/6755701/log.txt

So now I have those files located in C:\windows\ and have adb located in C:\sdk\tools but still no luck..

How can I go about that? I have no idea how to edit the script..
[Android Software Development] raziel23x:
I knew I forgot to do something with the script as I am working on making the windows version self contained.

I will fix that in my next update I will soon have a official 5.0.1 release up for grabs as soon as we get all the bugs worked out of this one.

I will try and do a little more research and see what I can come up with as far as adding more features. Feel free to pm me patches and changes to the script if you wish to submit anything.

I am planning on either github or sourceforg project for this if anyone want to start a team for this and develop this even further
[Android Software Development] waterpolo:
1) open the Script.bat with a text editor.

2) Search for 'adb version' (row 18)

3) Replace to 'other\adb version'

4) Save and exit
[Android Software Development] he_stheone64:
Your path has breaks, which does not work. "Documents and settings" does not work, "documents_and_settings" would work.

Could Not Find C:\Documents and Settings\Dave\My Documents\Downloads\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedRosie.apk
[Android Software Development] civicvx94:
O ok. Thanks for the help guys. When I get home today I'll move apk_manager to C: to see if that works.

I tried opening the script with notepad, but couldn't. I even changed the file extension to .txt but it still wouldn't work. Either way, if the file path is bad I guess that wouldn't help anyways. I'll mess with it some more.
[Android Software Development] raziel23x:
APK Manager for Windows Has been updated to Version 5.0.1

I made some changes to APK Manager and converted it to a actual APPLCATION

I created a installer for it as well so that it will make installing easy.

Check out the OP for the complete Change log as well as download links
[Android Software Development] OptimalKiller:
i have 4.9 running, do i just replace the files with 5.01?

or does 5.01 require a fresh install

thanks
[Android Software Development] civicvx94:
when I installed 5.01, there are no folders within, other than 'other. so I moved over my 'projects' and 'place apk here for modding' folders, but now when I choose 22 to select project, nothing shows at all...
[Android Software Development] raziel23x:
Okay I have uploaded a zip fil instead of the installer it has the missing files just overwrite the files and delete the old script bat since it is a now a exe file
[Android Software Development] flonec:
hi

:( no working decompile BluetoothOpp

log

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

operable program or batch file.

APK Manager ver 5.0.1
[Android Software Development] raziel23x:
Okay I converted it back into the script.bat and uploaded it back I will work on fixing the bugs in the APPLICATION Version and wait until another time for that application

I have updated the ORIGINAL POST with the updated download link and attachment has been updated as well

Cross Fingers
[Android Software Development] a_fuegon:
Right click on the .bat file and click on edit. It will open in whatever default processor you use.
[Android Software Development] waterpolo:
Could you update the change log, remove application and self-contained?
[Android Software Development] civicvx94:
well it now compiles fine, just wondering that if it is normal for a file to be much smaller after compiling than originally? For examply, the stock Rosie.apk was around 12mb, I decompiled then recompiled and the new size is less than 2mb..

edit - nevermind, this is my error..

Thanks alot for the program and your help sir.
[Android Software Development] raziel23x:
When I get home I will remove the application part off the chanhe log.

I am thinking of updating the keys as well but not sure if there should be a reason to do so..
[Android Software Development] tadeas482:
GOOD, thank u :D
[Android Software Development] kurniawan77:
Hmmm, but can we use tags with apkmanager? (Never used tags, but it might come in handy)

For example:

I installed two frameworks manually with apktool and tagged them "dhdginger" and "dhdfroyo". Then i want to decompile a system apk from "dhdginger" and right after that a system apk from "dhdfroyo" with option 10 apkmanager, do i have to or can i, type the prefered framework tag name below...? If not... then it would be great to have this option maybe..?
[Android Software Development] he_stheone64:
Edit - sorry, misunderstanding...
[Android Software Development] adude247:
does anyone have a link to v5.0, not 5.0.1 thats in the OP...
[Android Software Development] xXG4Xx:
hey hello, someone help me, this is my error:

--------------------------------------------------------------------------
|Sat 09/03/2011 -- 4:45:32.71|
--------------------------------------------------------------------------
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\xXG4Xx\Desktop\apkmanager5.0.1\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\xXG4Xx\Desktop\apkmanager5.0.1\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\xXG4Xx\apktool\framework\1.apk
I: Loaded.
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
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
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)

:confused:
[Android Software Development] raziel23x:
APK MANAGER 5.0
[Android Software Development] adude247:
Thanks
[Android Software Development] |Melvin|:
Can someone tell me what "sox" is, im trying to set this up on ubuntu after i just used on windows but stills looking for a file called "sox" which i dont know what is. Anyone that can help shoot me a pm or post the file in a quoted post or anything, thanks guy. :)
[Android Software Development] tjohnsonjr:
try this:

sudo apt-get install sox
[Android Software Development] r33p:
+1
[Android Software Development] Gvdn:
suscribing to thread
[Android Software Development] JordanElliott:
very nice job. one question/bug

when batch optimizing, with some apks it asks if it is a directory or file. i select directory and it works fine. i dont get why it asks tho?
[Android Software Development] dsmitty166:
Trying to sign an APK...

Keep getting this error no matter what I do...

Always looks for an additional unsigned....

--------------------------------------------------------------------------
|Sun 09/11/2011 -- 12:28:58.44|
--------------------------------------------------------------------------
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)
java.io.FileNotFoundException: ..\place-apk-here-for-modding\unsignedcom.swype.android.inputmethod-1.apk (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:437)
Could Not Find C:\Users\David\Desktop\APK Manager 5.0.1\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.swype.android.inputmethod-1.apk
java.io.FileNotFoundException: ..\place-apk-here-for-modding\unsignedunsignedcom.swype.android.inputmethod-1.apk (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:437)
Could Not Find C:\Users\David\Desktop\APK Manager 5.0.1\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedunsignedcom.swype.android.inputmethod-1.apk
[Android Software Development] robm1911:
Wow thank you for this I have allways had problems getting APK Manager ro recgonize ADB. Now that you have made this self contianed all my problems are gone (except trying to figure out what I'm going to use it for next):D

Edit: so trying to figure out what to do with this I tried to decompile the settings.apk using option 10 then it asks for the dependee apk tried dropping in the framework-res apk then I'm told thats not the dependee apk and to try again. So on a samsung captivate what is the dependee apk???
[Android Software Development] adude247:
I have the same problem sometimes trying to decompile apps from the market, some will and some wont dont underdtand why....
[Android Software Development] waterpolo:
+1

i.e. new market, google maps
[Android Software Development] gcamp0730:
I notice in the OP there is mention of using folder names without spaces. You might try that to see if it makes a difference.
[Android Software Development] Jaxwindle:
Thank you for the information on special chars and spaces in the path directory. I took them out, and now I have no problems decompiling apks. :)
[Android Software Development] fordthunder:
hello , thanks for posting this for us to use , but here is the problem im facing

i downloaded the zip , extracted to my home folder (linux) and chmod the files . then attempted to excute the Script.sh file and here is the outcome:

The program optipng is missing or is not in your PATH,
please install it or fix your PATH variable
The program 7za is missing or is not in your PATH,
please install it or fix your PATH variable
The program sox is missing or is not in your PATH,
please install it or fix your PATH variable
[Android Software Development] reekotubbs:
Here is my error. I cannot de-compile or compile with 9, 10, or 11.

--------------------------------------------------------------------------
|Wed 09/14/2011 -- 4:03:33.33|
--------------------------------------------------------------------------
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
I: Framework installed to: C:\Documents and Settings\Michael\apktool\framework\1.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Michael\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=resizeMode, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=resizeMode, value=0x00000003
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010363
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
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] zohaib0001:
arc camera apk problem in decompile and compile

i am trying to recompile xperia ARC camera apk from rom 4.0.A.2.368

but its always give me an error and recompile is unsuccessful

i put apk in the folder 'place apk here for modding'

then run the bat script

then select option 22 then i select my project apk

then i select 9 which is decompile the apk

then if you try to recompile it again its always gives an error that could not compile it

any one can help me
[Android Software Development] LifTeD_JK:
When I got that I went to the software center and installed 7 zip.

Then in terminal I did this:

sudo apt-get install sox

Sudo apt-get install optipng

Someone correct me if I'm wrong.
[Android Software Development] raziel23x:
Updated to VERSION 5.0.2

Change Log

5.0.2

* Updated Binaries to the most recent Versions

* Fixed (hopefully Compile Errors) when compiling and decompiling APK Files

Updated Original Post to the updated Download links
[Android Software Development] Perka:
Can u mirror the file? Cant dl on phone.
[Android Software Development] raziel23x:
I hope this fixes the tapatalk and XDA-Developers Apps just making the image expand instead of launching the download
[Android Software Development] HackitZ:
can you edit the xml files in notepad+++

every time i try and then recompile i get errors.
[Android Software Development] zelendel:
Yes. have you tried swapping out the apktool for a different version? Depending on the xml some versions will give errors while others work but error out on other things. I use apktool version 1.3.1 and have almost no issues but keep a newer version if I run into probs
[Android Software Development] zohaib0001:
5.0.2 update Still not decompile some files

The new version 5.0.2 is still not opening some files

i want to decompile Xperia arc 4.0.A.2.368 original Smec Camera ui.apk

but its not decompiling it

i attached the apk file with this post

please check it and resolve...

Thanks....................
[Android Software Development] zelendel:
Are you decompiling it with the proper frameworks?
[Android Software Development] zohaib0001:
What do you mean by proper framwork res

??????????
[Android Software Development] zelendel:
Device spicific apks need to be decompiled with the proper framework files. Have a look at the old apk manager thread for more details. Also do your reaserch on all the tools apkmanager uses like apktool. Has you will find some versions work when make some mods but you may get errors when you edit different things but a never version will work on somethings and not on others. Apk manager is a bunch of tools wrapped into one. Make sure you know what tools do what.
[Android Software Development] Nightwing0815:
Hi!

I can't decompile Settings.apk and PCSCII.apk from Gingerbread 3.14.405.1 (AceS).

Using my modded files (Icons replaced).

Files are here, with frameworks.

Thanks for help.

ToM
[Android Software Development] zelendel:
What is the error?