yashsingh1/xdaforums huggingface dataset:
[Android Software Development] forest1971:
Sure. Just run it: Gives error as in the picture.
[Android Software Development] Flextrick:
Thanks, so did you install the Powerpacks from the startpost before?

And which version did you run? 2.0?
[Android Software Development] forest1971:
Yes. Just install before running. It is visual basic 3.0.
[Android Software Development] Flextrick:
Looks like NET frame is the cause.
[Android Software Development] forest1971:
Wow. I guess I found the problem :).

I did not use the link from first post but use google to search and go to the Microsoft website where they show visual basic powerpack 3.0 which does not work.

I go back to first post and installed the pack you pointed to (it says powerpack 10.0). It works now, picture attached. :victory:

I have not try to unpack repack yet but believe it should work. Will try and report result.

Thanks a lot!
[Android Software Development] Flextrick:
Nice! Then I can add a note to the startpost that also win xp users can use it. Thanks for testing and reporting!
[Android Software Development] shazzl:
This tool is very useful thanks. ...

Can u make zipalign to....

And adb push to fone..
[Android Software Development] Flextrick:
Yes, I had this idea a few days ago, I'll implement it as good, as far and as soon as possible.
[Android Software Development] forest1971:
I can confirm that version for Win7 works perfectly with WinXp.:good:

I have decompiled and recompiled successfully my SystemUI.apk :victory:. The GUI makes it quite easy and time saving to do the task compare to using the command lines. Tks!

BTW, to figure out where to put the file is a bit problematic. I guess it maybe a better idea to make a folder with the name like "put FrameworkRes.apk and the the apk you want to mod here". And it will be even better if the task of copying META-INF folder is done automatically.

Also, the part of installing jave and setting up java environment variables for window can be quite tricky and problematic. It will be very helpful if you provide some guide on that part. That surely will benefit many users.

Again, many thanks! Keep up great work!:good:
[Android Software Development] Flextrick:
That doesn't look good, I think "User files" should do. Everybody should read the how-to. :)

I wanted to add this part with the META-INF folder, but that's not possible, sorry.

Good idea, I'll link some tutorials for that.
[Android Software Development] Android-Andi:
Thanks for this great Tool!

I did this Tutorial yesterday "How to port SONY Small Apps/Taskswitcher plugin Xperia Z/Honami/Z1 Android 4.2.2 to CM10.1/4.2.2"

- everything worked great using MULTITOOL v2.1 on Windows 8 Pro x64.
[Android Software Development] Android-Andi:
Hey [MENTION=4642185]Flextrick[/MENTION] !

Today i redownloaded Multitool for Windows 8 to be shure that i used the right one. Layout is broken as you have seen in my video. (http://xdaforums.com/showpost.php?p=46058006&postcount=75)

I´m on Windows 8 Pro x64.

Layout is ok on Multitool for Windows 7.
[Android Software Development] Flextrick:
Ok, thank you. I hope I did not interchange the versions. I'll test it and tell you.
[Android Software Development] Flextrick:
No, the layout is definetely ok for me, it depends propably on netframe.
[Android Software Development] Andr0id7:
sir how can i copy the manifest.xml file into the apk file?
[Android Software Development] Flextrick:
Hello, please read the FAQ.

it says:

Q: What do you mean exactly with "!!!NOTE!!! After compiling you have to copy the AndroidManifest.xml and the META-INF folder from your old apk to your newly compiled one!! Otherwise you´ll get bootloop! " .. I don't understand.

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.
[Android Software Development] forest1971:
Hi you can use 7z to open and copy files, folder from apk to apk.

Sent from my LT30p
[Android Software Development] Sir Roven:
What the error ?

this is my log

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

C:\AndroidMultitool\Decompiled_apk\Settings\res\xml\settings_headers.xml:19: error: Error: No resource found that matches the given name (at 'id' with value '@id/xperia_extras').

C:\AndroidMultitool\Decompiled_apk\Settings\res\xml\settings_headers.xml:19: error: Error: No resource found that matches the given name (at 'title' with value '@string/xperia_extras_title').

Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Bruno\AppData\Local\Temp\APKTOOL6585070099093121743.tmp, -0, arsc, -I, C:\Users\Bruno\apktool\framework\1.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)

