yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 General] macs18max:
decompiling was fine.

I'm getting errors everywhere when trying to compile back... probably not meant for JB apks
[Galaxy Ace S5830 General] shubhamchamaria:
Install framework files....all of em
[Galaxy Ace S5830 General] PulseDroid:
Thanks For helping him :)
[Galaxy Ace S5830 General] K.A.:
If decompiling is fine, then framework files problem shouldn't be there.

Can you tell the errors that occurred?

***.King ACE, Unofficial ERT de ACE OT.***
[Galaxy Ace S5830 General] PulseDroid:
Actually it could be, it happened to me.
[Galaxy Ace S5830 General] K.A.:
Idk then, i've been working with JB apks for a while now...no framework problems if decompile is fine.. OR, the modifications must've been incorrectly done, i think..

***.King ACE, Unofficial ERT de ACE OT.***
[Galaxy Ace S5830 General] shubhamchamaria:
Try compiling without modifications....if it builds fine then it is your changes....otherwise framework files
[Galaxy Ace S5830 General] SpaceCaker:
ive compiled and decompiled apks from every android version and neve had problems

only o ics an jb apks i need to use 1.4.2 for decompiling and 1.4.3 for compile but ive set up different commands for that
[Galaxy Ace S5830 General] K.A.:
One apktool works for me both for compile and decompile.. :)
[Galaxy Ace S5830 General] SpaceCaker:
wich apktool?

apktool 1.5.0 didnt installed properly or atleast dont work but when i use the other apktools the work perfectly
[Galaxy Ace S5830 General] K.A.:
How am i to find out the version now? :\

---------- Post added at 11:22 PM ---------- Previous post was at 11:15 PM ----------

Apk Manager works too... 5.0.2.
[Galaxy Ace S5830 General] SpaceCaker:
type apktool it will show wich version
[Galaxy Ace S5830 General] K.A.:
Apktool v1.5.0...
[Galaxy Ace S5830 General] SpaceCaker:
can u share your apktool stuff ?
[Galaxy Ace S5830 General] K.A.:
The aapt file, the apktool jar and apktool file? That only, right?

---------- Post added at 11:57 PM ---------- Previous post was at 11:53 PM ----------

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

This is the 3 files i put..in C:\Windows...
[Galaxy Ace S5830 General] omkarrepal:
SUPERLIKE

