yashsingh1/xdaforums huggingface dataset:
[Android Software Development] JovieBrett:
Can someone please help me about this? I cannot compile my apk btw here's the log

..\Decompiled_apk\Flappy_Bird_v1.3_(1)\smali\android\support\v4\app\FragmentActivity.smali[284,4] Invalid literal value: -256. Low 16 bits must be zeroed out.
..\Decompiled_apk\Flappy_Bird_v1.3_(1)\smali\android\support\v4\app\FragmentActivity.smali[2128,4] Invalid literal value: -1. Low 16 bits must be zeroed out.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: android/support/v4/app/FragmentActivity.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
The system cannot find the file specified.
The system cannot find the file specified.

I hope that helps!

EDIT

-I did not touch any smali file, I just edited a .txt file inside 'name of the apk/res/raw'

-I tried to check and uncheck the backsmali option before I decompiled, same problem.

-I tried to not do any modifications and the problem is still existing! Thinking there might be a problem within my computer or the program.
[Android Software Development] Flextrick:
This error usually means, that you need the new aapt.exe from the Android SDK platform-tools folder.
[Android Software Development] JovieBrett:
The same happened :(

..\Decompiled_apk\Flappy_Bird_v1.3_(1)\smali\android\support\v4\app\FragmentActivity.smali[284,4] Invalid literal value: -256. Low 16 bits must be zeroed out.
..\Decompiled_apk\Flappy_Bird_v1.3_(1)\smali\android\support\v4\app\FragmentActivity.smali[2128,4] Invalid literal value: -1. Low 16 bits must be zeroed out.
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: android/support/v4/app/FragmentActivity.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
The system cannot find the file specified.
The system cannot find the file specified.

Anyway the 'aapt.exe' was found in android-sdk/build-tools/19.0.1 however there was same .exe file presented in 18.1.0 but I used the aapt.exe of 19.0.1 folder
[Android Software Development] Flextrick:
Maybe you have to configure your java path.
[Android Software Development] JovieBrett:
This is what I've done in environment variables

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.7.0_11\bin

That's it and still does not work ughhhh :( btw, thanks alot for your quick response!
[Android Software Development] nabobcoffee:
just FYI...I got the error when I tried to modify an apk from a non rooted note 3.
[Android Software Development] Flextrick:
Another question:

Does this error only appear with the new version or also with older ones?
[Android Software Development] JovieBrett:
Sorry but I don't know, this is my first time to use your tool :)
[Android Software Development] Flextrick:
Test this one. ;)

Win7/XP: http://www.mediafire.com/download/gdg7zhcvqu8pat7/AndroidMultitool_3.1_win7.zip