at brut.androlib.Androlib.buildResources(Androlib.java:283)

at brut.androlib.Androlib.build(Androlib.java:206)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

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

Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Bruno\AppData\Local\Temp\APKTOOL6585070099093121743.tmp, -0, arsc, -I, C:\Users\Bruno\apktool\framework\1.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)

... 5 more

Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\Bruno\AppData\Local\Temp\APKTOOL6585070099093121743.tmp, -0, arsc, -I, C:\Users\Bruno\apktool\framework\1.apk, -S, C:\AndroidMultitool\Decompiled_apk\Settings\res, -M, C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:89)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)

... 6 more

O sistema nÆo conseguiu localizar o ficheiro especificado.

O sistema nÆo conseguiu localizar o ficheiro especificado.
[Android Software Development] Flextrick:
I think you have to install the sony framework .
[Android Software Development] adamslast:
I have allways the same message. Briefly it says "System can not find the file specified". What is the problem?
[Android Software Development] Flextrick:
What were you doing? ... Decompiling, recompiling?
[Android Software Development] adamslast:
I can decompile normally. Even i can compile unchanged decompiled systemui. But compile command for changed file give some error message. I can send you complete error message if necessary.

Edit: Here is the log:

I: Checking whether sources has changed...

I: Smaling...

[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNTÄ°ME

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: C:\AndroidMultitool\Decompiled_apk\SystemUI\smali\com\android\systemui\statusbar\AnimatedImageView.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:37)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)

at brut.androlib.Androlib.buildSources(Androlib.java:214)

at brut.androlib.Androlib.build(Androlib.java:205)

at brut.androlib.Androlib.build(Androlib.java:176)

at brut.apktool.Main.cmdBuild(Main.java:228)

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

The system cannot find the file specified.

The system cannot find the file specified.
[Android Software Development] Florian Bichl:
"deleted"
[Android Software Development] Android-Andi:
Yes. 7-Zips works perfect.

---------- Post added at 10:03 PM ---------- Previous post was at 10:00 PM ----------

I think i have 4.x installed.

---------- Post added at 10:09 PM ---------- Previous post was at 10:03 PM ----------

Mybe you missed an sign e.g.

"

for HEX-ID ?

Can you upload "decompiled_apk\Settings\res\xm l\settings_headers.xml"
[Android Software Development] 12th Planet:
Am I doing something wrong?

I keep getting this

I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\AndroidMultitool\Decompiled_apk\SystemUI\res\layout\status_bar_expanded_header.xml:2: error: Error parsing XML: unbound prefix
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\DAVIDG~1\AppData\Local\Temp\APKTOOL1666712520717511441.tmp, -0, arsc, -I, C:\Users\David Gonzalez\apktool\framework\1.apk, -S, C:\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, C:\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\DAVIDG~1\AppData\Local\Temp\APKTOOL1666712520717511441.tmp, -0, arsc, -I, C:\Users\David Gonzalez\apktool\framework\1.apk, -S, C:\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, C:\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\DAVIDG~1\AppData\Local\Temp\APKTOOL1666712520717511441.tmp, -0, arsc, -I, C:\Users\David Gonzalez\apktool\framework\1.apk, -S, C:\AndroidMultitool\Decompiled_apk\SystemUI\res, -M, C:\AndroidMultitool\Decompiled_apk\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
The system cannot find the file specified.
The system cannot find the file specified.
[Android Software Development] Android-Andi:
something wrong/missing in status_bar_expanded_header.xml
[Android Software Development] Sir Roven:
Can anyone tell me what I have to do? I'm lost: (
[Android Software Development] Flextrick:
did you edit the settings_headers.xml?
[Android Software Development] forest1971:
This is often related to

