Help compiling. - Xperia Play Q&A, Help & Troubleshooting

Can anyone please recompile this for me.I always get a compile error with apktool 1.4.3
exception in thread main brut.androlib.androlibexception etc
Please help.

Related

Need help with xml

I am looking for someone that can help me make some xml edits and then recompile the two apk's for me. They are com.htc.resources and framework-res. I have all the edits that I need to make but I am not good with programming stuff. I tried making the edits myself and then recompiling but I keep on getting boot loops. Any help would be appreciated.
Bumping this post as I have no replies as of yet.

Trying to Decompile, not working... please help

Hello,
Im kind of new to developing for android....
But I did a bit of developing on blackberry in the previous years...
Ive been working on some soft buttons. I designed some buttons in a different thread that work great. But I wanted to edit my SystemUI.apk myself (navagation_bar.xml) so that I could edit a search soft key and the order of the soft key buttons myself....
I can't for the life of me, get this thing to decompile. If you open the navagation_bar.xml from within the SystemUI.apk (even in notepad ++), you get a bunch of random characters. I am assuming this is because I have to actually decompile the SystemUI.apk first.
- so I have downloaded apktools,
- I have it all setup correctly following the instructions for decompiling posted here: http://rootzwiki.com/topic/1836-guide-how-to-decompile-an-apk-updated-w-guide/
I used the framework-res.apk of the rom that I am currently using (Android Rev 2.1.2)
And then I place the SystemUI.apk in the folder to be modded, and go ahead and run the script, try an decompile it. And every single time I try it says "an error occurred, please check the log"
I check the log and nothing there makes any sense to me....
It just says an error occurred in "main" multiple resources....
and then it lists a whole bunch of (unkown source)
Super frustrated here, because I have found some coding and studied some coding and I know how to edit the navigation_bar.xml to my likings.... but I cant get the damn SystemUI.apk to decompile....
Can someone please help me here?
and ideas on what might be going wrong?
Thanks a lot
Replace the files in the "other" folder with these.
http://db.tt/1Cii8tGa
The guide you are using will only work for samsung phones running touchwhiz. You'll need to use the framework specific to the ROM you are working on.
You should be able to find all the necessary info in Brut.all's thread, although Ill admit it did take me a little while to get it all figured out myself.
[UTIL][08.12.11] Apktool v1.4.3 - a tool for reengineering apk files

Apktool cannot find sources please help

What's the problem?? I'm following the steps step by step and its always telling cannot find sources what I'm doing is
Opening a cmd on apktool folder
Type
Apktool if framework-res.apk(works normal)
Apk tool d framework-res.apk frameworkres(extracts the folder but doesn't show all lines like in the tutorial)
Then i edit some photos in drawable-hdpi
Apktool b frameworkres framework1.apk
Then it tells me it can't find sources
And types about 50 lines of errors
What should I do??
I followed tutorials exactly what they did and didn't work with me
Please help
Y U WANNA KNOW FROM WHERE SENT??
Thankyou all guys for your help
thanks for your support
y u wanna know from where sent??

Apktool error when compiling

I issue the following command to decompile the apk:
Code:
apktool d framework-res.apk
I make a the following edits in the file res/values/dimens.xml:
Code:
<dimen name="thumbnail_height">[COLOR="Red"]240.0dip[/COLOR]</dimen>
<dimen name="thumbnail_width">[COLOR="Red"]151.0dip[/COLOR]</dimen>
I issue the following command to recompile the apk:
Code:
apktool b framework-res.apk
Then I get the following error:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Other information:
Java version: Version 7 Update 25
Apktool version: 1.5.2
OS: Windows
Tool used: Command Prompt (cmd.exe)
Someone please help. This is really getting on my nerves. Thanks.
EDIT: Sorry guys!
I just fixed it.
Instead of issuing the command:
Code:
apktool b framework-res.apk
I issued:
Code:
apktool b framework-res
All I had to do do was remove apk from the command.
It ended up in the folder named dist.
I'll leave this thread so it can help others.
I'm having the exact same problem at the moment while trying to edit the Androidmanifest.xml file.
I'll try this solution now and edit this post saying whether it works for me or not :thumbup:
Edit: This did work for me :thumbup: However I then came across another error (which I think was due to how I modified the APK)
Sent from my R800i using xda app-developers app
In fact, if you read the error carefully, you see that a file is missing : apktool.yml. This file is created by apktool each time you decompile an apk. It contains the Android version, the framework path, etc... But if you have a wrong framework installed, apktool will stop and won't create this file, so it won't be able to read the correct informations to recompile
Most of the errors with apktool come with a wrong use, a wrong version or something of that type, very few of them come from a problem of compilator (unless you mod a lot the smali files and all).
izi501 said:
In fact, if you read the error carefully, you see that a file is missing : apktool.yml. This file is created by apktool each time you decompile an apk. It contains the Android version, the framework path, etc... But if you have a wrong framework installed, apktool will stop and won't create this file, so it won't be able to read the correct informations to recompile
Most of the errors with apktool come with a wrong use, a wrong version or something of that type, very few of them come from a problem of compilator (unless you mod a lot the smali files and all).
Click to expand...
Click to collapse
No. The apktool file was missing because I tried to compile the apk within itself. The apktool file wasn't originally in the apk. Instead of compiling from the original apk you need to compile from the folder which contains apktool.yml. That's why I took the .apk extension out of the command.
thehacka1 said:
No. The apktool file was missing because I tried to compile the apk within itself. The apktool file wasn't originally in the apk. Instead of compiling from the original apk you need to compile from the folder which contains apktool.yml. That's why I took the .apk extension out of the command.
Click to expand...
Click to collapse
Hmm yes of course ! Sorry I didn't read your post carefully enough

Need help decompiling apk to java

Hello.
Sorry if this is not an appropriate post in this forum.
I have been trying to decompile the whatsapp apk however I am not in possesion of a computer and I have not been able to decompile it with my phone nor with any of the online services available. I would very much appreciate it if somebody could decompile it for me to java code, with jadx or whatever decompiler you prefer. Here is a link to the apk: db.tt/EnFIGCZq
Thank you!

Categories

Resources