Win8(.1): http://www.mediafire.com/download/u8z8r50s288dv01/AndroidMultitool_3.1_win8(.1).zip
[Android Software Development] JovieBrett:
It works with this release! THANK YOU!
[Android Software Development] ventu08:
Unfortunately, even with this version I have the same problem to decompile the framework-res on nexus 5:(
[Android Software Development] nabobcoffee:
Is your Nexus 5 rooted or not
[Android Software Development] ventu08:
of course I have root permissions , but this means nothing with my problem
[Android Software Development] nabobcoffee:
the reason I am asking because I had errors when trying to modify framework from not a rooted phone. once I rooted the error was gone.
[Android Software Development] databits:
This is a great tool, sir. Thanks. But mine always says "apktool is not recognized as .....". I'm using Windows XP SP3. Variables are already set because I'm already using kitchen and APKMulti-Tool.
[Android Software Development] thanhhungtn1:
Not working in windows 8.1

Just clicked on it again and again but nothing happened.
[Android Software Development] Flextrick:
Please read the FAQ, I wrote it for such questions.
[Android Software Development] thanhhungtn1:
Ah, sorry. I forgot about powerpacks :D

Now it's working ;)
[Android Software Development] asdfasdfvful:
So I decompiled snapchat, changed some png's, and tried compiling it, but I get this error. Anything I'm doing wrong? I checked baksmali before as the OP said it was okay

Edit: I'm assuming I misunderstood. Trying again without baksmali checked

Edit: So I didn't change anything and finished the process with baksmali unchecked and it worked. Forgive me for being stupid, but I still don't understnad the Meta-Inf and android manifest thing. It says to "copy the two into the compiled apk", but how do I do that when I cannot open the apk? Do I have to decompile it again and switch it? Currently I'm just copying the meta-inf folder to the decompiled_apk and then compiling. And because it needs the old android manifest, it means we cannot change the package name right?

And will it be possible to use our own keystore in the future?
[Android Software Development] dragonhart6505:
ive tried recompiling my Settings.apk but nothing shows up in the Compiled_apk folder. heres the error

C:\AndroidMultitool\Decompiled_apk\Settings\AndroidManifest.xml:1: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Garrett\AppData\Local\Temp\brut_util_Jar_6707698617267001672.tmp, p, --forced-package-id, 1, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, --version-name, 4.1.2-20130711.152502.16203, -F, C:\Users\Garrett\AppData\Local\Temp\APKTOOL3782971733071744342.tmp, -0, arsc, -I, C:\Users\Garrett\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:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Garrett\AppData\Local\Temp\brut_util_Jar_6707698617267001672.tmp, p, --forced-package-id, 1, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, --version-name, 4.1.2-20130711.152502.16203, -F, C:\Users\Garrett\AppData\Local\Temp\APKTOOL3782971733071744342.tmp, -0, arsc, -I, C:\Users\Garrett\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:482)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Garrett\AppData\Local\Temp\brut_util_Jar_6707698617267001672.tmp, p, --forced-package-id, 1, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 16, --version-name, 4.1.2-20130711.152502.16203, -F, C:\Users\Garrett\AppData\Local\Temp\APKTOOL3782971733071744342.tmp, -0, arsc, -I, C:\Users\Garrett\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:476)
... 6 more
The system cannot find the file specified.
The system cannot find the file specified.

any help?
[Android Software Development] Flextrick:
you have to open your original settings.apk and your newly compiled one with winrar/7zip and

copy the meta-inf folder and androidmanifest.xml from your original to your newly compiled settings apk.

No, I can't imagine an own keystore. It's signed with the integrated signing tool.

Please refer to AndroidMultitool 3.1 which i posted a few posts before.

Flex
[Android Software Development] asdfasdfvful:
Oh so it is only necessary with settings.apk right? I just themed snapchat and it worked fine as is. Thanks!
[Android Software Development] Flextrick:
Updated my Application Sysfile Copymaster to v0.9.1:

Sysfile Copymaster
[Android Software Development] laotzy:
Wow! Last time I played with compiling/decompiling was with ApkTools, on Jelly Bean's 4.1.2 and it was fine but not that easy and comfortable as with this Tool! Thank you very much!
[Android Software Development] Flextrick:
Hey guys,

I'm always getting requests for other or newer apktool.jar, aapt.exe and apktool.bat files. You can do that yourself, if you want.

How to:

Download the file (e.g. apktool)

Rename it to "apktool.jar" (MUST be like this)

Replace your file with the one in the Program_files Folder

Be happy with it. ;)

Cheers
[Android Software Development] and2:
These are basics. ..but erverybody starts once

Gesendet von meinem SM-N9005 mit Tapatalk
[Android Software Development] Flextrick:
Sorry, I think my post was formulated wrong. I edited it. :)

Flex
[Android Software Development] creativeusernamea:
Thanks for your work on this! I've come into a (probably incredibly obvious) problem though - when I try to decompile a .jar I get an error saying "java is not recognised as an internal or external command, operable program or batch file".

I have Java installed and updated so I'm not sure why this is happening. Do you have any ideas?

Thanks :)
[Android Software Development] Thebear j koss:
Your error is the layout integer max height -1. Can't have a negative number as a max height. The others are just warnings...

Thebe@r'$ G@L@XY
[Android Software Development] cmonsterf50:
I didn't even see that at first. It was late .. lol. Weird as I didn't change that xml. I will have to fix it though ... hmm. Thanks for pointing it out. See if it works.
[Android Software Development] Thebear j koss:
May need to just delete that line in that XML to build. Usually long lists like that are warnings you can ignore and 1 or 2 errors. Unless you muff a 9 PNG. Hope you get it.