Impressive!:silly:
[Galaxy Ace S5830 General] :
Yes, I did :(
[Galaxy Ace S5830 General] SpaceCaker:
then try other frameworks as it is missing that part
[Galaxy Ace S5830 General] :
I can't decompile or recompile CM7 Apps also :/
[Galaxy Ace S5830 General] Vivek_Neel:
Did you try them with other tools.

Like apkmanager,apk multi tool,xda auto tool etc?.
[Galaxy Ace S5830 General] :
No :/
[Galaxy Ace S5830 General] black-14:
Extra libraries?

It is possible to decompile if the apk has only the written source code. What if there is extra libraries improted in APK file which gives, on extraction, a lots of classes with error. How can we decompile such APK? Trust me there is difference.
[Galaxy Ace S5830 General] amtra:
Yes same error. Tried all possibles.

Anything else to do ..
[Galaxy Ace S5830 General] :
Ok... I the decompile error but I am still facing errors on recompiling :(

EDIT:

Here are the APKTool files I used:

http://d-h.st/jam

http://d-h.st/cxd

:D
[Galaxy Ace S5830 General] SpaceCaker:
try again different frameworks as these are frameork faults

or from the app utself
[Galaxy Ace S5830 General] :
Coolll...!!!

Thanks Buddy!!.....that was really helpful.....!!
[Galaxy Ace S5830 General] Will_Xda:
A few weeks ago i decompiled Matte.apk (a HTC sense skin), today i made a few edits of the images and encountered a problem "java is not a recognized as an internal or external command" which i fixed. when i compiled then edited skin i encountered this error C:\android\apktool\Matte\AndroidManifest.xml:2: Tag attribute package

has invalid character ' '. how will this effect my skin and what should i do ?? Thanks Joe

Edit: Fixed... There wasnt meant to be Any spaces When changing "matte" to the new theme name
[Galaxy Ace S5830 General] LuigiBull23:
Very helpful guide. Thanks!
[Galaxy Ace S5830 General] -Johannes-:
I decompiled android.policy . jar and now I have some errors at recompiling. Do you guys know how to fix?

In attachment are some screenshots of my files and errors :D
[Galaxy Ace S5830 General] SXUsr:
And what did you do in between?
[Galaxy Ace S5830 General] shadowdweller:
Thank you

Thank you for this guide, it was pretty helpful to read and learn about decompiling and recompiling. All I wanted to do was make the status bar transparent. I first started out trying to use apktool. I installed the frameworks, as required, and it decompiled successfully. After that, I followed another guide on here to make changes to tw_super_status_bar.xml and drawables.xml. After that I tried to compile it using apktool and ran into errors. When I read the thread, I took the advice of other members and deleted the folders that needed to be deleted and tried to recompile again. I ran into errors saying that line xx has an undefined variable. I tried searching for a solution but couldn't find any. So, I downloaded the elesbb package and that worked perfectly. I read on the other thread that I needed to replace the xml's that I changed from the new apk to the old apk. I did a search for the file and cannot find it in the old or new apk. I thought, that maybe it wouldn't matter so I downloaded the zipsigner tool and signed the apk and it worked perfectly. I then used root explorer and renamed the compiled file to systemui.apk and rebooted. It rebooted just fine but my status bar is still not transparent. Does anyone know what I did wrong? I only touched those two files..

---------- Post added at 03:05 PM ---------- Previous post was at 02:58 PM ----------

Not to be off topic, but Oh my God dude!!!!! I love you avatar!! Hendrix is a god!!
[Galaxy Ace S5830 General] SXUsr:
:) I would start from scratch tbh, you've probably just screwed up the xml somewhere which gave the initial error then as you've deleted folders/files too it's hard to advise anything else. One tip I'll give you is before editing an xml copy it to another folder first, then if you do get errors you can just copy it back and start again. :)
[Galaxy Ace S5830 General] shadowdweller:
The elesbb's GUI APK tool works perfectly for me decompiling and then recompiling. I was having problems recompiling even without making changes to any files using apktool. I installed framework-res.apk, twframework-res.apk, and systemui.apk.

Are there any other xml files that I need to edit to make the status/notification bar transparent?
[Galaxy Ace S5830 General] SpaceCaker:
u need to install correct framework Or the apk u are trying to decompile is missing those files
[Galaxy Ace S5830 General] phyo chan:
What Wrong ? ?

Thank For Reply :victory:

But I'sure this Setting.apk & framework-res.apk.

What Wrong? This Seettings.apk is My Huawei Y210.

Sorry For My English :D :D
[Galaxy Ace S5830 General] Nikhilmendu:
me too the same please help me
[Galaxy Ace S5830 General] bigpappags3:
No system file

I downloaded the zip. Extracted the zip. I noticed that there were only three files in the zip as compared to the fourth named system. Making sure that this is correct before I continue. :good: in advance.
[Galaxy Ace S5830 General] welard:
hi all as anyone solved this problem im having >>>>>>

W: cant find 9patch chunk in file......renaming to *png.

buy the way its unmodified apk from a s4 dump....the apk is (S-Voice_Android_phone_J.apk)....

can anyone pull that apk and give it a try and let me know what results you get thanks..
[Galaxy Ace S5830 General] shaider_516:
im having this error from CM10.1 for nexus 4.

reinstalled java, other APKs working but not form framework-res.apk
[Galaxy Ace S5830 General] Febrilian:
What should I do with this? Is this java error?

C:\apktool>apktool d systemui.apk systemui1
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
[Galaxy Ace S5830 General] js2892:
i decompiled my Calendar.apk properly.

Now i edited an xml in "Values" folder but when i open the apk through winrar, there is no "values" folder. So how can i replace the edited xml?
[Galaxy Ace S5830 General] Will_Xda:
Recompile the calender.apk you decompiled then use 7zip to replace the file

Sent from my HTC Desire X
[Galaxy Ace S5830 General] nolinuxnoparty:
Everything is decompiling and recompiling fine

except framework-res.apk.. It decompiled fine but some errors while recompiling