-installing java should install both java 6 and 7 version, both jre and jdk

- set up environment variable for java

- install frameworkres, systemui and specific file for each phone brand. Hope it give you some clue.
[Android Software Development] Sir Roven:
Yes, why ?
[Android Software Development] Flextrick:
Look at line 53.
[Android Software Development] Flextrick:
Please ask in the Tutorial thread, it's not apktool specific.
[Android Software Development] Blackball:
hi,

does it work with Android 4.3 System Files ?
[Android Software Development] guinnes.s:
ok i followed the instructions ,i manage to decompile a apk,how do i open the files in the decompiled folder ??

thanx
[Android Software Development] Flextrick:
With a text editor.
[Android Software Development] guinnes.s:
i manage to open most using NOTEPAD++ ,but cannot open the .SO files,what should i use ?

thanx
[Android Software Development] bdorr1105:
I didnt use apktool, I used your multitool
[Android Software Development] Flextrick:
yes, but these errors are not apktool related, I don't know which Mod/tut it is. There may be more help in the tutorial thread for you.
[Android Software Development] bdorr1105:
What could it be. I did exactly what the OP said to the T. It installed my framework, decompiled the apk with no issues... All I did was add battery images to the the system ui. Tried to compile epic fail. When you install the framework where is it supposed to install it at?
[Android Software Development] Flextrick:
You just want to add battery images or do you have to edit xmls too?
[Android Software Development] bdorr1105:
I edited both xmls for the 1% mod and batt images
[Android Software Development] Heatshiver:
I am having an issue where no matter what I do I get the error:

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

I setup the paths as described on page 25, but this had no affect.
[Android Software Development] 309041291a:
Total Noob

Alright guys, I have no idea what I'm doing. I want to start getting into editing systemUI looks.

Using z7ip to rip apart the APK files and then navigate to drawable-xdhpi, replace PNGs with custom ones, and creating a flashable ZIP was the easy part. Then I stumbled onto XML files........ That's when I became an even bigger noob.

So I just plopped AndroidMultitool (folder) into Local Disk C (like I was advised). Then I installed what I needed to and I then I got this littler error message, over and over again when trying to install the framework-res.

"'java' is not recognized as an internal or external command,

operable program or batch file."

Now my first thought was to search this thread for the same error and another user had the same problem. As I read along his struggle I just got more confused I could not figure it out. I did read that he was supposed to change his path, so I changed mine to < PATH=%PATH%;"C:\Program Files (x86)\Java\jdk1.7.0_45" >

Went into Command Promt, typed in "JAVA" and it basically told me that I was stupid and JAVA wasn't here. Regardless I tried to install the framework-res again with the APKTool from this thread... and it was a failure as a cause of the same error... /sadface/

So, yeah, I am completely lost. Someone help me? I'm really new to this so excuse me haha.

Here are some things I have installed that I believe regard this...

- Java SE Devlopment Kit 7 Update 45

- Java 7 Update 45

- (The NET thing said it was not applicable to my computer, so I assumed I had it, I'm running Windows 8... I don't know where to find the appropriate file)