Thebe@r'$ G@L@XY
[Android Software Development] LifeAsADroid:
I'm a bit new to this, and am having trouble getting my android.policy.jar file to decompile. Here is a copy of the logfile:

UNEXPECTED TOP-LEVEL EXCEPTION:

org.jf.dexlib.DexFile$NoClassesDexException: zip file android.policy.jar does not contain a classes.dex file

at org.jf.dexlib.DexFile.<init>(DexFile.java:298)

at org.jf.baksmali.main.main(main.java:280)

So my android.policy.jar file doesn't contain a classes.dex file and won't decompile... How do I obtain one?

Thanks!
[Android Software Development] Thebear j koss:
need a android policy jar from a deodex rom. odex = no classes.dex, deodex has classes.dex. that is the smali files. or you could deodex your android policy jar if you do a little research...
[Android Software Development] JoeFCaputo113:
How come when I recompile the APK, it doesn't show in compiled folder?? Thanks.
[Android Software Development] LifeAsADroid:
Thanks boss.

I've looked over some deodexing / odexing information, would this procedure work?

https://code.google.com/p/smali/wiki/DeodexInstructions

or maybe...

http://androidmoretip.blogspot.com/2011/08/how-towindows-manually-deodex-and-odex.html

Basically I'm looking for some method where I can transfer the whole /framework folder to my laptop, deodex the android.policy.jar file, modify it, re-odex it back, then transfer or overwrite the /framework folder back to the phone. Is this possible? Is there a good write up somewhere on the interwebs?

Thanks!
[Android Software Development] Thebear j koss:
There are a lot of tutorials here on xda. I'm not extremely knowledgeable in that area. I know there are some 1 click tools to deodexing files available. As probably odexing as well. A search on xda should bring you more info of what you're looking for. I keep my phone deodex as I theme and mid too much to keep going back and forth....

Thebe@r'$ G@L@XY
[Android Software Development] JoeFCaputo113:
Anyone?!
[Android Software Development] ishan bhanot:
Its saying java is not recognized as an internal or external command when i click on install
[Android Software Development] ajithms:
please help

i am doing everything as told in the to do. but i am getting error,

cannot access jarfile framework.apk etc etc

please help. i downloaded the java. set the variable path as told in other posts still not working.
[Android Software Development] Flextrick:
I think the apktool is the problem.. I'll upload an update in the following days.

Flex
[Android Software Development] ajithms:
should i download android sdk

to use your tool should i install android sdk???? sorry i am noob and have no t much idea of themeing. thanks in advance,
[Android Software Development] Flextrick:
It's recommended but not madatory.

Flex
[Android Software Development] ajithms:
then why do i keep getting error when i try to install framework ??? cannot access jarfile. i keep geting this error in apktool, your tool and also port x tool. there should be something basic i am doind wrong. can you please help me sir. i have both java. jre and also jdk. have set the system variable. and i tried running in cmd and also your tool.
[Android Software Development] Flextrick:
I said that propably the apktool is the problem, therefor I'll upload an update.

Flex
[Android Software Development] ajithms:
oh sorry i thought that was reply to some other post. thats why asked. :laugh: thanks for reply.
[Android Software Development] Trichelieu:
Hey everybody, the soft won't launch at all on my computer. When I double click on "Android Multitool.exe" in C:\AndroidMultitool it doesn't do anything. I'm running windows 7 x64 and have full java installed. (apktool works, my framework-res.apk is installed even if I have no idea what this is)

Can anyone help me?
[Android Software Development] Flextrick:
Please refer to the FAQ in the first post.
[Android Software Development] Trichelieu:
Ok I feel stupid now. I searched the whole topic for "launch" issues and didn't find any.

Thank you very much for fast answer, it's working now :).
[Android Software Development] Flextrick:
New testversion with apktool beta b9:

Win8/Win8.1: http://www.mediafire.com/download/56cq96mcnp4nq9u/AndroidMultitool_3.2.1_experimental_win8(.1).zip

