yashsingh1/xdaforums huggingface dataset:
[Android Software Development] sourcex:
Well i actually pulled out the Framework-res apk first tried to decompile it also !!

But ended with failure and same error message !!:rolleyes:

the errors while decompiling the Framework-res

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x010800cf drawable/background_holo_dark, config=-nodpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:170
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:135)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
0)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:562)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)

apktool d framework-res.apk
I: Loading resource table.....
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x010800cf drawable/background_holo_dark, config=-nodpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:170
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:135)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
0)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)

Isn't there any other way to compile and decompile an apk file ?
[Android Software Development] raziel23x:
did you use the setup.bat and us it to install the frameworks-res?
[Android Software Development] sourcex:
i install it using the apktool.bat file !

Did i do something wrong?

and worst part is i m able to decopile other apks but not able to Decompile this 2 apks (SystemUi n Framework-res)

No other Alternative to decompile ?
[Android Software Development] ciscogee:
Post 100 sorry had too. Great batch btw. Great updated too. Good work
[Android Software Development] darrenjdoc:
Not sure if its ok to put this in here but i need help.

I am using Tweetcaster HD - Beta on my GTab 8.9. Its an excellent app but work seems to have stopped on it.

The inbuilt browser is really bad and it keeps saying to upgrade the browser when clicking on any links in the timeline. The browsers it suggests are desktop browsers.

It is not possible to change it in the settings of the app.

Is it possible to open the apk and change the default browser to say Opera or Dolphin ?

Thanks for any help :)
[Android Software Development] KaneOfMars:
Unable to download, getting an ssl_protocol error in Chrome and a page can not be displayed in IE?!?

Edit: nevermind :)
[Android Software Development] waterpolo:
Download with the link to the GitHub.

Always the lastest (beta) release :D
[Android Software Development] raziel23x:
Please do not direct link to the files and go to the main website for downloading as these links may change
[Android Software Development] waterpolo:
I will
[Android Software Development] Overstew:
I am trying to edit my font color of the attached mms.apk to be #ff3792b3.

I can decompile it but everytime I edit the XML that controls bubblue font color, the recompile says it's successful but the unsigned edited mms.apk is much smaller than original. I pushed it to my phone and it didn't display on the app drawer.

The XML is in Layout and it's called "text_field_item_color.xml". I also tried editing colors.xml under values folder and it did the same thing. I'm putting yes to system app and no to overwrite unedited files. Am I doing this right?

This mms.apk is pulled from a stock deodexed ROM and it's for the Epic Touch 4G. If anyone can shed some light as to why it doesn't work, let me know.
[Android Software Development] ciscogee:
When u recompile it should create a keep folder. And say to delete files that you changed. If XML. Delete the "file I cant remember at the moment" but yeah.
[Android Software Development] waterpolo:
During compilation you have to choice as system apk. Then a keep folder will be created.

Follow the guide from the compile script.
[Android Software Development] DubelBoom:
i have win ultimate 64bit and i and log it says i dont have java. and i do. i had this problem with another script (rtl fix) but there they had an option to locate the java.exe
[Android Software Development] Overstew:
I tried that and no matter what happens my edited file is always small (usually by 200kb in this case.) I deleted Resources.arsc and deleted the Text_field_item_color.xml under Layout from the keep folder. I pressed Y for system app and Y again to save unmodified files. The original stock file is 1274kb and the edited one comes up to be 1060 kb. There's not any noticable difference in size other than the "packed size" of the resources.arsc files. The stock one is 240KB and the edited one is 51Kb. It still says actual size is the same, just packed size.

I'm starting to think it's just my machine, but if anyone else knows what the issue is, please fill me in.
[Android Software Development] 3rdstring:
You can try running your recompiled apk through this script. I've also had luck changing the .apk to .zip, unzipping the file & then recreating the zip with 7zip (setting the compression level to "store") & then changing the extension back to .apk.

HTH
[Android Software Development] raziel23x:
OFF TOPIC MODE ENABLED

I know everyone has heard me talk about my wife and son but we never have officially gotten married and Finally Decided to make it official.

We are going to the JP (Justice of the Peace).

We are going up there next week December 8th.

Today we are going to get the marriage license this afternoon

OFF TOPIC MODE DISABLED

There has been some updates to the Apktool.jar which I have yet to compile that has the samli and basamli updated which should fix some of the compiling and decompiling issues.