Its some values-mcc errors :(

Help
[Galaxy Ace S5830 General] evnflow:
nvm
[Galaxy Ace S5830 General] sudhir.cd:
Hello

Thanks a lot for gr8 info u provided....

I tried to recompile systemUI.apk but after recompilation, file size was become less and after installing systemui on mobile it was not working properly ......Any Help

Thanks in Advance:good::good:
[Galaxy Ace S5830 General] js2892:
i think u didn't understand.

When i open .apk with 7zip, the folder which i edited(after decompiling) is not present.

---------- Post added at 02:36 PM ---------- Previous post was at 02:35 PM ----------

the file size reduces, no problem in that.

Did you set the correct permission while replacing as rw,r,r?
[Galaxy Ace S5830 General] sudhir.cd:
Re:Error

yes sir, i set the proper permission. I just decompile n recompile SystemUI.apk for trial but after using that apk, my notification bar n wall paper gone... :(
[Galaxy Ace S5830 General] sudhir.cd:
Re

[MENTION=4765101]js2892[/MENTION] : I m still w8ing for ur feed back :(
[Galaxy Ace S5830 General] js2892:
I hope u followed the procedure step by step!

Did u replace resources.arsc?

If yes try editing something in systemui.apk and then again recompile and check!
[Galaxy Ace S5830 General] erikalin:
This is a late reply, so you might have figured this out. I'm replying in case you haven't yet. ;) Basically, you are correct that you will not be able to see the VALUES folder in your recompiled sec calendar apk. It's there, but you can't see it unless you decompile again to take a peek. You'll have to just copy the entire RES folder. The VALUES folder is inside, I promise. Good luck, bud. :good: You'll have fun with this once the kinks get ironed out.
[Galaxy Ace S5830 General] eternitys:
Could you please help on this error.
[Galaxy Ace S5830 General] Will_Xda:
Ive Also been getting This (aswell as Many users) apparently Its caused by outdated apktool or Java

Sent from my HTC Desire X
[Galaxy Ace S5830 General] andikazzz13:
help

why at proces recompile aapt.exe force close?
[Galaxy Ace S5830 General] danarama:
Maybe you need to update aapt to latest from sdk
[Galaxy Ace S5830 General] Will_Xda:
Can you share yours ?

Sent from my HTC Desire X
[Galaxy Ace S5830 General] danarama:
I don't use aapt.exe because im a Linux user. Its in the android sdk
[Galaxy Ace S5830 General] raveee:
framework for decompiling and recompiling with apktool

I am having a zen ultrafone 701 hd. how i can install framework for this?
[Galaxy Ace S5830 General] TrojanHorses:
I'm getting this error when I recompile
[Galaxy Ace S5830 General] metalfan78:
Same errors for me too.
[Galaxy Ace S5830 General] t0kgrumps:
Hey could someone help me pls? I'm facing this error. Already installed java jdk and I had put the sdk folder in c/ android folder. I did not install jre yet

Sent from a Galaxy containing a Note by Samsung
[Galaxy Ace S5830 General] Will_Xda:
Try replacing the applicable files of apktool,etc with the ones from this thread http://xdaforums.com/showthread.php?t=1755243

(which is constantly Updated)

Sent from my HTC Desire X
[Galaxy Ace S5830 General] metalfan78:
Looking more closely, my errors refer to 'cannot execute command aapt........'. I can't figure out what to do to fix it
[Galaxy Ace S5830 General] Will_Xda:
Use a different/better functioning aapt like then one in the link from a few posts up

Sent from my HTC Desire X
[Galaxy Ace S5830 General] metalfan78:
I'm using one of them, no change. Same errors
[Galaxy Ace S5830 General] TrojanHorses:
Hey there, Good day.

Can someone point out to me what went wrong with my process (decompiled hyperion-res.apk)

I used autoapktool, But I also used apktool before. both yield common results.

Here is the log

EDIT: solved, silly me, I just forgot to install frameworks :/
[Galaxy Ace S5830 General] Will_Xda:
If it decompiled (you see Hyperion folder) then you dont need to worry about it

Sent from my HTC Desire X
[Galaxy Ace S5830 General] anticries:
i want to change my black to transparent status bar, anyone who can help me? i dunno how to use this properly
[Galaxy Ace S5830 General] js2892:
Decompile systemui.apk

Open statusbar.xml

Find 'android background' change it's value to 000000

Recompile
[Galaxy Ace S5830 General] XEROling:
This method is too long, you can only go to apktool directory and press shift+right click then press on open cmd as admin :D
[Galaxy Ace S5830 General] punitthereddevil:
Does this same procedure apply to all versions of android and all devices...?

NEXUS 4 | PARANOID ANDROID 3.99.1 RC1 | ZIDDEY'S OTG KERNEL r183 | OTG ENABLED TWRP 2.6.3.0
[Galaxy Ace S5830 General] Talmax:
PLZ Help

I did everything to convert a program to make it works in GB, but no use.. I just can't do it..

Can Anyone help me Plzzz :crying:

The program is FitNotes.apk it is working in JB

I want to install it in GB

As I've read I need to change the Api version

something like this:

android:minSdkVersion="8"

android:targetSdkVersion="15"

But once I decompile the apk file I can't recompile it againe :crying:
[Galaxy Ace S5830 General] Kontalstart:
Thanx

Thanxz Men i Test This
[Galaxy Ace S5830 General] adamka13:
Hy the method is really great but i can't recomplie my sytemui apk after modding....

newest apktool and java... :/

Screen attached....

Any solution what did i wrong ?
[Galaxy Ace S5830 General] vmancini3:
Seems like it doesn't like the way you're typing in the systemui directory name...I think it's case sensitive! Its either that, or it looks like it can't find the apktool.yml file, which should be there unless there were issues when you decompiled! Make sure you installed the frameworks from the same ROM that the SystemUI came from!

Sent from my SCH-I535 NOT using that garbage called TapaTalk 4!
[Galaxy Ace S5830 General] hdmiacc:
my log show this

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

operable program or batch file.

how to overcome it? i using windows8 with 64bit
[Galaxy Ace S5830 General] wulsic:
see this link:http://www.java.com/en/download/help/path.xml
[Galaxy Ace S5830 General] vmancini3:
First you want to right-click on Computer and click "Properties", then when the window opens, click "Advanced system settings"....Then, click on the "Advanced" Tab. Next, click on "Environment Variables" and instead of choosing "Edit" like it shows in this picture, choose "New". For "Variable Name" type JAVA_HOME, Where it says "Variable Value", type C:\Program Files\java\jdk1.7.0_45 (or whatever the ACTUAL directory there is called)

Just make sure that I haven't screwed up at that last part....browse through your file system and see what the name of the directory really is to be sure!...then press ok on every window....close everything out and open a command window and type "java -version"....if your system can detect your java installation you should get some sort of output instead of an error!

Sent from my SCH-I535 NOT using that garbage called TapaTalk 4!
[Galaxy Ace S5830 General] erad1:
Sorry but I just don't get the last step,,,Everything worked and I have two apks. The new one and the old one and a build folder. The last part of using 7zip to add the files I edited out doesn't make sense to me. I just deleted some drivers from Viper4android apk. Now isn't the new apk ready to install after signing or do I use the old apk? Really want to make this happe but I feel like such a lost noob on that last step.

Edit: NVM, I figured it out! Thanks for the Tut.
[Galaxy Ace S5830 General] disappear3896:
Hi, I've followed this tutorial, it don't have any error when i decompile and compile but when i put framework-res.apk in my ROM. My ROM don't work, it only stop at boot screen.

Sorry about my bad english
[Galaxy Ace S5830 General] PulseDroid:
What exactly did you edit in framework-res?
[Galaxy Ace S5830 General] danarama:
Have you got most up to date aapt?

-----------------------

Sent via tapatalk.

I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
[Galaxy Ace S5830 General] Summer Son:
Hi All,

I cant install the framework, it tells me:

D:\temp\apk>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x010800d6 drawable/btn_cab_done_default_holo_dark, config=-mdpi
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:196)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)