Win7/XP: http://www.mediafire.com/download/bou8zia33s9ok2d/AndroidMultitool_3.2.1_experimental_win7.zip

Please test and report me.

Special thanks to iBotPeaches for b9!

Cheers
[Android Software Development] Thebear j koss:
Does this include the newest apktool beta that was released a few days ago do you know? I know ibotpeaches is usually right on point with the updates. They've just been releasing a flurry of betas lately... Thanks love the tool.

Thebe@r'$ G@L@XY
[Android Software Development] Flextrick:
Yes, it's the newest beta!
[Android Software Development] Thebear j koss:
Sweet. Thanks. Hopefully they get a solid official apktool soon.

Thebe@r'$ G@L@XY
[Android Software Development] ajithms:
i have still problem with error. still gives same error. cannot access jarfile when i try to install framework. can you just guess at atleast what problem maybe.

i did everything in your post and also fixed java using this video. http://www.youtube.com/watch?v=mINYU1AD_aw

so what am i doing wrong sir.
[Android Software Development] JonSCSL:
I need some help I am a noobie at this. So I decompiled and made my edits now I can recompile but not sure where to get the META-INF folder and the AndroidManifest.xml file and after I get those files I don't understand the next step on how to put them with the newly compiled apk. I feel like there is some missing steps or a little bit better explaining that step in the op. But on the other hand I am a noobie. :o If anyone can help me it would be greatly appreciated.:D
[Android Software Development] Flextrick:
Did you read the faq?

Flex
[Android Software Development] asdfasdfvful:
Android manifest should be in decomposed folder. Don't worry about meta. Just resign the app. What I generally do is open the original apk and copy over whatever is missing before compiling.
[Android Software Development] Wind07:
Password needed?? O.o
[Android Software Development] asdfasdfvful:
Please elaborate?
[Android Software Development] Flextrick:
What about integrating apktool 2.0 b9 officially in Multitool?
[Android Software Development] Flextrick:
Update: Android Multitool v3.2.1

Win8/Win8.1: http://www.mediafire.com/download/56cq96mcnp4nq9u/AndroidMultitool_3.2.1_experimental_win8(.1).zip

Win7/XP: http://www.mediafire.com/download/bou8zia33s9ok2d/AndroidMultitool_3.2.1_experimental_win7.zip

Changelog: add apktool 2.0 b9

Special thanks to iBotPeaches for b9!

Cheers
[Android Software Development] eZdubzitmk4:
Nm fixed!
[Android Software Development] caspboy:
[MENTION=4642185]Flextrick[/MENTION] with apktool b9, can we still decompile apks with inverted folders?
[Android Software Development] Flextrick:
I don't think so, but I added it because there were many problems with the slimbean one. Hopefully it gets better with b9.

Flex
[Android Software Development] ventu08:
Unfortunately with the slim have remained the same problems:(

may not exist nothing to decompile the apk of slim?
[Android Software Development] jatinrungta:
how about adding tags in framework also
[Android Software Development] Flextrick:
Which tags?

Flex
[Android Software Development] jatinrungta:
Like we can use different tags in apktool for different frameworks like suppose I have two frameworks, 4.1 and 4.2 so I can tag them accordingly
[Android Software Development] Flextrick:
Do you mean a second slot for a second framework-res.apk in the gui?

Sorry, I don't really understand your request
[Android Software Development] jatinrungta:
Let me get a screenshot for that
[Android Software Development] jatinrungta:
Here: I am refering to this

tagging and managing frameworks

https://code.google.com/p/android-apktool/wiki/FrameworkFiles
[Android Software Development] Flextrick:
Ah ok, I'll look at it and will report asap.

Flex
[Android Software Development] jatinrungta:
Thank you

Can you please quote me next time to ensure I read it. :)
[Android Software Development] Flextrick:
I added tags right now, works like a charme. I'll do some fine tuning tomorrow and with some luck I'll publish it tomorrow as a new version.

Cheers
[Android Software Development] bovirus:
I had a problem with v. 3.2.1 on XP.