I Am hoping to compile this soon for the next release but it is still in development by Brut.all and allowing him to do some more tweaks to fix some issues with the compiler script as I have yet to get a successful build
[Android Software Development] robm1911:
Grats bro, and thanks for everything your doing.
[Android Software Development] raziel23x:
Updated Apktool to 1.4.2

Added support for API14 (Android 4.0) resources

Updated smali to v1.3.0

Added --quiet option

Fixed decoding error when string ends with '%' ( Issue 169 )

Fixed decoding error when <plurals> contains a reference ( Issue 234 )

Fixed a broken res when decoding <array> with positional substitutions ( Issue 222 )
[Android Software Development] Mko979:
Hello eveyone,

I have been running into a problem trying to re-compile Launcher2.apk from the MIUI rom. I think the problem is related to the fact that the apk relies on resources from framework-res but when i try hitting number 10 and place the framework-res.apk into the window it tells me the its not the right apk, not the dependee apk. Any help is much appreciated.

Heres what the log says about the error:

2011-12-01 22:33:11 (3.57 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.

A subdirectory or file place-apk-here-for-modding already exists.

A subdirectory or file place-ogg-here already exists.

A subdirectory or file place-apk-here-to-batch-optimize already exists.

A subdirectory or file place-apk-here-for-signing already exists.

java version "1.7.0_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)

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

C:\ApkMultiTools\ApkMultiTools\other\..\projects\Launcher2.apk\res\layout\gadget_player_widget.xml:35: error: Error: String types not allowed (at 'sliding_panel' with value 'useLogo|showHome|homeAsUp|showTitle|showCustom').

C:\ApkMultiTools\ApkMultiTools\other\..\projects\Launcher2.apk\res\layout\user_folder_setting.xml:7: error: Error: No resource found that matches the given name (at 'background' with value '@android:drawable/tab_indicator_holo').

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\mkosborn\AppData\Local\Temp\APKTOOL3321985721843197214.tmp, -I, C:\Users\mkosborn\apktool\framework\1.apk, -S, C:\ApkMultiTools\ApkMultiTools\other\..\projects\Launcher2.apk\res, -M, C:\ApkMultiTools\ApkMultiTools\other\..\projects\Launcher2.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\mkosborn\AppData\Local\Temp\APKTOOL3321985721843197214.tmp, -I, C:\Users\mkosborn\apktool\framework\1.apk, -S, C:\ApkMultiTools\ApkMultiTools\other\..\projects\Launcher2.apk\res, -M, C:\ApkMultiTools\ApkMultiTools\other\..\projects\Launcher2.apk\AndroidManifest.xml]

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

... 7 more
[Android Software Development] MJPollard:
Forgive me if this has been brought up before, but have you considered installing VirtualBox and running Linux in a VM? I don't know what the specs of the laptop are, you might not have the RAM or CPU horsepower to handle it, but perhaps it's something to consider...
[Android Software Development] raziel23x:
Computer cannot handle it at all
[Android Software Development] raziel23x:
Have you downloaded the latest Github build off the website I just did a update to it today which has many updates to the main binary that deals with compiling and decompiling
[Android Software Development] zelendel:
Is there a way to prevent it from updating? The latest update seems to have broken a few things.
[Android Software Development] raziel23x:
the rewrite of the batch optimize is coming asking slowly. I had to rewrite the rewrite several times and it not wanting to work like our suppose and finally had a break through with ADB stand alone script which I am adapting to work in script
[Android Software Development] raziel23x:
to make sue you did it right.

install the latest drivers for you're phone on your PC

plug phone onto computer using USB cable

run the setup.bat

run the install frameworks-Res option

select the framework-Res option
[Android Software Development] sourcex:
I Tried n installed the latest drivers but still getting the ame errors at.brut.androidlib error

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x010800cf drawable/background_holo_dark, config=-nodpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:201)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:170
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:135)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:11
0)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:562)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)
Press any key to continue . . .

What to do now ?

can't find any solution to this !:rolleyes:

Am i still missing something?

hope this might help a little to u!

cos i am new to this !
[Android Software Development] raziel23x:
the only solution I can think of is report thus in IBotPeaches thread herehttp://xdaforums.com/showthread.php?t=1755243
[Android Software Development] jimmydene84:
trying to get the experimental build off git but it keeps saying no server to process this command....

1.0.11 keeps telling me there is no "place apk for modding" folder when there is and it wont let me decompile a .jar