How can I fix this? Thanks in advance!
[Galaxy Ace S5830 General] ag4751:
Download the zip file from here and replace your aapt.exe and apktool.jar in your apktool folder, also copy these to your Windows \ System32 folder

These are newer versions so should work for if framework and if twframework processes correctly

Download

Do a copy of your current aapt.exe and apktool.jar files to another folder before you replace them with these in case you do need them back.
[Galaxy Ace S5830 General] PulseDroid:
Added a MEGA mirror, 4Shared is really slow. :rolleyes:

Apktool.zip
[Galaxy Ace S5830 General] WMDR:
Re-compiling Error

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:162)

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

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

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

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

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:

103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:158)

... 4 more
[Galaxy Ace S5830 General] hackerpower:
When i try do decompile framework-res.apk i get this...

What's wrong?
[Galaxy Ace S5830 General] vmancini3:
You have to make sure you're installing ALL framework files!!! For example, on a TouchWiz(Samsung) ROM, you'd install framework-res.apk, twframework-res.apk AND SystemUI.apk! For other manufacturers the framework files might be slightly different!

Sent from my SCH-I535 NOT using that garbage called TapaTalk 4!
[Galaxy Ace S5830 General] nerotix:
[MENTION=4425071]PulseDroid[/MENTION] Using APKTool 1.5.2, trying to decompile SystemUI works fine, but when recompiling SystemUI I'm getting errors, even without changing anything.. just decompiling and recompiling, so its not user error. See screenie:

