yashsingh1/xdaforums huggingface dataset:
[Android Software Development] bovirus:
Your question is OT here. The thread ius regarding tool to decompress/recpomrpess apk.

This thread is not related how to edit the contents (app commands etc) the apk decompiled.

For that are available specific thread.
[Android Software Development] darktyroll:
And you think someone will die if trying to help ? That`s why we are like animals in those days. We lose our hope in everything! And not only hope...
[Android Software Development] bovirus:
Is not the scope of this thread!!!

Please read carefully the first post, forum rules and switch on your mind. Your request is OT here.

The forum ha some simple rules.

If you discuss everything in each thread is not necessary to divide the forum in specific threads.

Please take your time to identify the right thread to post your question (not here) and don't find always a workaround (usful for you) bypassing the forum rules.
[Android Software Development] XSAMA:
infinite loop on compiling when errors appeared

USING V3.5.5

and the infinite loop on compiling when errors appeared is still there or maybe it's my pc... or maybe a bad deodexing (but i dont think so becouse this settings apk works)

anyway

can you try to compile this apk please just to be shure

https://www.mediafire.com/?0rjbgxtbml8br2h

and btw.. android multitool is a good piece of work keep working on it. :good: thanks
[Android Software Development] LasVegasRomeo:
Yes can confirm the infinite loop :/ got the current apktool jar built along with the framework apk needed with it (after rc3 release) and now able to get material apps to compile/decompile correctly.
[Android Software Development] Flextrick:
Seriously? It's file dependend?

Then I've to work on the real time log..
[Android Software Development] LasVegasRomeo:
Tool is doing that regardless. The material apktool set up I received was just an apktool .jar that was built and came with a particular framework apk that had to be installed with it. Nothing regarding the continuous compiling loop ordeal. Just able to do apks now that rc3 didn't or should say correctly. Not tool related
[Android Software Development] gaich:
Infinite loop is present even if you have no errors. I decompiled an apk, received the message about success, but the progress barr kept running. When I compiled the apk, I had no message at all, progress bar did not stop, but the apk appeared in compiled apk folder. I signed it and only then got the success signing message and log.

[YOUTUBE]aSJzqWhlPjU[/YOUTUBE]
[Android Software Development] kushal.arora16:
Error...

I am trying to Decompile SystemUi.apk of my Samaung Galaxy Note 3 N900, Stock 4.4.2 KK.

It is giving this error

Cleaning up unclosed ZipFile for archive C:\Users\Kushal\apktool\framework\1.apk

plzz help...:(:(:(:(:(
[Android Software Development] oldman20:
In my case, install framework is ok, decompile SystemUI ok but process bar still running when done. And i got error when cempiling! As you can see below
[Android Software Development] DroidShift79:
Hi [MENTION=4642185]Flextrick[/MENTION] ,

i get this error, when trying to install my liquidsmooth 3.2 framework-res.apk

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080221 drawable/default_wallpaper, config=-sw600dp-nodpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:186)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:662)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:644)
at brut.androlib.Androlib.installFramework(Androlib.java:636)
at brut.apktool.Main.cmdInstallFramework(Main.java:240)
at brut.apktool.Main.main(Main.java:87)

Any hint?
[Android Software Development] Vel-San:
as everyone said,

framework is OK.

Decompilng is OK, but -- > Bar still loads.

Recompiling is NOT OK, it gives infinite loop, no success msg but the file is there, when i sign it , it does not install on phone.. weird.

Any fix ?

Thanks for the tool ! :good:
[Android Software Development] bdorr1105:
ok so i guess i dont understand a jar file, so you decompile a jar file, then you dont use the newly created one, you just take the classes.dex and paste that in the archive of the old one? thanks
[Android Software Development] Vel-San:
I never use jar files, just apk's.
[Android Software Development] Rittmeister123!:
Error installing framework

Hey guys.

I want to mod my systemUI.apk from latest euphoria rom (29.12.2014)

Therefor i copied the systemui.apk and the framework-res.apk from my phone and tried to use your tool, but when i try to install the framework i get the following error-log:

java.lang.UnsupportedClassVersionError: brut/apktool/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: brut.apktool.Main. Program will exit.
Exception in thread "main"

Does anybody know the what the problem is?

thanks

R²
[Android Software Development] sugarkane87:
I have the same exact problem here
[Android Software Development] Rittmeister123!:
Update Java solved the problem here! May you have to set/modify your system variables on your pc!
[Android Software Development] sugarkane87:
Oh ok, I'll try update java. Thanks
[Android Software Development] blksith0:
So the app uses apktool to decompile it, but can it also use dex2jar and a java decompiler to get the source?
[Android Software Development] andriman:
3.5.5 problems:

1. When the compilation is done, no message appears, progressbar is still running, memo content does not change.

(I found out it's compiled a few minutes later, when I checked the folder despite no response from the tool)

2. The result of compilation cannot be installed due to missing certificates at... a funny entry (like res/drawable-hdpi-v4/arrow_to_left.png). This happens when I use the Insert AndroidManifest.xml and when I copy it manually (+Manifest) as well.

Due to the above I am forced to use the outdated version 3.5 (which works well, except of the loop compiling if I don't restart it before every compilation)

(Java 8.25, Windows 7)

Suggestions:

1. Make the tool save the filepaths we used. Or at least use the normal File dialog where we can paste the path. (I have to navigate to the Decompiled_apks/>myapp< folder everytime I restart the application now)

2. Add a Rewrite checkbox - Rewrite Compiled_apk/*.apk instead of creating the apk in the dist folder.
[Android Software Development] Vel-San:
Can anyone suggest a working version of this one ? ( i tried 3.5, 3.5.1, 3.5.5 and they are not working )

and can anyone suggest another decompiling - compiling too ? Thanks.
[Android Software Development] bovirus:
I didn't udnerstand your request.

Use the latest version of this tool.

For other tools please ask in other threads.
[Android Software Development] Flextrick:
Hey guys, I recognized your bugreports and I will fix them. Please give me some time.. my freetime is very limited.

Thanks for understanding!
[Android Software Development] Flextrick:
Hey guys,

finally I found time to work on it and I fixed all bugs. The current thing I'm working on is that the compiling path is going to be saved. The update will be published tomorrow or on thursday.

Thanks for your patience!
[Android Software Development] Morningstar:
Can't wait! Except for rare circumstance when I have to use apktool via cmd, this is all I use.
[Android Software Development] Flextrick:
Update:

v3.5.6:

fix progressbar not disappearing after decompiling

fix loop after/while compiling

save compiling path and jump into it when he starts folder browsing

update user interface

I also uploaded all version to one folder where you can download each of them.

The download link will be static from now on.. it brings you to a folder with all the versions inside.

[DOWNLOAD]
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

Could be possible to include in your distribution the XP batch (developped by me) to test also compatibility about your sofwtare using command line?
[Android Software Development] Flextrick:
[MENTION=637263]bovirus[/MENTION]

Can you explain me more in detail what you want to be added?
[Android Software Development] bovirus:
I developped a batch for Xp but that now I'm using also for Windows7/Windows8.

I used it when i had some problems/doubts about GUI on decompiling/compiling.

I posted it for tests some times ago.

Attached to the msg.
[Android Software Development] Flextrick:
Alright and what do you want me to do with it in combination with the Multitool?
[Android Software Development] bovirus:
If you want to include it into your program archive release or post it in first post as help for AMT users.
[Android Software Development] Flextrick:
Aaahh, I'm understanding!

Yes of course, thank you!
[Android Software Development] LasVegasRomeo:
thanks flextrick soons to be working smooth so far! (p.s. with newest compiled apktool build) ;)
[Android Software Development] Flextrick:
Thanks for the feedback! Nice to hear
[Android Software Development] Morningstar:
Seems to be working just fine so far. Excellent work, friend, excellent work....

[emoji106]
[Android Software Development] Flextrick:
Thanks man!
[Android Software Development] bovirus:
For someone that try to investinganting problem, I made available a batch file (that is running on XP/W7/W8) to show the operation manually and to see the log in real time.

For this Flextrick I asked you to post in first post and include it in your distribution....
[Android Software Development] Flextrick:
Is already in first post and in the downloads
[Android Software Development] bovirus:
Thanks.

My post was as suggestion for the users to try also manual batch file to have more info...
[Android Software Development] EsuS.:
I can't seem to decompile SystemUI.apk... I would appreciate help since I really can't figure out what's going wrong...
[Android Software Development] vikasb32:
When app don't have any error them it compile fine but when there is any error it just loading means infinite progress bar . one more thing any solution of [MENTION=5711379]ANDROID[/MENTION]: attribute solution?

When there is [MENTION=5711379]ANDROID[/MENTION] : attribute it did not compile but when i use @*android: it's compile fine
[Android Software Development] andriman:
I agree to this. The infinite progress bar can occur even if there is no error. It just gets stuck.

I also remember the Include AndroidManifest.xml checkbox having no impact - the manifest was included at any option.

Now I use 3.5.0 again... :(

I suggest having more states of the progress. And display the progress in the Log memo (instead of just "No errors", or any error).

Simply push the bash output into the memo, filter useless lines and view only the progress related ones. (if there are any). That way, we could determine where it got stuck.
[Android Software Development] vwadam:
I have installed framework,when its done i tried decompile settings.apk,but i got this error:

[IMG="Error"]http://kepfeltoltes.hu/150208/796183564N_vtelen_www.kepfeltoltes.hu_.png[/IMG]
[Android Software Development] muchi_13:
I'm using latest amt on my notebook with windows 8.1 + .net45 + jre. I succeeded decompile framework-res. But when I recompile that to .apk there nothing happens after take long time

Here i attached SS from android multitool batch

[IMG="error"]http://s2.postimg.org/ts5wspqcp/error.png[/IMG]
[Android Software Development] dragonballz:
Hi, I decompile SecSettings.apk all goes well , except when I want to recompile I have an error message : that the file sp , cifi is not found .

This mean anything ? please thank you .
[Android Software Development] dragonballz:
Hello , impossible to recompile SecSetting I attached you the log .

EDIT : Resolved
[Android Software Development] Chena_22:
i wonder why it took so long just to recompile an apk with the latest version..anyone can help?:confused:
[Android Software Development] carlitobahsoun:
hi

yesssssssssssssssssss victory.......finally I learn and use this to decompile and compile system ui ......u will laugh on me but yes I did it and I remove sfinder&quickconect from system ui .......thanks for this app...thanks for dev.....thanks for xda
[Android Software Development] thereassaad:
Good enjoy bro now u can modify any Apk lol enjoy bro

World Is Full Of Nice People. If U Can't Find One, Be One.
[Android Software Development] carlitobahsoun:
hi

thanks ........ I remove increase ringtone too........now if u can help me I want to add 1 more toogles in notification panel instead of 5 I want it 6 in one view.....I hope u have the codes for it.....thanks and be sure if I have any problems I wll contact u....
[Android Software Development] thereassaad:
PM on whatsapp u have my nb right? ?

World Is Full Of Nice People. If U Can't Find One, Be One.
[Android Software Development] Dbj.Dhaval:
Taking an hour to recomplie
[Android Software Development] tcat007:
My question too. Decompiled Settings.apk, took about a minute. Made some color changes, compiled and still waiting (5 minutes). So I need to wait an hour?
[Android Software Development] andriman:
Check the Compiled_apk folder, maybe it is already there...
[Android Software Development] tcat007:
Still working... 40 minutes. Nothing in Compiled. I edited it in Android Studio, was that a mistake?

Edit: I quit and tried again. Just decompiled, and tried to recompile without any changes. Still stuck on compiling. Only Log info:

Cleaning up unclosed ZipFile for archive C:\Users\Tom\apktool\framework\1.apk

Just looked in that folder and there are 2 files. Looks odd: C:\Users\Tom\apktool\framework\ 1.apk and 127.apk

Do you just need to load Framework-res and SystemUI once, or for every apk?
[Android Software Development] andriman:
No, just once....

Get version 3.5.0 and compile it with it...

(You'll need to restart it after every compilation to prevent compilation loops)
[Android Software Development] bovirus:
[MENTION=5118376]andriman[/MENTION]

Where did you get an old version?

[MENTION=995578]tva[/MENTION]t007

Try with batch included in first post to ahve a detailed log of the operation.
[Android Software Development] andriman:
In the first post, the DOWNLOAD link links to the folder with all the versions.
[Android Software Development] bovirus:
[MENTION=5118376]andriman[/MENTION]

Sorry wrong request. Why sheld he use an old version?
[Android Software Development] andriman:
Because he won't have to wait hours to have his app compiled.
[Android Software Development] bovirus:
It's quite strange that you have to wait hours.

I'm using 3.5.6 and the compilation time is always quite slow (max 2 minutes).
[Android Software Development] tcat007:
Thank you, Batch works! Yes, decompile and compile in less than a minute. I assume being "Batch" if I have more than 1 file in the Decompile folder, it will do them all at once? I only tried Settings and just changed colors, worked great!
[Android Software Development] slickrick54:
Sorry for the noob question but will this work for Samsung Galaxy S5 TouchWiz Lollipop? Thanks
[Android Software Development] Sage:
hmmm trying to decombile framework-res.apk from 4.4.4..

get the following error and only the folder is made in the decompile apk folder.

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080220 drawable/default_wallpaper, config=-sw600dp-nodpi

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:63)

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:56)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:186)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:157)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:125)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:606)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:75)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:67)

at brut.androlib.Androlib.getResTable(Androlib.java:61)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:206)

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

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

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

little help?

---------- Post added at 11:45 PM ---------- Previous post was at 11:41 PM ----------

same error when i try the BAT file too...
[Android Software Development] thor1k:
hi i am stupid command line hard thank yoyu for this buttons press peasy double pluss good

---------- Post added at 08:45 AM ---------- Previous post was at 08:05 AM ----------

got the exact same issue with decompliling Chrome.
[Android Software Development] jun_ng_1208:
Tried recompiling systemui.apk from lollipop 5.1 but unable to do so with v3.5.6...
[Android Software Development] darkjedi7:
I think the problem is in 5.1 itself as I can't get it to work with this or apktool itself, i get errors installing the framework so just to check i installed the framework for 5.0.1 and it installed fine but from 5.1 I get a lot of errors. hopefully this can be fixed soon.
[Android Software Development] jun_ng_1208:
Cheers mate, glad to know I'm not the only one...did you tried de/recompiling apks as well?
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]/@All

Please update apktool.jar (just compield by iBotPeaches) compatible with Android 5.1 (APK 22).

http://xdaforums.com/showpost.php?p=59436776&postcount=2812

Download the file ttached. Rename it to apktool.jar. Copy it into Android Multitool Program-Files subfolder.

That's all.
[Android Software Development] darkjedi7:
Working good now thanks.
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

Could you please update your tools with

- apktool.jar updated

http://xdaforums.com/showpost.php?p=59436776&postcount=2812

- android platform tools v22 (adb.exe)

http://www.adsl4all.net/public/Cellulari_Tablet/Mediatek/Tools/Android-platform-tools-v22.0.0.zip

- android build tools v22 (aapt.exe)

http://www.adsl4all.net/public/Cellulari_Tablet/Mediatek/Tools/Android-build-tools-v22.0.0.zip

- apktool/appt (Linux) v22 update

Thanks.
[Android Software Development] Flextrick:
I will, but please be patient.. I'm very busy right now.
[Android Software Development] TheSSJ:
Hi,

just a quick note - if the installation directly has a space in it, the decompiling (and probably everything else) fails.

Have installed it in a directly like C:\App decompiler\AndroidMultitool. The error log displays something like "The system couldn't find "decompiler\AndroidMultitool\Files\xxx"

Just a quick note though. Other than that, great app!
[Android Software Development] Flextrick:
Hi,

I updated build-tools, platform-tools and apktool.jar.

Android 5.1 API is now SUPPORTED!

Have fun, current version is still v3.5.6, I just replaced the program-files.

DOWNLOAD
[Android Software Development] mjraogr:
[MENTION=4642185]Flextrick[/MENTION]

Can i use this tool adapting .jar for decompile Baidu framework?

tks

MJ
[Android Software Development] zelendel:
This will require apktool.jar updates from ibot but he already stated he would not support frameworks like that due to their use of odd ball qualifiers. You might be able to find one in some china based forums.
[Android Software Development] mjraogr:
Thanks Bro, I'Il looking for
[Android Software Development] genius88:
Today I was using your app for the first time. Decompiling goes normal with errors but files showed up. Recompiling with those files can't be done, it's still hanging (not freezing) like for other users, but now I know why (in my situation). I found this http://xdaforums.com/showpost.php?p=25924537&postcount=146 . I've tried to make some graphic edits on modified before (but not by me) app. During decompiling getting errors and *.yml file was not created, so it couldn't be properly recompiled. Maybe this is a clue for others. :)
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

Available update about Android build tool (22.0.1).

Please use different number build for your tool to identify version. Ex.

3.5.6 -> srock

3.5.6b -> Update android build/platform tool to 22.0 / update for apktool.jar

3.5.6c -> Update appt to 22.0.1.

Thanks.
[Android Software Development] Flextrick:
Thanks for your wishes ...

it's doesn't matter, users who want to download can download the latest version which is 3.5.6.
[Android Software Development] :
Hey guys,

If you have a suggestion or request.... Make it and leave it at that.

If you aren't happy afterwards, you can always use something else or create your own tool.

Please don't pester anyone with your ideas.

Good?

Thanks,

Darth

Forum Moderator
[Android Software Development] hispanico957:
I follow all istructions but searching to decompiler framework-res

What i wrong ?

Thank

Hispa
[Android Software Development] mironkraft:
hi tehre, just a question, how much time takes to Compilin? Just in the case you change a little thing of settings apk for example in my case

thanks

PS: after tested, while compilin doesn´t works or finish the work
[Android Software Development] bovirus:
Depend by hardrware reources (CPU/RAM(HDD/etc).

We rae talking about 1-5 minutes.
[Android Software Development] Karls0:
Hi, i have a question about legality of decompiling app. I need to modify one free app from market, because it has one limit in settings which is to low for me. Is it allowed? It is only for my use, i don't plane to share it.
[Android Software Development] Spacemonkie4207:
A: You have to open your old apk (this one you selected for decompiling in the folder /files) and copy from that apk the AndroidManifest.xml and the META-INF folder to the apk you just decompiled and recompiled.

This is my first time decompiling/recompiling an apk.

I'm having trouble understanding this. Do I manually copy and paste these files or does it happen automatically in the latest version.

Thanks :)
[Android Software Development] Karls0:
For me it was automatically. You have only to sign apk manually if you want to install it - I couldn't install one apk without signing.
[Android Software Development] Giacomo_:
Hi guys, I have a problem. I'm trying to compile a decompiled apk, but the program has been runnging for at least 2 hours. It's a small apk, about 60mb. Can anyone help?

I'm on windows 8.1, and i've tried v3.5, v3.5.5 and v3.5.6 of the program. The first one doesn't decompile, it gives me just a lot of errors, the other two decompile in a few seconds, but can't finish compiling. I've also tried giving the first one the decompiled folder from another version, but it gives me error and doesn't compile.
[Android Software Development] bovirus:
To get an help you have to undesratnd that we need the details

Java JDK version/Apk name/log of errors.

Without theese info no one can help you.