- adt-bundle-windows-x86 6420130917.zip (I merely downloaded it, I don't know what to do with it)

- Notepad + +

- Microsoft Powerpacks (from OP)
[Android Software Development] Android-Andi:
did you downloaded the right version (x86 for 32bit windows or x64 for 64bit Windows )? no problems here on windows 8 pro x64.

MultiTool on C:\AndroidMultitool?

---------- Post added at 06:12 AM ---------- Previous post was at 06:08 AM ----------

redownload jdk from here and install New http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

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

run the installation as administrator
[Android Software Development] 309041291a:
X86 for Java? I thought it didn't matter which version you used (if you have x64 bit....) I'll try the 64 but version

Sent from my AK MBQ N⁴

[My Anarchist Barbeque Powered Nexus⁴] now Free
[Android Software Development] Ricky Divjakovski:
i cannot successfully recompile, program freezes and become unresponsive? even after reinstalling, even on another computer, tested on 32bit and 64bit amd and intel
[Android Software Development] Flextrick:
Freezes should be fixed since 2.1.
[Android Software Development] Flextrick:
There are some issues with the resources, i think.
[Android Software Development] bdorr1105:
Ok I was successfuly able to recompile. However I am throughly confused.

!!!NOTE!!! After compiling you have to copy the AndroidManifest.xml and the META-INF folder from your old apk to your newly compiled one!! Otherwise you´ll get bootloop! (Don't check the smali checkbox, it will create a classes.dex file from you smali files) How...Look at my screenshot...That doesn't make sense, what do you mean after we compile......I dont even have a META-INF Folder, and 2, how does copying those files on the compile folder do anything since the apk is already compiled? Where do I get these files?
[Android Software Development] Flextrick:
The files are from the old apk, this one you choosed to decompile from the /Files folder.

Look at the faq please.
[Android Software Development] bdorr1105:
I know that, they arent there, Where am I copying them, it recompiles regardless I dont get what you mean? See My Screenshot
[Android Software Development] Flextrick:
No, you have to copy the META-INF folder from C:\AndroidMultitool\Files\filename.apk to C:\AndroidMultitool\

Compiled_apk\filename\dist\filename.apk
[Android Software Development] luiseteyo:
Is this multitool working on 4.3 apks? it seems to be a great tool. Thank you!
[Android Software Development] Ricky Divjakovski:
Actually 2.1 is the one I tested?
[Android Software Development] aanarchyy:
Is there a password on the zips?
[Android Software Development] Flextrick:
No, there's no password.
[Android Software Development] Flextrick:
Not sure, if it works with Apktool 1.5.2 yes.
[Android Software Development] Android-Andi:
you can use 7zip to open apk. then extract the metainf-folder open the new app too and copy into it
[Android Software Development] Taxi341:
JIP work on 4.3 to and it is a great tool
[Android Software Development] Im.newbie:
can't decompile .jar

how can this be ?
[Android Software Development] Flextrick:
I don't know, is there a classes.dex file in the jar file?
[Android Software Development] Im.newbie:
Idk too ._.

Im a totally noob :D
[Android Software Development] Flextrick:
Please open the file with 7zip or WinRar and look into it. :)

[MENTION=535343]all[/MENTION]

I'm working on integrating adb, it looks good so far!
[Android Software Development] shoman94:
apktool 2.0.0 support?
[Android Software Development] Flextrick:
Yes, I'll release Betas because it's 2.0.0 is Beta right now.
[Android Software Development] shoman94:
How does this tool handle themed PNGS when building?

Is there anyways you can have it copy the META-INF and Android_Manifest automatically?
[Android Software Development] Flextrick:
It handles them like the base apktool, it's building up from the base apktool.

Yes, I was trying some way to push the META-INF folder directly into the apk after compiling, but I did not find any good solution yet.
[Android Software Development] shoman94:
If you look at autoAPKtool http://xdaforums.com/showthread.php?t=1053227

you might find how to do it.

EDIT; If you release one with apktool 2.0.0 support I'll try it out.
[Android Software Development] Flextrick:
Update!

Multitool 2.2 Beta 1:

Whats new?

apktool 2.0.0

Details:

Details

v1.5.x -> v2.0.0

Java JRE 1.7 is required!

Update apktool to v2.0.0

aapt is now included inside the apktool binary. Its not required to maintain your own aapt install under $PATH. (However, features like -a / --aapt are still used and can override the internal aapt).

Remove framework $HOME/apktool/framework/1.apk or manually update via (FrameworkFiles)

Eagle eye users will notice resources are now decoded before sources now. This is because we need to know the API version via the manifest for decoding the sources.

Parameter Changes

Smali/baksmali 2.0 are included. This is a big change from 1.4.2. Please read the smali updates here for more information.

-o / --output is now used for the output of apk/directory.

-t / --tag is required for tagging framework files

-advance / --advanced will launch advance parameters and information on the usage output.

-m / --match-original is a new feature for apk analysis. This retains the apk is nearly original format, but will make rebuild more than likely not work due to ignoring the changes that newer aapt requires.

After [d]ecode, there will be new folders (original / unknown) in the decoded apk folder.

original/ = META-INF folder / AndroidManifest.xml, which are needed to retain the signature of APKs to prevent resigning. Used with -c / --copy-original on uild.

unknown/ = Files / folders that are not part of the standard AOSP build procedure. These files will be injected back into the rebuilt APK.

apktool.yml collects more information than before

SdkInfo = Used to re-populate the sdk information in AndroidManifest.xml since aapt requires it to be passed at runtime.

packageInfo = Used to help support Android 4.2 due to renamed manifest packages. Automatically detects difference between manifest and resources and performs automatic --rename-manifest-package on uild.

versionInfo = Used to re-populate the version information in the AndroidManifest.xml since aapt requires it to be passed at runtime.

compressionType = Used to determine the compression that resources.arsc had on the original apk to duplicate on uild.

unknownFiles = Used to record the name/location/compression type of non-standard files in Apk.

Beta Downloads:

Windows 8:

http://www.mediafire.com/download/4w4713g0ndwwdwo/AndroidMultitool_2.2_beta1.zip

Windows 7:

http://www.mediafire.com/?jeh3c5mms7rvrus

Credits:

Many thanks to the developers of the base apktool for their awesome and hard work. Modding would not be this easy without them!
[Android Software Development] shoman94:
FYI incase you haven't seen it:

https://code.google.com/p/android-apktool/wiki/MigrationInstructions
[Android Software Development] Flextrick:
Thanks, added to the post!
[Android Software Development] Flextrick:
Strange, I decompiled SystemUI and everything worked well for me.

Thanks for the hint with the command btw!
[Android Software Development] Ben Ling:
I can't start the application...what to do?

i placed it at Local Disk (C) :
[Android Software Development] toorentz:
finally we have got an easy to use software.no cmd is needed now.

going to test it now :good:
[Android Software Development] A_U:
some linux love maybe ? @

and great tool, very handy..love the simplicity too :) thanks
[Android Software Development] SavanTorian:
me either. same configuration here

exe won't work... sadly :(

there was popping up a message.

if you want to have the files, pls messages me.. :)

from the dumpfile:
[Android Software Development] AdamOutler:
The description is misleading. You need a WINDOWS pc.

adam@adam-desktop:~/Desktop/AndroidApktool$ ls
aapt.exe AndroidApktool.exe apktool.bat apktool.jar HowTo.txt
adam@adam-desktop:~/Desktop/AndroidApktool$ chmod +x apktool.jar
adam@adam-desktop:~/Desktop/AndroidApktool$ chmod +x AndroidApktool.exe
adam@adam-desktop:~/Desktop/AndroidApktool$ ./apktool.jar
invalid file (bad magic number): Exec format error
adam@adam-desktop:~/Desktop/AndroidApktool$ ./AndroidApktool.exe
Missing method EnableVisualStyles in assembly /home/adam/Desktop/AndroidApktool/AndroidApktool.exe, type System.Windows.Forms.Application

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
adam@adam-desktop:~/Desktop/AndroidApktool$
[Android Software Development] Flextrick:
Sorry, thougt the [WINDOWS] in the Topic would clear it, will edit it!
[Android Software Development] SavanTorian:
for those users with a fail to open, please install a vs package from microsoft...

l i n k ! :)

thx