its worked fine for quite a while, even did a fresh install yesterday and stilll getting the errors
[Android Software Development] raziel23x:
Try cloning the experimental build because it seems github is having issues with the zip archives option
[Android Software Development] Dirk64:
Try download by phone, didn't got it from pc, with my GNex it worked well.

Sent from GNex...
[Android Software Development] RagzDog:
If i decompile with your tool end modify xml files.... when i recompile i have the original xml .... not the modified . Why ?

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software Development] jimmydene84:
Haha, that did the trick! Downloaded right away on my phone. ..THANKS!

---------- Post added at 02:23 PM ---------- Previous post was at 01:36 PM ----------

On newest experimental build...it keeps giving me errors when trying to install dependencies? ? Anyone else get this or just me?
[Android Software Development] Dirk64:
+1

Sent from GNex...
[Android Software Development] raziel23x:
it is a bug that had been fixed in the experimental build
[Android Software Development] jimmydene84:
Wait?! So thats why I have been bashing my head all day...might not be my fault lol!

I couldnt get the new experimental build to install dependencies though?? Stuck for right now :confused:
[Android Software Development] raziel23x:
Did you install the latest drivers for device?
[Android Software Development] jimmydene84:
Yea, drivers are current. It wouldnt even let me drag the correct ones onto the main screen. Always would trigger a CMD promp to come up and say error
[Android Software Development] raziel23x:
Run the setup.bat and use the install options
[Android Software Development] jimmydene84:
Tried that too. That's how I always do it in 1.0.11

Absolutely couldn't get it to work on experimental
[Android Software Development] Epikarus:
Hi. Im trying to sign my APK, it was working before perfectly but today it decided its not going to work. I updated my java and everything but still i get this error.

java version "1.7.0_21"

Java(TM) SE Runtime Environment (build 1.7.0_21-b11)

Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

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

operable program or batch file.

Only one alias can be specified

The system cannot find the path specified.

My path is set up correctly. I dont know what it wants. I didnt touch the path but just today it decides not to work. help?
[Android Software Development] jimmydene84:
Mine did the same thing when I updated Java. I had to do a new install of multi tool and then it worked fine again
[Android Software Development] Epikarus:
What do you mean new install? I did download the multitool again but still getting the same error. Hmm.
[Android Software Development] B3H3M0T:
please add support for java 7 or java 1.7
[Android Software Development] MarcquisDale:
What kind of problems are you getting
[Android Software Development] raziel23x:
Even though our needs 1.6 1.7 it's compatible
[Android Software Development] B3H3M0T:
just noticed it support 1.7 but on log it showed only support 1.6 please fix it
[Android Software Development] raziel23x:
1.7 is unofficially supported.

It will run using 1.7 and function. But Android os requires 1.6. And apktool.jar requires 1.6 to be compiled and Android does not officially support 1.7 yet.
[Android Software Development] RagzDog:
hi guys i've a problem.

i download last experimental release but when i install dependencis (twframework-res,framework-res,systemUI) .... i 've this error : framework-res not expected

-i put framework-res,systemUi, and TWframework res in other folder and i installed succesfully java and SDK.......
[Android Software Development] RagzDog:
i solved ... but i've an other problem :

your tool don't save my modified xml files .... how to fix ?
[Android Software Development] soundmanmike:
I have been using APK Multi-Tool for a while with excellent results (thanks for the hard work!) But a couple days ago I started getting problems on compiles (lots of graphics errors). I went in to make sure I had the latest frameworks and now they will not install, I get the searching for framework-res.apk header but then I immediately get 'es was unexpected at this time.' followed by the C:\ prompt 'C:\APK-Multi-Tool\other'. I have checked my paths and reinstalled a prior version of JAVA just to make sure. Any ideas?

Thanks Mike
[Android Software Development] raziel23x:
Sorry I have been really busy this week and hopefully Monday I will be able to fix the reported issues. I will also will hopefully have the batch optimize scripts fixed as well.
[Android Software Development] Epikarus:
when you compile your apk, use the keep method. go to your keep folder and delete resources.arsc then complete the compile.
[Android Software Development] RagzDog:
I did it ... if i modify any xml files i delete resources.arsc in keep folder ... if i modify any smali files i delete classes.dex

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software Development] crazyjimbo:
How do I sign an application so that it won't conflict with the one already istalled?

I did a quality mod on Vignette and when I try to install it over what I've already got installed on my my phone I get the "App not istalled. An existing package by the same name with a conflicting signature is already installed" message. The app will install if I uninstall the original first, but then it works like a demo, though I have purchased the app.