I downlaod the archive and expanded it into c: drive (the main program is under C:\Multitool folder

Copied framework-res.apk into Files subfolder (C:\Multitool\Files)

Ran Multitool. Selected framework-res.apk -> Install = Check errors for detail.

In the main window apear "apktool is not recognized as internal or external command.

What's the problem?
[Android Software Development] Flextrick:
Did you install java?
[Android Software Development] Flextrick:
Update: Android Multitool v3.3

Changelog:

v3.3:

add tag support (tagging allows multiple framework support)

rework interface

small additions and fixes

support for Win7 / 8 / 8.1 (no extra versions)

Using tags:

You want to decompile many files from different devices or different android versions / frameworks? Tagging makes it possible!

- before installing your framework type in any tag (like "hero")

- then install your framework and work on normally

Updated also the screenshots:

[DOWNLOAD]

Special thanks to iBotPeaches as ever!

Cheers
[Android Software Development] bovirus:
Yes. Java 1.7.x.
[Android Software Development] Flextrick:
I'd like to welcome a new Donator to the Donators list, thank you [MENTION=3503822]deveron3[/MENTION]!
[Android Software Development] DaRk-L0rD:
Great tool bro! Thanks! Using it since V2 and works like charm! Saves time and it's user's friendly. Keep up the great work ;)
[Android Software Development] bdorr1105:
I look this tool I have been using it for a while now I guess I will be upgrading soon. I had success will the system ui on KitKat using galaxy s5 toggles and enabling the s5 menu in SecSettings.apk
[Android Software Development] VillainDivine:
Please excuse the following NOOB question. I am very new to this. I keep getting this error: "The system cannot find the path specified. 'apktool' is not recognized as an internal or external command, operable program or batch file." This error is happening when trying to install my framework. please help!! Thanks in advance!!!
[Android Software Development] bovirus:
Install the lqtest Java JDK for your OS (32 or 64bit).

Set iin Windows OS the variable JAVAHOME to the path of JDK folder (in my case version 1.7.0.51) is

JAVA_HOME = C:\Program\Fiels\Java\jdk1.7.0:51
[Android Software Development] VillainDivine:
Thanks for the reply!! What exactly do you mean by "the variable JAVAHOME to the path of JDK folder"? I have already installed Java and I am currently using QuickMod 2.0, I just would like to switch to this program. Could it have something to do with the fact that both tools are in C: drive? Or that QuickMod is already set as internal or external command? Thanks again for the help!!!
[Android Software Development] bovirus:
Do you tallk about Java JRE? Because Java JDK is anoyther package.

You have to add a system variable JAVA_HOME as explained.
[Android Software Development] VillainDivine:
I have both. As explained where?

EDIT: NVM, just saw where you threw that in. Where im I setting this path? apktool?

---------- Post added at 12:15 PM ---------- Previous post was at 12:10 PM ----------

What is ever weirder. I can decompile SystemUI and SecSettings just fine. I just cant install my framework. So i guess my question is how to make apktool an internal or external command so that I can install my framework.
[Android Software Development] LasVegasRomeo:
Step by step tutorial with images, will get you or anyone else in right direction. Youtube also has plenty good videos on setting up Android SDK and Java as well. :)

Java-Buddy: Set PATH for JDK 7 on Windows 8

- http://java-buddy.blogspot.com/2012/01/set-path-for-jdk-7-on-windows-8.html?m=1

... and here is one on Java's page.

How I Set or Change the PATH system variable?

- http://www.java.com/en/download/help/path.xml
[Android Software Development] VillainDivine:
Great. Thanks for the info man!!
[Android Software Development] pepitoff:
Need help with compiling app from CM11 LX KitKat ROM

Hi, everybody

I need of some help.

My goal is to change ugly browser icon from CM11 LX KitKat with nice browser icon from Sony.

I decompiled Broser.apk, changed necessary files in res/mipmap-hdpi, res/mipmap-mdpi, res/mipmap-xhdpi folders and then I compiled Broser.apk

I had no errors.

I copied AndroidManifest.xml and META-INF folder from original apk to modified apk.

Then I signed modified apk but when move it to system/app folder and give right permissions I got FC.

Where I'm wrong?

Please help me to compiling new apk in right way.

Thanks in advance!