PS This is on Nexus 5 (android 4.4).
[Galaxy Ace S5830 General] fbatti73:
Is not an error just a warning.

The apk has been properly compiled.

Ciaoooooo
[Galaxy Ace S5830 General] moneyolo:
How would I the smali files decompiled too like how it happens in Virtuous Ten Studio. On a linux-based OS also btw. I did the usual install d command. No smali files. I need those smali files. Anyone got anytihng?
[Galaxy Ace S5830 General] Vivek_Neel:
Use smali/backsmali tool
[Galaxy Ace S5830 General] moneyolo:
Don't know how to configure or use it. Help me? I want to use in connection with apktool so when I decompile apk it would also decompile smali backsmali
[Galaxy Ace S5830 General] Vivek_Neel:
http://xdaforums.com/showthread.php?t=2311766
[Galaxy Ace S5830 General] moneyolo:
Thats for windows though. Need it for linux - eOS
[Galaxy Ace S5830 General] benjiboythelad:
hey i downloaled that apktool i think it was duff had to use 7zip to extract it from a tar.bz2, to a tar to a could you tell me if thats right because i typed in the cmd codes correctly, and then it said apktool is not reconisd as a cmd

edit found right zip ( donut me)

---------- Post added at 08:56 PM ---------- Previous post was at 08:39 PM ----------

hey when you say install ( how do you "install" an apk on windows is it the same as just having the app.apk in a file on your windows pc

ehh ( i feel suckyly bad 3 comments on same tread about diffrent issues im having im sure ill solve this on eventually haha but i get

C:\Documents and Settings\Administrator>cd C:\apk

C:\apk>apktool d twframework-res.apk frame

Error: Unable to access jarfile C:\WINDOWS\apktool.jar

Now i followed your javara thing and done the that removed jre and installed your link, blaalla. but i still get this any helps oh and still dont know what installing means on pc
[Galaxy Ace S5830 General] Quandrostr:
who can?
[Galaxy Ace S5830 General] supertanno:
The following occurs for me:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Tanno>cd..

C:\Users>cd..

C:\>cd Android/apktool

C:\Android\apktool>apktool if framework-rs.apk
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound
Exception: framework-rs.apk (The system cannot find the file specified)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:406)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.io.FileNotFoundException: framework-rs.apk (The system cannot fi
nd the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:374)
... 3 more

C:\Android\apktool>

What am I doing wrong that it gives me errors?
[Galaxy Ace S5830 General] vmancini3:
You're typing "framework-rs" instead of "famework-res".
[Galaxy Ace S5830 General] supertanno:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Tanno>cd..

C:\Users>cd..

C:\>cd Android/apktool

C:\Android\apktool>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound
Exception: framework-res.apk (The system cannot find the file specified)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:406)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.io.FileNotFoundException: framework-res.apk (The system cannot f
ind the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:374)
... 3 more

C:\Android\apktool>

Fixed the mistake, same story. Anything else I could be doing wrong?