I've edited some Smali code if that makes a difference. I really want this to work lol, and I love the ease of use of this tool.
[Android Software Development] justinfavila:
how to decompile settings.apk using this.

and can't install framework-res.apk even my framework-res.apk is on the other folder

plzz help me thanks :good:
[Android Software Development] jenizaro:
Someone please help me!

I decompile an apk without any problem but when it comes to recompiling. Its always the same error. Trying this for a week with apktool, tickle my android and now with apk multi tool. When I send my decompiled files to my friends they can compile it but on my computer at home or at work I get the same error forever. I have Windows 7 Ultimate 64 bit installed. You can see installed java version on the code.

Please somebody say something about this. Im gonna loose my mind.

|16.05.2013 -- 23:22:52,12|
--------------------------------------------------------------------------
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
[14,0] No enum const class org.jf.dexlib.AnnotationVisibility.RUNT¦ME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: C:\APK-Multi-Tool-Stable-RELEASE\projects\unsignedcom.jenizaro.theme.marinethe
mehd.apk\smali\android\annotation\SuppressLint.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

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

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:256)
at brut.androlib.Androlib.buildSources(Androlib.java:217)
at brut.androlib.Androlib.build(Androlib.java:208)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
[Android Software Development] gu5t3r:
Just to share...

I achieved double free space when using TruePNG + pngout + DeflOpt compared to OptiPNG...

I use this options:

TruePNG /o max "$FILE"
pngout /ks /f6 "$FILE"
DeflOpt "$FILE"

Check out THIS comparison webpage...

Maybe you would wanna implement that also in script...
[Android Software Development] moto32:
nice
[Android Software Development] gu5t3r:
I made goptimizer.sh BASH script for optimizing PNG's in CYGWIN (as there are no TruePNG, pngout and DeflOpt for linux)...

If only APK specified script only zipaligns APK...

Looks like this when working

$ ./goptimize.sh -pa SystemUI.apk
[i] Extracting APK...
[i] Optimizing PNG's... 100%
[i] Packing PNG's in APK...
[i] Storing resources.arsc uncompressed
[i] Zipaligning APK...

$ ./goptimize.sh
usage: ./goptimize.sh [options] *.apk

This script optimizes PNG's in APK using
TruePNG + PNGout + DeflOpt .:. by gu5t3r

OPTIONS:
-h Show this message
-p Optimize PNG's
-a Store uncompressed resources.arsc in apk
-r Recompress apk with level 0-9

You need to put TruePNG, pngout, DeflOpt and zipalign in /bin in CYGWIN

You can achieve double compression compared to OptiPNG (2x freed size)...

And if no recompress option specified, apk compression won't change only PNG's will be updated...

EDIT: Newer version HERE
[Android Software Development] raziel23x:
This would be better talked in the Linux version of this tool located here

http://xdaforums.com/showthread.php?t=1808319
[Android Software Development] abo hani:
:( :( i had this error

i installed net 4.0 + the latest update of java

pliz help :) i had this problem in all of the apk tools like this
[Android Software Development] raziel23x:
Did you even decompile the file first?

You need to select the app file using option 27

Then use option 9

Then the project will appear in the project folder

Make sure you place the APK file in the place here for modding folder
[Android Software Development] bovirus:
Bug report / proposal

Latest build of Stable tool

Selecting 27 (Set current project) I see a list of APK files starting from 1 but with 10 (in the list) misising. What's happen?

ex. 1-2-3-4-5-6-7-8-9-11-12-etc

When I select 9 (Decompile) at the end the program ask always if I want (Y) start the editing or not (N). Should be possible to set an option to select a default action (Y or N)?
[Android Software Development] kenzolo:
same error here :(
[Android Software Development] trancoss2:
Thanks
[Android Software Development] sga999:
Hi...long time no see! I just got back to your app again, and I noticed this (see below) in the zipalign logic. The '...for-modding' part should be '...for-signing'. I also noticed that all the 'occured' words are still misspelled (should be 2 r's). I've mentioned this before, but it's no problem if you don't want to change it. This is in the experimental script.bat. I know you are rewriting, so maybe you're fixing the spelling there instead of in this older stuff.

Anyway, I hope all is well with you and your son!

:zipa

ECHO Zipaligning Apk

IF EXIST "%~dp0place-apk-here-for-signing\signed%capp%" ("%~dp0other\zipalign.exe" -f 4 "%~dp0place-apk-here-for-signing\signed%capp%" "%~dp0place-apk-here-for-modding\signedaligned%capp%")